/* QPR — monochrome luxury. Black, white, hairlines; champagne only for tiny accents. */
:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #171717;
  --line: #232323;
  --line-2: #333;
  --text: #f4f4f2;
  --muted: #8c8c88;
  --faint: #55554f;
  --ink: #0a0a0a;            /* text on white */
  --gold: #c8b58a;           /* champagne accent — use sparingly */
  --gold-bright: #f2d27a;    /* prices + stock count */
  --cta: #ff8a3d;            /* add-to-cart */
  --price: #ffffff;          /* prices */
  --cod: #16a34a;            /* free shipping + COD badge */
  --ok: #b9c7b3;
  --bad: #e07a7a;
  --radius: 4px;
  --side-w: 256px;
  --top-h: 64px;
  --font-latin: "Jost", "Noto Sans Thai", system-ui, sans-serif;
  --font-head: "Noto Sans Thai", "Jost", system-ui, sans-serif;
  --font-body: "Noto Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.3; margin: 0; letter-spacing: .01em; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
::selection { background: var(--text); color: var(--ink); }

/* ---------- wordmark (from the QPR SHOP logo: thin caps + double bar) ---------- */
.wordmark { display: inline-flex; flex-direction: column; gap: 5px; font: 400 1.35rem/1 var(--font-latin); letter-spacing: .14em; text-transform: uppercase; }
.wordmark::after { content: ""; height: 9px; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }  /* same gold as the back links */

/* ---------- sidebar (fixed left) ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40;
  background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 28px 18px; overflow-y: auto;
}
.brand { padding: 4px 10px 34px; color: var(--text); }
.side-label { font: 400 .68rem var(--font-latin); letter-spacing: .28em; color: var(--faint); padding: 0 10px 10px; text-transform: uppercase; }
.cats { display: flex; flex-direction: column; }
.cat { border-top: 1px solid var(--line); }
.cat:last-child { border-bottom: 1px solid var(--line); }
.cat-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 10px; border: 0; background: transparent; cursor: pointer;
  font: 400 .98rem/1.35 var(--font-head); text-align: left; letter-spacing: .02em;
}
.cat-head:hover { color: #fff; }
.cat .chev { width: 16px; height: 16px; transition: transform .3s; color: var(--muted); }
.cat.open .chev { transform: rotate(180deg); }
.subs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.cat.open .subs { grid-template-rows: 1fr; }
.subs-inner { overflow: hidden; display: flex; flex-direction: column; padding: 0 0 8px 10px; }
.subs-inner a { position: relative; padding: 7px 12px 7px 18px; color: var(--muted); font-size: .92rem; transition: color .2s; }
.subs-inner a::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 1px; background: var(--line-2); transition: width .2s, background .2s; }
.subs-inner a:hover { color: var(--text); }
.subs-inner a.active { color: #fff; }
.subs-inner a.active::before, .subs-inner a:hover::before { width: 12px; background: var(--text); }
.cat.disabled .cat-head { cursor: default; color: var(--faint); flex-direction: column; align-items: flex-start; gap: 2px; }
.soon { font: 400 .68rem var(--font-body); color: var(--faint); letter-spacing: .04em; }
.side-contact { margin-top: auto; padding: 12px; border: 1px solid var(--line-2); text-align: center; font-size: .9rem; letter-spacing: .03em; transition: background .2s, color .2s; }
.side-contact:hover { background: var(--text); color: var(--ink); }
.scrim { display: none; }

/* ---------- shell / topbar ---------- */
.shell { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 32px;
  background: rgba(8,8,8,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.menu-btn, .brand-sm { display: none; }
.brand-sm { font: 400 1rem var(--font-latin); letter-spacing: .16em; }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); padding: 0 2px; transition: border-color .2s; }
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 300 .95rem var(--font-body); padding: 9px 0; outline: none; }
.search input::placeholder { color: var(--faint); }
.search:focus-within { border-color: var(--text); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.icon-btn:hover { opacity: .7; }
.icon-btn.danger:hover { color: var(--bad); opacity: 1; }
.cart-btn { margin-left: auto; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--text); color: var(--ink); font: 500 .7rem/18px var(--font-latin); text-align: center; }

.main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 32px; }
.foot { padding: 32px 24px; color: var(--faint); font: 300 .78rem var(--font-latin); letter-spacing: .2em; text-transform: uppercase; text-align: center; border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-bottom: 44px; border: 1px solid var(--line);
  display: grid; grid-template-columns: 92px 14px 1fr; min-height: 340px;
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(180deg, #0e0e0e, #060606);
}
.hero-vert {
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 26px 0;
  font: 300 1.9rem/1 var(--font-latin); color: var(--text); border-right: 1px solid var(--line);
}
.hero-bar { background: var(--text); }
.hero-text { position: relative; z-index: 1; padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker { font: 400 .72rem var(--font-latin); letter-spacing: .42em; color: var(--gold); margin-bottom: 22px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; letter-spacing: .02em; }
.hero-rule { width: 120px; height: 10px; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); margin: 22px 0 18px; }
.hero p { margin: 0; font-size: 1.05rem; color: var(--muted); letter-spacing: .02em; }
.btn.hero-cta { margin-top: 30px; color: var(--gold-bright); border-color: var(--gold-bright); }
.btn.hero-cta:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.hero-ghost {
  position: absolute; right: -2%; bottom: -18%; z-index: 0; pointer-events: none;
  font: 200 clamp(8rem, 20vw, 17rem)/1 var(--font-latin); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
}
/* uploaded cover image mode */
.hero.has-img { display: flex; align-items: flex-end; min-height: 380px; background: #000; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.08) 70%); }
.hero.has-img .hero-text { padding: 40px; }
.hero.has-img p { color: #d8d8d4; }

/* ---------- grid + cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: 1.25rem; font-weight: 400; letter-spacing: .04em; }
.section-head .muted { font: 300 .8rem var(--font-latin); letter-spacing: .12em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 8px;
  background: linear-gradient(180deg, #161616, #111); border: 1px solid #2a2a2a;
  box-shadow: 0 10px 28px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3d3d3d; box-shadow: 0 18px 40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media video { opacity: 0; transition: opacity .35s; }
.card-media.playing video { opacity: 1; }
.card.soldout .card-media video { filter: grayscale(1) brightness(.45); }
.card-media.playing .vid-hint { opacity: 0; }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: .85rem; letter-spacing: .1em; }
.vid-hint { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); transition: opacity .2s; }
.vid-hint svg { width: 10px; height: 10px; fill: #fff; stroke: none; margin-left: 2px; }
.tag { position: absolute; left: 0; top: 14px; padding: 5px 12px; z-index: 2; font: 400 .72rem var(--font-latin); letter-spacing: .14em; }
.tag-off { background: var(--text); color: var(--ink); }
.tag-out { left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 10px 18px; border: 1px solid rgba(255,255,255,.7); color: #fff; background: rgba(0,0,0,.45); font: 400 .9rem var(--font-body); letter-spacing: .08em; white-space: nowrap; }
.card.soldout .card-media img { filter: grayscale(1) brightness(.45); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid #222; }
.card-title { font-weight: 300; font-size: .98rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font: 500 1.28rem var(--font-latin); letter-spacing: .02em; color: var(--price); }
.was { color: var(--faint); font: 300 .88rem var(--font-latin); }
.stock { font-size: .8rem; color: var(--gold-bright); letter-spacing: .02em; opacity: .85; }
.stock-row { display: flex; align-items: center; justify-content: space-between; gap: 4px 6px; flex-wrap: wrap; }
.card .stock { white-space: nowrap; }
.cod-badge { margin-left: auto; padding: 2px 6px; border-radius: 4px; background: var(--cod); color: #ffffff; font: 500 .66rem/1.35 var(--font-body); letter-spacing: 0; white-space: nowrap; }
.cod-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; color: var(--muted); font-size: .85rem; }
.cod-line .cod-badge { margin-left: 0; font-size: .8rem; padding: 4px 10px; }
.sum-row .free { color: #4ade80; font-family: var(--font-body); }
.stock.low { color: var(--gold-bright); opacity: 1; font-weight: 500; }
.card.soldout .price { color: var(--muted); }
.card.soldout .stock { color: var(--faint); opacity: 1; }
.card-body form { margin-top: auto; padding-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border: 1px solid var(--text); border-radius: var(--radius); background: transparent; color: var(--text);
  font: 400 .88rem var(--font-body); letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: var(--ink); }
.btn.buy { background: var(--text); color: var(--ink); width: 100%; }
.btn.buy:hover { background: #d9d9d5; border-color: #d9d9d5; }
.btn.buy:disabled, .btn:disabled { background: transparent; border-color: var(--line-2); color: var(--faint); cursor: not-allowed; }
.card .btn.buy, .buy-box .btn.buy { background: transparent; color: var(--cta); border-color: var(--cta); }
.card .btn.buy:hover, .buy-box .btn.buy:hover { background: var(--cta); border-color: var(--cta); color: var(--ink); }
.card .btn.buy:disabled, .buy-box .btn.buy:disabled { background: transparent; border-color: var(--line-2); color: var(--faint); }
.btn.ghost { border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text); }
.btn.lg { padding: 15px 24px; font-size: .95rem; }
.btn.block { display: flex; width: 100%; }

.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 40px 0 8px; }
.empty { text-align: center; padding: 70px 16px; color: var(--muted); }
.empty .btn { margin-top: 14px; width: auto; }

/* ---------- flash / toast ---------- */
.flash { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.flash-item { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--text); font-size: .93rem; }
.flash-item.warning { border-left-color: var(--gold); }
.flash-item.error { border-left-color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 60; background: var(--text); color: var(--ink); padding: 13px 22px; font-weight: 400; letter-spacing: .02em; box-shadow: 0 14px 40px rgba(0,0,0,.6); transition: .3s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--gold); }

/* ---------- product detail ---------- */
.crumbs { color: var(--muted); font-size: .82rem; letter-spacing: .06em; }
.page-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-nav .back-link { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 10px -4px; padding: 6px 12px 6px 4px; color: var(--gold); font-size: .95rem; letter-spacing: .02em; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.back-link svg { width: 20px; height: 20px; stroke-width: 1.8; }
.back-link:hover, .back-link:active { color: var(--gold-bright); background: rgba(200,181,138,.08); }
.crumbs a:hover { color: var(--text); }
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 52px; margin-bottom: 64px; }
.stage-wrap { position: relative; }
.stage {
  display: flex; aspect-ratio: 1; background: #000; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.stage::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; background: #000; user-select: none; -webkit-user-drag: none; }
.stage-wrap .nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.45); color: #fff;
  cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.stage-wrap:hover .nav { opacity: 1; }
.stage-wrap .nav:hover { background: rgba(0,0,0,.75); }
.stage-wrap .prev { left: 14px; } .stage-wrap .next { right: 14px; }
.counter { position: absolute; right: 14px; top: 14px; padding: 3px 10px; background: rgba(0,0,0,.55); font: 400 .78rem var(--font-latin); letter-spacing: .12em; }
.counter b { font-weight: 400; }
.sound-btn {
  position: absolute; left: 14px; bottom: 36px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 99px;
  background: rgba(0,0,0,.55); color: #fff; font: 400 .8rem var(--font-body); letter-spacing: .03em; cursor: pointer;
}
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn .on, .sound-btn.is-on .off { display: none; }
.sound-btn.is-on .on { display: block; }
.sound-btn.is-on span { opacity: .75; }
.sound-btn.hint { background: rgba(0,0,0,.72); border-color: var(--gold, #c9a45c); animation: sound-pulse 1.8s ease-in-out infinite; }
@keyframes sound-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,164,92,.55); } 50% { box-shadow: 0 0 0 8px rgba(201,164,92,0); } }
@media (prefers-reduced-motion: reduce) { .sound-btn.hint { animation: none; } }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .2s, transform .2s; }
.dots span.on { background: #fff; transform: scale(1.25); }
@media (hover: none) { .stage-wrap .nav { display: none; } }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { position: relative; flex: none; width: 68px; height: 84px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); padding: 0; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--text); opacity: 1; }
.thumb.is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); font-size: .9rem; }
.pd-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; margin-bottom: 16px; }
.price-row.big .price { font-size: 2.1rem; font-weight: 500; }
.tag-inline { border: 1px solid var(--gold); color: var(--gold); font: 400 .72rem var(--font-latin); letter-spacing: .1em; padding: 2px 8px; }
.stock.big { font-size: .95rem; }
.stock-row.big { margin: 10px 0 28px; }
.stock-row.big .cod-badge { font-size: .8rem; padding: 4px 10px; }
.buy-box { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.buy-box .btn { flex: 1; }
.qty { display: flex; flex-direction: column; font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.qty input { width: 84px; flex: 1; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font: 400 1.05rem var(--font-latin); text-align: center; padding: 8px; }
.qty.sm input { width: 70px; padding: 8px 4px; }
.desc { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: #cfcfca; }

/* ---------- cart / checkout ---------- */
.steps { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .82rem; color: var(--faint); letter-spacing: .06em; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 400 .75rem var(--font-latin); }
.steps li + li::after { order: -1; content: ""; width: 22px; height: 1px; background: var(--line-2); margin-right: 2px; }
.steps li.on { color: var(--text); }
.steps li.on::before { background: var(--text); color: var(--ink); border-color: var(--text); }
.steps li.done { color: var(--muted); }
.steps li.done::before { content: "✓"; border-color: var(--muted); }
.page-title { font-size: 1.6rem; font-weight: 300; margin-bottom: 24px; letter-spacing: .03em; }
.cart { max-width: 880px; }
.cart-row { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:first-of-type { border-top: 1px solid var(--line); }
.cart-row.has-problem .cart-name { color: var(--gold); }
.cart-thumb { width: 76px; height: 95px; overflow: hidden; background: var(--surface); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 400; }
.problem { color: var(--gold); font-size: .85rem; }
.cart-total { font: 400 1.02rem var(--font-latin); min-width: 90px; text-align: right; }
.cart-sum { margin-top: 26px; padding: 24px; border: 1px solid var(--line); }
.sum { font: 300 1.7rem var(--font-latin); margin-left: 8px; }
.cart-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.cart-actions .btn.buy { width: auto; }
.cart-actions .btn.buy, .form .btn.buy { background: #166534; border-color: #166534; color: #fff; }
.cart-actions .btn.buy:hover, .form .btn.buy:hover { background: #15803d; border-color: #15803d; color: #fff; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; border: 1px solid var(--line); padding: 28px; }
.form > .flash-item, .form > .btn, .form > p, .f-customer_name, .f-address_line, .f-note { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 7px; }
.field label b { color: var(--text); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text);
  font: 300 1rem var(--font-body); padding: 12px 13px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: .83rem; margin-top: 5px; }
.field .help { color: var(--faint); font-size: .8rem; margin-top: 5px; }
.addr-tip { grid-column: 1 / -1; margin: 6px 0 -6px; padding: 10px 14px; border-left: 2px solid var(--gold); background: var(--surface); color: #d9d2c0; font-size: .86rem; }
.f-subdistrict, .f-district, .f-postcode { position: relative; }
.addr-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none;
  background: #141414; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.6);
  max-height: 320px; overflow-y: auto; min-width: 260px;
}
.addr-list li { display: flex; flex-direction: column; padding: 9px 11px; cursor: pointer; line-height: 1.4; }
.addr-list li small { color: var(--muted); }
.addr-list li:hover, .addr-list li.on { background: #222; }
.summary { border: 1px solid var(--line); padding: 24px; position: sticky; top: calc(var(--top-h) + 20px); }
.summary h2 { font-size: .8rem; font-family: var(--font-latin); letter-spacing: .3em; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; }
.summary.flat { position: static; text-align: left; background: var(--surface); border-color: var(--line); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .95rem; }
.sum-row span:last-child { font-family: var(--font-latin); }
.sum-row.total { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 400; }
.summary a { display: inline-block; margin-top: 12px; color: var(--gold); }
.summary a:hover { color: var(--gold-bright); }

.done-card { max-width: 580px; margin: 10px auto; text-align: center; border: 1px solid var(--line); padding: 44px 28px; display: flex; flex-direction: column; gap: 18px; }
.done-icon { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--text); display: grid; place-items: center; }
.done-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.done-card h1 { font-weight: 300; font-size: 1.7rem; letter-spacing: .04em; }
.order-code { font-size: .95rem; margin: 0; color: var(--muted); }
.order-code strong { font: 400 1.15rem var(--font-latin); color: var(--text); letter-spacing: .12em; margin-left: 6px; }
.notice { margin: 0; color: #cfcfca; }
.ship-to { text-align: left; background: var(--surface); padding: 16px 18px; }
.done-actions { display: flex; gap: 10px; justify-content: center; }
.done-actions .btn.buy { width: auto; }

/* ---------- order tracking / QR ---------- */
.track { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.track .steps { margin-bottom: 0; }
.track-hero { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.track-hero h1 { font-weight: 300; font-size: 1.8rem; letter-spacing: .04em; }
.save-alert { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--gold-bright); background: rgba(242,210,122,.07); }
.save-alert b { color: var(--gold-bright); font-weight: 500; font-size: 1.05rem; }
.save-alert p { margin: 6px 0 0; color: #e7e2d4; font-size: .95rem; }
.save-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: var(--ink); animation: pulse 1.8s ease-in-out infinite; }
.save-ico svg { width: 24px; height: 24px; stroke-width: 1.8; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,210,122,.5); } 50% { box-shadow: 0 0 0 10px rgba(242,210,122,0); } }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.qr-card { border: 1px solid var(--line-2); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.qr-brand { font-size: 1.05rem; }
.qr-code { background: #fff; padding: 10px; width: min(280px, 100%); line-height: 0; }
.qr-code svg { width: 100%; height: auto; }
/* undo the global icon stroke styling — QR modules must stay crisp squares to scan */
.qr-code svg path { stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.qr-order { display: flex; flex-direction: column; gap: 2px; }
.qr-order span { color: var(--muted); font-size: .8rem; letter-spacing: .1em; }
.qr-order strong { font: 400 1.5rem var(--font-latin); letter-spacing: .12em; }
.qr-hint { margin: -6px 0 0; color: var(--muted); font-size: .85rem; }
.qr-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.qr-actions .btn svg { width: 18px; height: 18px; }
.status-card { border: 1px solid var(--line); padding: 24px; }
.status-card h2, .track-items h2 { font: 400 .78rem var(--font-latin); letter-spacing: .3em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--line-2); }
.timeline li.done:not(:last-child)::after { background: var(--text); }
.timeline .dot { flex: none; width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .8rem; color: var(--ink); }
.timeline li.done .dot { background: var(--text); border-color: var(--text); }
.timeline li.current .dot { border-color: var(--gold-bright); box-shadow: 0 0 0 4px rgba(242,210,122,.15); }
.timeline b { font-weight: 400; display: block; }
.timeline li.todo b, .timeline li.todo p { color: var(--faint); }
.timeline time { display: block; font: 300 .8rem var(--font-latin); color: var(--muted); letter-spacing: .04em; }
.timeline time.wait { color: var(--gold-bright); font-family: var(--font-body); }
.timeline p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }
.closed-banner { margin-bottom: 18px; padding: 12px 14px; border-left: 2px solid var(--bad); background: var(--surface); color: #f0c9c9; }
.closed-banner a { color: var(--text); text-decoration: underline; }
.parcel { margin-top: 20px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.parcel strong { font: 400 1.3rem var(--font-latin); letter-spacing: .08em; }
.sm-btn { padding: 6px 12px; font-size: .8rem; margin-top: 6px; }
.status-card .notice { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #cfcfca; font-size: .92rem; }
.track-items { padding: 22px 24px; }
.item-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.item-thumb { width: 52px; height: 52px; background: var(--surface-2); overflow: hidden; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-name small { display: block; color: var(--muted); font-size: .8rem; }
.item-total { font-family: var(--font-latin); }
.save-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 16px; }
.save-modal[hidden] { display: none; }
.save-sheet { max-width: 420px; width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.save-sheet img { max-height: 70vh; width: auto; max-width: 100%; border: 1px solid var(--line-2); -webkit-touch-callout: default; }
.save-sheet b { color: var(--gold-bright); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s ease; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.6); }
  .shell { margin-left: 0; }
  .menu-btn, .brand-sm { display: inline-grid; }
  .topbar { padding: 0 12px; gap: 8px; }
  .main { padding: 20px 16px; }
  /* minmax(0, …): a long thumbnail strip must scroll inside the column, not widen the page (phones zoomed out) */
  .pd, .checkout, .track-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .checkout .summary { position: static; order: -1; }
  .hero { grid-template-columns: 58px 8px 1fr; min-height: 280px; }
  .hero-vert { font-size: 1.25rem; padding: 18px 0; }
  .hero-text { padding: 32px 26px; }
}
@media (max-width: 600px) {
  .brand-sm { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: .9rem; }
  .price { font-size: 1.12rem; }
  .hero { grid-template-columns: 40px 5px 1fr; min-height: 240px; margin-bottom: 32px; }
  .hero-vert { font-size: .95rem; padding: 14px 0; }
  .hero-text { padding: 26px 20px; }
  .hero-kicker { letter-spacing: .3em; margin-bottom: 14px; }
  .hero-rule { width: 84px; margin: 16px 0 12px; }
  .hero p { font-size: .95rem; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .cart-row { grid-template-columns: 60px 1fr auto; }
  .cart-thumb { width: 60px; height: 75px; }
  .cart-row .qty { grid-column: 2; }
  .cart-total { grid-column: 3; grid-row: 2; }
  .cart-row .icon-btn { grid-column: 3; grid-row: 1; }
  .cart-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.slip-thumb { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--gold); font-size: .88rem; }
.slip-thumb img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line-2); }
.slip-thumb:hover { color: var(--gold-bright); }
.btn.track-flash { margin-top: 10px; width: 100%; background: #ffe62e; border-color: #ffe62e; color: #111; font-weight: 500; }
.btn.track-flash:hover { background: #fff06a; border-color: #fff06a; color: #111; }
.parcel-hint { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }

/* ---- partner store: sidebar section, "shipped by" tag, split parcels in cart / checkout / tracking ---- */
.side-label.partner-label { margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-2); letter-spacing: .12em; }  /* same size + colour as COLLECTIONS; tighter tracking so Thai stays readable */
.by-store { display: block; margin-top: 2px; font-size: .78rem; color: var(--gold); }
.by-store.big { font-size: .9rem; margin: -4px 0 12px; }
.parcel-head { margin: 18px 0 6px; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--surface-2); font-size: .92rem; }
.parcel-head:first-child { margin-top: 0; }
.parcel-sub { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px 14px; font-size: .92rem; color: var(--muted); }
.parcel-sub b { color: var(--text); font-family: var(--font-latin); font-weight: 400; }
.sum-row.sub { color: var(--muted); border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; margin-bottom: 4px; }
.split-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: .88rem; color: var(--gold-bright); line-height: 1.6; }
.split-box { margin: 0 0 18px; padding: 16px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--surface); }
.split-box h2 { margin: 0 0 4px; font-size: 1.05rem; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.split-row small { display: block; color: var(--muted); font-size: .8rem; }
.split-row.on { border-color: var(--gold); background: var(--surface-2); }
.split-row.total { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; margin-top: 10px; padding-top: 14px; font-size: 1.05rem; }
.split-row .amt { font-family: var(--font-latin); font-size: 1.1rem; white-space: nowrap; }

/* ---- "ask us" box above the footer (every page) ---- */
.help-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 8px clamp(16px, 4vw, 40px) 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.help-text { flex: 1 1 320px; min-width: 0; }
.help-text b { font-weight: 500; }
.help-text p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.help-text .help-about { color: var(--faint); font-size: .82rem; border-left: 2px solid var(--line-2); padding-left: 10px; }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.help-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); font-size: .95rem; color: #fff; text-decoration: none; }
.help-btn svg { width: 20px; height: 20px; fill: currentColor; }
.help-btn.line { background: #06C755; }
.help-btn.fb { background: #0866FF; }
.help-btn:hover { filter: brightness(1.08); }
.help-add { width: 100%; font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) { .help-actions, .help-btn { width: 100%; } .help-btn { justify-content: center; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.policy { max-width: 760px; }
.policy h1 { font-weight: 400; margin: 6px 0 2px; }
.policy h2 { font-size: 1.05rem; font-weight: 500; margin: 26px 0 6px; color: var(--gold, #c9a45c); }
.policy li { margin: 6px 0; }
.foot a { color: inherit; opacity: .75; }

/* live stock: brief highlight when a number changes */
@keyframes flashNum { from { background: rgba(212,175,95,.35); } to { background: transparent; } }
.stock.flash-num { animation: flashNum 1.6s ease-out; border-radius: 4px; }

/* product code + copy button */
.sku-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sku-line > span { user-select: all; }
.copy-sku { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; border-radius: 4px; transition: .2s; }
.copy-sku:hover { color: var(--text); border-color: var(--muted); }
.copy-sku svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* checkout: remote / island area surcharge notice */
.area-note { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--gold); color: var(--text); background: rgba(212,175,95,.08); font-size: .92rem; line-height: 1.6; }
.area-note b { color: var(--gold-bright); }
.area-foot { margin-top: 6px; }

/* grid children never grow past their column because of wide content (thumbnail strips, long words) */
.pd > *, .checkout > *, .track-grid > * { min-width: 0; }

/* phones: "◀ ดูหมวดสินค้า" next to the ☰ button */
.menu-hint { display: none; align-items: center; gap: 6px; flex: none; padding: 6px 10px; border: 1px solid var(--gold); background: transparent;
  color: var(--gold-bright); font: 400 .85rem var(--font-body); white-space: nowrap; cursor: pointer; border-radius: 999px; }
.menu-hint-arrow { display: inline-block; font-size: .7rem; animation: hintNudge 1.2s ease-in-out infinite; }
.menu-hint.seen .menu-hint-arrow { animation: none; }
@keyframes hintNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@media (max-width: 960px) { .menu-hint { display: inline-flex; } }
@media (max-width: 360px) { .menu-hint { font-size: .78rem; padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .menu-hint-arrow { animation: none; } }
/* the search box gives way to the ☰ label + cart on narrow phones instead of pushing the page wider */
.search { min-width: 0; }
.topbar .cart-btn { flex: none; }
