/* =========================================================================
   CrazNeax x X-Raypad Signature Edition
   Combination theme: alternating LIGHT + DARK sections, bold condensed type.
   Each section carries .t-dark or .t-light which sets the local palette, so
   text / borders / cards / buttons invert automatically.
   ========================================================================= */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- fixed tokens ---- */
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 44px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --display: "Anton", "Arial Narrow", "Roboto Condensed", var(--font);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* ---- default palette = DARK (also used by unthemed sections) ---- */
  --bg: #0b0b0d;
  --surface: #141417;
  --card: #141417;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);
  --ink: #f4f4f5;
  --ink-soft: #a6a6ad;
  /* 5.6:1 on the dark bg — the old #71717a was 4.07:1 and used for real text. */
  --ink-faint: #8b8b93;
  --btn-bg: #ffffff;
  --btn-fg: #0a0a0b;
  --ghost-fg: #f4f4f5;
  --ghost-hover: rgba(255,255,255,.06);
  --input-bg: #0c0c0f;
  --ok: #57d69a;
  --warn: #eab464;
  --err: #ff6b6b;
  --glow: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 60px rgba(0,0,0,.5);
}

/* Re-assert dark (for nesting inside a light context) */
.t-dark {
  --bg: #0b0b0d; --surface: #141417; --card: #141417;
  --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.18);
  --ink: #f4f4f5; --ink-soft: #a6a6ad; --ink-faint: #8b8b93;
  --btn-bg: #ffffff; --btn-fg: #0a0a0b; --ghost-fg: #f4f4f5; --ghost-hover: rgba(255,255,255,.06);
  --input-bg: #0c0c0f; --ok: #57d69a; --warn: #eab464; --err: #ff6b6b;
  --glow: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 60px rgba(0,0,0,.5);
}

/* Light palette */
.t-light {
  --bg: #f3f3f1; --surface: #ffffff; --card: #ffffff;
  --line: rgba(0,0,0,.10); --line-strong: rgba(0,0,0,.16);
  --ink: #101012; --ink-soft: #55555b; --ink-faint: #6b6b71;
  --btn-bg: #0a0a0b; --btn-fg: #ffffff; --ghost-fg: #101012; --ghost-hover: rgba(0,0,0,.05);
  --input-bg: #ffffff; --ok: #1f8f57; --warn: #8a5e12; --err: #c0362f;
  --glow: rgba(0,0,0,.04);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 50px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must ALWAYS win. The browser's "[hidden] means
   display:none" is only a user-agent default, so any author display rule
   quietly defeats it - which is how the account page's verify banner became
   impossible to hide: display:flex kept painting it for verified customers
   while the server, the JS and the attribute were all correct. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* Keep the focused element clear of the sticky header / consent bar. */
  scroll-padding-top: 78px; scroll-padding-bottom: 104px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; }
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: .92; letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
h2:not(.display) { font-family: var(--font); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-transform: none; font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(60px, 11vw, 130px); background: var(--bg); color: var(--ink); }
.section--tight { padding-block: clamp(40px, 7vw, 80px); }

.eyebrow { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 1rem; }
.lede { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 12px 18px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------------- Header (always dark, floating) ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,11,13,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10); color: #f4f4f5;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; letter-spacing: .02em; font-size: .98rem; text-transform: uppercase; color: #f4f4f5; }
.brand span { color: rgba(244,244,245,.62); font-weight: 600; } /* ~4.6:1 on both header backdrops */
.header-cta {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.20); padding: 9px 18px; border-radius: 999px; color: #f4f4f5;
  transition: background .2s var(--ease), color .2s var(--ease);
  /* It is a <button> (it opens a drawer, it does not navigate) — reset UA styling. */
  font-family: inherit; background: none; cursor: pointer; line-height: 1.2;
}
.header-cta:hover { background: #fff; color: #000; text-decoration: none; }

/* Primary navigation */
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a:not(.header-cta) {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: rgba(244,244,245,.78); white-space: nowrap;
}
.site-nav a:not(.header-cta):hover { color: #fff; text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 11px; background: transparent;
  border: 1px solid rgba(255,255,255,.2); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #f4f4f5; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,11,13,.98); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.10);
    padding: 6px var(--gutter) 18px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.header-cta) { padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .header-cta { margin-top: 14px; align-self: flex-start; }
  /* In the collapsed menu the circle becomes an ordinary row: the generic
     row rule wins the padding fight anyway, so meet it halfway and label
     the icon, because an unlabelled glyph in a text menu reads as decor. */
  .site-nav .header-account { width: auto; height: auto; border: none; border-radius: 0; justify-content: flex-start; gap: 10px; }
  .site-nav .header-account::after { content: "Account"; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
}

/* ---------------- Hero ---------------- */
.hero { padding-top: clamp(32px, 6vw, 70px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% auto -20%; height: 600px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero__grid { display: grid; gap: clamp(28px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; position: relative; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1.05fr; } }
.hero__collab { display: inline-block; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 1.1rem; }
.hero__tagline { color: var(--ink-soft); font-size: clamp(1.02rem, 2.2vw, 1.18rem); margin-top: 1.3rem; max-width: 42ch; }
.hero__price-row { display: flex; align-items: center; gap: 16px; margin: 1.8rem 0 1.1rem; flex-wrap: wrap; }
.price { font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--ink-faint); }

/* Hero: the product floats — no frame, just a subtle shadow. */
.hero__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.hero__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.28)); }

.stock { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--ink-soft); font-weight: 500; }
/* The dot's heartbeat lives in main.js (ensureStockPulse), driven by
   JavaScript on every machine alike - CSS animations are switched off
   wholesale on some systems, and this dot must never look dead while
   the product is alive. These rules are only the resting state. */
.stock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.stock--low .stock__dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
.stock--out .stock__dot { background: var(--err); box-shadow: none; }
.stock__count { font-variant-numeric: tabular-nums; }

.hero__actions { display: flex; align-items: center; gap: 14px; margin-top: 1.5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 50px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 30px; height: 50px; border-radius: var(--btn-radius, 999px); cursor: pointer;
  transition: transform .12s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ghost-fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ghost-hover); opacity: 1; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .4; transform: none; }
.btn--soldout { background: var(--ghost-hover); color: var(--ink-faint); border-color: var(--line); }

/* ---------------- Story ---------------- */
.story__grid { display: grid; gap: clamp(24px,4vw,56px); grid-template-columns: 1fr; }
@media (min-width: 820px) { .story__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.story p { font-size: clamp(1.02rem,2.2vw,1.18rem); color: var(--ink-soft); }
.story__highlight { color: var(--accent, var(--ink)); font-weight: 600; }

/* ---------------- Gallery ---------------- */
.gallery__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { position: relative; cursor: zoom-in; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
/* Gallery: big 2x2 Signature Edition tile + 5 details (9 cells = filled 3x3) */
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 760px) { .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
/* On 2-col mobile the 6th tile would orphan — let it go wide instead */
@media (max-width: 759px) { .gallery__item:last-child { grid-column: span 2; aspect-ratio: 16 / 10; } }
/* Magnifier glass: a circular lens that follows the cursor and shows the
   zoomed detail inside it (the image underneath stays still). */
.gallery__item img { cursor: zoom-in; }
.mag-glass {
  position: absolute; display: none; pointer-events: none; z-index: 6;
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 0 8px rgba(0,0,0,.3);
  background-repeat: no-repeat; background-color: #0b0b0d;
}
/* No hover-scale: the image must stay still so the lens content lines up. */
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* Feature tile: float the whole product instead of a cropped detail. */
.gallery__item--feature { display: grid; place-items: center; padding: clamp(20px, 4vw, 44px); background: var(--surface-alt); }
.gallery__item--feature img { object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0,0,0,.24)); }
.gallery__item--feature:hover img { transform: scale(1.02); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #f2f2f4;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent); pointer-events: none;
}

/* ---------------- Specs ---------------- */
.specs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 660px; }
.specs__list > div { display: flex; justify-content: space-between; gap: 20px; padding: 17px 2px; border-bottom: 1px solid var(--line); }
.specs__k { color: var(--ink-faint); font-weight: 500; }
.specs__v { font-weight: 600; text-align: right; }

/* ---------------- Signature note ---------------- */
.signature { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(36px,6vw,72px); max-width: 780px; margin-inline: auto; background: linear-gradient(180deg, var(--glow), transparent); }
.signature h2 { margin-bottom: .9rem; }
.signature p { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }

/* ---------------- Shipping ---------------- */
.shipping__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shipping__grid { grid-template-columns: repeat(3,1fr); } }
.shipping__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--card); box-shadow: var(--shadow); }
.shipping__card h3 { font-size: 1.02rem; margin-bottom: .5rem; font-weight: 600; }
.shipping__card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------------- Footer (dark) ---------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(44px,7vw,76px); background: var(--bg); color: var(--ink); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.footer__links a { color: var(--ink-soft); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { color: var(--ink-faint); font-size: .84rem; margin-top: 22px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Checkout dialog (dark) ---------------- */
dialog.checkout { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0; width: min(560px, 94vw); max-height: 92vh; box-shadow: var(--shadow); color: var(--ink); background: var(--surface); }
dialog.checkout::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(3px); }
.checkout__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.checkout__head h2 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-family: var(--font); }
.checkout__close { border: none; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-faint); padding: 4px 8px; border-radius: 8px; }
.checkout__close:hover { background: var(--ghost-hover); color: var(--ink); }
.checkout__body { padding: 24px; overflow-y: auto; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field .req { color: var(--err); }
.field input, .field select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--input-bg); color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.field select option { background: var(--input-bg); color: var(--ink); }
.field--invalid input, .field--invalid select { border-color: var(--err); }
.field__error { color: var(--err); font-size: .8rem; margin-top: 5px; display: none; }
.field--invalid .field__error { display: block; }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

.summary { background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 20px; font-size: .96rem; }
.summary__row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); }
.summary__row--total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.summary__row--total span:last-child { font-variant-numeric: tabular-nums; }

.pay-methods { display: grid; gap: 12px; margin-top: 8px; }
.pay-note { text-align: center; font-size: .82rem; color: var(--ink-faint); margin-top: 14px; }
.pay-note strong { color: var(--ink-soft); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#paypal-container { min-height: 46px; }

.form-alert { display: none; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); font-size: .9rem; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.form-alert.show { display: block; }

.spinner { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--btn-fg) 35%, transparent); border-top-color: var(--btn-fg); border-radius: 50%; animation: spin .7s linear infinite; }
.btn--ghost .spinner { border-color: color-mix(in srgb, var(--ghost-fg) 30%, transparent); border-top-color: var(--ghost-fg); }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .btn-label { opacity: .6; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Content page (privacy) */
.doc { max-width: 760px; }
.doc h1 { margin-bottom: 1rem; font-family: var(--font); font-weight: 700; letter-spacing: -.02em; text-transform: none; font-size: clamp(2rem,5vw,2.6rem); }
.doc h2 { margin: 2rem 0 .6rem; font-size: 1.25rem; font-family: var(--font); font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }

/* ============ Cart & quantity (M4) ============ */
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* overflow clips the buttons' hover wash to the pill's rounded ends; the
   wash itself is the theme's line tint, not --surface, which is solid
   white in the light theme and read as a white block on hover. */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; min-height: 46px; overflow: hidden; }
.qty__btn { width: 40px; height: 100%; border: none; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.qty__btn:hover { background: var(--line); }
.qty__input { width: 40px; height: 100%; border: none; background: transparent; color: inherit; text-align: center; font: inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-lines { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cart-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; }
.cart-line__img { width: 60px; height: 60px; border-radius: 10px; background: var(--surface) center/cover no-repeat; border: 1px solid var(--line); }
.cart-line__name { font-weight: 600; font-size: .95rem; }
.cart-line__price { color: var(--ink-soft); font-size: .85rem; }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line .qty { min-height: 34px; }
.cart-line .qty__btn { width: 30px; font-size: 1rem; }
.cart-line .qty__input { width: 30px; }
.cart-line__remove { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: .78rem; text-decoration: underline;
  /* 24px minimum target — it sat 6px from the quantity minus button, so a
     mis-tap deleted the line. */
  min-height: 24px; padding: 4px 6px; }
.cart-empty { color: var(--ink-faint); text-align: center; padding: 24px 0; }

/* ============ Announcement bar + accent (M6) ============ */
.announce { background: var(--accent, var(--ink)); color: var(--bg); text-align: center; font-size: .82rem; font-weight: 600; padding: 8px 16px; letter-spacing: .01em; }
.announce[hidden] { display: none; }

/* ============ Builder sections: countdown, testimonials, product grid (M8) ============ */
.countdown { display: flex; flex-wrap: wrap; gap: clamp(10px,3vw,26px); justify-content: center; }
.countdown__box { min-width: 72px; }
.countdown__num { display: block; font-family: var(--display); font-size: clamp(2.4rem,8vw,4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__lbl { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quote { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); }
.quote blockquote { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.5; }
.quote figcaption { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
/* Tag filters above the grid. Scrolls sideways on a phone rather than stacking
   into four rows of chips before the customer sees a single product. */
.pfilters { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.pfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pfilter__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: 2px; }
.pfilter__chip { font: inherit; font-size: .84rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.pfilter__chip:hover { border-color: var(--ink); color: var(--ink); }
.pfilter__chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
@media (max-width: 640px) {
  /* Bleeds to the screen edge so the last chip is visibly cut off, which is
     what tells a customer the row keeps going. */
  .pfilter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .pfilter::-webkit-scrollbar { display: none; }
  .pfilter__chip { flex: 0 0 auto; }
}

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: transform .15s var(--ease); }
.pcard:hover { transform: translateY(-3px); text-decoration: none; }
.pcard__img { aspect-ratio: 4/3; background: var(--surface) center/cover no-repeat; }
.pcard__body { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pcard__title { font-size: 1.05rem; font-family: var(--font); font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.pcard__price { color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============ Font library (M9) — lazy-loaded, only downloads when used ============ */
@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/bebas-neue.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("/assets/fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-cond.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ============ Per-section style overrides (M9 builder) ============ */
[data-styled] .display { color: var(--s-heading, inherit); letter-spacing: var(--s-lspace, .005em); }
[data-styled] h1.display { font-size: calc(clamp(2.6rem, 11vw, 5.4rem) * var(--s-hscale, 1)); }
[data-styled] h2.display { font-size: calc(clamp(1.9rem, 5.5vw, 3rem) * var(--s-hscale, 1)); }
.s-align-center { text-align: center; }
.s-align-center .lede, .s-align-center .eyebrow { margin-inline: auto; }
.s-align-center .hero__actions, .s-align-center .hero__price-row { justify-content: center; }
.s-anim { opacity: 0; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.s-anim--rise { transform: translateY(28px); }
.s-anim.s-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .s-anim { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media (max-width: 719px) { .s-hide-mobile { display: none !important; } }
@media (min-width: 720px) { .s-hide-desktop { display: none !important; } }

/* ============ Editor-embedded preview affordances (M9) ============ */
.cnx-embed #main [data-section-id] { position: relative; }
.cnx-embed #main [data-section-id]:hover { outline: 2px dashed rgba(99, 140, 255, .85); outline-offset: -2px; cursor: pointer; }
.cnx-embed #main [data-section-id]:hover::after {
  content: attr(data-section-label); position: absolute; top: 8px; left: 8px; z-index: 30;
  background: rgba(30, 64, 175, .92); color: #fff; font: 600 11px/1 -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; pointer-events: none;
}
.cnx-embed #main .cnx-flash { outline: 2px solid rgba(99, 140, 255, .95); outline-offset: -2px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 4vw, 40px); }
.cols__item h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.cols__item p { color: var(--ink-soft); margin: 0; }
.custom-html { max-width: 100%; overflow-x: auto; }

/* Business registration block in the footer */
.footer__biz { color: var(--ink-faint); font-size: .76rem; line-height: 1.7; margin-top: 16px; max-width: 620px; }

/* Privacy / cookie notice bar */
.consent { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 120;
  display: flex; align-items: center; gap: 14px; width: min(680px, calc(100vw - 24px));
  background: #141417; color: #d6d6dc; border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 12px 16px; font-size: .8rem; line-height: 1.5; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.consent a { text-decoration: underline; text-underline-offset: 2px; color: #f4f4f5; }
.consent button { flex: none; background: #fff; color: #000; border: none; border-radius: 999px;
  padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }

/* The batch-shipping expectation, set right at the buy button. */
.hero__shipnote { font-size: .84rem; color: var(--ink-soft); margin-top: 12px; }

/* The account door in the header: an icon, not a word, so it never competes
   with the cart for attention on a page whose one job is the buy button. */
.header-account { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; color: inherit; flex: 0 0 auto; }
.header-account:hover { background: var(--line); }
.header-account svg { display: block; }

/* ---- Pages list (the blog index section) ---- */
.pages-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pagecard { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); transition: border-color .2s var(--ease); }
.pagecard:hover { border-color: var(--ink); text-decoration: none; }
.pagecard h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.pagecard p { color: var(--ink-soft); font-size: .9rem; margin: 0 0 10px; }
.pagecard__date { color: var(--ink-faint); font-size: .78rem; }
.pages-list__empty { color: var(--ink-faint); }

/* ---------------- Catalog stage: hero pill, teaser band, archive ---------- */
.hero__soldpill { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.hero__soldpill strong { color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hero__soldpill-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: 0 0 auto; }

.teaser__row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

.archive__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 2.2rem; }
.archive__lede { color: var(--ink-soft); max-width: 58ch; margin: 14px 0 0; }
.archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .archive__grid { grid-template-columns: 1fr; } }
.archive__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.archive__card--real { border-color: var(--line-strong); }
.archive__card--next { opacity: .78; }
.archive__card--far { opacity: .45; }
.archive__img { position: relative; display: grid; place-items: center; padding: 22px; min-height: 200px; }
.archive__img img { max-width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); }
.archive__badge { position: absolute; top: 14px; left: 14px; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); background: color-mix(in srgb, var(--bg) 75%, transparent); z-index: 1; }
.archive__body { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.archive__year { font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; letter-spacing: .02em; }
.archive__year--dim { color: var(--ink-faint); }
.archive__year--far { color: var(--line-strong); }
.archive__name { font-weight: 600; font-size: .98rem; }
.archive__name--dim { color: var(--ink-faint); }
.archive__meta { font-size: .76rem; color: var(--ink-faint); font-weight: 600; }
.archive__link { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-top: 8px; }
.archive__link--dim { color: var(--ink-soft); }
/* Empty archive shelf: a dashed slot instead of a photo. */
.archive__img--slot::before { content: ""; width: 70%; height: 62%; border: 1.4px dashed var(--line-strong); border-radius: 10px; opacity: .6; }
/* When the hero stacks (narrow view), keep the pad well clear of the
   sold-out pill above it. */
@media (max-width: 899px) { .hero__grid { row-gap: 48px; } }
.hero__soldpill { margin-bottom: 6px; }
