/*
  theme.css — the bundled default storefront theme: "Nordic Precision" (KJ Cykler).

  A cool, engineered boutique aesthetic: bone paper ground, graphite ink, a single
  high-signal accent, a technical grotesque (Space Grotesk) for display paired with
  a humanist grotesque (Hanken Grotesk) for text, and tabular numerals for prices
  and specs. Swiss-grid composition, hairline rules, generous negative space and
  restrained CSS motion — the storefront reads as a precision machine.

  Self-hosted fonts (no external request) live in static/fonts and are served at
  /_theme/fonts. Built on design tokens so a store can retint by overriding a
  handful of custom properties. Uploaded Go themes serve their own assets.

  The :root token block + the chrome (header/footer/announce/cart) below are FROZEN
  by Lane F0; surface lanes consume these and never redefine them. All class names
  used by the Go templates and the island bundle are preserved.
*/

/* ── Fonts (self-hosted, latin subset covers EN + Western European incl. DA) ── */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/_theme/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/_theme/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Child storefront (.child scope only) — clinical-wellness type voice. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/_theme/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── FROZEN by Lane F0 (feat/frontend-foundation) ──────────────────────────
     "Nordic Precision" brand tokens. Surface lanes (S1 .product-*/.hero-*,
     S2 .co-*, S3 .corp-*, S4 child) CONSUME these and MUST NOT redefine them.
     Add new tokens here only via Lane F0. ─────────────────────────────────── */

  /* Surfaces — cool bone ground, graphite ink. */
  --paper: #f4f4f1;        /* page ground (bone) */
  --paper-2: #eae9e3;      /* recessed tint / section band */
  --paper-3: #ffffff;      /* raised card / input surface */
  --ink: #16181c;          /* graphite near-black — text + ink fills */
  --ink-soft: #3f444c;     /* secondary text */
  --muted: #898d95;        /* tertiary / meta (cool grey) */
  --line: #d8d8d2;         /* hairline rule */

  /* Signal — the single high-visibility accent. */
  --accent: #e2482b;       /* actions, sale, "you are here" */
  --accent-deep: #c13a20;  /* pressed / hover-deep */
  --accent-fg: #f4f4f1;    /* text + icons on ink and accent fills */
  --sale: #e2482b;

  /* Type — bespoke technical-grotesque display over the Hanken body. */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale (unchanged — well-calibrated). */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;
  --space-12: 6.5rem;

  /* Geometry — crisp, engineered. */
  --radius: 3px;
  --radius-sm: 1px;
  --maxw: 1240px;
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  /* Defensive backstop: no surface should ever cause a horizontal scrollbar.
     `clip` (not `hidden`) preserves position:sticky on the header. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 var(--space-4); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-6); }

/* Technical small-caps label utility (eyebrows, footer headings, announce). */
.eyebrow, .footer-col h2, .announce-item {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Spec-sheet numerals — surface lanes apply to prices, specs, quantities. */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--ink); background: var(--ink); color: var(--accent-fg);
  font-family: var(--font-display); font-weight: 500; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--accent-fg); transform: translateY(-1px); }

/* Animated underline for inline/editorial links. */
.nav-link, .section-link, .footer-col a, .rich-text a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.nav-link:hover, .section-link:hover, .footer-col a:hover, .rich-text a:hover { background-size: 100% 1px; }

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║ FROZEN CHROME (Lane F0) — announce · header · cart-badge below, and         ║
   ║ footer · newsletter · cart-drawer further down. Shared across every page,   ║
   ║ owned by F0. Surface lanes (S1–S4) MUST NOT edit these blocks — restyle      ║
   ║ only inside your own namespace (.product- / .hero- · .co- · .corp- · …).     ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ── Announcement bar ── */
.announce {
  background: var(--ink); color: var(--accent-fg);
  text-align: center; padding: var(--space-3) var(--space-4);
  display: flex; gap: var(--space-8); justify-content: center; flex-wrap: wrap;
}
.announce-item { color: color-mix(in srgb, var(--accent-fg) 88%, transparent); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
  /* A long store name must never push the action icons (incl. the hamburger)
     off the edge — shrink + ellipsis instead of overflowing. */
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.primary-nav { display: flex; gap: var(--space-6); margin-inline: auto; }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft); padding-block: var(--space-2);
}
.nav-link:hover { color: var(--ink); }
.nav-sale { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 50%;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.menu-toggle { display: none; }
/* Body scroll-lock for any open overlay (mobile nav drawer, cart drawer). Global
   (NOT breakpoint-gated) so the cart drawer — which opens at any width — can lock
   the page behind it. Harmless when the class is absent. */
body.nav-lock { overflow: hidden; }

/* ── Cart badge (header icon) ── */
.cart-badge {
  position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-fg);
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600; line-height: 18px;
  text-align: center; font-variant-numeric: tabular-nums;
}

/* ── Hero (collection grid) ── */
.hero { position: relative; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero > .container { padding-block: clamp(var(--space-8), 6vw, var(--space-10)); }
.hero-head { max-width: 660px; margin: 0 auto var(--space-8); text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted);
  margin-bottom: var(--space-4);
}
/* Symmetric accent dashes flank the centered kicker (— STORE —). */
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 auto var(--space-4); max-width: 18ch;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 52ch;
  margin: 0 auto; line-height: 1.5;
}
.hero-head .hero-cta { margin-top: var(--space-6); }
/* Collection mosaic — one feature tile + the rest; the hero's main visual.
   Reuses .collection-card (image + overlaid name + index + hover border). */
.hero-collections { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
.hero-collections .collection-card { aspect-ratio: 4 / 3; }
.hero-collections .collection-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 1024px) {
  .hero-collections {
    grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
    height: clamp(440px, 48vw, 600px);
  }
  .hero-collections .collection-card,
  .hero-collections .collection-card:first-child { aspect-ratio: auto; height: 100%; }
  .hero-collections .collection-card:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
}
/* Hero tiles are above the fold — reveal on load, not via the scroll timeline. */
.hero-collections .collection-card { animation-timeline: auto; }

/* ── Sections ── */
.section-title { margin-bottom: var(--space-8); position: relative; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head .section-title { margin-bottom: 0; }
.section-link {
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap;
}
.collections, .bestsellers { padding-block: var(--space-10); }

/* ── Trust band (numbered, hairline) — slim strip ──
   Index sits inline with the heading ("01 Free shipping") so the band stays
   short; description drops below in muted text. */
.trust { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.trust-item { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-5); }
.trust-icon { flex: none; width: 30px; height: 30px; color: var(--accent); }
.trust-text h3 { font-size: 0.98rem; margin: 0 0 2px; }
.trust-text p { color: var(--muted); font-size: 0.86rem; margin: 0; line-height: 1.4; }

/* ── Collection tiles (indexed, hairline-framed) ── */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-5); counter-reset: coll; }
.collection-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); counter-increment: coll; transition: border-color .2s var(--ease); }
.collection-card:hover { border-color: var(--ink); }
.collection-card-img, .collection-card-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.collection-card-noimg { display: block; background: linear-gradient(150deg, var(--paper-2), var(--line)); }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,24,28,0.58), transparent 58%); transition: opacity .3s var(--ease); }
.collection-card:hover .collection-card-img { transform: scale(1.05); }
.collection-card-index {
  position: absolute; top: var(--space-4); left: var(--space-4); z-index: 1;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; color: var(--accent-fg);
  padding: 2px 7px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ink) 55%, transparent); backdrop-filter: blur(2px);
}
.collection-card-index::before { content: counter(coll, decimal-leading-zero); }
.collection-card-name {
  position: absolute; left: var(--space-5); bottom: var(--space-5); z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--accent-fg);
}
.collection-card-name::after {
  content: ""; display: block; width: 0; height: 2px; margin-top: 6px; background: var(--accent);
  transition: width .3s var(--ease);
}
.collection-card:hover .collection-card-name::after { width: 36px; }

/* ── Product grid + cards ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6) var(--space-5); }
.product-card { display: block; }
.product-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-3); margin-bottom: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s var(--ease); }
.product-card:hover .product-card-media { border-color: var(--ink); }
.product-card-img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.product-card-noimg { width: 100%; height: 100%; display: block; background: linear-gradient(150deg, var(--paper-2), var(--line)); }
.product-card:hover .product-card-img { transform: scale(1.04); }
/* CSS-only accent sale notch (no copy) — a precise corner flag. */
.product-card-sale { position: absolute; top: 0; left: 0; width: 0; height: 0; border-style: solid; border-width: 30px 30px 0 0; border-color: var(--accent) transparent transparent transparent; }
.product-card-name { font-size: 1rem; font-weight: 500; line-height: 1.35; margin: 0 0 var(--space-1); overflow-wrap: anywhere; transition: color .2s var(--ease); }
.product-card:hover .product-card-name { color: var(--accent); }
.product-card-price { font-size: 0.98rem; display: flex; gap: var(--space-2); align-items: baseline; color: var(--ink-soft); }
.price-now { color: var(--accent); font-weight: 600; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 0.9em; }

/* ── Bestseller carousel (Shopify-style: scroll-snap track + arrow controls) ──
   The track is a native horizontal scroll-snap row — swipe / trackpad / keyboard
   all work with no JS. The "carousel" island layers on prev/next arrows: it
   reveals them only when the row overflows (.is-scrollable) and disables them at
   the extremes. --per is the number of cards per view; a fractional value leaves
   the next card peeking to signal there's more. */
.carousel .section-head { align-items: center; }
.carousel-controls { display: flex; align-items: center; gap: var(--space-5); }
.carousel-nav { display: none; gap: var(--space-2); }
.carousel.is-scrollable .carousel-nav { display: inline-flex; }
.carousel-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); background: var(--paper-3); color: var(--ink);
  border-radius: 50%; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
}
.carousel-btn:hover { border-color: var(--ink); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; border-color: var(--line); }
.carousel-track {
  --per: 4.2;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--space-5)) / var(--per));
  gap: var(--space-5);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding: 0;
  padding-block: var(--space-1);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (max-width: 1024px) { .carousel-track { --per: 3.2; } }
@media (max-width: 860px) { .carousel-track { --per: 2.2; } }
@media (max-width: 600px) { .carousel-track { --per: 1.3; } }

/* ── Brand / media-mention strip ── */
.mentions { border-block: 1px solid var(--line); background: var(--paper); }
.mentions-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-5) var(--space-8); padding-block: var(--space-6); }
.mentions-label { font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.mentions-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-5) var(--space-8); }
.mentions-list li { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); opacity: 0.66; transition: opacity .2s var(--ease); }
.mentions-list li:hover { opacity: 1; }

/* ── Trustpilot-style reviews (reuses the carousel island) ── */
.reviews { padding-block: var(--space-10); }
.reviews .section-head { align-items: center; }
.reviews-score { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.reviews-rating-label { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.reviews-rating-num { font-size: 0.95rem; color: var(--ink-soft); }
.reviews-rating-num strong { color: var(--ink); font-weight: 700; }
/* Trustpilot star boxes — green square + white star. */
.tp-stars { display: inline-flex; gap: 2px; }
.tp-stars i { width: 20px; height: 20px; background: #00b67a; display: inline-grid; place-items: center; }
.tp-stars i::before { content: "★"; color: #fff; font-size: 12px; line-height: 1; }
.tp-stars i.tp-empty { background: #dcdce0; }
.tp-word { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.tp-word i { width: 16px; height: 16px; background: #00b67a; display: inline-grid; place-items: center; }
.tp-word i::before { content: "★"; color: #fff; font-size: 10px; line-height: 1; }
.reviews-carousel .carousel-track { --per: 4.15; }
.review-card { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: var(--space-5); background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.review-card .tp-stars i { width: 16px; height: 16px; }
.review-quote { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.review-author { margin-top: auto; padding-top: var(--space-2); font-family: var(--font-display); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.review-verified { color: #00b67a; font-weight: 500; }
.review-verified::before { content: "✓ "; }
@media (max-width: 1024px) { .reviews-carousel .carousel-track { --per: 2.5; } }
@media (max-width: 600px) { .reviews-carousel .carousel-track { --per: 1.2; } }

/* ── Newsletter band (light, bordered — not the old black slab) ── */
.signup { background: var(--paper-2); border-top: 1px solid var(--line); }
.signup-inner { padding-block: var(--space-10); text-align: center; max-width: 620px; margin-inline: auto; }
.signup-title { color: var(--ink); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.signup-title::before { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin: 0 auto var(--space-5); }
.signup-body { color: var(--muted); margin-bottom: var(--space-6); }

/* ── Newsletter form (footer + band) ── */
.newsletter { display: flex; gap: var(--space-2); margin-bottom: var(--space-4); max-width: 380px; }
.newsletter input {
  flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--paper-3); color: var(--ink);
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter button {
  padding: 0.7rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--accent-fg);
  border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 500; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.newsletter button:hover { background: var(--accent); border-color: var(--accent); }
.newsletter-lg { max-width: 480px; margin-inline: auto; }
.newsletter-lg input, .newsletter-lg button { padding-block: 0.85rem; }
.newsletter-lg input { background: var(--paper-3); border-color: var(--line); color: var(--ink); }
.newsletter-lg input::placeholder { color: var(--muted); }
.newsletter-lg button { background: var(--ink); color: var(--accent-fg); border-color: var(--ink); }
.newsletter-lg button:hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ── Footer ── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; gap: var(--space-8); padding-block: var(--space-10); grid-template-columns: 1.6fr 1fr 1fr; }
.footer-store { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: var(--space-3); }
.footer-news { color: var(--muted); font-size: 0.92rem; max-width: 42ch; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: var(--space-1); color: var(--muted); font-size: 0.9rem; }
.footer-col h2 { color: var(--muted); margin-bottom: var(--space-4); }
.footer-col a { display: block; padding-block: var(--space-1); color: var(--ink-soft); font-size: 0.95rem; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { padding-bottom: var(--space-8); color: var(--muted); font-size: 0.82rem; }

/* ── Prose / rich text (policy + static) ── */
.prose { max-width: 720px; padding-block: var(--space-10); }
.page-hero { padding-block: var(--space-10) var(--space-8); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-soft); max-width: 58ch; margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.4; }
.values { padding-block: var(--space-10); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: val; }
.value-item { padding: var(--space-8) var(--space-6) var(--space-8) 0; position: relative; }
.value-item + .value-item { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.value-item::before {
  counter-increment: val; content: counter(val, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: var(--space-4);
}
.value-title { font-size: 1.05rem; margin-bottom: var(--space-2); }
.value-text { color: var(--muted); font-size: 0.92rem; margin: 0; }
.rich-text { color: var(--ink-soft); font-size: 1.02rem; }
.rich-text h2 { margin-top: var(--space-8); color: var(--ink); }
.rich-text h3 { margin-top: var(--space-5); color: var(--ink); }
.rich-text ul, .rich-text ol { padding-left: 1.3em; margin-bottom: var(--space-4); }
.rich-text li { margin-bottom: var(--space-2); }
.rich-text a { color: var(--accent); }
/* Author-supplied policy/description HTML must never force horizontal scroll on
   phones: break long unbroken strings (URLs) and let wide tables / preformatted
   blocks scroll inside their own box instead of stretching the page. */
.rich-text { overflow-wrap: anywhere; }
.rich-text :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
.rich-text table { width: 100%; border-collapse: collapse; }

/* ── FAQ accordion (native <details>, numbered) ── */
.faq { padding-block: var(--space-10); }
.faq-list { max-width: 760px; counter-reset: faq; }
.faq-item { border-bottom: 1px solid var(--line); counter-increment: faq; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  cursor: pointer; list-style: none; padding: var(--space-5) 0;
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq-q::before {
  content: counter(faq, decimal-leading-zero); color: var(--accent);
  font-variant-numeric: tabular-nums; font-weight: 500; font-size: 0.78em; margin-right: var(--space-4);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-family: var(--font-sans); font-size: 1.5rem; color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] .faq-question::after { content: "−"; }
.faq-answer { padding-bottom: var(--space-5); color: var(--muted); max-width: 64ch; padding-left: calc(2ch + var(--space-4)); }
.faq-answer p { margin: 0; }

/* ── CTA band ── */
.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: var(--space-10); }
.cta-inner { padding-block: var(--space-10); text-align: center; }
.cta-figure { display: inline-grid; place-items: center; color: var(--ink-soft); margin-bottom: var(--space-5); }
.cta-figure svg { width: 48px; height: 48px; }
.cta-title { margin-bottom: var(--space-6); }

/* ── Collection / search listing ── */
.list-page { padding-block: var(--space-8) var(--space-10); }
.list-header { margin-bottom: var(--space-8); }
.list-title { margin-bottom: var(--space-3); }
.list-desc { color: var(--ink-soft); max-width: 60ch; }
.list-empty { color: var(--muted); padding-block: var(--space-10); font-size: 1.05rem; }
.search-form { display: flex; gap: var(--space-3); max-width: 560px; margin-top: var(--space-4); }
.search-form input {
  flex: 1; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--paper-3); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.list-layout { display: grid; grid-template-columns: 230px 1fr; gap: var(--space-8); align-items: start; }
/* No facetable options (e.g. simple imported products) → no sidebar is rendered.
   Collapse to a single full-width track so the lone .list-results child does not
   land in the 230px sidebar column and squeeze the grid to one card per row. */
.list-layout.no-filters { grid-template-columns: 1fr; }
.list-filters { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
/* The results column must be allowed to shrink: a grid item defaults to
   min-width:auto, which lets a wide product grid overflow the 1fr track. */
.list-results { min-width: 0; }
/* The listing grid sizes itself to the (sidebar-narrowed) column instead of
   sharing the home page's full-bleed repeat(4,1fr), which crammed the cards.
   Cards flow at a comfortable min width with a single symmetric gutter. */
.list-results .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-6); }
/* filters-title (sidebar) and list-count (results) head the two columns and
   differ in size/case; a shared fixed line-height lands them on one top baseline. */
/* Mobile filter disclosure: the facet sidebar (a <details>) collapses into a
   tappable "Filtre (N)" summary so products are visible immediately on phones.
   On desktop the summary is hidden and the sidebar shows normally — the filters
   island keeps the <details> open >=861px; with no JS it stays open everywhere
   (an acceptable fallback). */
.filters-summary { display: none; }
.filters-summary-count { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .filters-summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    cursor: pointer; list-style: none; min-height: 44px;
    padding: var(--space-3) var(--space-5); margin-bottom: var(--space-5);
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-3);
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink);
  }
  .filters-summary::-webkit-details-marker { display: none; }
  .filters-summary::after { content: "+"; font-family: var(--font-sans); font-size: 1.3rem; line-height: 1; color: var(--accent); }
  .list-filters[open] .filters-summary::after { content: "−"; }
  .list-filters .filters-title { display: none; }
}
.filters-title { font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); line-height: 1.5rem; margin-bottom: var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.facet-group { margin-bottom: var(--space-6); }
.facet-name { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: var(--space-3); }
.facet-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.facet-option { display: flex; align-items: center; gap: var(--space-2); font-size: 0.9rem; color: var(--ink-soft); padding-block: var(--space-1); }
.facet-option:hover { color: var(--ink); }
.facet-check { position: relative; width: 15px; height: 15px; border: 1px solid var(--muted); border-radius: var(--radius-sm); flex: none; transition: background .15s var(--ease), border-color .15s var(--ease); }
.facet-option.active { color: var(--ink); font-weight: 600; }
.facet-option.active .facet-check { background: var(--accent); border-color: var(--accent); }
.facet-option.active .facet-check::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--accent-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.facet-count { margin-left: auto; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.list-count { color: var(--muted); font-size: 0.88rem; line-height: 1.5rem; margin-bottom: var(--space-5); font-variant-numeric: tabular-nums; }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-6); margin-top: var(--space-10); }
.pager-link { font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.pager-link:hover { color: var(--accent-deep); }
.pager-link.disabled { color: var(--line); pointer-events: none; }
.pager-status { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ── Product detail ── */
.product-page { padding-block: var(--space-6) var(--space-10); }
.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.breadcrumbs a:hover { color: var(--accent); }
.bc-sep { color: var(--line); }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-10); align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.gallery-main { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); padding: var(--space-6); }
.gallery-main img, .gallery-noimg { width: 100%; height: 100%; object-fit: contain; }
.gallery-noimg { display: block; background: linear-gradient(150deg, var(--paper-2), var(--line)); }
.gallery-thumbs { display: flex; gap: var(--space-3); margin-top: var(--space-3); flex-wrap: wrap; }
.gallery-thumb { position: relative; width: 76px; height: 76px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); cursor: pointer; transition: border-color .2s var(--ease); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--ink-soft); }
.gallery-thumb.active { border-color: var(--ink); }
.gallery-thumb.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }

/* Info column — technical REF eyebrow, display title, tabular price, spec sheet. */
.product-eyebrow { font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: var(--space-3); }
.product-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: var(--space-4); }
.product-info .product-price { font-size: 1.5rem; display: flex; gap: var(--space-3); align-items: baseline; margin-bottom: var(--space-6); }
.product-info .price-now { color: var(--accent); font-weight: 600; }
.product-info .price-was { color: var(--muted); text-decoration: line-through; font-size: 0.8em; }
.product-info .price { color: var(--ink); }
.product-form { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); max-width: 360px; }
.opt-group { display: flex; flex-direction: column; gap: var(--space-2); }
.opt-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.opt-select {
  padding: 0.7rem 2.2rem 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background-color: var(--paper-3); color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 53%, calc(100% - 13px) 53%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.opt-select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.add-to-cart { width: 100%; padding-block: 1rem; }
.add-to-cart:disabled { opacity: 0.45; cursor: not-allowed; }
.add-to-cart:disabled:hover { background: var(--ink); border-color: var(--ink); transform: none; }
/* Trustpilot mini-badge under the price. */
.product-tp { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.product-tp-text { font-size: 0.9rem; color: var(--ink-soft); }
.product-tp-text strong { color: var(--ink); }
/* Assurance row (free shipping / returns / secure payment). */
.product-assurances { list-style: none; margin: var(--space-6) 0 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-3); }
.product-assurances li { display: flex; align-items: center; gap: var(--space-3); font-size: 0.9rem; color: var(--ink-soft); }
.product-assurances svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
/* Accordions (native <details>) for details / specs / shipping / returns. */
.product-accordions { margin-top: var(--space-6); border-top: 1px solid var(--line); }
.accordion { border-bottom: 1px solid var(--line); }
.accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s var(--ease); }
.accordion[open] > summary::after { transform: rotate(-135deg); }
.accordion-body { padding-bottom: var(--space-5); color: var(--ink-soft); }
.accordion-body > :last-child { margin-bottom: 0; }
.specs-list { margin: 0; }
.spec-row { display: grid; grid-template-columns: 42% 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec-row dt { color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; }
.spec-row dd { margin: 0; color: var(--ink); }

/* ── Cart drawer (island) ── */
.cart-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-drawer-overlay { position: absolute; inset: 0; background: rgba(22, 24, 28, 0.45); opacity: 0; transition: opacity .3s var(--ease); }
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; height: 100dvh; width: min(430px, 100%);
  background: var(--paper-3); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease);
  box-shadow: -16px 0 50px rgba(22, 24, 28, 0.18);
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.cart-drawer-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.cart-drawer-close { border: 0; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cart-drawer-close:hover { color: var(--ink); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-6); }
.cart-empty { color: var(--muted); text-align: center; padding-block: var(--space-10); }
.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); align-items: start; }
.cart-line-media { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-size: 0.98rem; font-weight: 500; display: block; margin-bottom: var(--space-3); }
.cart-line-name:hover { color: var(--accent); }
.cart-line-controls { display: flex; align-items: center; gap: var(--space-4); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qty button { border: 0; background: transparent; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty-val { min-width: 26px; text-align: center; font-size: 0.9rem; }
.cart-line-remove { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cart-line-remove:hover { color: var(--accent); }
.cart-line-price { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.cart-drawer-foot { border-top: 1px solid var(--line); padding: var(--space-6); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.05rem; margin-bottom: var(--space-4); }
.cart-checkout { width: 100%; }

/* ── Motion ── */
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero load reveal (staggered). */
  .hero-eyebrow, .hero-title, .hero-sub, .hero-cta { opacity: 0; animation: fade-up 0.8s var(--ease) both; }
  .hero-title { animation-delay: 0.05s; }
  .hero-sub { animation-delay: 0.12s; }
  .hero-cta { animation-delay: 0.2s; }

  /* Scroll-reveal sections — only where the modern scroll-timeline API exists,
     so unsupported browsers always show content (no opacity:0 trap). */
  @supports (animation-timeline: view()) {
    .collections, .bestsellers, .values, .signup-inner, .page-hero, .prose {
      opacity: 0; animation: fade-up 0.7s var(--ease) both;
      animation-timeline: view(); animation-range: entry 0% cover 18%;
    }
    .product-card, .collection-card, .trust-item, .value-item {
      opacity: 0; animation: fade-up 0.6s var(--ease) both;
      animation-timeline: view(); animation-range: entry 0% cover 12%;
    }
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .product-gallery { position: static; }
  .product-form { max-width: none; }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .site-header.nav-open .primary-nav {
    display: flex; flex-direction: column; gap: var(--space-1);
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: var(--space-5) var(--space-6);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(22, 24, 28, 0.12);
    /* A long nav list on a short viewport must scroll inside the panel rather
       than extend past the (scroll-locked) page — otherwise items are unreachable. */
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-header.nav-open .nav-link { padding-block: var(--space-3); }
  .menu-toggle { display: inline-grid; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .list-filters { position: static; }
  .trust-grid { grid-template-columns: 1fr; gap: 0; }
  .trust-item { border-top: 1px solid var(--line); padding-block: var(--space-4); }
  .trust-item:first-child { border-top: 0; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item, .value-item + .value-item { border-left: 0; padding: var(--space-5) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { padding-inline: var(--space-5); }
  /* .product-grid stays 2-up here (set by the 860 tier); it drops to 1-up at xs. */
  .collection-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .announce { gap: var(--space-4); }
  /* Header: tighten the gap + brand so a long store name can't crowd/overflow
     the action icons on small phones. */
  .header-inner { gap: var(--space-3); }
  .brand { font-size: 1.1rem; }
  /* Hero mosaic tiles are small here — shrink the overlaid name + pull it in. */
  .hero-collections .collection-card-name { font-size: 1.05rem; left: var(--space-4); bottom: var(--space-4); }
  /* Section heads + inline forms stack instead of cramming onto one row. */
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .newsletter, .newsletter-lg, .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  /* Spec sheet: stack key above value. */
  .spec-row { grid-template-columns: 1fr; gap: var(--space-1); }
}
/* xs — smallest phones: one readable card per row instead of ~130px cards. */
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-collections { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Order confirmation ── */
.confirm { padding-block: var(--space-8) var(--space-10); }
.confirm-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10); align-items: start; }
/* The title spans the full content width ABOVE the two-column grid, so the order
   summary aligns with the detail cards (not crammed up beside the title). */
.confirm-head { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-8); }
.confirm-check { width: 44px; height: 44px; color: var(--accent); flex-shrink: 0; }
.confirm-ordernum { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: var(--space-1); }
.confirm-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.confirm-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-5); margin-bottom: var(--space-5); }
.confirm-card h2 { font-size: 1.1rem; margin-bottom: var(--space-3); }
.confirm-confirmed p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.confirm-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.confirm-meta-wide { grid-column: 1 / -1; }
.confirm-meta-item h3 { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: var(--space-2); }
.confirm-meta-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.confirm-addr { color: var(--muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 2px; }
.confirm-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-6); }
.confirm-help { color: var(--muted); font-size: 0.88rem; margin: 0; }
.confirm-help a { color: var(--accent); }

.confirm-summary { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-6); position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.confirm-lines { display: flex; flex-direction: column; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.confirm-line { display: flex; align-items: center; gap: var(--space-4); }
.confirm-thumb { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.confirm-thumb img, .confirm-thumb-ph { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); display: block; }
.confirm-line-info { flex: 1; min-width: 0; }
.confirm-line-name { margin: 0; font-size: 0.92rem; color: var(--ink); }
.confirm-line-variant { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.confirm-line-price { margin: 0; font-size: 0.92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.confirm-totals { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.confirm-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.confirm-savings { color: var(--accent); }
.confirm-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--space-4); }
.confirm-total-label, .confirm-total-value { font-family: var(--font-display); font-size: 1.3rem; }
.confirm-total-value { font-variant-numeric: tabular-nums; }
.confirm-cur { font-family: var(--font-sans); font-size: 0.75rem; color: var(--muted); }
.confirm-tax { color: var(--muted); font-size: 0.8rem; margin: var(--space-2) 0 0; text-align: right; }

@media (max-width: 860px) {
  .confirm-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .confirm-summary { position: static; }
  .confirm-meta { grid-template-columns: 1fr; }
}

/* ── Checkout ─────────────────────────────────────────────────────────────
   The checkout surface uses its own focused chrome (logo-only header, no nav
   or footer). The body is a skeleton the checkout island hydrates from the
   embedded bootstrap; styles cover the header, the two-column layout, the
   shimmer placeholders and the empty-cart state. The Nordic Precision
   "spec-sheet" language: hairline rules, Space Grotesk uppercase micro-labels,
   a tabular price ledger, 3px corners, and the one signal accent reserved for
   selection / error / savings.

   CHILD-MATCH CONTRACT: the payment-domain checkout (.checkout-payment-domain)
   renders through this SAME .co-* scope + the shared static theme.css, so the
   embedded flow reads as one continuous PARENT checkout. A future per-store
   brand (S4) MUST NOT scope a :root / token override to .checkout-page or
   .checkout-payment-domain — the embedded checkout always shows the parent
   brand. */
.checkout-page { background: var(--paper-3); }
/* Header mirrors the body split so the logo aligns with the form content and the
   secure mark aligns with the summary content (same widths/paddings). */
.co-header { border-bottom: 1px solid var(--line); background: var(--paper-3); }
.co-header-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 64px; }
.co-header-left { display: flex; justify-content: flex-end; }
.co-header-right { display: flex; justify-content: flex-start; }
.co-header-pad { width: 100%; max-width: 600px; box-sizing: border-box; padding: 0 var(--space-8); display: flex; align-items: center; }
.co-header-pad-right { max-width: 480px; padding: 0 var(--space-5); justify-content: flex-end; }
.co-logo { display: inline-flex; align-items: center; }
.co-logo-img { height: 30px; width: auto; display: block; }
.co-logo-text { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.01em; color: var(--ink); }
.co-secure { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.co-secure svg { color: var(--accent); }

.checkout { width: 100%; }
.co-noscript { margin: var(--space-5) auto 0; max-width: 600px; padding: var(--space-3) var(--space-4); border: 1px solid var(--accent); border-radius: var(--radius); background: var(--paper-2); color: var(--accent-deep); font-size: 0.9rem; }

/* Full-bleed split: white form half (right-aligned, max 600px, divider) + bone
   summary half rendered as a hairline-ruled ledger. The columns stretch to equal
   height and fill the viewport so the bone never stops short of a white gap. The
   chrome-less child (.checkout-payment-domain) sizes to its content instead — the
   parent sizes the iframe via the height-changed message. */
.co-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: calc(100vh - 65px); min-height: calc(100dvh - 65px); }
.checkout-payment-domain .co-split { min-height: 0; }
.co-split-form { background: var(--paper-3); display: flex; justify-content: flex-end; }
.co-split-summary { background: var(--paper-2); }
.co-form { width: 100%; max-width: 600px; box-sizing: border-box; border-right: 1px solid var(--line); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.co-summary { width: 480px; max-width: 100%; box-sizing: border-box; padding: var(--space-5); position: sticky; top: var(--space-5); }
/* The summary is a hairline ledger directly on the bone column (no framed card). */
.co-summary-card { background: transparent; border: none; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.co-section { display: flex; flex-direction: column; gap: var(--space-3); }
.co-section-title { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); margin: 0; }
.co-skel-row { display: flex; gap: var(--space-3); }
.co-skel-row .co-skel { flex: 1; }
.co-loading { color: var(--muted); font-size: 0.85rem; margin: var(--space-2) 0 0; }

/* Shimmer placeholders — shown until the island hydrates. */
.co-skel { display: block; border-radius: var(--radius); background: linear-gradient(100deg, var(--paper-2) 30%, var(--line) 50%, var(--paper-2) 70%); background-size: 200% 100%; animation: co-shimmer 1.4s var(--ease) infinite; }
.co-skel-input { height: 46px; }
.co-skel-block { height: 120px; }
.co-skel-line { height: 16px; }
.co-skel-short { width: 55%; }
.co-skel-total { height: 28px; margin-top: var(--space-2); }
@keyframes co-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .co-skel { animation: none; } }

.co-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; min-height: 55vh; }
.co-empty-text { font-size: 1.05rem; color: var(--ink); margin: 0; }
.co-empty-link { color: var(--accent); text-decoration: underline; font-size: 0.9rem; }

/* ── Checkout form (hydrated by the checkout island) ───────────────────────
   Connected radio/payment lists, floating-label fields, hairline reassurance
   blocks — all on the frozen tokens. */
.co-section-title-sm { font-size: 0.72rem; }
.co-section-sub { color: var(--muted); font-size: 0.85rem; line-height: 1.45; margin: calc(-1 * var(--space-1)) 0 var(--space-1); }

/* Floating-label fields. */
.co-field { display: block; }
.co-input-wrap { position: relative; display: block; }
.co-input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); padding: 1.1rem 0.85rem 0.3rem; font-family: var(--font-sans); font-size: 1rem; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); box-sizing: border-box; }
.co-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.co-label { position: absolute; left: 0.9rem; top: 0.4rem; font-size: 0.66rem; color: var(--muted); pointer-events: none; transition: top .15s var(--ease), font-size .15s var(--ease); }
.co-input:placeholder-shown:not(:focus) + .co-label { top: 50%; transform: translateY(-50%); font-size: 1rem; }
.co-input:focus + .co-label { top: 0.4rem; transform: none; font-size: 0.66rem; }
.co-field.is-invalid .co-input { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.co-error { color: var(--accent); font-size: 0.74rem; margin: 0.3rem 0 0; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.co-select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }
.co-select-caret { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.co-label-fixed { top: 0.4rem; transform: none; font-size: 0.66rem; }

/* Checkbox (custom square, ink check). */
.co-check { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); cursor: pointer; }
.co-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-3); cursor: pointer; flex-shrink: 0; position: relative; transition: background .12s var(--ease), border-color .12s var(--ease); }
.co-check input:checked { background: var(--ink); border-color: var(--ink); }
.co-check input:checked::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.co-note { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); padding: var(--space-4); color: var(--muted); font-size: 0.85rem; }

/* Connected radio/payment lists: children collapse borders into 1px dividers;
   only the OUTER corners round. The selected row gets the ink border + tint. */
.co-radiogroup { border-radius: var(--radius); }
.co-radiogroup > * { border: 1px solid var(--line); margin-top: -1px; }
.co-radiogroup > *:first-child { margin-top: 0; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.co-radiogroup > *:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.co-radio { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 0.85rem 1.15rem; background: var(--paper-3); cursor: pointer; transition: border-color .12s var(--ease), background .12s var(--ease); }
.co-radio.is-selected { border-color: var(--ink); background: var(--paper-2); z-index: 1; }
.co-radio-input { position: absolute; opacity: 0; width: 0; height: 0; }
.co-radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper-3); flex-shrink: 0; box-sizing: border-box; transition: border-width .13s var(--ease), border-color .13s var(--ease); }
.co-radio.is-selected .co-radio-dot { border-width: 6px; border-color: var(--accent); }
.co-radio-label { flex: 1; font-size: 0.9rem; color: var(--ink); }
.co-radio-label strong { font-weight: 600; }
.co-radio-trailing { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.9rem; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-pay-icon { display: block; border-radius: var(--radius-sm); }

/* Payment expansion panels (flat siblings of the connected list). */
.co-pay-panel { background: var(--paper-2); padding: var(--space-4) var(--space-5); }
.co-pay-note { margin: 0; color: var(--muted); font-size: 0.83rem; text-align: center; line-height: 1.5; }

/* Card-entry fields. The number/expiry/cvc mounts are empty bordered boxes the
   PCI SDK (Stripe Elements, T4.5) hydrates into via [data-stripe]; they read as
   inputs with a floating-style top label until then. */
.co-card-panel { background: var(--paper-3); display: flex; flex-direction: column; gap: var(--space-3); }
.co-card-field { position: relative; }
.co-card-label { position: absolute; left: 0.9rem; top: 0.4rem; font-size: 0.66rem; color: var(--muted); pointer-events: none; z-index: 1; }
.co-card-mount-el { height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); padding: 1.25rem 0.85rem 0.35rem; box-sizing: border-box; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.co-card-mount-el.is-focused { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* Billing fields (separate panel below the radios). */
.co-billing-fields { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }

.co-pay-btn { width: 100%; height: 52px; border: none; border-radius: var(--radius); background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: background .2s var(--ease); }
.co-pay-btn:hover:not(:disabled) { background: #0b0c0e; }
.co-pay-btn:disabled { opacity: 0.55; cursor: default; }
/* Grand-total echo directly above the pay button — reassurance at the moment of
   action (kept in sync with the summary ledger by the checkout island). */
.co-pay-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.co-pay-total-label { font-family: var(--font-sans); font-size: 0.9rem; color: var(--ink-soft); }
.co-pay-total-val { font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-error-banner { border: 1px solid var(--accent); border-radius: var(--radius); background: rgba(226,72,43,0.08); color: var(--accent-deep); padding: var(--space-3) var(--space-4); font-size: 0.85rem; }
.co-policies { display: flex; flex-wrap: wrap; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.co-policy-link { background: none; border: none; padding: 0; color: var(--ink-soft); font-size: 0.82rem; text-decoration: underline; cursor: pointer; }
.co-policy-link:hover { color: var(--ink); }

/* Order summary content — a hairline-ruled ledger on the bone column. */
.co-summary-lines { display: flex; flex-direction: column; gap: var(--space-4); }
.co-summary-coupon, .co-summary-pricing, .co-reassure { border-top: 1px solid var(--line); padding-top: var(--space-5); }
.co-line { display: flex; gap: var(--space-4); }
.co-line-thumb { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.co-line-thumb img, .co-line-noimg { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-3); display: block; padding: 5px; box-sizing: border-box; }
.co-line-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700; border-radius: var(--radius-sm); border: 2px solid var(--paper-2); box-sizing: border-box; }
.co-line-info { flex: 1; min-width: 0; }
.co-line-name { font-size: 0.88rem; color: var(--ink); }
.co-line-variant { font-size: 0.76rem; color: var(--muted); margin-top: 1px; }
.co-line-discount { font-size: 0.76rem; color: var(--accent); margin-top: 3px; }
.co-line-edit { background: none; border: none; padding: 0; margin-top: 5px; font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.co-line-edit:hover { color: var(--ink); }
.co-line-editor { display: flex; align-items: center; gap: var(--space-3); margin-top: 7px; flex-wrap: wrap; }
.co-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.co-qty-btn { width: 28px; height: 28px; border: none; background: var(--paper-3); font-size: 1rem; color: var(--ink); cursor: pointer; }
.co-qty-btn:hover:not(:disabled) { background: var(--paper-2); }
.co-qty-btn:disabled { opacity: 0.3; cursor: default; }
.co-qty-val { min-width: 28px; text-align: center; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.co-line-remove { background: none; border: none; padding: 0; font-size: 0.78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.co-line-remove:hover:not(:disabled) { color: var(--accent); }
.co-line-remove:disabled { opacity: 0.5; }
.co-line-done { background: none; border: none; padding: 0; margin-left: auto; font-size: 0.78rem; color: var(--ink); cursor: pointer; }
.co-line-price { text-align: right; font-size: 0.88rem; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.co-line-price s { color: var(--muted); font-size: 0.76rem; }
.co-line-price span { font-weight: 500; }

/* Per-line "subscribe & save" chooser (S1d). Stacked radio options; the selected
   one gets the ink border, mirroring the payment/shipping radio lists. */
.co-line-sub { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.co-sub-opt { display: flex; align-items: center; gap: var(--space-2); padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.78rem; color: var(--ink-soft); cursor: pointer; transition: border-color .12s var(--ease), background .12s var(--ease); }
.co-sub-opt:hover { border-color: var(--ink-soft); }
.co-sub-opt.is-selected { border-color: var(--ink); background: var(--paper-3); color: var(--ink); }
.co-sub-opt input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-3); cursor: pointer; flex-shrink: 0; position: relative; transition: border-color .12s var(--ease); }
.co-sub-opt input:checked { border-color: var(--accent); border-width: 5px; }
.co-sub-consent { font-size: 0.72rem; line-height: 1.4; color: var(--muted); margin: 1px 2px 0; }

.co-coupon-row { display: flex; gap: var(--space-2); }
.co-coupon-input { flex: 1; }
.co-coupon-apply { height: 46px; padding: 0 var(--space-5); border: none; border-radius: var(--radius); background: var(--ink); color: var(--accent-fg); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease); }
.co-coupon-apply:hover { background: #0b0c0e; }
.co-coupon-apply:disabled { opacity: 0.5; cursor: default; }

.co-summary-pricing { display: flex; flex-direction: column; gap: var(--space-2); }
.co-price-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.co-savings { color: var(--accent); }
.co-price-shipping { padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.co-price-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--space-1); }
.co-price-total > span:first-child, .co-price-total-val { font-family: var(--font-sans); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.co-price-total-val { font-variant-numeric: tabular-nums; }
.co-cur { font-family: var(--font-sans); font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.co-price-tax { color: var(--muted); font-size: 0.74rem; margin: 0; text-align: right; }

.co-summary-applied:empty { display: none; }
.co-coupon-chip { display: flex; align-items: center; gap: var(--space-2); font-size: 0.85rem; }
.co-coupon-code { font-weight: 600; color: var(--ink); }
.co-coupon-amt { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-coupon-remove { margin-left: auto; background: none; border: none; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; }
.co-coupon-remove:hover { color: var(--ink); }

/* USP / support / Trustpilot sub-sections (soft tinted blocks). */
.co-reassure { display: flex; flex-direction: column; gap: var(--space-3); }
.co-subcard { border-radius: var(--radius); background: var(--paper); padding: var(--space-4); }
.co-usp { display: flex; flex-direction: column; gap: 0.6rem; }
.co-usp-row { display: flex; align-items: center; gap: var(--space-3); font-size: 0.84rem; color: var(--ink); }
.co-usp-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-soft); }
.co-support h3 { font-size: 0.84rem; font-weight: 700; color: var(--ink); margin: 0 0 var(--space-1); }
.co-support p { font-size: 0.78rem; line-height: 1.5; color: var(--muted); margin: 0; }
.co-support a { color: var(--ink); text-decoration: none; }
.co-support a:hover { text-decoration: underline; }
.co-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.8rem; }
.co-trust-word { font-weight: 600; color: var(--ink); }
.co-trust-stars { color: #00b67a; letter-spacing: 1px; }

/* Policy modal. */
.co-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(22,24,28,0.55); }
.co-modal[hidden] { display: none; }
.co-modal-card { background: var(--paper); border-radius: var(--radius); max-width: 600px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; }
.co-modal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5); border-bottom: 1px solid var(--line); }
.co-modal-head h2 { margin: 0; font-size: 1.1rem; }
.co-modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.co-modal-close:hover { color: var(--ink); }
.co-modal-body { padding: var(--space-5); overflow-y: auto; }

/* Post-redirect payment-return page (hosted by the poll island). */
.co-return { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 65px); min-height: calc(100dvh - 65px); padding: var(--space-6); text-align: center; }
.co-return-card { max-width: 420px; }
.co-return-card h1 { font-family: var(--font-sans); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0 0 var(--space-2); }
.co-return-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0 0 var(--space-4); }
.co-return-spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; margin-bottom: var(--space-4); animation: co-spin 0.8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .co-return-spinner { animation-duration: 2s; } }
.co-return-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.co-return-retry, .co-return-back-btn { width: auto; height: 44px; padding: 0 var(--space-5); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.co-return-back { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.co-return-back:hover { background: var(--paper-2); }

@media (max-width: 1024px) {
  .co-header-split { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--space-6); min-height: 60px; }
  .co-header-pad, .co-header-pad-right { max-width: none; padding: 0; }
  .co-split { grid-template-columns: 1fr; min-height: 0; }
  /* P0: when the two columns stack, render the order summary + grand total ABOVE
     the form so the shopper sees what they're paying before the form + pay button
     (DOM order is form -> summary). */
  .co-split-summary { order: -1; }
  .co-split-form { justify-content: center; }
  .co-form { max-width: 600px; border-right: none; padding: var(--space-6); }
  .co-summary { width: 100%; position: static; padding: var(--space-6); }
}
/* xs: paired form fields (postal/city, etc.) stack instead of two ~110px columns. */
@media (max-width: 400px) {
  .co-row { grid-template-columns: 1fr; }
  .co-form { padding: var(--space-5); }
}

/* ── Contact ───────────────────────────────────────────────────────────────
   A presentation page (hero + triage cards + prominent phone/email), reusing
   the shared .page-hero / .page-lead / .eyebrow chrome. */
.contact-hero .eyebrow { display: block; margin-bottom: var(--space-3); }
.eyebrow-muted { color: var(--muted); }
.contact-triage { padding-block: var(--space-8); border-bottom: 1px solid var(--line); }
.contact-triage .eyebrow { display: block; margin-bottom: var(--space-5); }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.contact-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card-icon { color: var(--accent); }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-label { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.contact-card-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.contact-reach { padding-block: var(--space-10); background: var(--paper-2); }
.contact-reach .eyebrow { display: block; margin-bottom: var(--space-3); }
.contact-reach-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 var(--space-4); }
.contact-reach-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-8); }
.contact-reach-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s var(--ease); }
.contact-reach-card:hover { border-color: var(--accent); }
.contact-reach-eyebrow { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.contact-reach-value { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-hours-note { margin-top: var(--space-6); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-reach-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ── Tracking ──────────────────────────────────────────────────────────────
   Self-serve tracking portal (/tracking) + live timeline (/tracking/<code>).
   The tracking.js island renders the form/timeline; these styles dress it in
   the Editorial-Atelier palette — dark ink = a completed step, accent = where
   the order is now. */
.tracking-portal { padding-block: var(--space-8) var(--space-10); }
.tracking-portal-inner, .tracking-detail-inner { max-width: 640px; }
.tracking-detail { padding-block: var(--space-8) var(--space-10); }
.tr-noscript { color: var(--muted); font-size: 0.9rem; }

/* Lookup form */
.tr-form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-6); }
.tr-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--space-5); }
.tr-tab { appearance: none; background: none; border: none; border-bottom: 2px solid var(--line); padding-bottom: var(--space-3); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.tr-tab:hover { color: var(--ink-soft); }
.tr-tab.is-active { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.tr-form { display: flex; flex-direction: column; gap: var(--space-3); }
.tr-input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0.7rem var(--space-4); font-family: var(--font-sans); font-size: 1rem; color: var(--ink); outline: none; transition: border-color .2s var(--ease); }
.tr-input:focus { border-color: var(--ink); }
.tr-input::placeholder { color: var(--muted); }
.tr-submit { margin-top: var(--space-1); min-height: 44px; border: none; border-radius: var(--radius-sm); background: var(--ink); color: var(--accent-fg); padding: 0.8rem var(--space-4); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.tr-submit:hover { background: var(--accent); transform: translateY(-1px); }
.tr-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.tr-form-error { margin-top: var(--space-4); border-radius: var(--radius-sm); background: rgba(173, 74, 44, 0.08); color: var(--accent-deep); padding: var(--space-3) var(--space-4); font-size: 0.85rem; line-height: 1.5; }
.tr-form-hint { margin-top: var(--space-5); text-align: center; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Self-serve subscription portal (/subscriptions, S1e) — reuses the tracking
   portal layout + tr-input/tr-submit form controls. */
.subs-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-6); }
.subs-login .subs-form { display: flex; flex-direction: column; gap: var(--space-3); }
.subs-list { display: flex; flex-direction: column; gap: var(--space-4); }
.subs-item { display: flex; flex-direction: column; gap: var(--space-2); }
.subs-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.subs-item-title { font-size: 1rem; color: var(--ink); }
.subs-qty { color: var(--muted); font-size: 0.85rem; }
.subs-item-price { font-size: 0.95rem; color: var(--ink); }
.subs-meta { font-size: 0.82rem; color: var(--muted); }
.subs-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.subs-badge-active { background: rgba(54, 122, 71, 0.12); color: #2f6a40; }
.subs-badge-past_due { background: rgba(173, 74, 44, 0.12); color: var(--accent-deep); }
.subs-badge-paused { background: rgba(120, 120, 120, 0.14); color: var(--ink-soft); }
.subs-badge-canceled { background: rgba(120, 120, 120, 0.1); color: var(--muted); }
.subs-actions { display: flex; gap: var(--space-3); margin-top: var(--space-2); flex-wrap: wrap; }
.subs-action { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0.5rem var(--space-4); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.subs-action:hover:not(:disabled) { border-color: var(--ink); }
.subs-action:disabled { opacity: 0.5; cursor: default; }
.subs-action-danger:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.subs-empty { font-size: 0.9rem; color: var(--ink-soft); }
.subs-link { display: inline-block; margin-top: var(--space-4); background: none; border: none; padding: 0; font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.subs-link:hover { color: var(--ink); }

/* Subscription card-update page (/subscriptions/update-card, S1e-2) — reuses the
   tracking portal layout + subs-card; the card inputs are Stripe Elements mounts
   styled like the checkout co-card fields. */
.cardupd-form { display: flex; flex-direction: column; gap: var(--space-4); }
.cardupd-row { display: flex; gap: var(--space-3); }
.cardupd-row .cardupd-field { flex: 1; }
.cardupd-field { display: flex; flex-direction: column; gap: var(--space-2); }
.cardupd-label { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cardupd-input { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0.8rem 0.85rem; box-sizing: border-box; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.cardupd-input.is-focused { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cardupd-message p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }
.cardupd-message-success { border-color: rgba(54, 122, 71, 0.4); }
.cardupd-message-success p { color: #2f6a40; }
.cardupd-message-error p { color: var(--accent-deep); }

/* Preparing (verified-but-unshipped) */
.tr-prepare { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-8) var(--space-6); text-align: center; }
.tr-bike { width: fit-content; margin: 0 auto; color: var(--ink); }
.tr-bike svg { display: block; width: 168px; height: auto; margin: 0 auto; }
.tr-bike-box { stroke: var(--accent); }
.tr-bike-ground { height: 6px; margin-top: var(--space-2); stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.tr-bike-ground line { animation: tr-drift 1.4s linear infinite; }
.tr-prepare-eyebrow { margin-top: var(--space-5); font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); }
.tr-prepare-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: var(--space-2) 0 0; }
.tr-prepare-lead { max-width: 40ch; margin: var(--space-3) auto 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.tr-prepare-order { display: inline-block; margin-top: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: var(--space-3) var(--space-4); }
.tr-prepare-order-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.tr-prepare-order-code { margin-top: 2px; font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.tr-prepare-back { appearance: none; background: none; border: none; margin-top: var(--space-6); font-size: 0.78rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease); }
.tr-prepare-back:hover { color: var(--accent); }

/* Live timeline */
.tr-loading { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-6); color: var(--muted); font-size: 0.9rem; }
.tr-empty { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-5) var(--space-6); color: var(--muted); font-style: italic; }
.tr-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.tr-panel-head { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.tr-order { font-size: 0.78rem; color: var(--muted); }
.tr-status { margin-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.tr-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.25rem var(--space-3); font-size: 0.72rem; font-weight: 600; }
.tr-pill-pre_shipping { background: var(--paper-2); color: var(--ink-soft); }
.tr-pill-shipped { background: rgba(173, 74, 44, 0.12); color: var(--accent-deep); }
.tr-pill-delivered { background: var(--ink); color: var(--paper); }
.tr-eta { font-size: 0.85rem; color: var(--ink-soft); }
.tr-code { margin-top: var(--space-2); font-size: 0.78rem; color: var(--muted); }
.tr-code-val { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.tr-timeline { list-style: none; margin: 0; padding: var(--space-4) var(--space-6); }
.tr-row { display: flex; gap: var(--space-4); }
.tr-row:not(.tr-row-last) { padding-bottom: var(--space-4); }
.tr-marker { position: relative; display: flex; flex-direction: column; align-items: center; }
.tr-dot { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; }
.tr-dot svg { width: 17px; height: 17px; }
.tr-dot-complete { background: var(--ink); color: var(--paper); }
.tr-dot-current { background: var(--accent); color: var(--accent-fg); box-shadow: 0 0 0 4px rgba(173, 74, 44, 0.16); animation: tr-pulse 2s var(--ease) infinite; }
.tr-dot-pending { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.tr-line { margin-top: 4px; width: 1.5px; flex: 1; min-height: 1.5rem; background: var(--line); }
.tr-line-complete { background: var(--ink); }
.tr-body { flex: 1; min-width: 0; padding-bottom: 2px; }
.tr-step-header { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.tr-step-pending { color: var(--muted); font-weight: 500; }
.tr-step-time { margin-top: 2px; font-size: 0.75rem; color: var(--muted); }
.tr-step-desc { margin-top: var(--space-2); font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.tr-details { margin-top: var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.tr-detail { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: var(--space-3) var(--space-4); }
.tr-detail-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tr-detail-value { margin-top: 2px; font-size: 0.85rem; color: var(--ink); }
.tr-mono { font-family: var(--font-sans); font-weight: 600; }
.tr-refresh-note { margin-top: var(--space-5); font-size: 0.75rem; color: var(--muted); }
.tr-notfound { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: var(--space-8) var(--space-6); text-align: center; }
.tr-notfound-title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: 0; }
.tr-notfound-lead { max-width: 44ch; margin: var(--space-3) auto var(--space-5); font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.tr-notfound-link { display: inline-block; border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 0.6rem var(--space-5); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease); }
.tr-notfound-link:hover { background: var(--ink); color: var(--accent-fg); }
@keyframes tr-drift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -20; } }
@keyframes tr-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(173, 74, 44, 0.16); } 50% { box-shadow: 0 0 0 7px rgba(173, 74, 44, 0.06); } }
@media (prefers-reduced-motion: reduce) { .tr-bike-ground line, .tr-dot-current { animation: none; } }
@media (max-width: 860px) {
  .tr-details { grid-template-columns: 1fr; }
}

/* ── Store lock (pre-launch gate) ────────────────────────────────────────────
   /password renders through the focused "password-shell" (no chrome), so this
   styles a full-viewport centred card that stands in for the whole store. */
.lock-page { background: var(--paper); }
.lock-overlay { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.lock-card { width: 100%; max-width: 400px; text-align: center; }
.lock-store { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--ink); margin: 0; }
/* Store logo (lock + blocked pages): scales down, never up, and never wider
   than the card; falls back to the .lock-store wordmark when no logo is set. */
.lock-logo { display: block; max-width: min(220px, 70%); max-height: 64px; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lock-sub { margin: var(--space-2) 0 0; font-size: 0.9rem; color: var(--muted); }
/* Blocked (audience-gate) non-shop page extras. */
.lock-heading { margin: var(--space-4) 0 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.lock-appeal { margin: var(--space-4) 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--ink-soft); }
.lock-actions { margin-top: var(--space-5); }
.lock-actions .lock-btn { display: inline-block; text-decoration: none; }
.lock-contact { margin: var(--space-5) 0 0; font-size: 0.82rem; color: var(--muted); }
.lock-contact a { color: var(--accent); }
.lock-form { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.lock-input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0.7rem var(--space-4); font-family: var(--font-sans); font-size: 1rem; color: var(--ink); outline: none; transition: border-color .2s var(--ease); }
.lock-input:focus { border-color: var(--ink); }
.lock-input::placeholder { color: var(--muted); }
.lock-btn { min-height: 44px; border: none; border-radius: var(--radius-sm); background: var(--ink); color: var(--accent-fg); padding: 0.8rem var(--space-4); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.lock-btn:hover { background: var(--accent); transform: translateY(-1px); }
.lock-error { margin: 0; font-size: 0.82rem; color: var(--accent-deep); }

/* ── S3 corporate stand-in (Nordic Precision) — append-only; consumes F0 tokens ── */
.corp-page { background: var(--paper); color: var(--ink); font-family: var(--font-sans); }
.corp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--space-5); }

.corp-bar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.corp-bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--space-4); }
.corp-brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.corp-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1; color: var(--ink); }
.corp-logo { height: 30px; width: auto; }
.corp-word { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; }
.corp-bar-link { font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); }
.corp-bar-link:hover { color: var(--accent); }

.corp-eyebrow { font-family: var(--font-display); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin: 0 0 var(--space-4); }

.corp-hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.corp-hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    repeating-linear-gradient(to right, var(--line), var(--line) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(to bottom, var(--line), var(--line) 1px, transparent 1px, transparent 72px);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%); }
.corp-hero-inner { position: relative; }
.corp-hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5.4vw, 3.7rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0; max-width: 18ch; }
.corp-rule { display: block; width: 56px; height: 3px; background: var(--accent); margin: var(--space-5) 0; }
.corp-hero-lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--ink-soft); max-width: 54ch; line-height: 1.5; margin: 0 0 var(--space-6); }

.corp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0.85rem 1.7rem; border-radius: var(--radius-sm); border: 1px solid var(--ink); background: var(--ink); color: var(--accent-fg); font-family: var(--font-display); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.corp-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.corp-btn-block { width: 100%; }

.corp-values { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.corp-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.corp-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.corp-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 var(--space-3); color: var(--ink); }
.corp-card-text { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin: 0; }

.corp-about { padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.corp-about-inner { max-width: 60ch; }
.corp-about-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); margin: 0; }

.corp-contact { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.corp-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.corp-contact-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 var(--space-3); }
.corp-contact-lead { color: var(--ink-soft); line-height: 1.55; margin: 0 0 var(--space-5); }
.corp-reach { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink-soft); font-size: 0.96rem; font-variant-numeric: tabular-nums; }
.corp-reach a { color: var(--ink); }
.corp-reach a:hover { color: var(--accent); }

.corp-form { display: flex; flex-direction: column; gap: var(--space-4); background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); }
.corp-field { display: flex; flex-direction: column; gap: var(--space-2); }
.corp-field label { font-family: var(--font-display); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.corp-field input, .corp-field textarea { font-family: var(--font-sans); font-size: 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-3); color: var(--ink); outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.corp-field textarea { resize: vertical; min-height: 120px; }
.corp-field input:focus, .corp-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.corp-form-note { margin: var(--space-1) 0 0; font-size: 0.9rem; line-height: 1.45; }
.corp-form-note.ok { color: var(--ink); }
.corp-form-note.err { color: var(--accent-deep); }

.corp-footer { border-top: 1px solid var(--line); padding: var(--space-5) 0; }
.corp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .corp-values-grid { grid-template-columns: 1fr; }
  .corp-contact-grid { grid-template-columns: 1fr; }
  .corp-footer-inner { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
/* Tablet keeps the value cards two-up rather than jumping straight to one. */
@media (min-width: 601px) and (max-width: 860px) {
  .corp-values-grid { grid-template-columns: 1fr 1fr; }
}
/* CORP-1: the header bar has no breakpoint otherwise — shrink the wordmark + gap
   so a long company name can't crowd/overflow the "say hello" link on phones. */
@media (max-width: 600px) {
  .corp-word { font-size: 1rem; }
  .corp-bar-inner { gap: var(--space-2); }
}
/* ── end S3 corporate stand-in ── */

/* ── Child storefront — Kjeldgaard Living (S4) ───────────────────────────────
   Scoped accent override (NOT a :root redefinition). Inherits F0 type/spacing/
   geometry tokens. Every selector is .child / .child-*. */
.child{
  /* Scoped brand layer — clinical-wellness. NOT a :root redefinition. */
  --accent:#0ea37a; --accent-deep:#0b7e5e; --accent-fg:#ffffff; --accent-tint:#e6f6f0;
  --paper:#ffffff; --paper-2:#f4f9f7; --paper-3:#ffffff;
  --ink:#0e1a16; --ink-soft:#46554f; --muted:#8a968f; --line:#e4ece8;
  --font-display:'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --font-sans:'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --child-radius:18px; --child-shadow:0 8px 30px rgba(14,26,22,.06);
  background:var(--paper); color:var(--ink); font-family:var(--font-sans); }
.child-container{ max-width:var(--maxw); margin:0 auto; padding:0 var(--space-5); }

/* header / footer chrome */
.child-header{ position:sticky; top:0; z-index:50; background:var(--paper-3); border-bottom:1px solid var(--line); }
.child-header-inner{ display:flex; align-items:center; justify-content:space-between; height:var(--header-h); gap:var(--space-5); }
.child-brand{ font-family:var(--font-display); font-weight:700; letter-spacing:.16em; text-transform:uppercase; font-size:.82rem; color:var(--ink); text-decoration:none; }
.child-brand-img{ height:28px; width:auto; display:block; }
.child-nav{ display:flex; gap:var(--space-5); }
.child-nav-link{ color:var(--ink-soft); text-decoration:none; font-size:.9rem; }
.child-nav-link:hover{ color:var(--accent); }
.child-actions{ display:flex; align-items:center; gap:var(--space-3); }
.child-menu-toggle{ display:none; border:0; background:transparent; color:var(--ink); cursor:pointer; padding:0; }
/* Child mobile nav: hamburger collapses .child-nav into a slide-down panel,
   driven by the shared "header" island (toggles .nav-open on .child-header). The
   sticky header is the positioning anchor for the absolute panel. */
@media (max-width:860px){
  .child-nav{ display:none; }
  .child-header.nav-open .child-nav{
    display:flex; flex-direction:column; gap:var(--space-3);
    position:absolute; top:100%; left:0; right:0; margin:0;
    padding:var(--space-5) var(--space-6);
    background:var(--paper-3); border-bottom:1px solid var(--line);
    box-shadow:0 14px 30px rgba(14,26,22,.12);
    max-height:calc(100dvh - var(--header-h)); overflow-y:auto;
  }
  .child-menu-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}
.child-icon{ color:var(--ink); display:inline-flex; }
.child-icon:hover{ color:var(--accent); }
.child-footer{ background:var(--ink); color:var(--paper-2); margin-top:var(--space-10); }
.child-footer-inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-4); padding-block:var(--space-6); font-size:.8rem; }
.child-foot-links{ display:flex; flex-wrap:wrap; gap:var(--space-4); }
.child-foot-links a{ color:var(--paper-2); text-decoration:none; }
.child-foot-links a:hover{ color:var(--accent-fg); text-decoration:underline; }

/* imageless hero */
.child-hero{ background:var(--paper-2); border-bottom:2px solid var(--accent); }
.child-hero-inner{ text-align:center; padding-block:var(--space-10); }
.child-eyebrow{ color:var(--accent); font-size:.72rem; letter-spacing:.26em; text-transform:uppercase; font-weight:600; margin:0 0 var(--space-3); }
.child-h1{ font-family:var(--font-display); font-size:clamp(2rem,5vw,3rem); line-height:1.04; letter-spacing:-.02em; margin:0 0 var(--space-3); }
.child-lead{ color:var(--ink-soft); max-width:42ch; margin:0 auto var(--space-5); }
.child-tp{ display:inline-flex; align-items:center; gap:var(--space-2); background:var(--paper-3); border:1px solid var(--line); border-radius:999px; padding:var(--space-2) var(--space-4); text-decoration:none; color:var(--ink); font-size:.82rem; }
.child-tp-stars{ color:#00b67a; letter-spacing:.06em; }
.child-tp-score{ font-weight:700; }
.child-tp-name{ font-weight:700; }
.child-tp-count{ color:var(--muted); }

/* sections + carousel */
.child-section{ padding-block:var(--space-8); }
.child-section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:var(--space-4); }
.child-section-title{ font-family:var(--font-display); font-size:1.1rem; margin:0; }
.child-arrows{ display:flex; gap:var(--space-2); }
.child-arr{ width:34px; height:34px; border-radius:50%; border:1px solid var(--accent); background:var(--paper-3); color:var(--accent); font-size:1.2rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.child-arr-fill{ background:var(--accent); color:var(--accent-fg); }
.child-arr[hidden]{ display:none; }
.child-rail{ display:flex; gap:var(--space-4); overflow-x:auto; scroll-snap-type:x mandatory; padding:2px var(--space-5) var(--space-3); scrollbar-width:none; justify-content:flex-start; }
.child-rail::-webkit-scrollbar{ display:none; }
@media(min-width:1024px){ .child-rail.child-rail-fits{ justify-content:center; } }

/* product card (carousel + grid) */
.child-card{ flex:0 0 200px; scroll-snap-align:start; background:var(--paper-3); border:1px solid var(--line); border-radius:var(--child-radius); overflow:hidden; box-shadow:var(--child-shadow); transition:transform .2s var(--ease), box-shadow .2s var(--ease); }
.child-card:hover{ transform:translateY(-3px); box-shadow:0 14px 38px rgba(14,26,22,.10); }
.child-card-media{ display:block; position:relative; aspect-ratio:5/4; background:var(--paper-2); }
.child-card-img{ width:100%; height:100%; object-fit:cover; }
.child-card-noimg{ display:block; width:100%; height:100%; background:var(--paper-2); }
.child-card-tag{ position:absolute; top:8px; left:8px; background:var(--accent); color:var(--accent-fg); font-size:.62rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:2px 8px; border-radius:999px; }
.child-card-body{ padding:var(--space-3); }
.child-card-name{ display:block; color:var(--ink); text-decoration:none; font-size:.9rem; font-weight:600; margin-bottom:var(--space-2); }
.child-card-foot{ display:flex; align-items:center; justify-content:space-between; }
.child-card-price{ font-weight:700; }
.child-now{ color:var(--accent); } .child-was{ color:var(--muted); text-decoration:line-through; font-size:.8rem; font-weight:400; }
.child-card-add{ width:28px; height:28px; border-radius:50%; background:var(--accent); color:var(--accent-fg); display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:1.1rem; line-height:1; }

/* child catalog grid (S4 Task 2) */
.child-list-head{ padding-block:var(--space-6) var(--space-4); }
.child-list-title{ font-family:var(--font-display); font-size:clamp(1.6rem,4vw,2.2rem); margin:0; letter-spacing:-.02em; }
.child-list-count{ color:var(--muted); font-size:.85rem; margin:var(--space-1) 0 0; }
.child-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:var(--space-4); }
.child-grid .child-card{ flex:initial; }
.child-empty{ color:var(--ink-soft); padding-block:var(--space-8); }

/* child PDP (S4 Task 3) */
.child-pdp{ padding-block:var(--space-6); }
.child-crumbs{ font-size:.78rem; color:var(--muted); margin-bottom:var(--space-4); }
.child-crumbs a{ color:var(--ink-soft); text-decoration:none; } .child-crumb-sep{ margin:0 .4em; }
.child-pdp-layout{ display:grid; grid-template-columns:1.1fr 1fr; gap:var(--space-6); }
@media(max-width:1024px){ .child-pdp-layout{ grid-template-columns:1fr; } }
.child-gallery-main{ aspect-ratio:1/1; background:var(--paper-2); border-radius:16px; overflow:hidden; }
.child-gallery-main img{ width:100%; height:100%; object-fit:cover; }
.child-thumbs{ display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-2); }
.child-thumb{ width:56px; height:56px; border-radius:10px; overflow:hidden; border:1px solid var(--line); background:var(--paper-2); padding:0; cursor:pointer; }
.child-thumb img{ width:100%; height:100%; object-fit:cover; }
.child-pdp-title{ font-family:var(--font-display); font-size:clamp(1.5rem,3.5vw,2rem); letter-spacing:-.02em; margin:0 0 var(--space-3); }
.child-pdp-price{ font-size:1.3rem; font-weight:700; margin-bottom:var(--space-5); }
.child-pdp-price .child-now{ color:var(--accent); }
.child-opt{ display:block; margin-bottom:var(--space-4); }
.child-opt-label{ display:block; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:var(--space-2); font-weight:600; }
.child-opt-select{ width:100%; padding:var(--space-3); border:1px solid var(--line); border-radius:var(--radius); background:var(--paper-3); font:inherit; }
.child-cta{ width:100%; background:var(--accent); color:var(--accent-fg); border:none; border-radius:999px; padding:var(--space-4); font-weight:600; font-size:1rem; cursor:pointer; }
.child-cta[disabled]{ background:var(--muted); cursor:not-allowed; }
.child-desc{ margin-top:var(--space-6); color:var(--ink-soft); line-height:1.6; }
/* ── Child about + contact pages ─────────────────────────────────────────── */
.child-about, .child-contact{ padding-block:var(--space-9); max-width:60ch; }
.child-about-title{ font-family:var(--font-display); font-size:clamp(1.8rem,4vw,2.4rem); letter-spacing:-.02em; margin:var(--space-2) 0 var(--space-4); }
.child-about-lead{ color:var(--ink-soft); font-size:1.05rem; line-height:1.6; }
.child-values{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:var(--space-5); margin:var(--space-7) 0; }
.child-value h3{ font-size:.95rem; margin:0 0 var(--space-2); } .child-value p{ color:var(--ink-soft); margin:0; font-size:.9rem; }
.child-cta-inline{ display:inline-block; width:auto; padding-inline:var(--space-6); text-decoration:none; }
.child-reach{ display:flex; flex-wrap:wrap; gap:var(--space-4); margin-top:var(--space-6); }
.child-reach-card{ display:flex; flex-direction:column; gap:var(--space-1); padding:var(--space-4) var(--space-5); border:1px solid var(--line); border-radius:var(--child-radius); box-shadow:var(--child-shadow); text-decoration:none; color:var(--ink); transition:border-color .2s var(--ease); }
.child-reach-card:hover{ border-color:var(--accent); }
.child-reach-card span{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.child-reach-card strong{ color:var(--accent); }

/* ── Child landing sections (S4 wellness reskin) ─────────────────────────── */
.child-band{ background:var(--accent-tint); }
.child-band .child-section-title{ text-align:center; margin-bottom:var(--space-5); }
.child-guarantees{ display:flex; flex-wrap:wrap; gap:var(--space-5); justify-content:center; padding-block:var(--space-5); }
.child-guarantee{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:2px; min-width:180px; }
.child-guarantee strong{ font-family:var(--font-display); font-weight:700; color:var(--ink); }
.child-guarantee span{ color:var(--ink-soft); font-size:.85rem; }
.child-cats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:var(--space-4); }
.child-cat{ position:relative; display:block; aspect-ratio:4/3; border-radius:var(--child-radius); overflow:hidden; background:var(--paper-2); box-shadow:var(--child-shadow); text-decoration:none; }
.child-cat-img,.child-cat-noimg{ width:100%; height:100%; object-fit:cover; display:block; }
.child-cat-name{ position:absolute; left:14px; bottom:12px; color:#fff; font-family:var(--font-display); font-weight:700; text-shadow:0 1px 8px rgba(0,0,0,.45); }
.child-steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:var(--space-5); }
.child-step{ text-align:center; }
.child-step-num{ display:inline-flex; width:44px; height:44px; border-radius:50%; background:var(--accent); color:var(--accent-fg); align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; margin-bottom:var(--space-3); }
.child-step h3{ margin:0 0 var(--space-2); } .child-step p{ color:var(--ink-soft); margin:0; }
.child-quotes{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:var(--space-4); }
.child-quote{ margin:0; padding:var(--space-5); background:var(--paper-3); border:1px solid var(--line); border-radius:var(--child-radius); box-shadow:var(--child-shadow); }
.child-quote blockquote{ margin:0 0 var(--space-3); font-size:1.05rem; line-height:1.5; }
.child-quote figcaption{ font-weight:700; } .child-quote figcaption span{ display:block; color:var(--muted); font-weight:400; font-size:.82rem; }
.child-story{ text-align:center; }
.child-story .child-values{ text-align:left; }
.child-story-title{ font-family:var(--font-display); font-size:clamp(1.6rem,4vw,2.2rem); letter-spacing:-.02em; margin:0 0 var(--space-3); }
.child-newsletter{ text-align:center; }
.child-nl-form{ display:flex; gap:var(--space-3); max-width:440px; margin:var(--space-5) auto 0; }
.child-nl-input{ flex:1; padding:var(--space-3) var(--space-4); border:1px solid var(--line); border-radius:999px; font:inherit; }
.child-nl-btn{ width:auto; padding-inline:var(--space-6); }
@media(max-width:600px){
  .child-nl-form{ flex-direction:column; }
  /* CGRID-1: match the parent — 2-up on phones (auto-fill alone gave 1-up). */
  .child-grid{ grid-template-columns:repeat(2,1fr); }
  /* CHOME-3: trim the tall hero whitespace on phones. */
  .child-hero-inner{ padding-block:var(--space-8); }
  /* CCONTACT-1: reach cards stack full-width instead of narrow left-aligned. */
  .child-reach{ flex-direction:column; }
  .child-reach-card{ width:100%; }
}
@media(max-width:400px){ .child-grid{ grid-template-columns:1fr; } }

/* ── Child digital PDP blocks ────────────────────────────────────────────── */
.child-badges{ list-style:none; display:flex; flex-wrap:wrap; gap:var(--space-2); padding:0; margin:0 0 var(--space-5); }
.child-badge{ display:inline-flex; align-items:center; gap:6px; background:var(--accent-tint); color:var(--accent-deep); border-radius:999px; padding:6px 12px; font-size:.8rem; font-weight:600; }
.child-included{ margin-top:var(--space-6); }
.child-incl-title{ font-family:var(--font-display); font-size:1rem; margin:0 0 var(--space-3); }
.child-included ul{ list-style:none; padding:0; margin:0; display:grid; gap:var(--space-2); }
.child-included li{ position:relative; padding-left:24px; color:var(--ink-soft); }
.child-included li::before{ content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:700; }
.child-faq{ padding-block:var(--space-8); }
.child-faq-row{ border-bottom:1px solid var(--line); padding:var(--space-4) 0; }
.child-faq-row summary{ cursor:pointer; font-family:var(--font-display); font-weight:600; list-style:none; }
.child-faq-row summary::-webkit-details-marker{ display:none; }
.child-faq-a{ color:var(--ink-soft); padding-top:var(--space-3); line-height:1.6; }
.child-reviews{ padding-bottom:var(--space-10); }

/* ── Child policy pages (child-chromed; data from store_policy) ───────────── */
.child-policy{ padding-block:var(--space-8); max-width:72ch; }
.child-policy-title{ font-family:var(--font-display); font-size:clamp(1.6rem,4vw,2.2rem); letter-spacing:-.02em; margin:0 0 var(--space-5); }
.child-policy-rich{ color:var(--ink-soft); line-height:1.7; overflow-wrap:anywhere; }
.child-policy-rich :is(table,pre){ display:block; max-width:100%; overflow-x:auto; }
.child-policy-rich table{ width:100%; border-collapse:collapse; }
.child-policy-rich h2{ color:var(--ink); margin-top:var(--space-6); }
.child-policy-rich a{ color:var(--accent); }
