:root{
  --paper:#f5f2ec;
  --paper-2:#ece7de;
  --ink:#161616;
  --muted:#6f6c65;
  --line:rgba(22,22,22,.16);
  --orange:#ff3f1f;
  --orange-2:#ff5a37;
  --white:#fff;
  --shadow:0 28px 80px rgba(35,28,21,.16);
  --radius:30px;
  --shell:min(1180px,calc(100vw - 40px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 84% 2%,rgba(255,63,31,.10),transparent 24%),
    linear-gradient(var(--paper),var(--paper));
  font-family:"Noto Sans Thai","Inter",sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}
body.sheet-open{overflow:hidden}
body[data-lang="th"] .en,
body[data-lang="en"] .th{display:none!important}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
button{color:inherit}
img{display:block;max-width:100%}
.shell{width:var(--shell);margin-inline:auto}

/* Header: compact floating toolbar, deliberately not the old full-width dark navbar. */
.topbar{
  width:min(1240px,calc(100vw - 24px));
  min-height:74px;
  position:sticky;
  top:12px;
  z-index:50;
  margin:12px auto 0;
  padding:8px 10px 8px 14px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  border:1px solid rgba(22,22,22,.10);
  border-radius:24px;
  background:rgba(250,248,244,.88);
  backdrop-filter:blur(18px);
  box-shadow:0 16px 48px rgba(28,23,18,.10);
}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-logo{
  width:50px;height:50px;border-radius:16px;overflow:hidden;background:#fff;
  border:1px solid var(--line);display:grid;place-items:center
}
.brand-logo img{width:100%;height:100%;object-fit:contain}
.brand-copy{display:grid;line-height:1.05}
.brand-copy strong{font:900 18px/1 "Inter",sans-serif;letter-spacing:.08em}
.brand-copy small{font-size:10px;color:var(--muted);font-weight:700;margin-top:5px;white-space:nowrap}
.nav{display:flex;justify-content:center;gap:26px}
.nav a{font-size:12px;font-weight:800;color:#625f59;position:relative}
.nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-6px;height:2px;background:var(--orange);transition:.25s}
.nav a:hover::after{right:0}
.top-actions{display:flex;align-items:center;gap:8px}
.language{display:flex;padding:3px;border:1px solid var(--line);border-radius:999px;background:#fff}
.lang-btn{border:0;background:transparent;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:900;cursor:pointer}
.lang-btn.active{background:var(--ink);color:#fff}
.cart-pill{
  border:0;background:var(--orange);color:#fff;border-radius:16px;min-height:46px;
  padding:0 12px 0 14px;display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:800
}
.cart-pill b{min-width:25px;height:25px;border-radius:8px;display:grid;place-items:center;background:#fff;color:var(--ink);font-size:11px}
.cart-icon{font-size:21px;transform:rotate(-18deg)}

.hero{
  min-height:760px;
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);
  gap:70px;align-items:center;padding:96px 0 70px;
}
.signal,.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-size:11px;font-weight:900;letter-spacing:.15em;text-transform:uppercase;color:var(--muted)
}
.signal i{width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 7px rgba(255,63,31,.10)}
.hero h1,.section-title h2,.wholesale-copy h2,.contact-copy h2{
  margin:20px 0 22px;font-family:"Inter","Noto Sans Thai",sans-serif;
  font-weight:900;letter-spacing:-.065em;line-height:.88;text-transform:uppercase
}
.hero h1{font-size:clamp(58px,7.2vw,104px)}
.hero h1 em{font-style:normal;color:var(--orange)}
.hero-copy>p{max-width:620px;margin:0;color:#56524c;font-size:17px;line-height:1.9}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.btn{
  min-height:52px;border-radius:16px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:20px;
  border:1px solid var(--line);font-size:13px;font-weight:900;transition:.2s
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--orange);color:#fff;border-color:var(--orange);box-shadow:0 15px 32px rgba(255,63,31,.22)}
.btn-ghost{background:rgba(255,255,255,.62)}

.hero-stage{height:585px;position:relative;isolation:isolate}
.hero-stage::before{
  content:"";position:absolute;inset:36px 20px 22px 58px;border-radius:46% 54% 54% 46%/53% 36% 64% 47%;
  background:var(--orange);transform:rotate(-7deg);z-index:-1;box-shadow:var(--shadow)
}
.stage-card{position:absolute;background:#fff;border:1px solid rgba(22,22,22,.12);box-shadow:0 20px 60px rgba(41,28,18,.14)}
.stage-main{inset:74px 38px 72px 92px;border-radius:38px;overflow:hidden;transform:rotate(3deg);display:grid;place-items:center;padding:34px}
.stage-main img{width:100%;height:100%;object-fit:contain}
.stage-note{
  right:-4px;bottom:30px;width:265px;padding:18px;border-radius:22px;transform:rotate(-4deg)
}
.stage-note span,.stage-note small{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.08em}
.stage-note strong{display:block;font:900 18px/1.2 "Inter",sans-serif;margin:7px 0}
.stage-number{position:absolute;top:6px;right:14px;font:900 88px/1 "Inter",sans-serif;color:transparent;-webkit-text-stroke:1px rgba(22,22,22,.25)}
.stage-orbit{
  position:absolute;left:-18px;bottom:78px;width:176px;height:176px;border:1px solid rgba(22,22,22,.18);border-radius:50%;
  background:rgba(245,242,236,.78);backdrop-filter:blur(8px);animation:spin 18s linear infinite
}
.stage-orbit span{position:absolute;left:50%;top:50%;font:800 9px/1 "Inter",sans-serif;letter-spacing:.11em;transform-origin:0 0}
.stage-orbit span:nth-child(1){transform:rotate(0deg) translate(52px) rotate(0deg)}
.stage-orbit span:nth-child(2){transform:rotate(90deg) translate(52px) rotate(-90deg)}
.stage-orbit span:nth-child(3){transform:rotate(180deg) translate(52px) rotate(-180deg)}
.stage-orbit span:nth-child(4){transform:rotate(270deg) translate(52px) rotate(-270deg)}
@keyframes spin{to{transform:rotate(360deg)}}

.ticker{overflow:hidden;border-block:1px solid var(--line);background:var(--ink);color:#fff}
.ticker-track{width:max-content;display:flex;gap:22px;align-items:center;padding:13px 0;animation:ticker 34s linear infinite}
.ticker span{font:800 11px/1 "Inter",sans-serif;letter-spacing:.15em}
.ticker i{font-style:normal;color:var(--orange)}
@keyframes ticker{to{transform:translateX(-50%)}}

.section{position:relative;padding:96px 0}
.section-index{position:absolute;left:max(20px,calc((100vw - 1180px)/2 - 70px));top:105px;font:900 13px/1 "Inter";color:#aaa49a}
.section-title{max-width:760px}
.section-title h2,.wholesale-copy h2,.contact-copy h2{font-size:clamp(48px,6vw,82px)}

.company-board{display:grid;grid-template-columns:1.06fr .94fr;gap:18px;margin-top:46px}
.company-lead{
  min-height:420px;padding:38px;border-radius:var(--radius);background:var(--orange);color:#fff;position:relative;overflow:hidden
}
.company-lead::after{content:"X";position:absolute;right:-20px;bottom:-118px;font:900 360px/1 "Inter";color:rgba(255,255,255,.12)}
.label{font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.company-lead h3{max-width:520px;margin:70px 0 16px;font-size:42px;line-height:1.05}
.company-lead p{max-width:600px;margin:0;line-height:1.9;color:rgba(255,255,255,.88)}
.fact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.fact-grid article{
  min-height:201px;padding:22px;border:1px solid var(--line);border-radius:26px;background:rgba(255,255,255,.56);
  display:flex;flex-direction:column;justify-content:space-between
}
.fact-grid article>span{font:900 10px/1 "Inter";letter-spacing:.13em;color:var(--orange)}
.fact-grid strong{font:900 27px/1 "Inter";letter-spacing:-.04em}
.fact-grid small{color:var(--muted);font-weight:700}

.catalogue-section{background:#e9e3d9;border-block:1px solid var(--line)}
.catalogue-head{display:flex;justify-content:space-between;align-items:end;gap:24px}
.catalogue-metric{display:flex;align-items:end;gap:12px;padding-bottom:6px}
.catalogue-metric b{font:900 64px/.8 "Inter";color:var(--orange)}
.catalogue-metric span{font-size:11px;font-weight:800;color:var(--muted);line-height:1.35}

.catalogue-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px;margin-top:42px}
.filter-rail{
  position:sticky;top:105px;align-self:start;padding:18px;border:1px solid var(--line);border-radius:26px;background:rgba(255,255,255,.62)
}
.filter-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.filter-head>span{font-weight:900}
.filter-head button{border:0;background:transparent;color:var(--orange);font-size:11px;font-weight:900;cursor:pointer}
.search-box{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:14px;padding:0 12px;background:#fff}
.search-box input{width:100%;height:44px;border:0;outline:0;background:transparent;font-size:12px}
.filter-list{display:grid;gap:7px;margin-top:13px}
.filter-btn{
  min-height:45px;border:0;border-radius:13px;background:transparent;padding:0 11px;display:flex;align-items:center;justify-content:space-between;
  text-align:left;cursor:pointer;font-size:12px;font-weight:800
}
.filter-btn b{font-size:10px;color:var(--muted)}
.filter-btn.active{background:var(--ink);color:#fff}
.filter-btn.active b{color:#fff}
.rail-note{display:flex;gap:9px;border-top:1px solid var(--line);margin-top:16px;padding-top:15px}
.rail-note .dot{width:8px;height:8px;border-radius:50%;background:var(--orange);margin-top:8px;flex:0 0 auto}
.rail-note p{font-size:11px;color:var(--muted);margin:0;line-height:1.6}

.catalogue-toolbar{min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}
#resultStatus{font-size:12px;font-weight:800;color:var(--muted)}
.page-controls{display:flex;align-items:center;gap:8px}
.page-controls button{width:36px;height:36px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer}
.page-controls button:disabled{opacity:.35;cursor:not-allowed}
.page-controls span{min-width:58px;text-align:center;font:800 11px/1 "Inter"}

.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.product-card{
  min-width:0;border:1px solid rgba(22,22,22,.13);border-radius:24px;background:#f8f5ef;overflow:hidden;display:flex;flex-direction:column;
  transition:transform .22s,box-shadow .22s
}
.product-card:hover{transform:translateY(-5px);box-shadow:0 20px 46px rgba(38,30,22,.13)}
.product-media{aspect-ratio:1/.84;position:relative;background:#fff;overflow:hidden}
.product-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.product-card:hover .product-media img{transform:scale(1.035)}
.product-code{position:absolute;left:10px;top:10px;background:rgba(22,22,22,.88);color:#fff;border-radius:10px;padding:5px 8px;font:800 9px/1 "Inter"}
.product-category{position:absolute;right:10px;top:10px;background:var(--orange);color:#fff;border-radius:10px;padding:5px 8px;font-size:9px;font-weight:900}
.product-info{padding:14px;display:flex;flex-direction:column;flex:1}
.product-info h3{margin:0;font-size:14px;line-height:1.35;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-info p{margin:7px 0 14px;color:var(--muted);font-size:11px;line-height:1.55;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:end;gap:9px}
.product-price{font:900 22px/1 "Inter";letter-spacing:-.04em}
.product-actions{display:flex;gap:6px}
.icon-btn{width:36px;height:36px;border:1px solid var(--line);border-radius:11px;background:#fff;display:grid;place-items:center;cursor:pointer;font-weight:900}
.icon-btn.add{background:var(--orange);color:#fff;border-color:var(--orange)}
.empty-state{grid-column:1/-1;padding:50px;border:1px dashed var(--line);border-radius:24px;text-align:center;color:var(--muted)}

.wholesale-section{background:var(--ink);color:#fff}
.wholesale-grid{display:grid;grid-template-columns:.88fr 1.12fr;gap:70px;align-items:center}
.wholesale-visual{height:560px;position:relative;display:grid;place-items:center;border-radius:38px;overflow:hidden;background:var(--orange)}
.giant-x{font:900 430px/.8 "Inter";color:rgba(255,255,255,.96);transform:rotate(-7deg)}
.wholesale-badge{position:absolute;right:22px;bottom:22px;width:190px;border-radius:20px;background:#fff;color:var(--ink);padding:15px}
.wholesale-badge b{display:block;font:900 38px/1 "Inter";color:var(--orange)}
.wholesale-badge small{display:block;margin-top:5px;color:var(--muted);font-weight:800}
.wholesale-copy p{color:#bbb5ad;line-height:1.9;max-width:620px}
.trade-steps{display:grid;gap:8px;margin-top:26px}
.trade-steps article{display:flex;gap:15px;align-items:center;border-top:1px solid rgba(255,255,255,.15);padding:14px 0}
.trade-steps article>b{font:900 18px/1 "Inter";color:var(--orange)}
.trade-steps article>span{display:grid}
.trade-steps strong{font-size:14px}
.trade-steps small{color:#928c85}

.contact-shell{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:36px;overflow:hidden;background:#fff}
.contact-copy{padding:46px}
.contact-copy .address{max-width:570px;color:var(--muted);line-height:1.85}
.contact-actions{display:grid;gap:8px;margin-top:26px}
.contact-actions a{position:relative;border-top:1px solid var(--line);padding:14px 34px 14px 0;display:grid}
.contact-actions small{font-size:10px;color:var(--muted);font-weight:900}
.contact-actions strong{font-size:14px;overflow-wrap:anywhere}
.contact-actions a>span{position:absolute;right:0;top:50%;transform:translateY(-50%);color:var(--orange)}
.map-panel{position:relative;min-height:620px;background:#ddd}
.map-panel iframe{width:100%;height:100%;min-height:620px;border:0;filter:grayscale(1) contrast(.92)}
.map-caption{position:absolute;left:18px;right:18px;bottom:18px;border-radius:22px;background:rgba(22,22,22,.90);color:#fff;padding:15px;backdrop-filter:blur(12px)}
.map-caption span,.map-caption small{display:block;font-size:9px;font-weight:900;letter-spacing:.1em}
.map-caption b{display:block;font:900 26px/1 "Inter";color:var(--orange);margin:6px 0}

footer{padding:28px 0;border-top:1px solid var(--line);background:#fff}
.footer-grid{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:24px}
.footer-grid>div{display:grid}
.footer-grid strong{font:900 18px/1 "Inter";letter-spacing:.08em}
.footer-grid span,.footer-grid p{font-size:10px;color:var(--muted);font-weight:700;margin:0}

/* Bottom sheet: true slide-up interaction from the viewport bottom. */
.sheet-backdrop{
  position:fixed;inset:0;background:rgba(17,17,17,.46);backdrop-filter:blur(3px);z-index:90;opacity:0;pointer-events:none;transition:.28s
}
.sheet-backdrop.open{opacity:1;pointer-events:auto}
.cart-sheet{
  position:fixed;left:50%;bottom:0;z-index:100;width:min(760px,calc(100vw - 20px));max-height:min(86vh,820px);
  transform:translate(-50%,105%);transition:transform .34s cubic-bezier(.2,.85,.2,1);
  background:#fbf9f5;border:1px solid var(--line);border-bottom:0;border-radius:34px 34px 0 0;box-shadow:0 -30px 90px rgba(0,0,0,.20);
  display:flex;flex-direction:column
}
.cart-sheet.open{transform:translate(-50%,0)}
.sheet-handle{width:72px;height:6px;border:0;border-radius:999px;background:#cec7bd;margin:10px auto 4px;cursor:pointer}
.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:13px 22px 12px}
.sheet-head h3{margin:3px 0 0;font-size:27px}
.sheet-x{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:23px;cursor:pointer}
.sheet-body{padding:0 22px;overflow:auto;display:grid;gap:8px}
.cart-empty{padding:40px 10px;text-align:center;color:var(--muted)}
.cart-item{
  display:grid;grid-template-columns:70px 1fr auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:18px;background:#fff
}
.cart-thumb{width:70px;height:62px;border-radius:12px;object-fit:cover;background:#eee}
.cart-item h4{margin:0;font-size:12px;line-height:1.35}
.cart-item .line-price{font-size:11px;color:var(--orange);font-weight:900;margin-top:4px}
.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.qty button{width:30px;height:30px;border:0;background:#f4f1eb;cursor:pointer}
.qty b{width:28px;text-align:center;font-size:11px}
.remove{border:0;background:transparent;color:#999;font-size:18px;cursor:pointer;margin-left:4px}
.cart-item-tools{display:flex;align-items:center}
.sheet-footer{border-top:1px solid var(--line);margin-top:14px;padding:15px 22px 22px;background:#f4f0e9}
.total-row{display:flex;justify-content:space-between;align-items:end}
.total-row span{font-size:12px;font-weight:900}
.total-row strong{font:900 32px/1 "Inter";color:var(--orange)}
.sheet-footer p{font-size:10px;color:var(--muted);margin:9px 0 12px}
.checkout{width:100%}

@media(max-width:980px){
  .nav{display:none}
  .topbar{grid-template-columns:1fr auto}
  .hero{grid-template-columns:1fr;gap:30px;padding-top:70px}
  .hero-stage{height:520px}
  .company-board,.wholesale-grid,.contact-shell{grid-template-columns:1fr}
  .catalogue-layout{grid-template-columns:1fr}
  .filter-rail{position:relative;top:auto}
  .filter-list{grid-template-columns:repeat(3,1fr)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .map-panel,.map-panel iframe{min-height:460px}
  .section-index{display:none}
}
@media(max-width:640px){
  :root{--shell:calc(100vw - 24px)}
  .topbar{width:calc(100vw - 12px);top:6px;margin-top:6px;padding:7px;gap:8px;border-radius:19px}
  .brand-logo{width:44px;height:44px}
  .brand-copy strong{font-size:15px}.brand-copy small{font-size:8px;max-width:122px;overflow:hidden;text-overflow:ellipsis}
  .cart-pill{min-height:42px;padding:0 9px;font-size:11px}.cart-icon{display:none}
  .language{display:none}
  .hero{min-height:auto;padding:64px 0 42px}
  .hero h1{font-size:49px}
  .hero-copy>p{font-size:14px}
  .hero-stage{height:390px}
  .hero-stage::before{inset:20px 4px 16px 24px}
  .stage-main{inset:50px 18px 54px 43px;padding:16px}
  .stage-note{width:208px;right:0;bottom:20px}.stage-note strong{font-size:14px}
  .stage-orbit{width:120px;height:120px;left:-8px;bottom:50px}
  .stage-orbit span{display:none}
  .stage-number{font-size:58px}
  .section{padding:68px 0}
  .section-title h2,.wholesale-copy h2,.contact-copy h2{font-size:43px}
  .company-lead{min-height:350px;padding:25px}.company-lead h3{margin-top:55px;font-size:31px}
  .fact-grid{gap:9px}.fact-grid article{min-height:155px;padding:14px}.fact-grid strong{font-size:18px}
  .catalogue-head{align-items:flex-start}.catalogue-metric b{font-size:43px}
  .filter-list{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-card{border-radius:18px}.product-info{padding:10px}.product-info h3{font-size:12px;min-height:33px}.product-info p{font-size:9px;margin-bottom:10px}
  .product-price{font-size:17px}.icon-btn{width:31px;height:31px;border-radius:9px}
  .wholesale-visual{height:380px}.giant-x{font-size:300px}.wholesale-grid{gap:34px}
  .contact-copy{padding:25px}.map-panel,.map-panel iframe{min-height:370px}
  .footer-grid{grid-template-columns:1fr;gap:7px}
  .cart-sheet{width:100%;border-radius:28px 28px 0 0}
  .cart-item{grid-template-columns:58px 1fr}.cart-thumb{width:58px;height:56px}.cart-item-tools{grid-column:2;justify-content:flex-end}
}
