/* Scoped storefront/archive reconstruction. */
.tb-store{--tb-shop-bg:#F5F5F5;--tb-shop-rule:#E1E1E1;background:var(--tb-shop-bg);padding:28px 0 56px;color:#000;font-family:var(--tb-font-body,Arial,sans-serif)}
.tb-store .tb-container{width:min(1360px,calc(100% - 48px));margin-inline:auto}.tb-store__head{margin:0 0 24px}.tb-store__title{margin:8px 0 10px;font:800 clamp(30px,3.4vw,46px)/1.1 var(--tb-font-display,Arial,sans-serif);text-transform:uppercase;color:#111}.tb-store__lead:empty{display:none}.tb-store__bar{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 32px}.tb-store__count{display:none}.tb-store__tools{display:flex;align-items:center;gap:10px}.tb-store__search{height:44px;display:flex;align-items:center;border:1px solid #ddd;border-radius:999px;background:#f4f4f4;padding:0 14px}.tb-store__search input[type=search]{width:160px;border:0;background:transparent;outline:0}.tb-store__search button{border:0;background:none;font-size:22px;cursor:pointer}.tb-store__sort select{height:38px;min-width:130px;border:1px solid #ddd;border-radius:4px;background:#fff;padding:0 10px;font:inherit;font-size:14px}.tb-store__filterbtn,.tb-filter__close{display:none}.tb-store__body{display:grid;grid-template-columns:331px minmax(0,1fr);gap:40px;align-items:start}.tb-filter{position:relative;align-self:start}.tb-filter__head{display:none}.tb-filter__form{display:block}.tb-filter__reset{margin-left:auto;color:#777;text-decoration:underline}.tb-filter__group{margin:0;border:0;border-bottom:1px solid #e1e1e1}.tb-filter__form>.tb-filter__group:not(.tb-filter__price){min-height:71px}.tb-filter__summary{position:relative;list-style:none;cursor:pointer;padding:24px 0 23px;font-size:17px;line-height:23px;font-weight:400;color:#000}.tb-filter__summary::-webkit-details-marker{display:none}.tb-filter__summary:after{content:""!important;border-right:2px solid #888;border-bottom:2px solid #888;width:8px;height:8px;transform:rotate(45deg);transition:transform .2s;flex:0 0 auto;margin-left:12px}.tb-filter__body{padding:0 0 14px}.tb-filter__opt{display:flex;gap:8px;align-items:center;padding:6px 0;font-size:14px}.tb-filter__opt input{accent-color:#76c04e}.tb-filter__count{margin-left:auto;color:#777}.tb-filter__price .tb-filter__summary{padding:24px 0 16px}.tb-filter__price .tb-filter__range{position:relative;height:24px;margin:4px 4px 10px}.tb-filter__price .tb-filter__track{position:absolute;top:10px;left:0;right:0;height:2px;background:#aaa}.tb-filter__price .tb-filter__track i{position:absolute;top:0;height:2px;background:#000}.tb-filter__price input[type=range]{position:absolute;inset:0;width:100%;height:24px;margin:0;appearance:none;background:transparent;pointer-events:none}.tb-filter__price input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:#000;pointer-events:auto}.tb-filter__price input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#000;pointer-events:auto}.tb-filter__price-caption{text-align:center;font-size:14px;margin:8px 0}.tb-filter__price-actions{display:flex;align-items:center;gap:14px;font-size:13px}.tb-filter__price-actions button{padding:7px 12px;border:0;background:#111;color:#fff}.tb-filter__chips{margin-top:8px}
.tb-store__main{min-width:0}.tb-store__empty{padding:24px;background:#fff}.tb-store .woocommerce-notices-wrapper:empty{display:none}.tb-store ul.products.tb-store__grid,.tb-store ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,294px));justify-content:space-between;gap:56px 34px;margin:0;padding:0;list-style:none}.tb-store ul.products:before,.tb-store ul.products:after{display:none!important}.tb-store ul.products li.product,.tb-store ul.products li.tb-pcard{float:none!important;width:auto!important;margin:0!important;padding:0!important;background:transparent!important;clear:none!important;text-align:center;position:relative}.tb-store .tb-pcard__link{display:block;color:#000;text-decoration:none}.tb-store .tb-pcard__media{display:block;position:relative}.tb-store .tb-pcard__img{display:block;width:100%;aspect-ratio:294/345;object-fit:contain;margin:0 0 5px;background:#f0f0f0}.tb-store .tb-pcard__badge{position:absolute;z-index:2;top:0;left:0;min-width:47px;min-height:26px;padding:5px 7px;border-radius:3px;background:#76c04e;color:#fff;font:700 13px/16px var(--tb-font-body,Arial,sans-serif);text-align:center}.tb-store .tb-pcard__badge--out{top:30px;background:#111}.tb-store .tb-pcard__body{padding:0}.tb-store .tb-pcard__title{display:-webkit-box;min-height:38px;overflow:hidden;margin:0;padding:5px 10px;color:#000;font:700 15px/19px var(--tb-font-body,Arial,sans-serif);text-align:center;text-transform:uppercase;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tb-store .tb-pcard__price{display:flex;justify-content:center;gap:7px;margin:4px 0;color:#000;font-size:15px;white-space:nowrap}.tb-store .tb-pcard__price del{color:#777;opacity:1}.tb-store .tb-pcard__price ins{font-weight:700;text-decoration:none}.tb-store .tb-pcard__cta{display:none!important}.tb-store :focus-visible{outline:2px solid #76c04e;outline-offset:3px}.tb-pager{margin-top:28px}
@media(max-width:1100px){.tb-store__body{grid-template-columns:250px minmax(0,1fr);gap:28px}.tb-store ul.products.tb-store__grid,.tb-store ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}}
@media(max-width:700px){.tb-store{padding-top:18px}.tb-store .tb-container{width:calc(100% - 32px)}.tb-store__head{margin-bottom:16px}.tb-store__title{font-size:32px}.tb-store__bar{margin-bottom:20px}.tb-store__tools{gap:8px}.tb-store__search input[type=search]{width:105px}.tb-store__sort select{min-width:115px;max-width:130px}.tb-store__body{display:block}.tb-filter{position:fixed;z-index:1002;inset:0 auto 0 0;width:min(331px,88vw);height:100dvh;overflow:auto;padding:20px;background:#f5f5f5;transform:translateX(-105%);transition:transform .2s}.tb-filter.is-open{transform:none}.tb-filter__head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.tb-filter__title{font-weight:700}.tb-filter__close{display:inline-grid;place-items:center;margin-left:auto;border:0;background:none;font-size:28px}.tb-filter__backdrop:not([hidden]){position:fixed;inset:0;z-index:1001;display:block;background:rgba(0,0,0,.4)}.tb-store__filterbtn{display:inline-grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#111;color:#fff;font-size:20px}.tb-store ul.products.tb-store__grid,.tb-store ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}.tb-store .tb-pcard__img{aspect-ratio:1/1}.tb-store .tb-pcard__title{font-size:13px;line-height:17px;padding-inline:2px}.tb-store .tb-pcard__price{font-size:12px;gap:4px}.tb-store .tb-pcard__title{min-height:36px}.tb-store .tb-pcard__media{background:#f0f0f0}.tb-store .tb-pcard__img{aspect-ratio:1/1;margin:0;object-fit:contain}.tb-store__bar{justify-content:flex-end}.tb-store__search{flex:1;max-width:160px}.tb-store__search input[type=search]{min-width:0;width:100%}}
/* UI pass: match category/shop reference and keep catalog controls usable on mobile. */
body.tax-product_cat .tb-store{background:#f5f5f5}
body.tax-product_cat .tb-store .tb-pcard__media{background:#f2f2f2;isolation:isolate}
body.tax-product_cat .tb-store .tb-pcard__img{background:#f2f2f2;mix-blend-mode:multiply}
body.woocommerce-shop .tb-store{background:#fff}
body.woocommerce-shop .tb-store .tb-pcard__media,body.woocommerce-shop .tb-store .tb-pcard__img{background:#fff;mix-blend-mode:normal}
.tb-store .tb-badge--sale{display:none!important}
.tb-store .tb-pcard__title{height:38px;min-height:38px;margin:8px 10px 0;padding:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
body.woocommerce-shop .tb-store .tb-pcard__title{text-align:left;text-transform:none}
body.woocommerce-shop .tb-store .tb-pcard__media{background:#fff}
@media(max-width:700px){.tb-store__tools{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;flex-wrap:nowrap}.tb-store__filterbtn{order:0}.tb-store__search{order:1}.tb-store__sort{order:2}.tb-store__filterbtn{order:0;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;width:auto;min-width:44px;height:44px;padding:0 12px;border:1px solid #e1e1e1;border-radius:3px;background:#fff;color:#111;font-weight:700}.tb-store__filterbtn::after{content:"Lọc";font-size:13px}.tb-store__search{order:1;flex:1;min-width:0}.tb-store__search input[type=search]{width:100%;min-width:0}.tb-store__sort{order:2;flex:0 0 auto}.tb-store__sort select{min-width:100px;max-width:116px;min-height:44px}.tb-store .tb-pcard__title{height:34px;min-height:34px;margin:8px 6px 0;padding:0;font-size:13px;line-height:17px}body.tax-product_cat .tb-fab,body.woocommerce-shop .tb-fab{display:none!important}}
.tb-filter__price details{display:block!important}
.tb-filter__price>details:not([open])>.tb-filter__body{display:block!important}
.tb-filter__price-caption{display:block!important;text-align:center}
.tb-mnav{display:none}
@media(max-width:900px){.tb-mnav{display:block;margin:0 -15px 10px;background:#fff;border-bottom:1px solid #ececec}.tb-mnav__list{display:flex;align-items:center;gap:22px;margin:0;padding:2px 15px;list-style:none;overflow-x:auto;scrollbar-width:none}.tb-mnav__list::-webkit-scrollbar{display:none}.tb-mnav__item{margin:0;flex:0 0 auto}.tb-mnav__item>a{display:inline-flex;align-items:center;min-height:44px;color:#111;font:700 13px/1.2 var(--tb-font-body,Arial,sans-serif);letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;text-decoration:none;border-bottom:2px solid transparent}.tb-mnav__item.is-active>a{color:#76c04e;border-bottom-color:#76c04e}}
/* Category cover: horizontal band from the term thumbnail, between breadcrumb and H1. */
body.tax-product_cat .tb-store__cover{margin:0 0 14px;height:260px;overflow:hidden;border-radius:8px;background:#ececec}
body.tax-product_cat .tb-store__cover-img{display:block;width:100%;height:260px;object-fit:cover;object-position:center;border-radius:8px}
@media(max-width:700px){body.tax-product_cat .tb-store__cover{height:160px;margin-bottom:10px;border-radius:6px}body.tax-product_cat .tb-store__cover-img{height:160px;border-radius:6px}}
/* Shop reference page is white, but the shared checklist wants the breadcrumb/H1 band on light grey. */
body.woocommerce-shop .tb-store__head{background:#f5f5f5;margin-inline:-24px;padding:14px 24px 20px}
@media(max-width:900px){body.woocommerce-shop .tb-store__head{margin-inline:-16px;padding:10px 16px 16px}}
