/* =====================================================================
   ShowFold shop family · shared design system v0.1
   ---------------------------------------------------------------------
   One :root set (shared scale + the flagship's raw colours) and one
   override set per shop. Put data-shop="van|awning|motor|camp|parts"
   on <html>. Dark: data-mode="dark" on the same element, or the OS
   setting when data-mode is absent. data-mode="light" forces light.
   Components respond to their container (container queries), not the
   viewport, so a block renders the same in a page or in a sidebar.
   ===================================================================== */

/* ---------- 1. Shared scale + flagship raw tokens ---------- */
:root {
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --fs-xs: .75rem;   --fs-sm: .875rem; --fs-md: 1rem;    --fs-lg: 1.125rem;
  --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem; --fs-4xl: 3rem; --fs-5xl: 4rem;
  --lh-tight: 1.08; --lh-snug: 1.3; --lh-body: 1.5;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --maxw: 1312px; --gutter: 16px; --tap: 44px;

  /* Shop personality (flagship = van conversion) */
  --accent-l: #2546C8;  --on-accent-l: #FFFFFF; --accent-ink-l: #2546C8; --tone-l: #ECE4D6;
  --accent-d: #9DB1FF;  --on-accent-d: #0E1530; --accent-ink-d: #9DB1FF; --tone-d: #2A2620;
  --stretch: 125%;  /* display width axis, Archivo wdth: wide is the family signature */
  --dw: 820;        /* display weight: the per-shop lever */
  --radius: 4px;
  --hero-bg-l: #2546C8; --hero-ink-l: #FFFFFF; --hero-art-l: #FFFFFF;
}

/* ---------- 2. One override set per shop ---------- */
[data-shop="van"] { /* the flagship, repeated so a van block nested in another theme still resolves to van */
  --accent-l: #2546C8;  --on-accent-l: #FFFFFF; --accent-ink-l: #2546C8; --tone-l: #ECE4D6;
  --accent-d: #9DB1FF;  --on-accent-d: #0E1530; --accent-ink-d: #9DB1FF; --tone-d: #2A2620;
  --stretch: 125%; --dw: 820; --radius: 4px;
  --hero-bg-l: #2546C8; --hero-ink-l: #FFFFFF; --hero-art-l: #FFFFFF;
}
[data-shop="awning"] { /* open sky, taut fabric, sun */
  --accent-l: #F0B90B; --on-accent-l: #1A1A17; --accent-ink-l: #7A5800; --tone-l: #E4F0FA;
  --accent-d: #F5C842; --on-accent-d: #1A1A17; --accent-ink-d: #F5C842; --tone-d: #16232D;
  --stretch: 118%; --dw: 540; --radius: 14px;
  --hero-bg-l: #F0B90B; --hero-ink-l: #1A1A17; --hero-art-l: #1A1A17;
}
[data-shop="motor"] { /* the road trip, reliable, practical */
  --accent-l: #C0362C; --on-accent-l: #FFFFFF; --accent-ink-l: #B0302A; --tone-l: #ECEEF0;
  --accent-d: #FF8A7A; --on-accent-d: #2A0B07; --accent-ink-d: #FF8A7A; --tone-d: #22262A;
  --stretch: 112%; --dw: 760; --radius: 8px;
  --hero-bg-l: #C0362C; --hero-ink-l: #FFFFFF; --hero-art-l: #FFFFFF;
}
[data-shop="camp"] { /* the evening at the pitch, warm, sociable */
  --accent-l: #7A2E63; --on-accent-l: #FFFFFF; --accent-ink-l: #7A2E63; --tone-l: #F6E8D6;
  --accent-d: #E7A3D2; --on-accent-d: #2A0D22; --accent-ink-d: #E7A3D2; --tone-d: #2C2219;
  --stretch: 110%; --dw: 400; --radius: 18px;
  --hero-bg-l: #4A1A3C; --hero-ink-l: #F6E8D6; --hero-art-l: #F2C27A;
}
[data-shop="parts"] { /* calm, exact, fast */
  --accent-l: #0D6B6B; --on-accent-l: #FFFFFF; --accent-ink-l: #0D6B6B; --tone-l: #E8EFEE;
  --accent-d: #6FD1C8; --on-accent-d: #062221; --accent-ink-d: #6FD1C8; --tone-d: #1A2423;
  --stretch: 125%; --dw: 320; --radius: 2px;
  --hero-bg-l: #0F2524; --hero-ink-l: #E8EFEE; --hero-art-l: #6FD1C8;
}

/* ---------- 3. Mode mapping (declared on the shop element itself, so a
   nested [data-shop] re-resolves its own accent) ---------- */
[data-shop] {
  --bg: #FBFAF8; --surface: #FFFFFF; --ink: #17181A; --ink-2: #45484D; --ink-3: #5E6268;
  --line: #E2DFD9; --line-strong: #8A8780;
  --well: #F3F1EC; --well-ink: #5E6268;           /* the packshot plinth: always light */
  --ok: #1E7A3C;  --ok-bg: #E5F2E9;
  --warn: #8A5300; --warn-bg: #FAEFD9;
  --danger: #B42318; --danger-bg: #FBE8E6; --on-danger: #FFFFFF;
  --accent: var(--accent-l); --on-accent: var(--on-accent-l);
  --accent-ink: var(--accent-ink-l); --tone: var(--tone-l);
  --focus: var(--accent-ink);
  --hero-bg: var(--hero-bg-l); --hero-ink: var(--hero-ink-l); --hero-art: var(--hero-art-l);
  --shadow: 0 1px 2px rgba(23,24,26,.06), 0 8px 24px rgba(23,24,26,.07);
}
[data-shop][data-mode="dark"] {
  --bg: #131416; --surface: #1C1E21; --ink: #F3F2EF; --ink-2: #C9C7C2; --ink-3: #A19F9A;
  --line: #30333A; --line-strong: #75787E;
  --well: #ECE9E3; --well-ink: #5E6268;
  --ok: #6DD49A; --ok-bg: #173323; --warn: #F2B655; --warn-bg: #3A2B10;
  --danger: #FF8F85; --danger-bg: #3D1916; --on-danger: #1A0806;
  --accent: var(--accent-d); --on-accent: var(--on-accent-d);
  --accent-ink: var(--accent-ink-d); --tone: var(--tone-d);
  --hero-bg: var(--tone-d); --hero-ink: var(--ink); --hero-art: var(--accent-ink-d);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: dark) {
  [data-shop]:not([data-mode="light"]) {
    --bg: #131416; --surface: #1C1E21; --ink: #F3F2EF; --ink-2: #C9C7C2; --ink-3: #A19F9A;
    --line: #30333A; --line-strong: #75787E;
    --well: #ECE9E3; --well-ink: #5E6268;
    --ok: #6DD49A; --ok-bg: #173323; --warn: #F2B655; --warn-bg: #3A2B10;
    --danger: #FF8F85; --danger-bg: #3D1916; --on-danger: #1A0806;
    --accent: var(--accent-d); --on-accent: var(--on-accent-d);
    --accent-ink: var(--accent-ink-d); --tone: var(--tone-d);
    --hero-bg: var(--tone-d); --hero-ink: var(--ink); --hero-art: var(--accent-ink-d);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

/* Family colours, for the family strip and footer (fixed, decorative) */
[data-to="van"] { --dot: #2546C8; } [data-to="awning"] { --dot: #E0A800; }
[data-to="motor"] { --dot: #C0362C; } [data-to="camp"] { --dot: #7A2E63; }
[data-to="parts"] { --dot: #0D6B6B; }

/* ---------- 4. Base ---------- */
.shop {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-md); line-height: var(--lh-body);
  container-type: inline-size; -webkit-font-smoothing: antialiased;
}
.shop *, .shop *::before, .shop *::after { box-sizing: border-box; }
.shop :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset, legend) { margin: 0; padding: 0; }
.shop :where(ul, ol) { list-style: none; }
.shop a { color: var(--accent-ink); text-underline-offset: .18em; }
.shop img { max-width: 100%; display: block; }
.shop :focus-visible, .shop .is-focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 5. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s7); }
.section--tone { background: var(--tone); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.eyebrow { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@container (min-width: 900px) {
  .wrap { padding-inline: var(--s8); max-width: calc(var(--maxw) + 2 * var(--s8)); }
  .section { padding-block: var(--s9); }
  .only-m { display: none !important; }
}

/* ---------- 6. Type ---------- */
.t-display, .t-h1, .t-h2, .t-h3 { font-stretch: var(--stretch); font-weight: var(--dw); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; } /* whole words in headlines; soft hyphens (&shy;) only where an editor places them */
.t-display { font-size: 2.375rem; line-height: 1; letter-spacing: -.035em; }
.t-h1 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
.t-h2 { font-size: var(--fs-2xl); line-height: 1.15; }
.t-h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
.t-lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 40ch; }
.t-small { font-size: var(--fs-sm); color: var(--ink-2); }
.t-xs { font-size: var(--fs-xs); color: var(--ink-3); }
@container (min-width: 900px) { .t-display { font-size: 5rem; line-height: .98; } .t-h2 { font-size: var(--fs-3xl); } .stage__name { font-stretch: 100%; } }

/* ---------- 7. Family strip ---------- */
.fam { background: var(--surface); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.fam__list { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; }
.fam__name { display: inline-flex; align-items: center; min-height: var(--tap); padding-right: var(--s2); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.shop .fam__link { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s2); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.shop .fam__link:hover { color: var(--ink); }
.shop .fam__link[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--dot); }
.fam__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }

/* ---------- 8. Header ---------- */
.hdr { background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); min-height: 64px; }
.logo { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1; color: var(--ink); text-decoration: none; margin-right: auto; padding-block: var(--s2); }
.shop a.logo { color: var(--ink); text-decoration: none; }
.logo__fam { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.logo__name { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xl); font-stretch: var(--stretch); font-weight: var(--dw); }
.logo__mark { width: 12px; height: 12px; background: var(--accent); border-radius: min(var(--radius), 6px); flex: none; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.shop a.iconbtn { color: var(--ink); }
.iconbtn:hover { background: var(--tone); }
.iconbtn svg { width: 22px; height: 22px; }
.count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.search { display: flex; order: 9; flex-basis: 100%; margin-bottom: var(--s3); }
.search__input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 var(--s4); border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--surface); color: var(--ink); font: inherit; }
.search__input::placeholder { color: var(--ink-3); }
.search__btn { width: 52px; min-height: var(--tap); border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.search__btn svg { width: 20px; height: 20px; }
.nav { display: none; border-top: 1px solid var(--line); }
.nav ul { display: flex; gap: var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s3); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.nav a:hover, .nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
@container (min-width: 900px) {
  .hdr__bar { flex-wrap: nowrap; min-height: 80px; gap: var(--s3); }
  .logo { margin-right: var(--s6); }
  .search { order: 0; flex: 1 1 auto; max-width: 560px; margin: 0 auto 0 0; }
  .nav { display: block; }
}
.ctx { background: var(--accent); color: var(--on-accent); font-size: var(--fs-sm); }
.ctx .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); }
.shop .ctx a { color: inherit; font-weight: 650; }

/* ---------- 9. Hero + signature tool shell ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding-block: var(--s6) var(--s7); overflow: hidden; }
.hero .t-lede, .hero .eyebrow { color: inherit; }
.hero .t-lede { opacity: .9; }
.hero .tool, .hero .garage, .hero .set { color: var(--ink); }
.hero__grid { display: grid; gap: var(--s6); }
.hero__copy { display: grid; gap: var(--s4); align-content: start; }
.hero__art { display: block; width: 100%; height: auto; color: var(--hero-art); }
@container (min-width: 900px) {
  .hero { padding-block: var(--s8); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: center; }
}
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: var(--s5); display: grid; gap: var(--s4); box-shadow: var(--shadow); }
.tool__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.tool__title { font-size: var(--fs-lg); font-weight: 700; font-stretch: var(--stretch); }
.tool__step { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- 10. Form controls ---------- */
.fields { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.hint { font-size: var(--fs-xs); color: var(--ink-3); }
.control { width: 100%; min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; }
.control:hover { border-color: var(--ink-2); }
.control:focus-visible, .control.is-focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.select { position: relative; }
.select .control { appearance: none; padding-right: 40px; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field--error .control { border: 2px solid var(--danger); }
.error-msg { display: flex; gap: 6px; align-items: center; color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }
.error-msg svg { width: 16px; height: 16px; flex: none; }
.seg { display: flex; gap: 3px; padding: 3px; background: var(--tone); border-radius: calc(var(--radius) + 3px); border: 0; }
.seg label { position: relative; flex: 1; min-height: 38px; display: grid; place-items: center; padding: 0 var(--s2); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-align: center; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:checked), .seg .is-on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; }
.shop a.chip { color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--tap); font-size: var(--fs-sm); font-weight: 600; }
.switch input { appearance: none; position: relative; flex: none; width: 48px; height: 28px; margin: 0; border-radius: 14px; background: var(--line-strong); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(20px); }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.qty button { width: var(--tap); height: var(--tap); border: 0; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; border-radius: var(--radius); }
.qty input { width: 40px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; text-align: center; }

/* ---------- 11. Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5); border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-size: var(--fs-md); font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn--primary, .shop a.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary.is-hover { background: color-mix(in oklab, var(--accent) 84%, var(--ink)); }
.btn--secondary, .shop a.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--tone); border-color: var(--ink); }
.btn--ghost, .shop a.btn--ghost { background: transparent; color: var(--accent-ink); padding-inline: var(--s2); text-decoration: underline; text-decoration-thickness: 1px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: 0 var(--s3); font-size: var(--fs-sm); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--ink-3); border-color: transparent; cursor: not-allowed; }

/* ---------- 12. Commerce atoms ---------- */
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: min(var(--radius), 6px); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.badge--new { background: var(--accent); color: var(--on-accent); }
.badge--top { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--deal { background: var(--danger); color: var(--on-danger); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s2); row-gap: 2px; }
.price__now { font-size: var(--fs-lg); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price--deal .price__now { color: var(--danger); }
.price__was { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; }
.price__save { font-size: var(--fs-xs); font-weight: 700; color: var(--danger); }
.price__vat { flex-basis: 100%; font-size: 11px; color: var(--ink-3); }
.price__unit { flex-basis: 100%; font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.price--lg .price__now { font-size: var(--fs-3xl); font-stretch: var(--stretch); }
.price--lg .price__was { font-size: var(--fs-md); }

.stock { display: inline-flex; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); font-weight: 650; line-height: 1.35; }
.stock::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); }
.stock--req, .stock--end { color: var(--warn); }
.stock--req::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.stock--end::before { border-radius: 2px; }
.stock--out { color: var(--danger); }
.stock--out::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.stock--gone { color: var(--ink-3); }
.stock--gone::before { width: 10px; height: 2px; margin-top: 7px; border-radius: 1px; }
.stock__sub { display: block; font-weight: 400; color: var(--ink-2); }

.fit { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 650; }
.fit svg { width: 16px; height: 16px; flex: none; }
.fit--yes { background: var(--ok-bg); color: var(--ok); }
.fit--check { background: var(--warn-bg); color: var(--warn); }
.fit--no { background: var(--danger-bg); color: var(--danger); }

/* ---------- 13. Product card + photo well ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
@container (min-width: 900px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); } }
.card { position: relative; display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.well { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--well); border-radius: var(--radius); overflow: hidden; }
.well > img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; } /* white packshot melts into the plinth */
.well > svg { width: 76%; height: 76%; }
.card .well { margin-bottom: var(--s1); }
.card__flags { position: absolute; top: var(--s2); left: var(--s2); z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.card__brand { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.card__name { font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; }
.shop .card__name a { color: var(--ink); text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__name a { text-decoration: underline; }
.card__sku { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.card__foot { margin-top: auto; display: grid; gap: 6px; padding-top: var(--s1); }
.card__ship { font-size: var(--fs-xs); color: var(--ink-2); }
.card__add { position: relative; z-index: 1; }

.nophoto { display: grid; justify-items: center; gap: 6px; padding: var(--s3); text-align: center; color: var(--well-ink); }
.nophoto svg { width: 46%; height: auto; color: #A9A6A0; }
.nophoto__brand { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--well-ink); }
.nophoto__note { font-size: 11px; color: var(--well-ink); }

.skel { background: var(--line); border-radius: var(--radius); animation: skel 1.4s ease-in-out infinite; }
.skel--line { height: 12px; border-radius: 3px; }
@keyframes skel { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

.alert { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); background: var(--surface); }
.alert svg { width: 20px; height: 20px; }
.alert--error { background: var(--danger-bg); border-color: var(--danger); }
.alert--error svg { color: var(--danger); }
.alert--info { background: var(--tone); }
.alert b { display: block; margin-bottom: 2px; }

/* ---------- 14. Home blocks ---------- */
.stages { display: grid; border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: var(--s3); min-height: 68px; padding-inline: var(--s1); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.shop a.stage { color: var(--ink); text-decoration: none; }
.stage:hover { background: var(--tone); }
.stage__n { font-family: var(--mono); font-size: var(--fs-sm); color: var(--accent-ink); }
.stage__name { font-size: var(--fs-lg); font-weight: 650; font-stretch: var(--stretch); line-height: 1.2; }
.stage__meta { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 400; font-stretch: 100%; color: var(--ink-3); }
.stage svg { width: 20px; height: 20px; color: var(--ink-3); }
@container (min-width: 900px) {
  .stages { grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
  .stage { grid-template-columns: 1fr; align-content: start; gap: var(--s3); min-height: 168px; padding: var(--s4); border-bottom: 0; border-right: 1px solid var(--line); }
  .stage:last-child { border-right: 0; }
  .stage > svg { display: none; }
}
.promises { display: grid; gap: var(--s4); font-size: var(--fs-sm); color: var(--ink-2); }
.promise { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; }
.promise svg { width: 22px; height: 22px; color: var(--accent-ink); }
.promise b { display: block; color: var(--ink); }
@container (min-width: 900px) { .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }

.sister { display: grid; gap: var(--s4); padding: var(--s5); background: var(--tone); border-radius: calc(var(--radius) + 6px); }
.sister__head { display: grid; gap: var(--s2); align-content: start; }
.sister__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@container (min-width: 900px) {
  .sister { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: center; padding: var(--s7); }
  .sister__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
}

.ftr { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--s7) var(--s5); font-size: var(--fs-sm); }
.ftr__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.ftr h2 { margin-bottom: var(--s2); font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.shop .ftr li a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; color: var(--ink); text-decoration: none; }
.shop .ftr li a:hover { text-decoration: underline; }
.ftr__base { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--ink-3); }
@container (min-width: 900px) { .ftr__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.cookie { display: grid; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); font-size: var(--fs-sm); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.cookie__actions .btn { width: 100%; }
.cookie__more { grid-column: 1 / -1; justify-self: center; }
@container (min-width: 900px) {
  .cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s6); }
  .cookie__actions { grid-template-columns: auto 200px 200px; align-items: center; }
  .cookie__more { grid-column: auto; order: -1; }
}

/* ---------- 15. Signature-tool parts ---------- */
.result { display: grid; gap: var(--s3); padding: var(--s4); background: var(--tone); border-radius: var(--radius); }
.result__size { font-size: var(--fs-3xl); font-weight: var(--dw); font-stretch: var(--stretch); line-height: 1; font-variant-numeric: tabular-nums; }
.garage { display: grid; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.vehicle { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s3); align-items: center; }
.vehicle__icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--tone); color: var(--accent-ink); border-radius: var(--radius); }
.vehicle__icon svg { width: 30px; height: 30px; }
.set { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); box-shadow: var(--shadow); }
.set__head { padding: var(--s4); display: grid; gap: var(--s2); }
.set__item { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.set__item .well { width: 56px; border-radius: calc(var(--radius) - 6px); }
.set__total { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--tone); }
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.brands .btn { padding-inline: var(--s2); }
.xv { padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.xv svg { display: block; width: 100%; height: auto; color: var(--ink-2); }
.parts { display: grid; border-top: 1px solid var(--line); }
.part { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); padding: var(--s4) var(--s2); border-bottom: 1px solid var(--line); }
.part.is-on { background: var(--tone); }
.part__n { width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.part.is-on .part__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.part__body { display: grid; gap: 6px; min-width: 0; }
.part__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.part__name { font-weight: 650; }
.part__no { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.part__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); }
.hl { background: var(--warn-bg); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- 16. Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-block: var(--s3); font-size: var(--fs-xs); color: var(--ink-3); }
.shop .crumbs a { color: var(--ink-2); }
.gallery { display: grid; gap: var(--s2); }
.gallery__count { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: #FFFFFF; color: #45484D; font-size: 11px; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.thumb { padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: transparent; cursor: pointer; }
.thumb[aria-current="true"] { border: 2px solid var(--ink); }
.vp { display: grid; gap: var(--s3); border: 0; min-width: 0; }
.vp__legend { display: flex; justify-content: space-between; gap: var(--s3); width: 100%; margin-bottom: var(--s3); font-size: var(--fs-sm); font-weight: 650; }
.vp__legend span { font-weight: 400; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swatch { position: relative; display: grid; justify-items: center; gap: 6px; width: 72px; font-size: 11px; color: var(--ink-2); text-align: center; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch__chip { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.swatch:has(input:checked) .swatch__chip, .swatch.is-on .swatch__chip { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch:has(input:focus-visible) .swatch__chip { outline: 3px solid var(--focus); outline-offset: 3px; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.opt { position: relative; display: grid; gap: 2px; align-content: center; min-height: 58px; padding: var(--s2) var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt__main { font-weight: 650; font-variant-numeric: tabular-nums; }
.opt__sub { font-size: 11px; color: var(--ink-3); }
.opt:has(input:checked), .opt.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--tone); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt--req .opt__sub { color: var(--warn); font-weight: 600; }
.opt--out { border-style: dashed; }
.opt--out .opt__main { color: var(--ink-3); text-decoration: line-through; }
.vlist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vrow { display: grid; grid-template-columns: 20px 1fr auto; gap: var(--s3); align-items: center; min-height: 52px; padding: 0 var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.vrow:first-child { border-top: 0; }
.vrow input { margin: 0; accent-color: var(--ink); width: 18px; height: 18px; }
.vrow.is-on { background: var(--tone); }
.buy { display: grid; gap: var(--s4); padding-block: var(--s5); border-block: 1px solid var(--line); }
.buy__row { display: flex; gap: var(--s3); }
.buy__row .btn { flex: 1; }
.facts { display: grid; gap: var(--s3); font-size: var(--fs-sm); color: var(--ink-2); }
.fact { display: grid; grid-template-columns: 20px 1fr; gap: var(--s3); align-items: start; }
.fact svg { width: 20px; height: 20px; color: var(--ink-3); }
.fact b { color: var(--ink); font-weight: 650; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.spec dt, .spec dd { padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.spec dt { color: var(--ink-2); padding-right: var(--s3); }
.spec dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.u { margin-left: 2px; font-weight: 400; color: var(--ink-3); }
.rel { display: grid; border-top: 1px solid var(--line); }
.relitem { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.relitem .well { width: 64px; }
.legal { display: grid; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); }
.legal dt { font-size: var(--fs-xs); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.legal dd { color: var(--ink); }

/* ---------- 17. Data-driven states (from the real supplier feed) ---------- */
/* Translation pending: the name falls back to the source language (lang="de"/"en"
   on the element) and carries a quiet marker. Never show clipped feed names. */
.tl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tl::before { content: ""; width: 9px; height: 9px; border: 1.5px dashed currentColor; border-radius: 50%; flex: none; }
.card__name:not(:lang(hu)) a { color: var(--ink-2); font-weight: 500; }
.card__vars { font-size: var(--fs-xs); color: var(--ink-2); }
.card__vars b { color: var(--ink); font-weight: 650; }
/* Sister-shop tag on a card that lives in another shop */
.from { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.from .fam__dot { width: 7px; height: 7px; }
.price__from { font-size: .8em; font-weight: 500; color: var(--ink-2); }

/* ---------- 18. Delivery, currency, locale (owner decisions 2026-11-24) ---------- */
/* Three delivery cases, always with text: held in Hungary 1–3, from Reimo 5–8,
   on request = 5–8 + Reimo restock days. */
.ship { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); line-height: 1.35; color: var(--ink-2); }
.ship::before { content: ""; flex: none; width: 13px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; }
.ship--hu { color: var(--ok); font-weight: 650; }
.ship--hu::before { background: currentColor; }
.ship--req { color: var(--warn); font-weight: 600; }
.ship--req::before { border-style: dashed; }
.loc { border: 0; background: transparent; font: inherit; font-size: var(--fs-xs); font-weight: 650; cursor: pointer; }
.shipnote { background: var(--ink); color: var(--bg); font-size: var(--fs-sm); }
.shipnote .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 40px; }
.shipnote svg { width: 18px; height: 18px; flex: none; }

/* ---------- 19. 2026 patterns: bento, cart drawer, thumb zone, micro-interactions ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.tile { position: relative; display: grid; align-content: space-between; gap: var(--s3); min-height: 150px; padding: var(--s4); overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); color: var(--ink); }
.shop a.tile { color: var(--ink); text-decoration: none; }
.tile--tone { background: var(--tone); border-color: transparent; }
.tile--wide { grid-column: 1 / -1; }
.tile--hero { grid-column: 1 / -1; min-height: 260px; align-content: start; background: var(--hero-bg); border: 0; color: var(--hero-ink); }
.shop a.tile--hero { color: var(--hero-ink); }
.tile--hero > :not(.tile__img) { position: relative; z-index: 1; max-width: 62%; }
.tile__k { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.tile__t { font-size: var(--fs-xl); font-stretch: var(--stretch); font-weight: var(--dw); line-height: 1.1; letter-spacing: -.02em; }
.tile--hero .tile__t { font-size: var(--fs-2xl); }
.tile__img { position: absolute; right: -8%; bottom: -10%; display: grid; place-items: center; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--well); }
.tile__img img { width: 74%; mix-blend-mode: multiply; }
@container (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 190px; gap: var(--s5); }
  .tile { grid-column: span 3; min-height: 0; }
  .tile--wide { grid-column: span 6; }
  .tile--hero { grid-column: span 6; grid-row: span 2; padding: var(--s6); }
  .tile--hero .tile__t { font-size: var(--fs-3xl); }
  .tile--hero > :not(.tile__img) { max-width: 48%; }
  .tile__img { width: 56%; }
}

/* Slide-out cart drawer (role="dialog", aria-modal, focus trapped, Esc closes) */
.scrim { position: absolute; inset: 0; background: rgba(19, 20, 22, .5); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, calc(100% - 24px)); background: var(--bg); box-shadow: -12px 0 40px rgba(0, 0, 0, .2); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s4); border-bottom: 1px solid var(--line); }
.drawer__body { display: grid; flex: 1; align-content: start; gap: var(--s4); padding: var(--s4); overflow: auto; }
.drawer__foot { display: grid; gap: var(--s3); padding: var(--s4); background: var(--surface); border-top: 1px solid var(--line); }
.goal { display: grid; gap: 6px; font-size: var(--fs-sm); }
.meter { height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent-ink); }
.line { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); }
.line .well { width: 72px; }
.line__body { display: grid; gap: 6px; min-width: 0; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.line .qty button, .line .qty input { height: 36px; }
.line .qty button { width: 36px; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: var(--bg); font-size: var(--fs-sm); font-weight: 600; }
.toast svg { width: 16px; height: 16px; }
.upsell { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.upsell .well { width: 56px; }

/* Thumb zone: sticky buy bar once the main button scrolls away (IntersectionObserver toggles [hidden]) */
.buybar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .07); }
.buybar .btn { flex: 1; }
.buybar__p { display: grid; line-height: 1.2; font-size: var(--fs-xs); color: var(--ink-3); }
.buybar__p b { font-size: var(--fs-lg); color: var(--ink); font-variant-numeric: tabular-nums; }
@container (min-width: 900px) { .buybar { display: none; } }
/* Swipeable gallery: shown only when a product has 2+ images */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.swipe > * { scroll-snap-align: start; }

/* Micro-interactions: transform and opacity only, off under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .opt, .iconbtn, .tile { transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
  .btn:active, .chip:active, .opt:active, .iconbtn:active { transform: scale(.97); }
  .card .well img, .tile__img img { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
  .card:hover .well img, .tile:hover .tile__img img { transform: scale(1.05); }
  .tile:hover { transform: translateY(-2px); }
  .hero__art :is(path, rect, circle):not([stroke-dasharray]) { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.8s cubic-bezier(.4, 0, .2, 1) .1s forwards; }
  .drawer { animation: slidein .28s cubic-bezier(.2, .7, .2, 1); }
  .scrim { animation: fade .28s ease; }
  .toast { animation: rise .3s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Scroll-linked storytelling (owner: "more motion"). The drawn state is the end state, so a
   browser without scroll timelines, or with reduced motion, simply shows the finished drawing. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .xv .ex { transform-box: fill-box; animation: assemble linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
    .stages .stage { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .result svg rect { transform-box: fill-box; transform-origin: left center; animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  }
}
@keyframes assemble { from { transform: translate(var(--ax, 0px), var(--ay, 0px)); } }
@keyframes grow { from { transform: scaleX(.1); } }

/* ---------- 20. Checkout and confirmation ---------- */
.chk { display: grid; gap: var(--s4); }
.chk__sec { display: grid; gap: var(--s4); padding: var(--s5) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.chk__h { display: flex; align-items: center; gap: var(--s3); }
.chk__h h2 { font-size: var(--fs-lg); font-weight: 700; font-stretch: var(--stretch); }
.chk__n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; }
.chk__h .btn { margin-left: auto; }
.choice { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: start; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-ink); }
.choice:has(input:checked), .choice.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* transfer is for businesses only (checkout_transfer_is_b2b): a private buyer does not see it */
.chk:has(#kind-consumer:checked) .choice[for="pay-transfer"], .chk:has(#kind-consumer:checked) .transfer-terms { display: none; }
.choice.is-off { border-style: dashed; color: var(--ink-3); cursor: not-allowed; }
.choice b { display: block; font-weight: 650; font-size: var(--fs-md); color: var(--ink); }
.choice small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--ink-2); }
.choice .num { white-space: nowrap; font-weight: 650; }
.sum { display: grid; gap: 8px; font-size: var(--fs-sm); }
.sum__row { display: flex; justify-content: space-between; gap: 12px; }
.sum__total { padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-lg); font-weight: 750; }
.check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; font-size: var(--fs-sm); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.track { display: grid; margin: 0; padding: 0; list-style: none; }
.track li { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 18px; font-size: var(--fs-sm); }
.track li::before { content: ""; width: 12px; height: 12px; margin: 4px 0 0 4px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.track li.done::before { background: var(--ok); border-color: var(--ok); }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.track b { display: block; font-weight: 650; }

/* ---------- 21. Category list and filters ---------- */
.cat-head { display: grid; gap: var(--s3); padding-block: var(--s5) var(--s4); background: var(--tone); }
.subcats { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subcats .chip { white-space: nowrap; }
.plp-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: var(--s2); padding-block: var(--s2); background: var(--bg); border-bottom: 1px solid var(--line); }
.plp-bar .btn { min-height: 40px; }
.plp-count { margin-left: auto; font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.active { display: flex; flex-wrap: wrap; gap: var(--s2); }
.active .chip { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.active .chip svg { width: 14px; height: 14px; }
.facet { border-bottom: 1px solid var(--line); }
.facet summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 650; cursor: pointer; list-style: none; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin-right: 4px; }
.facet[open] summary::after { transform: rotate(-135deg); }
.facet summary .t-xs { margin-left: auto; margin-right: 12px; font-weight: 400; }
.facet__body { display: grid; gap: 4px; padding-bottom: var(--s4); }
.opt-line { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; min-height: 40px; font-size: var(--fs-sm); cursor: pointer; }
.opt-line input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.opt-line .n { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opt-line.is-zero { color: var(--ink-3); }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.sizes .chip { justify-content: center; }
.range2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s2); }
.sheet { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; max-height: calc(100% - 56px); background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .2); }
.sheet__grip { width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line-strong); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s4); border-bottom: 1px solid var(--line); }
.sheet__body { flex: 1; overflow: auto; padding: 0 var(--s4); }
.sheet__foot { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); padding: var(--s3) var(--s4) var(--s4); background: var(--surface); border-top: 1px solid var(--line); }
.plp { display: grid; gap: var(--s6); }
.plp__side { display: none; }
@container (min-width: 900px) {
  .plp { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .plp__side { display: block; position: sticky; top: var(--s4); }
  .plp .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plp-bar .only-m { display: none; }
}
.card__match { font-size: var(--fs-xs); font-weight: 650; color: var(--accent-ink); }

.shop a.chip.is-on, .shop a.chip[aria-current] { color: var(--bg); }

/* ---------- 22. Search ---------- */
.sbox { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.sbox .search { order: 0; flex: 1; margin: 0; flex-basis: auto; }
.sbox .search__input { border-right: 1px solid var(--line-strong); border-radius: var(--radius); }
.suggest { display: grid; gap: var(--s4); padding: var(--s4) var(--gutter) var(--s6); }
.sgroup { display: grid; gap: 2px; }
.sgroup__h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sgroup__h .fam__dot { width: 7px; height: 7px; }
.hit { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--s3); min-height: 52px; padding: 4px 6px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.shop a.hit { color: var(--ink); text-decoration: none; }
.hit:hover, .hit.is-on { background: var(--tone); }
.hit .well { width: 44px; border-radius: 4px; }
.hit__t { display: block; overflow: hidden; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.hit__s { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.hit__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--tone); color: var(--ink-2); }
.hit__icon svg { width: 20px; height: 20px; }
.qchips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.res-group { display: grid; gap: var(--s3); }
.res-group__h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.exact { display: grid; gap: var(--s4); padding: var(--s4); border: 2px solid var(--ink); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.exact__top { display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); align-items: start; }
.exact__top .well { width: 96px; }
.empty { display: grid; justify-items: start; gap: var(--s3); padding: var(--s5) var(--s4); border: 1px dashed var(--line-strong); border-radius: calc(var(--radius) + 4px); }
.hit > span:nth-child(2) { min-width: 0; }
.hit .num { white-space: nowrap; }

/* =====================================================================
   Storefront glue (ShowFold Shop, D-138). Everything above is the design
   canvas's shop.css as handed off; below is only what the server-rendered,
   script-free storefront needs on top of it.
   ===================================================================== */

/* ---------- 23. Self-hosted fonts (OFL, from Fontsource; no third-party font request) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

/* ---------- 24. Page frame: data-shop on <html>, .shop on <body> ---------- */
html[data-shop] { background: var(--bg); }
body.shop { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.shop > main { flex: 1; }
.page { display: grid; gap: var(--s4); align-content: start; padding-block: var(--s5) var(--s7); }
.page > h1:not([class]), .page :where(h1:not([class])) { font-size: var(--fs-3xl); line-height: var(--lh-tight); font-stretch: var(--stretch); font-weight: var(--dw); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; }
.page :where(h2:not([class])) { font-size: var(--fs-xl); line-height: var(--lh-snug); font-stretch: var(--stretch); font-weight: var(--dw); letter-spacing: -.02em; }
.page :where(section:not([class])) { display: grid; gap: var(--s3); }
.page :where(ul:not([class])) { display: grid; gap: var(--s1); padding-left: 1.2em; list-style: disc; }
.page :where(table) { width: 100%; border-collapse: collapse; }
.page :where(th, td) { padding: var(--s2) var(--s2) var(--s2) 0; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--fs-sm); }
.page :where(dl:not([class])) { display: grid; gap: var(--s1); }
.page :where(dt) { font-weight: 650; margin-top: var(--s2); }
.page :where(button:not([class])) { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 var(--s5); border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; cursor: pointer; justify-self: start; }
.page :where(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([class]), select:not([class])) { min-height: var(--tap); padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; }
.page :where(fieldset:not([class])) { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.page :where(input[type=checkbox], input[type=radio]) { width: 18px; height: 18px; accent-color: var(--accent-ink); }
.muted { color: var(--ink-3); }
.demo { margin: 0; padding: var(--s2) var(--gutter); background: var(--ink); color: var(--bg); font-size: var(--fs-sm); text-align: center; }
.logo__img { display: block; max-height: 40px; max-width: 200px; width: auto; }
.hdr .nav { display: block; }
.nav ul { overflow-x: auto; scrollbar-width: none; }
@container (min-width: 900px) { .hdr .nav { border-top: 1px solid var(--line); } }
.section .wrap { display: grid; gap: var(--s5); }
.section .section__head { margin-bottom: 0; }
.empty-note { color: var(--ink-2); }
.ftr { padding-block: var(--s6) var(--s5); }
.ftr__base:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.shop .ftr__base a { color: var(--ink-2); }

/* ---------- 25. Product page (two columns from 900px; the canvas draws it at 390) ---------- */
.pdp { display: grid; gap: var(--s5); }
.pdp__info { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.pdp__head { display: grid; gap: var(--s2); }
.pdp__head h1 { font-size: 1.875rem; } /* the ProductVariants board's 30px at 390; long product names stay at about four lines */
.pdp .well { border-radius: calc(var(--radius) + 2px); }
.buy { border-bottom: 0; }
.buy .qty-field { display: grid; gap: 6px; }
.buy .qty-field .control { width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.buy__row { align-items: end; }
.opt:has(input:disabled) { cursor: not-allowed; }
.pdp__more { display: grid; gap: var(--s6); }
.desc { display: grid; gap: var(--s3); max-width: 68ch; }
.legal h2 { font-size: var(--fs-sm); font-weight: 700; }
.legal h2:not(:first-child) { margin-top: var(--s2); }
.legal address { font-style: normal; }
.legal ul { display: grid; gap: var(--s1); padding-left: 1.2em; list-style: disc; }
@container (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
  .pdp__head h1 { font-size: var(--fs-3xl); }
  .pdp__more { max-width: 820px; }
}

/* ---------- 26. Cart page (the drawer's parts, as a page: the storefront runs no script) ---------- */
.cart { display: grid; gap: var(--s5); }
.cart__lines { display: grid; gap: var(--s4); border-top: 1px solid var(--line); }
.cart__lines .line { grid-template-columns: 1fr; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.line__t { font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-snug); }
.shop .line__t a { color: var(--ink); text-decoration: none; }
.shop .line__t a:hover { text-decoration: underline; }
.line form { display: flex; align-items: center; gap: var(--s2); }
.line form .control { width: 80px; min-height: 40px; text-align: center; }
.cart__sum .sum__total { padding-top: 0; border-top: 0; }
.cart__sum { display: grid; gap: var(--s3); align-content: start; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
@container (min-width: 900px) { .cart { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s7); align-items: start; } }

/* ---------- 27. Checkout and order pages ---------- */
.chk { max-width: 720px; }
.chk__sec > legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--s3); padding: 0; font-size: var(--fs-lg); font-weight: 700; font-stretch: var(--stretch); }
.chk__sec { margin: 0; min-width: 0; }
.chk .btn--block { min-height: 52px; }
.chk .fields { align-items: end; }
.terms { font-size: var(--fs-xs); color: var(--ink-2); }
.hero--card { border-radius: calc(var(--radius) + 4px); padding: var(--s5); }
.hero--card .wrap { padding: 0; display: grid; gap: var(--s3); }
.done { display: grid; gap: var(--s4); max-width: 720px; }
.relitem--plain { grid-template-columns: 1fr auto; padding-block: var(--s2); }
.qr { display: block; width: 220px; max-width: 100%; background: #FFFFFF; }
.pickup .code { font: 600 1.5rem/1.3 var(--mono); letter-spacing: .06em; }
ul.lines { display: grid; padding: 0; list-style: none; border-top: 1px solid var(--line); }
ul.lines li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
section.notice, section.status { display: grid; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
[role="alert"] { padding: var(--s3) var(--s4); border: 1px solid var(--danger); border-radius: var(--radius); background: var(--danger-bg); color: var(--ink); }

/* ---------- 28. Search, category and all-products pages (D-139); stock and VAT lines (D-140) ---------- */
.plp-page { display: grid; gap: var(--s4); padding-block: var(--s4) var(--s8); }
.facet-row { display: grid; gap: var(--s2); }
.facet-row .t-xs { color: var(--ink-3); }
.chip .n { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; opacity: .7; }
.plp-bar .chip { min-height: 32px; }
.cat-head .crumbs { padding-block: 0; }
.section__head:has(.subcats) { flex-wrap: wrap; }
.section__head .subcats { flex-basis: 100%; }
.card__foot .stock { margin-top: 2px; }
.pdp__info > .price__vat { margin-top: calc(-1 * var(--s3)); }
.pdp__info > .stock + .ship { margin-top: calc(-1 * var(--s3)); }
.cart .price__vat { margin-top: var(--s2); }
.nav a { white-space: nowrap; }   /* category names stay one line; the row scrolls (.nav ul overflow-x) */
/* a scrolling chip row must not widen its grid parent (min-width: auto): the page stays the screen's width */
.cat-head > .wrap, .cat-head .wrap > *, .section .wrap > .section__head, .section__head .subcats { min-width: 0; }
.cat-head h1 { font-size: var(--fs-2xl); }
.cat-head > .wrap { display: grid; gap: var(--s3); }   /* the canvas spaces .cat-head's children; here they sit in its .wrap */
.cat-head .subcats { margin-top: var(--s1); }   /* the chips clear the title's descenders */
@container (min-width: 900px) { .cat-head h1 { font-size: var(--fs-3xl); } }
/* D-142: "what happens next" on the confirmation page (the canvas's .track timeline) */
.next .track { margin-top: var(--s2); }
.next__l { display: block; }
.next__l + .next__l { margin-top: 2px; }

/* ---------- 27. Category tree: mega-menu panel and filter column (PS-0) ----------
   The panel opens on hover or keyboard focus, CSS only. It is positioned against .nav, so the bar's horizontal
   scroll (overflow on ul) does not clip it. Below 900px the bar scrolls and the category page's chips carry the
   subcategories instead. */
.hdr .nav { position: relative; z-index: 20; }
.mm__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.mm:hover > .mm__panel, .mm:focus-within > .mm__panel { display: block; }
.mm__grid { display: grid; gap: var(--s3); padding-block: var(--s5) var(--s6); }
.mm__head { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--ink); }
.nav .mm__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 var(--s5); overflow: visible; }
.nav .mm__list a { min-height: 40px; padding: 0; font-weight: 500; font-size: var(--fs-md); }
.nav .mm__list a:hover { box-shadow: none; color: var(--accent-ink); text-decoration: underline; }
.nav a.mm__all { justify-self: start; min-height: 40px; padding: 0; color: var(--accent-ink); }
.nav a.mm__all::before { content: "\203A"; margin-right: 8px; font-size: 1.2em; }
.plp-page .plp { margin-top: var(--s4); }
.plp__main { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.fl { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 36px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.shop a.fl { color: var(--ink); }
.fl:hover span:first-child { text-decoration: underline; }
.fl.is-on { font-weight: 700; color: var(--accent-ink); }
.shop a.fl.is-on { color: var(--accent-ink); }
.fl.is-on span:first-child::before { content: "\2713\00a0"; }
.fl .n { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fl.is-zero { color: var(--ink-3); }
.range-form { display: grid; gap: var(--s3); }
.range-form .control { min-width: 0; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.brand-tile { display: grid; place-items: center; height: 88px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brand-tile:hover { border-color: var(--ink-2); }
.brand-tile img { max-width: 100%; max-height: 56px; object-fit: contain; }
