/*
Theme Name: B2B Thailand
Version: 1.1.0
Description: Multilingual wholesale storefront for WooCommerce. Editable homepage, responsive search and cart.
Author: B2B Thailand
Requires PHP: 8.1
Text Domain: b2b-thailand
License: GPL-2.0-or-later
*/
:root{--navy:#10213e;--pink:#e51d8e;--muted:#697487;--line:#e8eaf0;--wash:#f6f7fa;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:160px}body{margin:0;font:16px/1.6 Arial,Tahoma,sans-serif;color:var(--navy);background:#fff}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled,input:disabled{opacity:.5;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2364d9;outline-offset:4px}img{max-width:100%;height:auto}button{color:inherit}button svg{display:block}input,select,textarea{max-width:100%}[hidden]{display:none!important}.skip-link{position:fixed;top:-80px;z-index:9999;background:#fff;padding:15px}.skip-link:focus{top:0}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.topline{background:var(--navy);color:#fff;text-align:center;font-size:12px;padding:8px 20px}.site-header{position:sticky;top:0;background:#fffffffa;backdrop-filter:blur(16px);z-index:50;border-bottom:1px solid var(--line)}.admin-bar .site-header{top:32px}.header-row{direction:ltr;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;max-width:1340px;padding:15px 32px 10px;margin:auto;gap:20px}.brand-logo{display:block;line-height:1}.brand-logo img{width:145px;height:52px}.header-right{justify-self:end;display:flex;align-items:center;gap:16px}.languages{display:flex;gap:3px}.languages a{font-size:17px;min-width:30px;min-height:36px;display:grid;place-items:center;border-radius:8px}.languages a[aria-current]{background:#fbe9f3}.hamburger{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:14px;background:var(--navy);color:white}.hamburger svg{width:27px;height:27px}.cart-trigger{justify-self:start;position:relative;display:flex;align-items:center;gap:10px;min-height:46px;border:0;background:var(--wash);border-radius:14px;padding:9px 14px;font-size:13px;font-weight:700}.cart-trigger [data-cart-count]{background:var(--pink);color:#fff;font-size:10px;border-radius:20px;min-width:19px;text-align:center}.cart-trigger [data-cart-total]{white-space:nowrap}.search-wrap{max-width:900px;margin:0 auto;padding:0 24px 13px;position:relative}.search-form{display:flex;background:var(--wash);border:1px solid var(--line);border-radius:14px;padding:4px 6px;gap:8px}.search-form input{border:0;outline:0;background:transparent;flex:1;min-width:0;padding:8px 12px;color:var(--navy)}.search-form button{border:0;background:transparent;display:grid;place-items:center;width:40px;min-height:40px}.search-form:focus-within{border-color:var(--pink);box-shadow:0 0 0 2px #e51d8e15}#search-results{position:absolute;top:calc(100% - 10px);left:24px;right:24px;max-height:65vh;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#fff;padding:18px;border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px #10213e26}.home-main,.content-main{max-width:1320px;margin:auto;padding:32px}.hero{display:grid;grid-template-columns:.85fr 1.15fr;background:#f6f1f4;overflow:hidden;border-radius:28px;align-items:center;min-height:440px}.hero-copy{padding:42px}.eyebrow{font:700 10px/1.4 Arial;letter-spacing:2px;color:var(--pink);margin:0 0 16px}.hero h1{font-size:clamp(36px,4vw,58px);line-height:1.08;letter-spacing:-1.8px;max-width:500px;margin:0 0 22px}.hero-copy>p:not(.eyebrow){font-size:17px;max-width:400px;color:var(--muted)}.hero-image{line-height:0;align-self:stretch;display:flex;align-items:center;background:#ece7e2}.hero-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0 16px}.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13px 23px;border:0;border-radius:13px;background:var(--pink);color:#fff;font-size:14px;font-weight:700;line-height:1.5;text-align:center;cursor:pointer;transition:transform .15s,box-shadow .15s}.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#ce147a;color:white;transform:translateY(-1px);box-shadow:0 6px 18px #e51d8e23}.button.secondary{background:white;color:var(--navy);border:1px solid #e1dbe1}.register-link{font-size:13px;font-weight:700}.journey-section{border:1px solid var(--line);border-radius:20px;background:#fff;margin:24px 0 56px;padding:22px 30px}.journey-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.journey-heading h2{font-size:18px;margin:0}.journey-heading button{border:1px solid var(--line);background:white;border-radius:10px;min-height:36px;font-size:11px;padding:7px 12px}.journey-heading button[aria-pressed=true]{background:var(--wash)}.journey-track{display:flex;justify-content:space-between;gap:8px;margin:22px 0 10px}.journey-step{background:transparent;border:0;border-radius:12px;flex:1;min-width:0;padding:10px 4px;font-size:11px;color:var(--muted);transition:background .3s,color .3s}.journey-step svg{margin:0 auto 10px;width:30px;height:30px;color:var(--pink)}.journey-step.active{background:#fceaf4;color:var(--navy)}.journey-step.active svg{animation:float 1.6s ease-in-out infinite}.journey-section>p{font-size:14px;margin:9px 0 0;text-align:center;font-weight:700}.section{margin:55px 0;scroll-margin-top:170px}.section-heading{display:flex;justify-content:space-between;gap:18px;align-items:end;margin-bottom:20px}.section h2,.section-heading h2{font-size:29px;line-height:1.2;margin:0;letter-spacing:-.7px}.section-heading .eyebrow{margin-bottom:9px}.section-heading>a{color:var(--pink);font-size:13px;font-weight:700}.category-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.category-card{background:#f6f3f7;border-radius:20px;overflow:hidden;border:1px solid #eee8f0;transition:transform .2s}.category-card:nth-child(2){background:#f1f7f6}.category-card:nth-child(3){background:#f9f5ee}.category-card img{width:100%;aspect-ratio:1;object-fit:contain;display:block}.category-card>span{padding:15px 20px 19px;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:16px}.category-card b{color:var(--pink);font-size:22px}.category-card:hover{transform:translateY(-4px)}.brands{border-block:1px solid var(--line);padding:28px 0;display:flex;align-items:center;gap:30px}.brands h2{font-size:20px;flex:0 0 190px}.brand-track{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;flex:1}.brand-track a{min-height:94px;display:grid;place-items:center;border:1px solid var(--line);border-radius:16px;background:var(--wash);padding:15px;direction:ltr}.brand-track a:first-child{background:var(--navy);color:white}.brand-track a:nth-child(2){background:#fceaf4}.brand-track strong{font:900 24px Arial;letter-spacing:-1px}.brand-track img{max-height:60px;object-fit:contain}.product-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 54px)/4);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:4px 1px 20px}.product-card{position:relative;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;scroll-snap-align:start;min-width:0;height:100%;display:flex;flex-direction:column}.product-art{background:#fafafa;padding:20px;display:block}.product-art img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;display:block}.product-info{padding:16px;flex:1;display:flex;flex-direction:column}.product-info>small{font-size:10px;color:var(--muted)}.product-info h3{font-size:14px;line-height:1.5;margin:5px 0 20px;min-height:42px}.product-info h3 a:hover{color:var(--pink)}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto}.price{font-size:15px;font-weight:700}.price del{font-size:11px;color:var(--muted);display:block}.price ins{text-decoration:none}.quantity-control{display:flex;gap:2px;border:1px solid var(--line);border-radius:12px;background:var(--wash);padding:3px}.quantity-control button{width:34px;height:36px;border:0;border-radius:9px;background:#fff;font-size:22px}.quantity-control [data-plus]{background:var(--pink);color:white}.quantity-control input{width:34px;border:0;background:transparent;text-align:center;padding:0;font-size:13px;-moz-appearance:textfield}.quantity-control input::-webkit-inner-spin-button{appearance:none}.login-price{color:var(--pink);font-size:12px;font-weight:700;margin-top:auto}.sale-pill{position:absolute;top:12px;inset-inline-start:12px;border-radius:20px;background:var(--pink);color:white;padding:4px 12px;font-size:11px}.small-link{font-size:12px;color:var(--pink)}.join-banner{background:var(--navy);color:white;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:38px;border-radius:24px;margin:40px 0}.join-banner h2{font-size:28px;line-height:1.3;margin:0}.join-banner .eyebrow{color:#f99bcb}.button.white{background:white;color:var(--navy)}.site-footer{padding:50px max(32px,calc((100vw - 1256px)/2));background:#0d1b32;color:#d4dbe7;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:35px;font-size:13px}.footer-brand{font:900 44px/.9 Arial;color:white;display:inline-block;direction:ltr}.footer-brand span{display:block;letter-spacing:5px;font-size:10px;margin-top:12px}.site-footer nav{display:flex;flex-direction:column;gap:12px}.site-footer p{max-width:300px}.site-footer>small{grid-column:1/-1;border-top:1px solid #ffffff22;padding-top:20px;font-size:11px}.back-top{border:1px solid #ffffff30;background:transparent;color:white;border-radius:10px;padding:10px 14px;display:block;margin-top:20px}.whatsapp{position:fixed;right:20px;bottom:20px;z-index:40;width:54px;height:54px;border-radius:18px;background:#20bb61;color:white;display:grid;place-items:center;box-shadow:0 6px 20px #10213e33}.whatsapp svg{width:31px;height:31px}.side-dialog{position:fixed;inset:0;max-height:100dvh;height:100dvh;width:min(440px,92vw);max-width:92vw;margin:0;border:0;padding:28px;background:white;overflow:auto;color:var(--navy);box-shadow:0 0 70px #10213e30}.cart-dialog{margin-right:auto}.menu-dialog{margin-left:auto}.side-dialog::backdrop{background:#0a172777;backdrop-filter:blur(3px)}.side-dialog h2{margin-top:35px}.close{position:absolute;right:15px;top:12px;width:42px;height:42px;border:0;border-radius:12px;background:var(--wash);font-size:28px}.drawer-nav{display:flex;flex-direction:column;gap:10px}.drawer-nav a{padding:14px;border-radius:12px;background:var(--wash)}.dialog-open{overflow:hidden}#bt-toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:var(--navy);color:#fff;border-radius:12px;padding:12px 20px;z-index:100;opacity:0;pointer-events:none;font-size:13px;transition:.2s;max-width:80vw}#bt-toast.visible{opacity:1;transform:translate(-50%,0)}.content-main{min-height:65vh;padding-top:45px;padding-bottom:60px}.content-main h1{font-size:36px;line-height:1.2}.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none}.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce input[type=text],.woocommerce input[type=password],.woocommerce input[type=email],.woocommerce input[type=tel],.woocommerce select{min-height:46px;border:1px solid #ccd2dc;border-radius:10px;padding:10px;background:white}.woocommerce form.login,.woocommerce form.register{border:1px solid var(--line);padding:28px;border-radius:20px}.woocommerce table.shop_table{border:1px solid var(--line);border-radius:16px;overflow:hidden}.woocommerce #payment{background:var(--wash);border-radius:18px}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--pink)}.woocommerce .woocommerce-info{border-top-color:var(--pink)}.woocommerce .woocommerce-info:before{color:var(--pink)}.woocommerce-MyAccount-navigation ul{list-style:none;padding:0}.woocommerce-MyAccount-navigation a{display:block;padding:12px 16px;border-radius:10px;margin:5px 0;background:var(--wash)}.woocommerce-MyAccount-navigation .is-active a{background:var(--navy);color:white}.woocommerce .quantity .qty{min-height:46px;border:1px solid var(--line);border-radius:9px}.woocommerce-mini-cart{list-style:none;padding:0}.woocommerce-mini-cart-item{padding:18px 0;border-bottom:1px solid var(--line)}.woocommerce-mini-cart-item img{width:70px;float:right;margin-inline-start:12px}.woocommerce-mini-cart-item .remove{color:var(--pink);font-size:22px;margin-inline-end:8px}.woocommerce-mini-cart__buttons{display:flex;flex-wrap:wrap;gap:8px}.woocommerce-mini-cart__total{font-size:18px}.woocommerce a.remove{min-width:26px;min-height:26px}.empty-state{padding:25px;background:var(--wash);border-radius:18px}.woocommerce-breadcrumb{font-size:12px!important}.woocommerce form .form-row label{font-size:13px}.woocommerce div.product form.cart .button{background:var(--pink)}@keyframes float{50%{transform:translateY(-3px)}}
@media(max-width:1000px){.hero-copy{padding:28px}.hero{min-height:360px}.hero h1{font-size:39px}.product-track{grid-auto-columns:calc((100% - 36px)/3)}.brands{gap:18px}.brand-track strong{font-size:19px}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){html{scroll-padding-top:140px}.admin-bar .site-header{top:46px}.header-row{padding:10px 14px 6px;gap:8px}.header-right{gap:5px}.brand-logo img{width:102px;height:40px}.languages{gap:0}.languages a{font-size:13px;min-width:22px;min-height:32px}.hamburger{width:44px;height:44px;border-radius:12px}.cart-trigger{gap:5px;padding:8px;min-height:42px}.cart-trigger svg{width:21px}.cart-trigger [data-cart-total]{display:none}.search-wrap{padding:0 14px 10px}.search-form input{font-size:16px;padding:6px 8px}.home-main,.content-main{padding:20px 16px}.topline{font-size:10px;padding:6px 12px}.hero{display:flex;flex-direction:column;align-items:stretch;border-radius:20px}.hero-copy{padding:28px 24px}.hero h1{font-size:39px;line-height:1.12;letter-spacing:-1px}.hero-copy>p:not(.eyebrow){font-size:14px;max-width:none}.hero-actions .button{flex:1;font-size:13px;padding:12px}.hero-image img{width:100%;height:auto}.journey-section{padding:19px 12px;margin:18px 0 35px}.journey-heading{padding:0 4px;gap:9px}.journey-heading h2{font-size:15px}.journey-step span{display:none}.journey-step svg{margin-bottom:0;width:26px;height:26px}.journey-track{gap:5px;margin:14px 0}.section{margin:34px 0}.section h2,.section-heading h2{font-size:24px}.section-heading>a{font-size:11px}.section-heading .eyebrow{font-size:8px;letter-spacing:1px}.category-track{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:68%;overflow:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:12px;scrollbar-width:thin}.category-card{scroll-snap-align:start}.category-card>span{padding:14px 17px}.brands{display:block;padding:23px 0}.brands h2{margin-bottom:16px;font-size:19px}.brand-track{gap:8px;overflow:auto;grid-template-columns:repeat(3,minmax(125px,1fr))}.brand-track strong{font-size:17px}.brand-track a{min-height:80px}.product-track{grid-auto-columns:72%;gap:14px}.product-info{padding:16px}.product-art{padding:22px}.join-banner{padding:26px;display:block;border-radius:20px}.join-banner h2{font-size:25px}.join-banner .button{margin-top:20px;width:100%}.site-footer{padding:35px 24px;grid-template-columns:1fr 1fr;gap:25px}.site-footer>div:first-child{grid-column:1/-1}.site-footer p{font-size:12px}.whatsapp{right:14px;bottom:16px;width:50px;height:50px}.content-main h1{font-size:28px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.woocommerce ul.products .product-info{padding:12px}.woocommerce ul.products .product-art{padding:12px}.woocommerce ul.products .product-bottom{flex-wrap:wrap}.woocommerce ul.products .product-info h3{font-size:12px}#search-results{left:14px;right:14px;gap:8px;padding:10px;max-height:64vh}#search-results .product-art{padding:10px}#search-results .product-info{padding:10px}#search-results .product-info h3{font-size:12px;margin-bottom:12px}#search-results .product-bottom{flex-wrap:wrap}.woocommerce table.shop_table{font-size:13px}.quantity-control button{min-width:36px;min-height:38px}}
@media(max-width:380px){.brand-logo img{width:83px}.header-row{padding-inline:9px;gap:4px}.header-right{gap:3px}.languages a{min-width:20px;font-size:12px}.hero h1{font-size:34px}.hero-copy{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.site-header,.site-footer,.topline,.whatsapp,.side-dialog,#bt-toast{display:none!important}.content-main{max-width:none;padding:0}}

.journey-paused .journey-step.active svg{animation-play-state:paused}
