/* TK22 – thay thế layout Flatsome */
:root { --tk-primary: #0e5aa7; --tk-secondary: #f39c12; --tk-gap: 15px; --tk-max: 1200px; }
.tk-section { position: relative; background-repeat: no-repeat; }
.tk-section-inner { max-width: var(--tk-max); margin: 0 auto; padding: 0 var(--tk-gap); }
.entry-content > .tk-section, .entry-content > p:empty { margin: 0; }
.tk-dark, .tk-dark h1, .tk-dark h2, .tk-dark h3, .tk-dark h4, .tk-dark h5, .tk-dark p, .tk-dark a { color: #fff; }
.tk-row { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--tk-gap)); }
.tk-row-small { --tk-gap: 8px; }
.tk-row-collapse { --tk-gap: 0px; }
.tk-row-large { --tk-gap: 25px; }
.tk-row-full { margin: 0; }
.tk-h-center { justify-content: center; } .tk-h-right { justify-content: flex-end; }
.tk-v-center { align-items: center; } .tk-v-bottom { align-items: flex-end; }
.tk-col { padding: 0 var(--tk-gap) 20px; box-sizing: border-box; flex: 0 0 100%; max-width: 100%; }
.tk-col.pb-0 { padding-bottom: 0; }
.tk-col-inner > *:last-child { margin-bottom: 0; }
@media (min-width: 850px) {
  .tk-span-1{flex-basis:8.333%;max-width:8.333%}.tk-span-2{flex-basis:16.666%;max-width:16.666%}.tk-span-3{flex-basis:25%;max-width:25%}
  .tk-span-4{flex-basis:33.333%;max-width:33.333%}.tk-span-5{flex-basis:41.666%;max-width:41.666%}.tk-span-6{flex-basis:50%;max-width:50%}
  .tk-span-7{flex-basis:58.333%;max-width:58.333%}.tk-span-8{flex-basis:66.666%;max-width:66.666%}.tk-span-9{flex-basis:75%;max-width:75%}
  .tk-span-10{flex-basis:83.333%;max-width:83.333%}.tk-span-11{flex-basis:91.666%;max-width:91.666%}.tk-span-12{flex-basis:100%;max-width:100%}
}
@media (min-width: 550px) and (max-width: 849px) {
  .tk-col{flex-basis:50%;max-width:50%}
  .tk-md-3{flex-basis:25%;max-width:25%}.tk-md-4{flex-basis:33.333%;max-width:33.333%}.tk-md-6{flex-basis:50%;max-width:50%}.tk-md-12{flex-basis:100%;max-width:100%}
}
@media (max-width: 549px) {
  .tk-sm-3{flex-basis:25%;max-width:25%}.tk-sm-4{flex-basis:33.333%;max-width:33.333%}.tk-sm-6{flex-basis:50%;max-width:50%}.tk-sm-12{flex-basis:100%;max-width:100%}
  .tk-hide-for-small { display: none !important; }
}
@media (min-width: 550px) { .tk-show-for-small { display: none !important; } }
.tk-text p:last-child { margin-bottom: 0; }
.tk-gap { display: block; }
.tk-divider { background: var(--tk-primary); margin: 10px 0 15px; opacity: .8; }
.tk-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #ececec; margin-bottom: 15px; }
.tk-title > :first-child { margin: 0 0 -2px; padding-bottom: 8px; border-bottom: 2px solid var(--tk-primary); }
.tk-title-link { font-size: .9em; }
.tk-btn { display: inline-flex; gap: 6px; align-items: center; padding: 8px 18px; margin: 0 6px 10px 0; font-weight: 600; text-decoration: none !important; border: 2px solid transparent; transition: .2s; }
.tk-btn-primary { background: var(--tk-primary); color: #fff !important; }
.tk-btn-secondary { background: var(--tk-secondary); color: #fff !important; }
.tk-btn-white { background: #fff; color: #333 !important; }
.tk-btn-style-outline { background: transparent; border-color: currentColor; }
.tk-btn-style-outline.tk-btn-primary { color: var(--tk-primary) !important; }
.tk-btn-style-outline.tk-btn-secondary { color: var(--tk-secondary) !important; }
.tk-btn-style-outline.tk-btn-white { color: #fff !important; }
.tk-btn-style-link { background: none; padding-left: 0; padding-right: 0; color: var(--tk-primary) !important; }
.tk-btn-style-link.tk-btn-white { color: #fff !important; }
.tk-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tk-scroll-anchor { display: block; position: relative; top: -90px; }
.tk-image img, .tk-logo img, .tk-banner img { display: block; max-width: 100%; height: auto; }
.tk-banner { position: relative; overflow: hidden; background-size: cover; }
.tk-banner-orig { min-height: 0 !important; }
.tk-banner-layers { position: absolute; inset: 0; }
.tk-banner-link { position: absolute; inset: 0; z-index: 2; }
.tk-textbox { position: absolute; padding: 15px; }
.tk-slider { position: relative; overflow: hidden; }
.tk-slides { display: flex; transition: transform .5s ease; }
.tk-slides > * { flex: 0 0 100%; }
.tk-slider button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.8); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; z-index: 3; color: #333; }
.tk-prev { left: 10px; } .tk-next { right: 10px; }
.tk-gallery { columns: var(--cols, 4) 200px; column-gap: 10px; }
.tk-gallery a { display: block; margin-bottom: 10px; break-inside: avoid; }
.tk-gallery img { width: 100%; height: auto; display: block; border-radius: 4px; }
.tk-featured-box { display: flex; gap: 12px; }
.tk-fb-top, .tk-fb-center { flex-direction: column; align-items: center; text-align: center; }
.tk-fb-img img { width: 100%; height: auto; display: block; }
.tk-fb-text { flex: 1; }
.tk-image-box { text-align: center; }
.tk-ib-img { margin: 0 auto 8px; } .tk-ib-img img { width: 100%; height: auto; border-radius: 6px; }
.tk-testimonial { text-align: center; padding: 15px; background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.tk-t-img { margin: 0 auto 10px; } .tk-t-img img { border-radius: 50%; width: 100%; height: auto; }
.tk-t-text { font-style: italic; margin-bottom: 8px; }
.tk-countdown { font-weight: 700; font-size: 1.3em; }
.tk-tab-nav { display: flex; gap: 5px; flex-wrap: wrap; border-bottom: 2px solid #eee; margin-bottom: 15px; }
.tk-tab-nav button { background: none; border: 0; padding: 8px 14px; cursor: pointer; font-weight: 600; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tk-tab-nav button.active { color: var(--tk-primary); border-color: var(--tk-primary); }
.tk-tab-panel { display: none; } .tk-tab-panel.active { display: block; }
.tk-acc-item { border-bottom: 1px solid #eee; padding: 8px 0; } .tk-acc-item summary { cursor: pointer; font-weight: 600; }
.tk-ux-menu { list-style: none; margin: 0; padding: 0; }
.tk-ux-menu li { padding: 4px 0; } .tk-ux-menu a { text-decoration: none; }
.tk-ico { display: inline-block; margin: 0 4px; }
.tk-follow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.tk-follow-title { font-weight: 600; margin-right: 4px; }
.tk-net { display: inline-block; padding: 4px 10px; border-radius: 20px; background: var(--tk-primary); color: #fff !important; font-size: 13px; text-decoration: none !important; }
.tk-net-facebook { background: #1877f2; } .tk-net-tiktok { background: #111; } .tk-net-youtube { background: #e00; } .tk-net-shopee { background: #ee4d2d; } .tk-net-lazada { background: #0f146d; } .tk-net-zalo { background: #0068ff; }
.tk-brands, .tk-blog { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 15px; }
@media (max-width: 549px) { .tk-brands, .tk-blog { grid-template-columns: repeat(2, 1fr); } }
.tk-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 1px solid #eee; border-radius: 8px; text-decoration: none; }
.tk-brand img { max-height: 70px; width: auto; }
.tk-post-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.tk-post h4 { margin: 8px 0 4px; font-size: 1rem; }
.tk-post p { font-size: .9em; color: #666; }
/* sản phẩm */
.tk-products ul.products { margin-bottom: 0 !important; }
.tk-products-slider ul.products { display: grid !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 15px) / 4); gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; }
.tk-products-slider ul.products li.product { scroll-snap-align: start; width: auto !important; margin: 0 !important; }
@media (max-width: 849px) { .tk-products-slider ul.products { grid-auto-columns: calc((100% - 15px) / 2); } }
.woocommerce ul.products li.product .price del { opacity: .55; font-size: .85em; }
.woocommerce ul.products li.product .price ins { color: #d0021b; text-decoration: none; font-weight: 700; }
/* footer */
.tk-footer { background: #fff; border-top: 1px solid #eee; }
.tk-footer .mbws-info-footer p { margin: 0 0 6px; }
.tk-copyright { text-align: center; padding: 14px; font-size: 13px; color: #777; border-top: 1px solid #eee; }
/* trang thường (không phải layout Flatsome): canh giữa */
.entry-content > .tk-section:first-child { margin-top: 0; }

.tk-hidden { display: none !important; }
@media (min-width: 850px) { .tk-hide-for-large { display: none !important; } }
@media (min-width: 550px) and (max-width: 849px) { .tk-hide-for-medium { display: none !important; } }
.tk-v-equal > .tk-col > .tk-col-inner { height: 100%; box-sizing: border-box; }
.tk-col-inner { box-sizing: border-box; }
.tk-image img { width: 100%; }
