/* Bep Thai unified storefront — archive, cart, checkout and account */
:root{--bt-red:#e71933;--bt-navy:#14213a;--bt-text:#172033;--bt-muted:#778195;--bt-line:#e4e8ef;--bt-surface:#fff;--bt-bg:#f5f7fa}
body:not(.home):not(.single-product){background:var(--bt-bg);color:var(--bt-text)}
body:not(.home):not(.single-product) #masthead{background:#fff!important;box-shadow:0 1px 0 rgba(20,33,58,.08)}
body:not(.home):not(.single-product) .header-main{background:#fff!important;min-height:70px}
body:not(.home):not(.single-product) .header-bottom{background:#fff!important;border-top:1px solid var(--bt-line);border-bottom:1px solid var(--bt-line)}
body:not(.home):not(.single-product) .header-nav-main>li>a,body:not(.home):not(.single-product) .header-bottom-nav>li>a{color:#303b4d!important;font-weight:600}
body:not(.home):not(.single-product) .header-nav-main>li>a:hover,body:not(.home):not(.single-product) .header-bottom-nav>li>a:hover{color:var(--bt-red)!important}
body:not(.home):not(.single-product) #logo img{display:none!important}
body:not(.home):not(.single-product) #logo a{position:relative;display:flex!important;align-items:center;gap:10px;min-height:45px;min-width:170px}
body:not(.home):not(.single-product) #logo a:before{content:"";width:42px;height:42px;background:url('/wp-content/themes/ghe-van-phong/assets/bt-logo-mark.png') center/contain no-repeat;display:block}
body:not(.home):not(.single-product) #logo a:after{content:"BẾP THÁI";color:var(--bt-red);font-size:22px;font-weight:800;letter-spacing:-.6px;white-space:nowrap}
body:not(.home):not(.single-product) .header-search-form .search-field{border:2px solid var(--bt-red)!important;border-radius:10px 0 0 10px!important;height:42px}
body:not(.home):not(.single-product) .header-search-form .button{background:var(--bt-red)!important;border-radius:0 10px 10px 0!important;color:#fff!important;height:42px}
body:not(.home):not(.single-product) .cart-icon strong,body:not(.home):not(.single-product) .cart-icon .image-icon{color:var(--bt-red)!important}

/* Catalogue */
body.archive #main{background:var(--bt-bg)!important;padding-bottom:36px}
body.archive .shop-page-title{background:#fff;margin:0!important;padding:18px 0 16px;border-bottom:1px solid var(--bt-line)}
body.archive .shop-page-title .page-title{font-size:28px;color:var(--bt-navy);font-weight:800;letter-spacing:-.6px}
body.archive .shop-container,body.archive #shop-sidebar{background:transparent!important;border:0!important;padding:16px 0!important}
body.archive .products{padding:0!important}
body.archive .product-small.col{padding:6px!important;display:flex}
body.archive .product-small.box{background:#fff;border:1px solid var(--bt-line);border-radius:12px;overflow:hidden;box-shadow:0 2px 7px rgba(20,33,58,.04);display:flex;flex-direction:column;width:100%;transition:transform .18s,box-shadow .18s}
body.archive .product-small.box:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(20,33,58,.12)}
body.archive .product-small .box-image{background:#fff;flex:0 0 auto}
body.archive .product-small .box-image .image-cover{padding-top:76%!important;background:#fff}
body.archive .product-small .box-text{padding:12px 12px 14px!important;display:flex;flex:1;flex-direction:column;text-align:center}
body.archive .product-small .name{min-height:46px;margin:0 0 8px!important;display:flex;align-items:flex-start;justify-content:center}
body.archive .product-small .name a{color:var(--bt-text)!important;font-weight:700;font-size:14px;line-height:1.38}
body.archive .product-small .price{min-height:48px;margin:0!important;display:flex;flex-direction:column;justify-content:center}
body.archive .product-small .price ins span{color:var(--bt-red)!important;font-size:17px!important;font-weight:800}
body.archive .product-small .price del span{color:#98a1af!important;font-size:12px!important}
body.archive .product-small .add-to-cart-button{margin-top:auto;padding-top:10px}
body.archive .product-small .add-to-cart-button a{display:flex!important;align-items:center;justify-content:center;min-height:42px;padding:8px 12px!important;background:#fff!important;border:1.5px solid var(--bt-red)!important;border-radius:8px!important;color:var(--bt-red)!important;font-weight:700;box-shadow:none!important}
body.archive .product-small .add-to-cart-button a:hover{background:var(--bt-red)!important;color:#fff!important}
body.archive .badge-container{top:0;left:0;margin:0!important}
body.archive .badge-container .badge{background:var(--bt-red)!important;border-radius:0 0 8px 0!important;min-height:28px;padding:0 10px!important}
body.archive #shop-sidebar>*,body.archive .widget{background:#fff;border:1px solid var(--bt-line);border-radius:12px;padding:16px;margin:0 0 14px!important}
body.archive #shop-sidebar .widget-title{color:var(--bt-navy);font-size:16px;font-weight:800;border-bottom:1px solid var(--bt-line);padding-bottom:11px;margin-bottom:12px}
body.archive .woocommerce-result-count,body.archive .woocommerce-ordering select{color:#596579}
body.archive .woocommerce-ordering select{border:1px solid var(--bt-line);border-radius:8px;background:#fff;height:38px}

/* Catalogue browser: filter rail + compact cards, shared by every product category. */
body.bt-catalog-enabled .shop-page-title{padding:22px 0 19px!important}
body.bt-catalog-enabled .shop-page-title .page-title{font-size:27px!important;letter-spacing:-.7px}
body.bt-catalog-enabled .shop-container{max-width:1200px!important;padding:22px 15px 42px!important}
body.bt-catalog-enabled .shop-container>.row{display:grid!important;grid-template-columns:250px minmax(0,1fr);gap:22px;margin:0!important}
body.bt-catalog-enabled .shop-container>.row>.large-9,body.bt-catalog-enabled .shop-container>.row>.large-8{width:auto!important;max-width:none!important;flex-basis:auto!important;padding:0!important;grid-column:2}
body.bt-catalog-enabled .shop-container>.row>.bt-catalog-main{width:auto!important;max-width:none!important;flex-basis:auto!important;padding:0!important;grid-column:2}
body.bt-catalog-enabled .shop-container>.row>.large-3,body.bt-catalog-enabled #shop-sidebar{display:none!important}
body.bt-catalog-enabled .bt-catalog-filters{grid-column:1;grid-row:1;align-self:start;display:block;border:1px solid var(--bt-line);border-radius:14px;background:#fff;padding:17px;box-shadow:0 3px 13px rgba(20,33,58,.04)}
body.bt-catalog-enabled .bt-filter-title{display:flex;align-items:center;gap:8px;margin:0 0 15px;color:var(--bt-navy);font-size:17px;font-weight:800}
body.bt-catalog-enabled .bt-filter-title:before{content:"☷";display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff0f2;color:var(--bt-red);font-size:18px}
body.bt-catalog-enabled .bt-filter-group{padding:15px 0;border-top:1px solid var(--bt-line)}
body.bt-catalog-enabled .bt-filter-group h3{margin:0 0 10px!important;color:var(--bt-navy)!important;font-size:12px!important;font-weight:800!important;letter-spacing:.5px}
body.bt-catalog-enabled .bt-filter-group a{display:block;padding:7px 8px;border-radius:7px;color:#566174!important;font-size:13px;text-decoration:none;transition:background .16s,color .16s}
body.bt-catalog-enabled .bt-filter-group a:hover,body.bt-catalog-enabled .bt-filter-group a.is-current{background:#fff0f2;color:var(--bt-red)!important;font-weight:700}
body.bt-catalog-enabled .bt-filter-help{margin:4px 0 0;padding:13px;border-radius:10px;background:#f7f9fc;color:#5c687a;font-size:12px;line-height:1.45}
body.bt-catalog-enabled .bt-filter-help a{display:inline-block;margin-top:7px;color:var(--bt-red)!important;font-weight:800;text-decoration:none}
body.bt-catalog-enabled .bt-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px;padding:0 2px}
body.bt-catalog-enabled .bt-catalog-toolbar strong{color:var(--bt-navy);font-size:17px}
body.bt-catalog-enabled .bt-catalog-toolbar strong span{color:var(--bt-muted);font-size:13px;font-weight:500}
body.bt-catalog-enabled .bt-catalog-toolbar .woocommerce-result-count{display:none!important}
body.bt-catalog-enabled .bt-catalog-toolbar .woocommerce-ordering{float:none!important;margin:0!important}
body.bt-catalog-enabled .bt-catalog-toolbar select{min-width:156px;background:#fff}
body.bt-catalog-enabled .products{margin:0 -6px!important}
body.bt-catalog-enabled .product-small.col{padding:6px!important}
body.bt-catalog-enabled .product-small.box{border-radius:13px!important;box-shadow:0 2px 8px rgba(20,33,58,.045)!important}
body.bt-catalog-enabled .product-small .box-image .image-cover{padding-top:78%!important}
body.bt-catalog-enabled .product-small .box-text{padding:11px 12px 13px!important;text-align:left!important}
body.bt-catalog-enabled .product-small .name{min-height:58px!important;justify-content:flex-start!important;margin-bottom:6px!important}
body.bt-catalog-enabled .product-small .name a{font-size:13px!important;line-height:1.42!important}
body.bt-catalog-enabled .product-small .price{min-height:45px!important;align-items:flex-start}
body.bt-catalog-enabled .product-small .price ins span{font-size:18px!important}
body.bt-catalog-enabled .product-small .add-to-cart-button a{min-height:39px!important;font-size:12px}
body.bt-catalog-enabled .badge-container .badge{font-size:12px!important}
@media(max-width:849px){body.bt-catalog-enabled .shop-container>.row{display:block!important}body.bt-catalog-enabled .bt-catalog-filters{display:none!important}body.bt-catalog-enabled .bt-catalog-toolbar{margin-top:0}body.bt-catalog-enabled .bt-catalog-toolbar strong{font-size:15px}body.bt-catalog-enabled .bt-catalog-toolbar select{min-width:135px;font-size:12px}body.bt-catalog-enabled .product-small .name{min-height:52px!important}}

/* Fallback for Flatsome category markup: transform the existing sidebar into the catalogue filter rail. */
body.tax-product_cat .shop-container>.row{display:flex!important;align-items:flex-start;gap:22px;margin:0!important}
body.tax-product_cat .shop-container>.row>.large-9,body.tax-product_cat .shop-container>.row>.large-8{order:2;flex:1 1 0!important;width:auto!important;max-width:none!important;padding:0!important}
body.tax-product_cat .shop-container #shop-sidebar{display:block!important;order:1;flex:0 0 250px!important;width:250px!important;max-width:250px!important;padding:17px!important;border:1px solid #e5e9f0;border-radius:14px;background:#fff;box-shadow:0 3px 13px rgba(20,33,58,.04)}
body.tax-product_cat .shop-container #shop-sidebar .widget{margin:0!important;padding:15px 0!important;border:0!important;border-top:1px solid #e8edf3!important}
body.tax-product_cat .shop-container #shop-sidebar .widget:first-child{padding-top:0!important;border-top:0!important}
body.tax-product_cat .shop-container #shop-sidebar .widget-title{margin:0 0 10px!important;color:#13233f!important;font-size:12px!important;font-weight:800!important;letter-spacing:.5px}
body.tax-product_cat .shop-container #shop-sidebar a{display:block;padding:7px 8px;border-radius:7px;color:#566174!important;font-size:13px;text-decoration:none}
body.tax-product_cat .shop-container #shop-sidebar a:hover{background:#fff0f2;color:#ed1b3a!important;font-weight:700}
body.tax-product_cat .shop-container .products{margin:0 -6px!important}
body.tax-product_cat .shop-container .product-small.col{padding:6px!important}
body.tax-product_cat .shop-container .product-small.box{border-radius:13px!important;box-shadow:0 2px 8px rgba(20,33,58,.045)!important}
body.tax-product_cat .shop-container .product-small .box-text{padding:11px 12px 13px!important;text-align:left!important}
body.tax-product_cat .shop-container .product-small .name{min-height:58px!important;justify-content:flex-start!important;margin-bottom:6px!important}
body.tax-product_cat .shop-container .product-small .name a{font-size:13px!important;line-height:1.42!important}
body.tax-product_cat .shop-container .product-small .price{min-height:45px!important;align-items:flex-start}
body.tax-product_cat .shop-container .product-small .price ins span{font-size:18px!important}
body.tax-product_cat .shop-container .product-small .add-to-cart-button a{min-height:39px!important;font-size:12px}
@media(max-width:849px){body.tax-product_cat .shop-container>.row{display:block!important}body.tax-product_cat .shop-container #shop-sidebar{display:none!important}}

/* Complete catalogue interface: filter panel + sorting toolbar. */
.bt-exact-catalog{display:grid;grid-template-columns:258px minmax(0,1fr);gap:22px;max-width:1280px;margin:0 auto 35px;padding:0 14px;align-items:start}
.bt-exact-filters{background:#fff;border:1px solid #e5e9f0;border-radius:16px;padding:19px 20px;box-shadow:0 3px 15px rgba(20,33,58,.05)}
.bt-exact-filters h2{display:flex;gap:10px;align-items:center;margin:0 0 17px;color:#152238;font-size:16px}.bt-exact-filters h2:first-letter{color:#ed1b3a}
.bt-exact-filters>div{padding:17px 0;border-top:1px solid #e9edf2}.bt-exact-filters h3{margin:0 0 11px;color:#202c3e;font-size:12px;font-weight:800}
.bt-exact-filters label{display:flex;align-items:center;gap:9px;padding:7px 0;color:#637085;font-size:14px;cursor:pointer}.bt-exact-filters label:has(input:checked) span{color:#ed1b3a;font-weight:700}
.bt-exact-filters input{appearance:none;width:14px;height:14px;margin:0;border:1px solid #cbd3de;border-radius:4px;background:#fff}.bt-exact-filters input:checked{border-color:#e81736;background:#e81736;box-shadow:inset 0 0 0 3px #fff}
.bt-exact-list{min-width:0}.bt-exact-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:57px;padding:0 2px 15px;border-bottom:1px solid #edf0f4;margin-bottom:10px}.bt-exact-toolbar strong{color:#14233d;font-size:16px}.bt-exact-toolbar em{font-style:normal;color:#97a0b0;font-size:13px;font-weight:500}
.bt-exact-toolbar nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.bt-exact-toolbar nav span{color:#657188;font-size:14px}.bt-exact-toolbar nav a{color:#536176;text-decoration:none;font-size:14px;white-space:nowrap}.bt-exact-toolbar nav a.active{background:#13233f;color:#fff;padding:9px 14px;border-radius:8px;font-weight:800}.bt-exact-toolbar nav a:hover{color:#ed1b3a}
.bt-exact-list .products{margin:0 -6px!important}.bt-exact-list .product-small.col{padding:6px!important}.bt-exact-list .product-small.box{border:1px solid #e5e9f0!important;border-radius:12px!important;box-shadow:0 2px 8px rgba(20,33,58,.05)!important;overflow:hidden}.bt-exact-list .product-small .box-text{padding:11px 13px 14px!important;text-align:left!important}.bt-exact-list .product-small .name{min-height:60px!important;justify-content:flex-start!important}.bt-exact-list .product-small .name a{font-size:14px!important;line-height:1.4!important}.bt-exact-list .product-small .price{min-height:47px!important;align-items:flex-start}.bt-exact-list .product-small .price ins span{font-size:18px!important}.bt-exact-list .product-small .add-to-cart-button a{min-height:39px!important;font-size:12px!important}
@media(max-width:849px){.bt-exact-catalog{display:block;padding:0 12px}.bt-exact-filters{display:none}.bt-exact-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.bt-exact-toolbar nav{gap:10px}.bt-exact-toolbar nav span{display:none}.bt-exact-toolbar nav a{font-size:12px}.bt-exact-toolbar nav a.active{padding:7px 10px}}

/* Catalogue layout repair: prevent the legacy title/order row from being injected into the new heading. */
.bt-exact-catalog{width:100%;box-sizing:border-box}
.bt-exact-list{width:100%;overflow:hidden}
.bt-exact-toolbar{display:grid;grid-template-columns:minmax(150px,auto) 1fr;width:100%;box-sizing:border-box}
.bt-exact-toolbar>strong{display:flex;align-items:baseline;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-exact-toolbar>strong>span{overflow:hidden;text-overflow:ellipsis}
.bt-exact-toolbar nav{justify-content:flex-end;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}
.bt-exact-toolbar nav::-webkit-scrollbar{display:none}
.bt-exact-list>.products{width:auto!important;max-width:none!important}
body.tax-product_cat .shop-page-title .woocommerce-result-count,body.tax-product_cat .shop-page-title .woocommerce-ordering{display:none!important}
@media(max-width:1100px){.bt-exact-catalog{grid-template-columns:220px minmax(0,1fr);gap:16px}.bt-exact-toolbar{display:block}.bt-exact-toolbar>strong{margin-bottom:12px}.bt-exact-toolbar nav{justify-content:flex-start}.bt-exact-toolbar nav span{display:none}}
@media(max-width:849px){.bt-exact-catalog{display:block!important;padding:0 12px}.bt-exact-filters{display:none!important}.bt-exact-toolbar{display:block;min-height:auto;padding-bottom:12px}.bt-exact-toolbar>strong{max-width:100%;white-space:normal}.bt-exact-toolbar nav{display:flex;flex-direction:row!important;justify-content:flex-start;gap:8px;overflow-x:auto}.bt-exact-toolbar nav a{flex:0 0 auto}.bt-exact-list .products>.product-small{width:50%!important;max-width:50%!important;flex-basis:50%!important}}
@media(max-width:420px){.bt-exact-list .products>.product-small{width:100%!important;max-width:100%!important;flex-basis:100%!important}}

/* Transaction pages */
body.woocommerce-cart #main,body.woocommerce-checkout #main,body.woocommerce-account #main{background:var(--bt-bg);padding:30px 0 44px}
body.woocommerce-cart .cart-container,body.woocommerce-checkout .woocommerce,body.woocommerce-account .woocommerce{background:#fff;border:1px solid var(--bt-line);border-radius:14px;padding:22px;box-shadow:0 3px 12px rgba(20,33,58,.04)}
body.woocommerce-cart .cart-collaterals .cart_totals,body.woocommerce-checkout #order_review,body.woocommerce-checkout .woocommerce-billing-fields,body.woocommerce-checkout .woocommerce-shipping-fields{border:1px solid var(--bt-line);border-radius:12px;padding:18px;background:#fff}
body.woocommerce-cart .button,body.woocommerce-checkout .button,body.woocommerce-account .button,body.woocommerce-cart button,body.woocommerce-checkout button,body.woocommerce-account button{background:var(--bt-red)!important;color:#fff!important;border-radius:8px!important;border:1px solid var(--bt-red)!important;font-weight:700}
body.woocommerce-cart table.shop_table,body.woocommerce-checkout table.shop_table{border-color:var(--bt-line)!important}
body.woocommerce-cart table.shop_table th,body.woocommerce-checkout table.shop_table th{color:var(--bt-navy)}
body.woocommerce-account .woocommerce-MyAccount-navigation{background:#f8f9fb;border:1px solid var(--bt-line);border-radius:10px;padding:8px}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:var(--bt-red);color:#fff;border-radius:7px}

@media(max-width:849px){body.archive .shop-page-title .page-title{font-size:23px}body.archive .product-small .box-text{padding:10px!important}body:not(.home):not(.single-product) #logo a:after{font-size:18px}body:not(.home):not(.single-product) #logo a:before{width:34px;height:34px}body.woocommerce-cart .cart-container,body.woocommerce-checkout .woocommerce,body.woocommerce-account .woocommerce{padding:14px}}


/* Catalogue hotfix 2026-09-06: compact heading and stable product grid. */
.bt-exact-toolbar>strong{display:block!important;font-size:0!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bt-exact-toolbar>strong:before{content:"Tất cả sản phẩm";font-size:16px;font-weight:800;color:#14233d}
.bt-exact-toolbar>strong em{display:inline!important;margin-left:4px;font-size:13px!important;font-weight:500!important;color:#97a0b0!important}
body.term-bep-tu .bt-exact-toolbar>strong:before{content:"Bếp từ"}
body.term-hut-mui .bt-exact-toolbar>strong:before{content:"Máy hút mùi"}
body.term-chau-rua-bat .bt-exact-toolbar>strong:before{content:"Chậu rửa bát"}
body.term-voi-rua-bat .bt-exact-toolbar>strong:before{content:"Vòi rửa bát"}
.bt-exact-toolbar nav{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important}
.bt-exact-list>.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0!important}
.bt-exact-list>.products>.product-small{width:auto!important;max-width:none!important;min-width:0!important;flex-basis:auto!important;padding:0!important}
@media(max-width:1200px){.bt-exact-list>.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:849px){.bt-exact-toolbar>strong{white-space:normal!important}.bt-exact-toolbar nav{justify-content:flex-start!important}.bt-exact-list>.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bt-exact-list>.products>.product-small{width:auto!important;max-width:none!important;flex-basis:auto!important}}
@media(max-width:420px){.bt-exact-list>.products{grid-template-columns:1fr!important}}

body.tax-product_cat .shop-container>.row>.large-9,body.tax-product_cat .shop-container>.row>.large-8{flex:1 1 100%!important;width:100%!important;max-width:100%!important}
body.tax-product_cat .shop-container #shop-sidebar{display:none!important}
body.tax-product_cat .category-page-row>.large-9{flex:1 1 100%!important;width:100%!important;max-width:100%!important}
body.tax-product_cat .category-page-row>.large-3{display:none!important}
.bt-exact-list .box-image img,.bt-exact-list img.lazy-load-active{opacity:1!important;visibility:visible!important;display:block!important}
.bt-exact-list .box-image img{width:100%!important;height:100%!important;object-fit:contain!important}
.bt-exact-list .box-image,.bt-exact-list .image-zoom-fade,.bt-exact-list .image-zoom-fade>a{opacity:1!important;visibility:visible!important}
.bt-exact-list .box-image img{position:static!important;width:100%!important;height:auto!important;min-height:1px!important;object-fit:contain!important;transform:none!important;transition:none!important}
.bt-exact-list .image-zoom-fade{padding-top:0!important;height:auto!important}
.bt-exact-list .box-image{position:relative!important;height:0!important;padding-top:75%!important;overflow:hidden!important}
.bt-exact-list .box-image>.image-zoom-fade{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important}
.bt-exact-list .box-image>.image-zoom-fade img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
.bt-exact-list .box-image>.image-zoom-fade>*{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important}
.bt-exact-list .box-image{position:relative!important;height:auto!important;padding:0!important}
.bt-exact-list .box-image>.image-zoom-fade,.bt-exact-list .box-image>.image-zoom-fade>*{position:static!important;inset:auto!important;width:100%!important;height:auto!important;padding:0!important}
.bt-exact-list .box-image>.image-zoom-fade img{position:static!important;inset:auto!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:cover!important}
