/* =====================================================================
   Onflash Office — Editorial Fashion System
   Image-first. Minimal chrome. Big type. Lots of air.
   Ref vibe: Zara · Gentle Monster · Carven · Mason Prince
   Dual theme: Work Mode (light) / After Work Mode (dark)
   Accent: Volt #8EED16 (used sparingly)
   ===================================================================== */

:root {
  --brand: #8eed16;
  --font-head: "Lexend Peta", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: clamp(16px, 4vw, 56px); /* page gutter */
}

/* Work Mode (light editorial) */
:root, [data-theme="work"] {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #6b6b6b;
  --line: #e9e9e9;
  --ph: #ededed;          /* photo placeholder fill */
  --ph-ink: #9a9a9a;      /* placeholder label */
  --overlay: #ffffff;     /* text over image */
}

/* After Work Mode (dark, moody) */
[data-theme="after"] {
  --bg: #0a0a0a;
  --ink: #f4f4f4;
  --ink-soft: #8a8a8a;
  --line: #1e1e1e;
  --ph: #161616;
  --ph-ink: #565656;
  --overlay: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  width: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 0.98; }
.display { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }

.mono { font-family: var(--font-mono); }
.up { text-transform: uppercase; letter-spacing: 0.18em; }
.muted { color: var(--ink-soft); }
.accent { color: var(--brand); }

/* micro-label used everywhere (fashion sites love tiny mono labels) */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pad { padding-left: var(--gut); padding-right: var(--gut); }

/* =============== PHOTO PLACEHOLDER (reads like a real image slot) ===== */
.ph {
  position: relative;
  background: var(--ph);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: background 0.5s var(--ease);
}
.ph .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ph-ink);
  text-align: center;
  max-width: 78%;
  line-height: 1.6;
  padding: 0 10px;
}
.ph .fig {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ph-ink);
}
.ph .fig::before { content: "◻ "; }
.ph-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Once a real photo has loaded, hide the placeholder label/icon behind it */
.ph.has-photo .lbl,
.ph.has-photo .fig::before { display: none; }

/* =============== HEADER (thin, minimal, over-image) ================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(8px, 1.6vw, 14px) var(--gut);
  color: var(--ink);
  transition: color 0.5s var(--ease);
}
.header a, .header button { color: var(--ink); }
.header .logo { height: clamp(40px, 9vw, 74px); width: auto; aspect-ratio: 4500 / 960; flex-shrink: 0; }
.brandmark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header .logo-dark { display: block; }
.header .logo-lime { display: none; }
.htools { display: flex; align-items: center; gap: 12px; }
.tmode {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: none; cursor: pointer; padding: 0; color: inherit;
}
.tmode .switch {
  position: relative; flex: none; width: 34px; height: 18px; border-radius: 999px;
  background: var(--ink-soft); opacity: 0.4; transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.tmode .knob {
  position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); transition: transform 0.3s var(--ease);
}
.tmode.on .switch { background: var(--brand); opacity: 1; }
.tmode.on .knob { transform: translateX(16px); }
.tmode [data-theme-label] { white-space: nowrap; line-height: 1.15; text-align: left; }
.docket {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px; border: 1.5px solid var(--brand); border-radius: 999px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.docket .cart-icon { flex: none; }

/* After Work mode: green logo + header text (docket excluded — always green) */
[data-theme="after"] .header a,
[data-theme="after"] .header button,
[data-theme="after"] .header .tmode { color: var(--brand); }
[data-theme="after"] .header .logo-dark { display: none; }
[data-theme="after"] .header .logo-lime { display: block; }

/* On the dark (After Work) background a plain outline reads a bit flat —
   fill it with a soft brand tint so the chip still pops against #0a0a0a */
[data-theme="after"] .header .docket { background: rgba(142, 237, 22, 0.14); }

/* solid header variant for interior pages (no hero behind) */
.header.solid {
  position: sticky; color: var(--ink);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header.solid a, .header.solid button { color: var(--ink); }
[data-theme="after"] .header.solid a,
[data-theme="after"] .header.solid button { color: var(--brand); }
[data-theme="after"] .header.solid { border-bottom-color: var(--line); }

/* Docket must stay green on every header variant/theme (higher specificity
   than the .header.solid a / [data-theme="after"] rules above) */
.header a.docket,
.header.solid a.docket,
[data-theme="after"] .header a.docket,
[data-theme="after"] .header.solid a.docket { color: var(--brand); }

/* =============== HERO (full-bleed campaign image) ================== */
.hero { position: relative; width: 100%; height: 100vh; min-height: 100svh; }
.hero .ph { position: absolute; inset: 0; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero .hero-copy {
  position: absolute; left: var(--gut); bottom: clamp(40px, 8vh, 90px);
  right: var(--gut); color: var(--overlay); mix-blend-mode: difference;
}
.hero h1 { font-size: clamp(48px, 13vw, 190px); }
.hero .hero-center {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center; padding: 0 var(--gut); pointer-events: none;
}
.hero .hero-logo-img { width: clamp(480px, 84vw, 1320px); height: auto; max-width: 92%; transform: translateY(-4vh);}
.hero .sub { max-width: 75vw; margin-top: 18px; font-size: clamp(12px, 1.1vw, 14px); }
.hero .hero-links { display: flex; gap: 26px; margin-top: 26px; }
.hero .hero-links a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}

/* =============== MARQUEE (running ticker) ========================= */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.marquee .track { display: inline-block; animation: slide 26s linear infinite; }
.marquee span {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 15px; letter-spacing: 0.06em; margin: 0 26px;
}
.marquee .dot { color: var(--brand); }
@keyframes slide { to { transform: translateX(-50%); } }

/* =============== SECTION INTRO ==================================== */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(28px, 4vw, 52px); }
.intro h2 { font-size: clamp(30px, 5vw, 68px); }
.intro .right { justify-self: end; max-width: 44ch; }
.intro .right p { color: var(--ink-soft); }

/* =============== EDITORIAL SPLIT (image + minimal text) =========== */
/* =============== INDOOR × OUTDOOR DUO (image pair, text baked-in) === */
.duo { width: 100%; height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.duo .ph { width: 100%; height: 100%; aspect-ratio: auto; }

/* =============== PRODUCT INDEX (image-first grid, no boxes) ======= */
.filters { display: flex; gap: 22px; align-items: baseline; flex-wrap: wrap; padding-bottom: 26px; }
.filters button {
  background: none; border: none; cursor: pointer; padding: 0 0 3px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid transparent;
}
.filters button.active, .filters button:hover { color: var(--ink); border-bottom-color: var(--brand); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 34px) clamp(12px, 1.6vw, 24px); }
.item { display: block; min-width: 0; }
.item .ph { aspect-ratio: 3/4; }
.item .ph .fig { display: none; }
.item .meta .cat { display: none; }
.item .ph .sold {
  position: absolute; inset: auto 0 0 0; padding: 8px 12px;
  background: rgba(0,0,0,0.72); color: #fff;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
}
.item .ph .new {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.item .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; gap: 12px; }
.item a.meta:hover .name { border-bottom: 1px solid var(--brand); }
.item .meta .name { font-size: 13px; font-weight: 500; }
.item .meta .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.item .meta .price { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
/* hover: quiet "draft PO" cue, fashion-minimal */
.item .add {
  margin-top: 10px; opacity: 0; height: 0; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; color: var(--ink); border: 1.5px solid var(--brand); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.item:hover .add, .item.is-sliding .add { opacity: 1; height: auto; }
.item .add:hover { background: rgba(142,237,22,0.14); }
[data-theme="after"] .item .add { color: var(--brand); }
[data-theme="after"] .item .add:hover { background: rgba(142,237,22,0.14); }

/* Size picker revealed in the add button's place. Keeping both in one
   fixed-height wrapper stops the card — and the whole grid row — from
   jumping when the button is swapped for the chips. */
.item .add-wrap { margin-top: 10px; min-height: 0; }
.item:hover .add-wrap, .item.is-sliding .add-wrap, .item.is-picking .add-wrap { min-height: 34px; }
.item .add { margin-top: 0; }
/* While picking, the card stays open even without a hover — on touch there
   is none, and the chips must survive the finger lifting off. */
.item.is-picking .add { opacity: 1; height: auto; }
.item.is-picking .add[hidden] { display: none; }

.item .size-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item .size-pick[hidden] { display: none; }
.item .size-chip {
  min-width: 34px; padding: 6px 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  background: none; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.item .size-chip:hover:not(.off) { border-color: var(--brand); background: rgba(142,237,22,0.14); }
.item .size-chip.off { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
[data-theme="after"] .item .size-chip { color: var(--brand); }

/* =============== PER-PRODUCT CAROUSEL (4 images, mode-ordered) ==== */
.item .pcar { position: relative; overflow: hidden; cursor: pointer; }
.item .ptrack { display: flex; transition: transform 0.5s var(--ease); touch-action: pan-y; }
.item .pslide { min-width: 100%; }
.item .pslide .ph { aspect-ratio: 3/4; }
.item .pnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; border: none;
  background: rgba(0,0,0,0.45); color: #fff; font-family: var(--font-mono); font-size: 14px;
  display: grid; place-items: center; opacity: 0; transition: opacity 0.3s var(--ease);
}
.item:hover .pnav { opacity: 1; }
.item .pnav:hover { background: var(--brand); color: #0a0a0a; }
.item .pnav.prev { left: 8px; }
.item .pnav.next { right: 8px; }
.item .pcount {
  position: absolute; bottom: 10px; right: 10px; z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: #fff;
  mix-blend-mode: difference;
}

/* =============== COLLECTION CAROUSEL (2-up, mode-ordered) ========= */
.ccarousel { position: relative; }
.ctrack { display: flex; transition: transform 0.8s var(--ease); }
.cslide {
  min-width: 50%; box-sizing: border-box;
  padding-right: clamp(12px, 1.6vw, 24px);
  display: block; color: inherit;
}
.cslide .ph { aspect-ratio: 3/4; }
.cslide .ph .new {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
}
.cslide .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; gap: 12px; }
.cslide .meta .name { font-size: 13px; font-weight: 500; }
.cslide .meta .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.cslide .meta .price { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.cslide .add {
  margin-top: 8px; opacity: 0; height: 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: none; padding: 0; cursor: pointer; color: var(--ink);
  border-bottom: 1px solid var(--brand); transition: opacity 0.3s var(--ease);
}
.cslide:hover .add { opacity: 1; height: auto; }

.ccarousel .car-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 15px;
  transition: border 0.3s var(--ease);
}
.ccarousel .car-nav:hover { border-color: var(--brand); }
.ccarousel .car-nav.prev { left: -12px; }
.ccarousel .car-nav.next { right: -12px; }
.car-dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer; background: none; border: 1px solid var(--ink-soft); }
.car-dots button.on { background: var(--brand); border-color: var(--brand); }
@media (max-width: 720px) {
  .cslide { min-width: 100%; padding-right: 0; }
  .ccarousel .car-nav.prev { left: 4px; }
  .ccarousel .car-nav.next { right: 4px; }
}

/* =============== FULL-BLEED CAMPAIGN IMAGE ======================= */
.campaign { position: relative; height: clamp(460px, 78vh, 820px); }
.campaign .ph { position: absolute; inset: 0; }
.campaign .cap {
  position: absolute; left: var(--gut); bottom: clamp(30px, 6vh, 70px); right: var(--gut);
  color: #fff; mix-blend-mode: difference;
}
.campaign .cap h2 { font-size: clamp(34px, 7vw, 108px); }
.campaign .cap .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
.campaign .cap a { display: inline-block; margin-top: 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid currentColor; }

/* =============== LOOKBOOK MOSAIC (mostly portrait 3:4, ~15% wide) = */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.mosaic .ph { aspect-ratio: 3/4; }
.mosaic .ph:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* =============== QUOTE STRIP ===================================== */
.quote { text-align: center; padding: clamp(70px, 12vw, 150px) var(--gut); }
.quote p { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 4vw, 52px); line-height: 1.08; max-width: 22ch; margin: 0 auto; }
.quote .by { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 26px; }

/* =============== NEWSLETTER / FOOTER ============================ */
.foot { display: flex; flex-direction: column; gap: 20px; padding: 20px var(--gut); }
.foot-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot-nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.foot-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.foot-bottom { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft); }

/* =============== POLICY PAGES (refund / privacy) ================= */
.policy-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 0; border: 1.5px solid var(--brand); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch button {
  background: none; border: none; cursor: pointer; color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 16px; transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-switch button.on { background: var(--brand); color: #0a0a0a; }
.lang-switch button:not(.on):hover { background: rgba(142,237,22,0.14); }

.policy-body { max-width: 74ch; padding: clamp(30px, 5vw, 56px) 0 clamp(70px, 10vw, 120px); }
.policy-body .updated { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 clamp(24px, 4vw, 40px); }
.policy-body section { padding: 22px 0; border-top: 1px solid var(--line); }
.policy-body section:first-of-type { border-top: none; padding-top: 0; }
.policy-body h2 { font-family: var(--font-mono); font-size: clamp(13px, 1.6vw, 15px); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 12px; }
.policy-body p { margin: 0 0 12px; color: var(--ink-soft); }
.policy-body p:last-child { margin-bottom: 0; }
.policy-body ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-soft); }
.policy-body li { margin-bottom: 6px; }
.policy-body a { color: var(--brand); border-bottom: 1px solid var(--brand); }

/* Language visibility — before policy.js runs both copies are in the DOM;
   `.lang-ready` on <html> is what switches to showing only one. */
.lang-ready [data-lang] { display: none; }
.lang-ready[data-policy-lang="th"] [data-lang="th"],
.lang-ready[data-policy-lang="en"] [data-lang="en"] { display: block; }

/* =============== CHECKOUT / PURCHASE ORDER (minimal doc) ========= */
.co-head { padding-top: clamp(40px, 6vw, 60px); }
.co-head .crumbs { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.co-head h1 { font-size: clamp(40px, 9vw, 120px); margin-top: 16px; }
.po-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; padding: 50px 0 100px; }
.po-doc { position: relative; border-top: 2px solid var(--ink); }
.po-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.po-row h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; font-weight: 500; }
.po-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.po-num { font-family: var(--font-mono); font-size: 14px; color: var(--brand); }
.po-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-align: right; line-height: 1.9; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select { font-family: var(--font-body); font-size: 14px; padding: 10px 0; border: none; border-bottom: 1px solid var(--line); background: none; color: var(--ink); outline: none; }
.field input:focus, .field select:focus { border-bottom-color: var(--brand); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
table.po-items { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; }
table.po-items th, table.po-items td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
table.po-items .n { text-align: right; }
.status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--ink-soft); color: var(--ink-soft); display: inline-block; }
.status.approved { border-color: var(--brand); color: #0a0a0a; background: var(--brand); }
.sum { position: sticky; top: 90px; border-top: 2px solid var(--ink); padding-top: 22px; }
.sum .row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; padding: 9px 0; color: var(--ink-soft); }
.sum .row.total { color: var(--ink); font-size: 18px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum .row.total b { color: var(--brand); }
.btn-auth-code { display: block; margin-left: auto; background: none; border: none; color: var(--ink-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; cursor: pointer; padding: 0; transition: color 0.25s var(--ease); }
.btn-auth-code:hover { color: var(--ink); }
/* Honeypot. Kept out of the layout and out of the accessibility tree rather
   than `display:none`, which some bots skip. Anything typed in here can only
   have come from a script that filled every input it found. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Out-of-stock line in the docket, set by checkout.js when the server refuses
   a quantity that is no longer available. */
.po-items tr.oos td { color: var(--danger, #c0392b); }
.po-items tr.oos td::after { content: ""; }
.oos-flag { display: inline-block; margin-left: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--danger, #c0392b); border: 1px solid currentColor; padding: 1px 5px; border-radius: 2px; }

.sign { border: 1px dashed var(--line); height: 84px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin: 18px 0; letter-spacing: 0.08em; }
.authbtn { width: 100%; padding: 18px; background: var(--brand); color: #0a0a0a; border: none; cursor: pointer; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.authbtn:disabled { opacity: 1; }
.post-cta { display: none; gap: 18px; margin-top: 18px; }
.post-cta a { flex: 1; text-align: center; padding: 14px; border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* APPROVED stamp */
.stamp {
  position: absolute; top: 46%; left: 46%;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.4);
  opacity: 0; pointer-events: none; z-index: 20; text-align: center;
  color: var(--brand); border: 4px double var(--brand); padding: 12px 22px;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
}
.stamp .big { font-size: 30px; letter-spacing: 0.04em; line-height: 1; }
.stamp .sm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; margin-top: 6px; }
.stamp.show { animation: slam 0.5s var(--ease) forwards; }
@keyframes slam {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(-14deg) scale(2.6); }
  60% { opacity: 1; transform: translate(-50%,-50%) rotate(-14deg) scale(0.94); }
  100% { opacity: 0.94; transform: translate(-50%,-50%) rotate(-14deg) scale(1); }
}
.shake { animation: shake 0.4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* =============== PRODUCT DETAIL (dedicated page — GM-style stacked gallery) ================= */
.pd-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; padding: 30px 0 clamp(50px, 8vw, 90px); }

/* Packshot gallery: full images stacked vertically on desktop, scrolled
   past the sticky info panel — no thumbnail-swap viewer. */
.pd-gallery { display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 16px); }
.pd-gallery .ph { aspect-ratio: 3/4; }

/* Dash-tick progress indicator for the mobile packshot carousel */
.pd-progress { display: none; }

.pd-panel { position: sticky; top: 100px; }
.pd-panel .kicker { margin-bottom: 10px; }
.pd-panel h1 { font-size: clamp(20px, 2.8vw, 32px); }
.pd-price { font-family: var(--font-mono); font-size: 18px; margin: 0; }
.pd-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 22px; }
.pd-block { padding: 18px 0; border-top: 1px solid var(--line); }
.pd-block h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; font-weight: 500; }
.pd-swatches { display: flex; gap: 10px; }
.pd-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.pd-swatch.on { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Each colourway is its own product page, so swatches are links. */
.pd-swatch { display: block; text-decoration: none; }
.pd-swatch.sold { opacity: 0.4; }
.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-size { min-width: 44px; padding: 9px 6px; text-align: center; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; font-family: var(--font-mono); font-size: 12px; }
.pd-size.on, .pd-size:hover:not(.off) { border-color: var(--brand); color: var(--ink); background: rgba(142,237,22,0.12); }
.pd-size.off { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.pd-desc p { color: var(--ink-soft); margin: 0 0 10px; }
table.kpi-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; margin-top: 4px; }
table.kpi-table th, table.kpi-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.kpi-table th { color: var(--ink-soft); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
table.kpi-table td:first-child, table.kpi-table th:first-child { padding-left: 0; }

/* Styling / lookbook strip — peeking horizontal carousel (both desktop
   and mobile), matching the reference site's "Campaign" section. */
.pd-styling { padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 10vw, 130px); }
.pd-styling .styling-head { padding-bottom: clamp(16px, 3vw, 26px); }
.pd-styling .styling-head h3 {
  font-family: var(--font-mono); font-size: clamp(16px, 2vw, 20px); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); font-weight: 700; margin: 0;
}
.pd-styling-track {
  display: flex; gap: clamp(10px, 1.6vw, 18px);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 0 var(--gut); scrollbar-width: none;
}
.pd-styling-track::-webkit-scrollbar { display: none; }
.pd-styling-track .ph { flex: 0 0 82vw; scroll-snap-align: center; aspect-ratio: 4/5; }

/* Arrows + dots: pointer-based, not width-based. A desktop mouse has no
   horizontal scroll axis, so it needs these regardless of window size —
   whereas touchscreens already swipe the track directly and would just get
   the photos covered up. */
.pd-styling-viewport { position: relative; }
.pd-snav, .pd-styling-dots { display: none; }

@media (min-width: 901px) {
  .pd-styling-track .ph { flex-basis: 36vw; }
}

@media (hover: hover) and (pointer: fine) {
  .pd-snav {
    display: grid; place-items: center;
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    /* The pill stays white in both themes, so the glyph can't follow --ink —
       it would turn near-white (and vanish) in After Work mode. */
    background: rgba(255, 255, 255, 0.86); color: #0d0d0d;
    font-size: 18px; line-height: 1; cursor: pointer;
    opacity: 0; transition: opacity 0.25s var(--ease), background 0.2s var(--ease);
    z-index: 2;
  }
  .pd-styling-viewport:hover .pd-snav { opacity: 1; }
  .pd-snav:focus-visible { opacity: 1; outline: 2px solid #0d0d0d; outline-offset: 2px; }
  .pd-snav:hover { background: #fff; }
  .pd-snav[disabled] { opacity: 0 !important; pointer-events: none; }
  .pd-snav.prev { left: calc(var(--gut) / 2); }
  .pd-snav.next { right: calc(var(--gut) / 2); }

  .pd-styling-dots {
    display: flex; justify-content: center; gap: 8px;
    padding-top: clamp(16px, 2vw, 24px);
  }
  .pd-styling-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
    background: var(--ink); opacity: 0.22; cursor: pointer;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .pd-styling-dots button:hover { opacity: 0.5; }
  .pd-styling-dots button[aria-current="true"] { opacity: 1; transform: scale(1.25); }
}

/* Nothing to scroll (all looks already fit) — JS sets this. */
.pd-styling-viewport.no-scroll .pd-snav,
.pd-styling-dots.no-scroll { display: none; }

/* =============== REVEAL ========================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============== RESPONSIVE ===================================== */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 12px; }
  .intro .right { justify-self: start; }
  .duo { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; height: 100vh; min-height: 100svh; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-grid { grid-template-columns: 1fr; }
  .po-grid aside { order: -1; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-panel { position: static; }

  /* Packshot gallery becomes a swipe carousel */
  .pd-gallery {
    flex-direction: row; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pd-gallery::-webkit-scrollbar { display: none; }
  .pd-gallery .ph { flex: 0 0 100%; scroll-snap-align: start; }

  /* Dash-tick progress indicator under the carousel */
  .pd-progress { display: flex; gap: 6px; justify-content: center; padding: 12px 0 4px; }
  .pd-progress .seg { height: 2px; width: 14px; border-radius: 2px; background: var(--line); transition: width 0.25s ease, background 0.25s ease; }
  .pd-progress .seg.on { width: 22px; background: var(--ink); }
  [data-theme="after"] .pd-progress .seg.on { background: var(--brand); }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .m-wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g2 { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}

/* Header: shrink the logo's own min-height (still locked to its true
   aspect-ratio) and tighten the mode/docket controls on narrow phones so
   nothing has to fight for space — this is what previously forced the
   logo out of ratio via flex-shrink. */
@media (max-width: 480px) {
  .header .logo { height: clamp(28px, 7.5vw, 74px); }
  .tmode { font-size: 9px; gap: 3px; }
  .tmode .switch { width: 28px; height: 15px; }
  .tmode .knob { width: 11px; height: 11px; }
  .docket { font-size: 10px; gap: 5px; padding: 5px 10px; }
}

/* Header: drop the Work Mode toggle on narrow screens so the logo keeps
   its ratio and the bar doesn't overflow/squish */
@media (max-width: 390px) {
  .htools { gap: 14px; }
  .tmode { display: none; }
}

/* =============== COOKIE CONSENT ================= */
/* Centred modal over a dim backdrop. Both choices sit on the same row with
   identical size and type weight — only the fill differs — so this stays on
   the right side of the EDPB's deceptive-design guidance. */
.cc {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cc.in { opacity: 1; }
.cc-panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 2 * clamp(16px, 4vw, 40px));
  overflow-y: auto;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
  outline: none;
}
.cc.in .cc-panel { transform: none; }
[data-theme="after"] .cc-panel { box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7); }

.cc-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.25;
  letter-spacing: -0.01em; text-transform: none;
  margin: 0 0 12px;
}
.cc-body { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 24px; }

.cc-actions {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.cc-btns { display: flex; gap: 10px; }
.cc-policy {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.cc-policy:hover { color: var(--ink); border-color: var(--brand); }

.cc-btn {
  cursor: pointer; border-radius: 999px; padding: 11px 22px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.cc-btn.solid { background: var(--brand); border: 1.5px solid var(--brand); color: #0a0a0a; }
.cc-btn.solid:hover { filter: brightness(1.07); }
.cc-btn.ghost { background: none; border: 1.5px solid var(--line); color: var(--ink); }
.cc-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

.cc-row { display: flex; align-items: flex-start; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cc-row:first-child { padding-top: 0; }
.cc-row-text { flex: 1; min-width: 0; }
.cc-row-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 5px; }
.cc-row-desc { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.cc-detail .cc-actions { padding-top: 20px; }
.cc-always { flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }

.cc-switch { flex: none; position: relative; width: 44px; height: 24px; cursor: pointer; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-knob {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line); border: 1.5px solid var(--line);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
  pointer-events: none;
}
.cc-knob::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%; background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s var(--ease);
}
.cc-switch input:checked + .cc-knob { background: var(--brand); border-color: var(--brand); }
.cc-switch input:checked + .cc-knob::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-knob { outline: 2px solid var(--brand); outline-offset: 3px; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .cc-actions { flex-direction: column-reverse; align-items: stretch; }
  .cc-btns { width: 100%; }
  .cc-btn { flex: 1 1 0; text-align: center; padding: 12px 10px; }
  .cc-policy { text-align: center; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cc, .cc-panel { transition: none; }
}
