:root{font-family:"Segoe UI",system-ui,sans-serif;color:#191c1c;background:#f5f2ec;scroll-behavior:smooth}
*{box-sizing:border-box}
body{margin:0;--ink:#181b1a;--surface:#fffdf8;--paper:#f5f2ec;--line:#ded9cf;--accent:#e45a2a;--button-ink:#141514;--hero:#202422;--hero-ink:#fffaf2;background:var(--paper);color:var(--ink)}
body[data-style=supply]{--ink:#172d46;--surface:#fff;--paper:#eef4fa;--line:#d6e1ed;--accent:#164b85;--button-ink:#fff;--hero:#e3edf9;--hero-ink:#142e4c}
body[data-style=build]{--ink:#213426;--surface:#fffdf6;--paper:#f5f0e4;--line:#ddd5c5;--accent:#2f563e;--button-ink:#fff;--hero:#f8f4eb;--hero-ink:#213426}
button,input,select,textarea{font:inherit}
a{color:inherit}
button,.primary{cursor:pointer}
:focus-visible{outline:3px solid #0878d7;outline-offset:3px}
.wrap{width:min(1320px,calc(100% - 96px));margin-inline:auto}
.skip{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
a.skip:focus{clip-path:none;width:auto;height:auto;background:white;padding:14px;z-index:4}
.preview,.tradebar{text-align:center}
.preview{display:flex;align-items:center;justify-content:center;gap:20px;padding:9px 16px;background:#e8e4dc;color:#202321}
.preview>span,.eyebrow{font-size:.79rem;font-weight:800;letter-spacing:.12em}
.preview button{border:1px solid transparent;border-radius:4px;background:transparent;padding:6px 12px;font-size:.875rem}
.preview button[aria-pressed=true]{background:#fff;border-color:#d0cbc1;font-weight:700}
.tradebar{background:var(--ink);color:#fff;padding:7px 12px;font-size:.875rem}
.tradebar span{margin:0 8px}
.header{background:var(--surface);border-bottom:1px solid var(--line)}
.head,.foot,.section-head,.cart-head,.subtotal{display:flex;align-items:center;justify-content:space-between;gap:20px}
.head{min-height:78px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:1.24rem;font-weight:900;line-height:1;letter-spacing:.025em}
.brand img{width:48px;height:48px;object-fit:contain}
.brand small{display:block;font-size:.68rem;letter-spacing:.26em;margin-top:4px}
nav{display:flex;gap:30px}
nav a{text-decoration:none;font-weight:650}
nav a:hover,.section-head a:hover{text-decoration-thickness:2px;text-decoration-line:underline}
.cart-button,.cart-head button,.line button{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:4px;white-space:nowrap}
.cart-button svg,.category svg{width:20px;height:20px;display:block}
#cart-count{font-weight:800}
.hero{background:var(--hero);color:var(--hero-ink);display:grid;grid-template-columns:47% 53%;margin-top:28px;min-height:412px}
.hero-copy{padding:clamp(28px,5vw,75px);align-self:center}
.eyebrow{margin:0 0 13px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(3rem,6.25vw,6.4rem);letter-spacing:-.065em;line-height:.94;margin-bottom:18px}
#hero-intro{max-width:36ch;line-height:1.5;margin-bottom:24px}
.primary{display:inline-block;text-decoration:none;border:0;background:var(--accent);color:var(--button-ink);font-weight:780;padding:12px 17px;border-radius:3px}
.primary:hover{filter:brightness(.93)}
.hero-visual{position:relative;min-height:100%;overflow:hidden}
.hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-visual span{position:absolute;bottom:15px;left:15px;background:var(--surface);color:var(--ink);padding:7px 10px;font-size:.75rem;letter-spacing:.09em;font-weight:800}
.section{padding-top:45px;scroll-margin-top:16px}
.section-head{align-items:end;margin-bottom:17px}
.section-head h2{font-size:clamp(1.8rem,3vw,2.8rem);letter-spacing:-.04em;margin:0}
.section-head .eyebrow{margin-bottom:4px}
.section-head a{font-weight:700}
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.category{display:block;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:5px;text-decoration:none}
.category img,.category .category-art{display:block;width:100%;height:115px;object-fit:cover}
.category .category-art{display:grid;place-items:center;background:var(--hero);color:var(--hero-ink)}
.category-art svg{width:36px;height:36px}
.category-copy{display:block;padding:12px 14px}
.category-copy strong,.category-copy small{display:block}
.category-copy small{margin-top:4px;font-size:.875rem}
.category:hover{border-color:var(--accent)}
.catalog-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px}
.filters{align-self:start;background:var(--surface);padding:16px;border:1px solid var(--line)}
.filters label,details label{display:block;font-weight:650;font-size:.875rem;margin:14px 0 5px}
.filters label:first-child{margin-top:0}
input,select,textarea{width:100%;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:3px;padding:9px}
.note{font-size:.875rem;line-height:1.5;margin:6px 0 10px}
.group{margin-bottom:28px}
.group h3{margin:0 0 10px;font-size:1.2rem}
.items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.item{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:127px;gap:10px;background:var(--surface);border:1px solid var(--line);padding:12px}
.item h4{font-size:1rem;margin:0 0 4px}
.sku{font-size:.78rem;margin:0;font-family:ui-monospace,monospace}
.item-action{display:flex;align-items:center;justify-content:space-between;gap:5px}
.item-action .primary{padding:6px 10px}
footer{background:var(--ink);color:white;margin-top:25px;padding:34px 0}
.foot{align-items:start}
.foot h2,.foot h3{margin-bottom:7px}
.foot p{margin-bottom:0}
dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:20px;width:min(530px,100%);height:100%;max-height:100%;max-width:100%;margin:0 0 0 auto}
dialog::backdrop{background:#1119}
.cart-head h2{margin:0}
.line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.line small{display:block;margin-top:4px}
.quantity{display:flex;align-items:center;gap:8px}
.subtotal{margin-top:15px}
details{margin-top:14px}
summary{cursor:pointer}
[data-style=supply] .hero{grid-template-columns:1fr 1fr;min-height:340px;border-top:5px solid var(--accent)}
[data-style=supply] h1{font-size:clamp(2.5rem,5vw,5.2rem);letter-spacing:-.05em}
[data-style=supply] .category{display:grid;grid-template-columns:80px 1fr;align-items:center}
[data-style=supply] .category img,[data-style=supply] .category-art{height:82px}
[data-style=supply] .items{grid-template-columns:1fr;gap:0}
[data-style=supply] .item{min-height:auto;flex-direction:row;align-items:center;border-bottom:0}
[data-style=supply] .item:last-child{border-bottom:1px solid var(--line)}
[data-style=supply] .item-action{gap:16px}
[data-style=build] .hero{grid-template-columns:1fr;position:relative;min-height:485px;text-align:center;isolation:isolate}
[data-style=build] .hero-visual{position:absolute;inset:0;z-index:-2}
[data-style=build] .hero-visual::after{content:"";position:absolute;inset:0;background:#101b14a8}
[data-style=build] .hero-visual span{z-index:1}
[data-style=build] .hero-copy{color:#fff}
[data-style=build] h1,[data-style=build] .section-head h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.055em}
[data-style=build] #hero-intro{margin-inline:auto}
[data-style=build] .category img,[data-style=build] .category-art{height:165px}
[data-style=build] .category{border-radius:0}
[data-style=build] .item{border-radius:10px}
@media(max-width:980px){
  .wrap{width:calc(100% - 44px)}
  .items,.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:660px){
  .wrap{width:calc(100% - 28px)}
  .preview{flex-direction:column;gap:3px}
  .preview button{padding-inline:7px}
  .head{flex-wrap:wrap;gap:9px;padding-block:9px}
  nav{order:3;width:100%;justify-content:space-between;gap:6px;font-size:.875rem;padding-block:4px}
  .hero,.hero[data-style], [data-style=supply] .hero{grid-template-columns:1fr;margin-top:14px;min-height:auto}
  .hero-visual{min-height:230px}
  [data-style=build] .hero{min-height:390px}
  .hero-copy{padding:28px 20px}
  .section{padding-top:32px}
  .section-head{align-items:start;flex-wrap:wrap;gap:5px}
  .catalog-layout{grid-template-columns:1fr;gap:12px}
  .item{padding:9px}
  .item-action{flex-wrap:wrap}
  [data-style=supply] .category{grid-template-columns:1fr}
  [data-style=build] .category img,[data-style=build] .category-art{height:115px}
  .foot{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}

body[data-style=build]{--paper:#f6f3e9;--accent:#2f563e}
.head-actions,.languages{display:flex;align-items:center;gap:6px}
.head-actions{gap:12px}
.languages button{color:var(--ink);background:transparent;border:1px solid transparent;border-radius:4px;padding:6px 7px}
.languages button[aria-pressed=true]{background:var(--hero);border-color:var(--line);font-weight:750}
[data-style=build] h1{max-width:15ch;margin-inline:auto}
html[lang=th] [data-style=build] h1,html[lang=th] [data-style=build] .section-head h2{font-family:"Leelawadee UI",Tahoma,sans-serif;letter-spacing:0;font-weight:750}
html[lang=th] [data-style=build] h1{font-size:clamp(2.6rem,5.9vw,5.7rem);line-height:1.12}
html[lang=th] .eyebrow{letter-spacing:.045em}
[data-style=build] .hero{min-height:510px}
[data-style=build] .hero-visual::after{background:linear-gradient(90deg,#121c16b8,#121c167d 55%,#121c1690)}
.hero-visual img{object-position:50% 57%}
.item{padding:0;overflow:hidden;gap:0}
.item img{display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:contain;background:#f3efe6}
.item-details{padding:12px;display:flex;flex-direction:column;flex:1;justify-content:space-between;gap:10px}
.item h4{line-height:1.4}
@media(max-width:660px){
[data-style=build] .hero{min-height:392px}
.brand{font-size:1rem;gap:5px}
.brand img{width:33px;height:33px}
.head-actions{gap:5px}
.cart-button{gap:5px;padding:6px}
.cart-button svg{width:16px;height:16px}
.languages button{font-size:.8rem;padding:5px}
.item-details{padding:8px}
}
