/* ============================================================
   MetaFusion3D — v2 Stylesheet
   Premium editorial design with mixed dark/light sections
   ============================================================ */

/* ── BEGIN self-hosted fonts — generated by tools/self-host-fonts.py ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ── END self-hosted fonts ── */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --black:         #0A0A0A;
  --stone:         #F5F3EF;
  --surface:       #1A1A1A;
  --mint:          #C8E6D0;
  --warm-grey:     #E8E4DE;

  /* Warm darks, 2026-11-10. The offer cards and the two forms sit on these
     rather than on --black, because the rest of the palette is warm (--stone,
     --warm-grey) and a neutral black beside them reads as a different brand.
     --burnt also sits better on a warm ground than on a cold one. Chosen off
     three options rendered on the real page, not picked from a swatch. */
  --ink-warm:      #17150F;
  /* Lifted from #231F18 on 2026-11-15. Against --ink-warm (#17150F) the old
     value gave 1.11:1 — a 12-point step at the dark end of the scale, which
     is not a surface, it is a rumour. #302B21 gives 1.30:1, which is where a
     raised surface starts to read as raised. Same hue, same warmth; only the
     lightness moved. Used by the offer cards AND the form fields, and both
     wanted the same lift for the same reason. */
  --surface-warm:  #302B21;
  --burnt:         #FF6B35;
  /* Sampled from the logo mark, which runs cyan at the top of the hexagon into
     this periwinkle lower down. Used for the "3D" in the wordmark so the type
     and the mark share a colour. 5.47:1 on --black, so it clears AA. */
  --blue:          #5484E4;

  --text-dark:     #0A0A0A;
  --text-dark-secondary: #5A5750;
  --text-light:    #F5F3EF;
  --text-light-secondary: #9A9890;

  --border-dark:   rgba(245, 243, 239, 0.1);
  --border-light:  rgba(10, 10, 10, 0.1);

  --radius:        8px;
  --radius-lg:     12px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);

  --font-display:  'Inter Tight', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Spline 3D Fixed Background ───────────────────────── */
/* The scene draws the robot centred in whatever box the viewer occupies, so
   the container is sized and placed to position the robot. Transforms on a
   full-viewport viewer were tried first and broke on short viewports, where
   percentage translates pushed the robot off screen entirely. */
/* The box must stay landscape: Spline fits its camera to the canvas aspect at
   init, and a portrait box crops the shot to the robot's head. Width is what
   buys the full-body framing; the negative right offset slides it clear of
   the headline without narrowing the box. */
/* ── Locked top band ──
   The dark band is pinned to the viewport and the page scrolls underneath it,
   so the dark/cream boundary never moves and the robot stays in view. This
   needs no nested scroll container: the band is simply opaque and painted
   above the content, which slides under it and disappears at the boundary.

   Layers: band ground (3) < robot (4) < band text (5) < navbar (10),
   with all scrolling content at 1. */
/* Band tall enough to clear the fixed navbar and still hold the hero's
   headline, copy and buttons without clipping them at the boundary. */
/* The band is pinned, so its height is permanently taken from the viewport —
   kept to roughly half so the scrolling content below stays usable, while
   still clearing the navbar and holding the hero's text and buttons. */
:root {
  --band-h: clamp(340px, 52vh, 520px);
  --robot-h: clamp(460px, 74vh, 700px);
}

body.page-sub {
  --band-h: clamp(252px, 36vh, 360px);
  --robot-h: clamp(400px, 60vh, 560px);
}

body {
  padding-top: var(--band-h);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--band-h);
  background: var(--black);
  z-index: 3;
  pointer-events: none;
}

.spline-bg {
  position: fixed;
  top: 0;
  right: -13vw;
  width: min(80vw, 1000px);
  height: var(--robot-h);
  z-index: 4;
  /* The box is taller than the band so the robot is framed full-body, then
     clipped at the boundary — which is what makes it read as leaning over the
     content below. clip-path rather than height, so the framing is unaffected. */
  clip-path: inset(0 0 calc(100% - var(--band-h)) 0);
  /* The canvas paints its own near-black ground that the brightness filter
     lifts to a visible grey. Only the leading edge is feathered; the bottom
     must stay crisp so the boundary reads as a clean line. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%);
  mask-image: linear-gradient(to right, transparent 0%, #000 20%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.spline-bg.spline-ready {
  opacity: 1;
}

.spline-bg spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(4.2) contrast(1.15);
}

.navbar {
  z-index: 10;
}

@media (max-width: 900px) {
  .spline-bg {
    width: min(92vw, 720px);
    right: -22vw;
  }
}

/* Dead on a phone since 2026-11-05 — js/spline-bg.js no longer loads the
   viewer below 768px, so `.spline-ready` is never added there and this never
   matches. Kept because it is the correct value if the gate is ever moved to
   a narrower breakpoint, and because deleting it would hide that a faded
   robot was once the mobile treatment. The dark band itself is drawn by
   body::before and does not depend on any of this. */
@media (max-width: 768px) {
  .spline-bg.spline-ready {
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spline-bg {
    transition: none;
  }
}

.navbar,
.hero,
section,
.section,
.section-light,
.section-dark,
.page-hero,
.site-footer,
.footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Section Rhythm ────────────────────────────────────── */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: rgba(10, 10, 10, 0.92);
  color: var(--text-light);
}

.section-light {
  background: var(--stone);
  color: var(--text-dark);
}

/* Warm dark. Used WITH .section-dark, which already handles the light text,
   the card surface, the list bullets and the form controls — this only
   changes the two backgrounds, so there is one definition of "dark section"
   and this is a shade of it rather than a second one to keep in step. */
.section-warm {
  background: var(--ink-warm);
}

.section-dark .text-secondary { color: var(--text-light-secondary); }
.section-light .text-secondary { color: var(--text-dark-secondary); }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

p { max-width: 60ch; }
p.lead { font-size: 1.125rem; line-height: 1.7; }

.text-secondary { color: var(--text-light-secondary); }
.text-accent { color: var(--mint); }
.text-burnt { color: var(--burnt); }

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* The mark and wordmark carry the brand, so they are deliberately larger than
   the nav links next to them — the pinned dark band is 252px+ tall, so there
   is room, and the logo was previously smaller than the menu it sat beside. */
.nav-logo img {
  height: 46px;
  width: auto;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* The span wraps "3D", not "FUSION" — moved 2026-11-02 so the one coloured
   word is the one that means something. */
.nav-wordmark span { color: var(--blue); }

/* Footer lock-up. Shares .nav-wordmark so the two never drift apart, with the
   mark a touch smaller than in the navbar — the footer is a sign-off, not the
   main entrance. */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light-secondary);
  transition: color 0.2s var(--ease);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Cart button */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.cart-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.cart-count {
  background: var(--burnt);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

/* Mobile menu */
#mobile-menu {
  background: var(--surface);
  border-top: 1px solid var(--border-dark);
}

#mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--text-light-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.2s var(--ease);
}

#mobile-menu a:hover { color: var(--text-light); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burnt);
  color: white;
}

.btn-primary:hover {
  background: #e55a28;
  transform: translateY(-1px);
}

/* Primary on light backgrounds */
.section-light .btn-primary {
  background: var(--black);
  color: var(--text-light);
}

.section-light .btn-primary:hover {
  background: #222;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  border-color: var(--text-light-secondary);
}

.section-light .btn-secondary {
  color: var(--text-dark);
  border-color: var(--border-light);
}

.section-light .btn-secondary:hover {
  border-color: var(--text-dark-secondary);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 0.9rem;
}

.w-full { width: 100%; }

/* ─── Hero ──────────────────────────────────────────────── */
/* Pinned inside the locked band; the band ground behind supplies the colour.
   pointer-events is released so the cursor reaches the robot behind it, and
   restored on the actual controls. */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--band-h);
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 4rem 0 1rem;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.hero a,
.hero button {
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.6) 0%,
    rgba(10, 10, 10, 0.1) 30%,
    transparent 60%
  );
  pointer-events: none;
}

/* The band is a fixed height and the robot occupies the right-hand side, so
   the hero column is narrowed and its type scaled to fit inside the band
   without running under the robot or past the boundary. */
/* This element is also a .container, so it keeps margin:0 auto — narrowing it
   would centre the hero text into the robot instead of holding the page
   gutter. The text inside is constrained instead. */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.hero-content h1,
.hero-content p {
  max-width: min(34%, 380px);
}

.hero-content h1 {
  margin-bottom: 0.75rem;
}

.hero .display-xl {
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
}

.hero-content p {
  color: var(--text-light-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Page Hero (inner pages) ───────────────────────────── */
/* Pinned inside the locked band, same as .hero on the home page. */
.page-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--band-h);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.page-hero a,
.page-hero button {
  pointer-events: auto;
}

/* Constrained so the text clears the robot on the right and stays inside the
   band; .page-hero is a flex column, so only the text needs capping. */
.page-hero h1,
.page-hero p {
  max-width: min(52%, 560px);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-light-secondary);
  font-size: 1.05rem;
  max-width: 50ch;
}

.page-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light-secondary);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s var(--ease);
}

.page-hero .breadcrumb:hover { color: var(--mint); }

/* ─── Product Grid ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
}

/* Dark card */
.section-dark .card,
.card-dark {
  background: var(--surface);
  border: 1px solid var(--border-dark);
}

/* Light card */
.section-light .card,
.card-light {
  background: white;
  border: 1px solid var(--border-light);
}

/* Warm card. AFTER the dark one on purpose: `.section-warm .card` and
   `.section-dark .card` have identical specificity, so whichever is written
   last wins, and these sections carry both classes. Putting this earlier in
   the file silently did nothing — the cards stayed #1A1A1A. */
.section-warm .card {
  background: var(--surface-warm);
  /* Background alone does not separate a card at this darkness — the eye
     reads an EDGE long before it reads a 13-point tonal step. The hairline
     went 0.13 -> 0.20 and a shadow was added: on a dark ground a shadow is
     not decoration, it is the only cue that says the card sits in front of
     the band rather than being a patch of it. */
  border: 1px solid rgba(245, 243, 239, 0.20);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.product-img-placeholder {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
}

.section-light .product-img-placeholder {
  background: var(--warm-grey);
}

.product-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* Products whose part is printed but not yet photographed. Deliberately plain:
   it should read as "not shot yet", never as a picture of the product. */
.img-pending {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(128, 128, 128, 0.07) 9px, rgba(128, 128, 128, 0.07) 18px);
}

.img-pending strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.img-pending span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  opacity: 0.75;
  max-width: 22ch;
}

/* MTB-021's card plate. Same geometry as .img-pending so the grid stays a
   grid, but it is a LINK and it reads as an invitation rather than an
   apology. The hatching goes: a diagonal "nothing here yet" texture is
   exactly the signal we are trying not to send on the one card we want
   clicked. --burnt at low opacity instead, so it is the warmest thing in a
   grid of photographs and the eye lands on it. */
.img-pitch {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1rem;
  text-decoration: none;
  background: linear-gradient(160deg,
    rgba(255, 107, 53, 0.10), rgba(255, 107, 53, 0.04));
  transition: background 0.2s;
}
.card:hover .img-pitch { background: rgba(255, 107, 53, 0.15); }
.img-pitch strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text-dark);
}
.img-pitch span {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-dark-secondary);
  max-width: 24ch;
}
/* The arrow is the affordance. Without it the plate reads as a statement;
   with it, it reads as somewhere to go. */
.img-pitch em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--burnt);
  margin-top: 0.15rem;
}
.img-pitch em::after { content: " \2192"; }
.img-pitch:focus-visible { outline: 2px solid var(--burnt); outline-offset: -3px; }

/* Made to order. Deliberately NOT the mint of tag-new: mint says "just
   arrived" and this is a permanent property of the product, not news. */
.tag-made-to-order {
  background: rgba(255, 107, 53, 0.14);
  color: var(--burnt);
}

.card:hover .product-img-placeholder img {
  transform: scale(1.04);
}

.product-body {
  padding: 1.25rem;
}

.product-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.tag-new {
  background: var(--mint);
  color: var(--black);
}

.tag-free {
  background: var(--mint);
  color: var(--black);
}

.tag-paid {
  background: var(--burnt);
  color: white;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  max-width: 40ch;
}

.section-dark .product-desc { color: var(--text-light-secondary); }
.section-light .product-desc { color: var(--text-dark-secondary); }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

/* ─── Color Swatches ────────────────────────────────────── */
.color-swatches {
  display: flex;
  gap: 6px;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.color-swatch.active,
.color-swatch:hover {
  border-color: var(--mint);
}

.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.selected-color-label {
  font-size: 0.75rem;
  color: var(--text-light-secondary);
  min-width: 40px;
}

.section-light .color-swatch { border-color: var(--border-light); }
.section-light .color-swatch.active,
.section-light .color-swatch:hover { border-color: var(--black); }
.section-light .selected-color-label { color: var(--text-dark-secondary); }

/* ─── Editorial Product Feature ─────────────────────────── */
.product-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-feature.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.product-feature.reverse .product-feature-img {
  order: 2;
}

.product-feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Service Cards ─────────────────────────────────────── */
.service-card {
  padding: 2rem;
  position: relative;
}

.service-card.featured {
  border-color: var(--mint);
}

.service-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--mint);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 1rem;
}

.section-light .service-price { color: var(--burnt); }

/* Orange, not the dark sections' mint. The warm ground was chosen partly
   because --burnt sits well on it, and the price is the thing the eye should
   land on first. */
.section-warm .service-price { color: var(--burnt); }

.service-card ul {
  margin: 1rem 0 1.5rem;
}

.service-card li {
  font-size: 0.85rem;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.section-light .service-card li::before { background: var(--burnt); }
.section-warm .service-card li::before { background: var(--burnt); }
.section-dark .service-card li { color: var(--text-light-secondary); }
.section-light .service-card li { color: var(--text-dark-secondary); }

/* ─── Offer cards ───────────────────────────────────────── */
/* The lead line is the one-sentence version of the offer, set larger than the
   body copy so a visitor scanning four cards gets the point without reading
   the paragraph under it. */
.offer-lead {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.section-light .offer-lead { color: var(--text-dark); }
.section-dark  .offer-lead { color: var(--text-light); }

/* Offer cards are half the page wide, so the body copy is not capped at the
   40ch that suits a narrow shop card — .product-desc would leave a third of
   each card empty. */
.offer-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.section-dark  .offer-desc { color: var(--text-light-secondary); }
.section-light .offer-desc { color: var(--text-dark-secondary); }

/* Proof link — sends the visitor to real finished work rather than more copy. */
.offer-proof {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.section-light .offer-proof { color: var(--burnt); }
.section-dark  .offer-proof { color: var(--mint); }
.offer-proof:hover { opacity: 0.7; }

/* ─── Process steps ─────────────────────────────────────── */
.process-step { position: relative; padding-top: 2.75rem; }

.process-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mint);
  opacity: 0.55;
}

.section-light .process-num { color: var(--burnt); }

/* ─── Straight answers ──────────────────────────────────── */
.term-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
}

.term-item:first-child { padding-top: 0; border-top: none; }
.section-dark .term-item { border-top-color: var(--border-dark); }
.term-item strong { font-weight: 700; color: var(--text-dark); }
.section-dark .term-item strong { color: var(--text-light); }

/* Footer contact: two addresses need a word each saying which is which. */
.footer-note {
  font-size: 0.72rem;
  color: var(--text-light-secondary);
  opacity: 0.75;
}

/* ─── Stats Row ─────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  display: block;
}

.section-dark .stat-label { color: var(--text-light-secondary); }
.section-light .stat-label { color: var(--text-dark-secondary); }

/* ─── CTA Banner ────────────────────────────────────────── */
.cta-banner {
  padding: 4rem;
  border-radius: var(--radius-lg);
  text-align: left;
}

.section-dark .cta-banner {
  background: var(--surface);
  border: 1px solid var(--border-dark);
}

.section-light .cta-banner {
  background: var(--black);
  color: var(--text-light);
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2rem;
}

.section-light .cta-banner p { color: var(--text-light-secondary); }

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease);
  outline: none;
}

.section-dark .form-control,
.form-control-dark {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
}

.section-dark .form-control:focus,
.form-control-dark:focus {
  border-color: var(--mint);
}

/* The fields take the same surface as the cards. .section-dark's --surface
   is a neutral grey, which reads as a slightly different colour sitting on
   the warm ground — the whole point of the warm palette is that nothing in
   it is neutral. */
/* A field needs more separation than a card, not the same. The cards sit at
   1.30:1 against the band and that is right for a panel; these fields sit
   DIRECTLY on the band with nothing behind them, and at 1.30:1 you cannot
   see where to type. #3A3429 takes them to 1.48:1 and the border does the
   rest — an edge is read long before a fill.

   LIFTING THE FIELD HURTS THE PLACEHOLDER, which is the trap here. Grey
   #9A9890 was 4.87:1 on the old surface and falls to 4.27:1 on this one,
   under the 4.5 readable bar. So the placeholder lifts with it, to #A8A59C
   (5.01:1). Typed text is 11.13:1 and was never the problem — the problem
   is the half of the form the customer has not filled in yet.

   Still no shadow: a field is a hole you type into, not a raised surface. */
.section-warm .form-control {
  background: #3A3429;
  border-color: rgba(245, 243, 239, 0.30);
}

.section-warm .form-control::placeholder {
  color: #A8A59C;
}

/* Focus was a 1px border colour change, which on a hairline is easy to miss
   — especially when tabbing rather than clicking, where there is no cursor
   to follow. The ring is what makes the focused field unmistakable. */
.section-warm .form-control:focus {
  background: #433C2F;
  border-color: var(--burnt);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22);
}

.section-light .form-control,
.form-control-light {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.section-light .form-control:focus,
.form-control-light:focus {
  border-color: var(--black);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-control::placeholder {
  color: var(--text-light-secondary);
}

.section-light .form-control::placeholder {
  color: var(--text-dark-secondary);
}

/* ─── Filter Bar ────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-light-secondary);
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--text-light-secondary);
  color: var(--text-light);
}

.filter-btn.active {
  background: var(--text-light);
  color: var(--black);
  border-color: var(--text-light);
}

.section-light .filter-btn {
  border-color: var(--border-light);
  color: var(--text-dark-secondary);
}

.section-light .filter-btn:hover {
  border-color: var(--text-dark-secondary);
  color: var(--text-dark);
}

.section-light .filter-btn.active {
  background: var(--black);
  color: var(--text-light);
  border-color: var(--black);
}

/* ─── Cart Sidebar ──────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border-dark);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-dark);
}

.cart-header h2 {
  font-size: 1.1rem;
}

.cart-close {
  background: none;
  border: none;
  color: var(--text-light-secondary);
  font-size: 1.2rem;
  padding: 0.25rem;
  transition: color 0.2s var(--ease);
}

.cart-close:hover { color: var(--text-light); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light-secondary);
}

.cart-empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dark);
  align-items: flex-start;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--text-light-secondary);
  margin-bottom: 0.4rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.qty-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.qty-num {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-light-secondary);
  font-size: 0.9rem;
  padding: 0.25rem;
  transition: color 0.2s var(--ease);
}

.cart-remove:hover { color: var(--burnt); }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-total-label {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
}

/* Sets expectations above the order button — the cart is the last place a
   buyer should discover how payment works. */
.cart-note {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-light-secondary);
  margin-bottom: 0.9rem;
}

.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ─── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface);
  color: var(--text-light);
  border: 1px solid var(--border-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 3000;
  opacity: 0;
  transition: all 0.35s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon { margin-right: 0.35rem; }

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: 800px;
  width: 100%;
  cursor: default;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.lightbox-close:hover { color: var(--text-light); }

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  color: var(--text-light);
}

.lightbox-colors {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0.75rem;
}

.lightbox-colors button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.lightbox-colors button.active,
.lightbox-colors button:hover {
  border-color: var(--mint);
}

.lightbox-colors button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--border-dark);
  padding: 4rem 0 2rem;
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--text-light); }

/* Instagram link in the footer's Contact column. The icon is drawn inline in
   main.js (currentColor), so it follows the link colour and loads nothing. */
.footer-social { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-social-icon { flex: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  color: var(--text-light-secondary);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .product-feature { grid-template-columns: 1fr; gap: 2rem; }
  .product-feature.reverse .product-feature-img { order: 0; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Only the mark, the wordmark and the cart share the bar on a phone, so the
     logo comes down slightly to keep them off each other. */
  .nav-logo img { height: 38px; }
  .nav-wordmark { font-size: 1.02rem; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .stats-row { gap: 2rem; }

  .cta-banner { padding: 2.5rem 1.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── Touch targets and minimum type on phones ───────────
   Audited at 375px. Almost every control on the shop was under the size a
   thumb can hit reliably: filter chips 32px tall, search 34, sort 36, "Add to
   cart" 34, the cart button 34, its close 23x32, the breadcrumb 21, footer
   links 16, colour swatches 24x24, image arrows 28x28.

   THE TARGET IS 44px, BUT NOT EVERYWHERE, AND THAT IS DELIBERATE.
   44 is Apple's guideline and what a thumb actually wants. WCAG 2.2 AA
   (Target Size, Minimum) sets the floor at 24x24 with spacing. Two controls
   here stay between the two numbers on purpose:

     - The colour swatches are 24px dots whose whole job is to show a colour
       at a glance. Seven of them at 44px would be 308px of swatch inside a
       139px card. They go to 30px with a wider gap, which clears AA
       comfortably, and the same colours are reachable through the image
       arrows and the lightbox.
     - The image arrows sit ON the photo. At 44px they would cover most of a
       161px card. They keep their 28px look and get an invisible 44px hit
       area via ::before, which is the right fix: the target grows, the
       design does not.

   Everything else goes to a true 44px. `min-height` plus centred flex, not
   extra padding, so nothing reflows unexpectedly.

   Type: the floor on a phone is 0.78rem / 12.48px, up from 10.24px at the
   worst. Small type is not a style here, it is a readability problem — the
   "photo coming soon" caption was 10.24px and the magnet-jaw spec lines
   11.52px. The one deliberate exception is .cart-count, the digit inside the
   20px badge on the cart button, where bigger type would burst the circle
   and the number is backed up by the word "Cart" beside it.
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* ── Shop filter and sort row ── */
  .filter-btn {
    min-height: 44px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  .form-control {
    min-height: 44px;
    font-size: 16px;   /* under 16px iOS Safari zooms the page on focus */
  }

  /* ── Navbar ── */
  .nav-logo {
    min-height: 44px;
  }

  .cart-btn {
    min-height: 44px;
    padding: 0.5rem 0.9rem;
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* ── Cart drawer ── */
  .cart-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-footer .btn {
    min-height: 44px;
  }

  .cart-note {
    font-size: 0.82rem;
  }

  .qty-btn {
    min-width: 36px;
    min-height: 36px;
  }

  /* Every button and the offer links, site-wide. .btn-lg is already past 44;
     .btn and .btn-sm were 40 and 31. */
  .btn {
    min-height: 44px;
  }

  .offer-proof {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  /* Invisible hit area around the image arrows: the target grows, the design
     does not. Not scoped to the shop — the home page showcase uses the same
     control, where the arrow is 34px and this makes it 50. Prev and next sit
     on opposite sides of the photo, so the areas never meet. The button is
     already absolutely positioned, so ::before needs no context of its own. */
  .img-cycler-btn::before {
    content: '';
    position: absolute;
    inset: -8px;            /* the shop's 28px arrow becomes 44 */
  }

  /* On a phone "From CHF 85 per part, modelling included" wrapped mid-phrase
     and left "included" stranded on a line of its own, spaced by the price's
     display line-height. Its own line, with its own leading. */
  .service-price-note {
    display: block;
    margin-top: 0.2rem;
    line-height: 1.4;
  }

  /* ── Page furniture ── */
  /* This was `min-height: 44px` and it broke the hero twice over. The hero is
     a centred flex column inside a fixed band, so the extra 23px went half
     up and half down: upward it pushed the breadcrumb 9px UNDER the navbar,
     which sits above it in z-order — so that strip was both visually crammed
     against the logo and dead to taps — and downward it pushed the last line
     of the paragraph 4px past the band, where `overflow: hidden` sliced it.

     Same answer as the image arrows: the target grows, the layout does not.
     The box keeps its natural height and ::after supplies the 44px. The
     inset is asymmetric — only 8px upward, so the target never reaches back
     under the navbar, and the rest taken downward into empty band. */
  .page-hero .breadcrumb {
    position: relative;
    font-size: 0.85rem;
  }

  .page-hero .breadcrumb::after {
    content: '';
    position: absolute;
    inset: -8px -16px -15px -16px;   /* 21 + 8 + 15 = 44 */
  }

  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.88rem;
  }

  .footer-note {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }

  /* ── Product cards ── */
  /* Card internals are sized in the two-column block below, which is the one
     place those properties are declared — this block must not restate them or
     whichever comes last silently wins. */
}

/* The note beside an offer's price ("per part, modelling included"). It was
   an inline span carrying its styles inline, inheriting the big display
   line-height of .service-price. */
.service-price-note {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
}

/* The colour caveat, now under the grid rather than in front of it. */
.colour-caveat {
  font-size: 0.8rem;
  margin: 1.25rem 0 0;
  max-width: 62ch;
}

/* ─── Spec disclosure on product cards ───────────────────
   shop.html wraps each card's detail list in <details>. On anything wider
   than a phone syncSpecs() forces it open, so the summary is noise and is
   hidden — the list then reads exactly as the plain <ul> it used to be. */
.product-specs > summary {
  display: none;
}

/* ─── Filter chrome on a phone ───────────────────────────
   721px sat between the top of the shop and the first product — 0.89 of a
   screen, so a visitor saw a sliver of one card and nothing else. 392px of
   that was the filter chrome: two chip rows wrapping onto two lines each
   (96px apiece), search and sort, the result count, and two lines of
   small print about colour.

   The chip rows now scroll sideways on one line instead of wrapping onto
   two. Nothing is hidden behind a tap, which a collapsing panel would have
   done — these are three categories and five processes, the primary
   navigation of the shop, and burying them to save a line is the wrong
   trade. A chip cut off at the right edge is its own affordance: it is
   visibly the start of more.

   The rows bleed to the screen edge with a negative margin, so the cut-off
   chip reads as "there is more this way" rather than as a chip clipped by
   the container.
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Bleed past the container's 1.25rem gutter, then pad it back, so the
       row scrolls edge to edge. */
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;            /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 1.25rem;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;                    /* Safari, Chrome */
  }

  /* Without this the chips squash to fit instead of overflowing, which is
     the whole point — a squashed row is not a scrollable row. */
  .filter-bar .filter-btn {
    flex: 0 0 auto;
  }

  /* The controls wrapper is a flex row on desktop (chips left, search and
     sort right). On a phone everything is full width anyway, so it becomes
     a plain block — which is also what lets the category row's negative
     margins bleed to the screen edge the way the process row's already do.
     As a flex child it kept the wrapper's content width and the bleed had
     no effect, leaving the two chip rows starting at different edges. */
  .shop-controls {
    display: block !important;
    margin-bottom: 0.75rem !important;
  }

  .shop-search-sort {
    gap: 0.5rem !important;
  }

  /* 64px of section padding under a hero that is already a full band.
     Scoped to .shop-section, NOT .section-light — that class is also on
     index, about and services, where this would have quietly rewritten the
     spacing of pages this change has nothing to do with. */
  .shop-section {
    padding-top: 1.75rem;
  }

  #results-count {
    margin-bottom: 0.75rem !important;
  }
}

/* ─── Shop grid: two cards per row on a phone ─────────────
   23 products one per row made the shop 17,086px — 21 phone screens of
   scrolling to reach the last tool, which is not a shop, it is a list.

   Two columns alone was NOT the fix. Measured at 375px: 21 screens became
   14.7, because halving the width roughly doubles the number of lines every
   description and spec list wraps to, and that ate most of the gain. What
   actually pays is two columns TOGETHER with the text under control —
   description clamped to three lines, spec list collapsed. That lands at
   8.5 screens.

   Scoped to #products-grid on purpose. `.grid-3` is used elsewhere (the
   capability band on services, the footer) where one column is right, and
   the home page showcase is three big cards that are meant to be big. */
@media (max-width: 768px) {
  #products-grid {
    grid-template-columns: 1fr 1fr;
    /* 1.5rem between two 161px cards is a tenth of the row given to a gap.
       12px keeps the cards apart without stealing from the photos. */
    gap: 12px;
  }

  #products-grid .product-body {
    padding: 0.7rem;
  }

  #products-grid .product-name {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  /* Three lines, then ellipsis. The full text is still in the DOM — this
     clamps what is painted, it does not truncate the content. */
  #products-grid .product-desc {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* `.product-footer { margin-top: auto }` has always been there, but it can
     only push when its ancestors are flex columns — they were not, so the
     buttons in a row sat at whatever height each card's text happened to end
     at. Two cards side by side make that obvious in a way one per row never
     did. The grid already stretches both cards to the row height; this passes
     that height down so the prices and buttons line up. */
  #products-grid .card {
    display: flex;
    flex-direction: column;
  }

  #products-grid .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #products-grid .product-specs > summary {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-dark-secondary);
    cursor: pointer;
    font-size: 0.78rem;
    /* A real 44px target. min-height rather than padding, so the row does
       not grow if the label ever wraps. */
    min-height: 44px;
    padding: 0.3rem 0;
    margin-bottom: 0.25rem;
    list-style: none;          /* the default triangle is lost once the
                                  summary is a flex box, so draw our own */
  }

  #products-grid .product-specs > summary::-webkit-details-marker {
    display: none;
  }

  /* Without this the summary reads as a label, not something to tap. */
  #products-grid .product-specs > summary::after {
    content: '';
    width: 0.42em;
    height: 0.42em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-0.1em, -0.1em);
    transition: transform 0.2s var(--ease);
  }

  #products-grid .product-specs[open] > summary::after {
    transform: rotate(-135deg) translate(-0.15em, -0.15em);
  }

  /* 34px arrows on a 162px card cover a fifth of the photo each. */
  #products-grid .img-cycler-btn {
    width: 28px;
    height: 28px;
    margin-top: -14px;
  }

  #products-grid .img-cycler-btn svg {
    width: 15px;
    height: 15px;
  }

  #products-grid .product-details li {
    font-size: 0.78rem;
  }

  #products-grid .product-part {
    font-size: 0.78rem;
  }

  /* Seven swatches do not fit on one 139px line, and a flex row would squash
     them to ovals rather than wrap. */
  /* 30px rather than 44: seven swatches at 44 would be 308px of dot inside
     a 139px card. 30 clears the WCAG 2.2 AA floor of 24 with room, the gap
     gives them the spacing that rule expects, and the same colours are
     reachable through the image arrows and the lightbox. */
  #products-grid .color-swatch {
    width: 30px;
    height: 30px;
  }

  #products-grid .color-row {
    flex-wrap: wrap;
    gap: 9px;
  }

  #products-grid .color-swatches {
    flex-wrap: wrap;
    gap: 9px;
  }

  #products-grid .selected-color-label {
    font-size: 0.8rem;
  }

  /* Price beside a button leaves roughly 70px for each. Stacking gives the
     button the full card width, which also takes the worst tap target on the
     page from 104x31 to 139x40. */
  #products-grid .product-footer {
    display: grid;
    gap: 0.4rem;
    justify-content: stretch;
  }

  #products-grid .product-price {
    font-size: 0.95rem;
  }

  #products-grid .product-footer .btn {
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.5rem;
    font-size: 0.82rem;
  }

  /* The "Photo coming soon" plate has to stay legible in a half-width frame. */
  /* Was 11.2px and 10.24px — the smallest type on the site, on the card
     that most needs to explain itself. */
  #products-grid .img-pending strong { font-size: 0.78rem; }
  #products-grid .img-pending span { font-size: 0.78rem; }

  /* The "3D printed · 4 photos" line carries an inline font-size from
     shop.html, so it takes !important to reach. */
  #products-grid .product-body > .text-secondary {
    font-size: 0.78rem !important;
  }


}

/* One column on the genuinely tiny ones — an iPhone SE 1st gen is 320px, and
   two cards there leave about 118px of text column, where a name like
   "Kit 3 - FOX Manitou Rockshox" wraps to five lines and the card is mostly
   padding. The threshold is 339 and not 379 deliberately: 360 (most Android)
   and 375 (iPhone SE 2/3, X, 11 Pro, 12/13 mini) are the commonest widths
   there are, and they must get the two-column layout, not the fallback. */
@media (max-width: 339px) {
  #products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── Focus Visible ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ─── Product image cycler ───────────────────────────────── */
.img-cycler {
  position: relative;
}

.img-cycler-btn {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
  z-index: 2;
}

.img-cycler-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-light);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.img-cycler-prev { left: 10px; }
.img-cycler-next { right: 10px; }

.img-cycler:hover .img-cycler-btn,
.img-cycler-btn:focus-visible {
  opacity: 1;
}

.img-cycler-btn:hover {
  background: rgba(10, 10, 10, 0.8);
}

.img-cycler-btn:focus-visible {
  outline: 2px solid var(--burnt);
  outline-offset: 2px;
}

.img-cycler-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
  z-index: 2;
}

.img-cycler-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 243, 239, 0.5);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.25);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.img-cycler-dots span.active {
  background: var(--text-light);
  transform: scale(1.25);
}

/* No hover on touch screens, so the arrows are always shown there. */
@media (hover: none) {
  .img-cycler-btn { opacity: 1; }
}

/* ─── Home page showcase ─────────────────────────────────── */
.showcase-slot {
  display: flex;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.showcase-slot > .card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-slot .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.showcase-slot .product-footer {
  margin-top: auto;
}

.showcase-slot.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

/* Descriptions vary in length; capping them keeps the row height steady so
   a swap never shifts the rest of the page. */
.showcase-slot .product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-slot .product-img-placeholder {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slot { transition: none; }
}

/* ─── Product detail points (e.g. MTB magnet jaws) ───────── */
.product-details {
  margin: 0.25rem 0 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.product-details li {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-dark-secondary);
}

.product-details strong {
  color: var(--text-dark);
  font-weight: 600;
}

.product-part {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark-secondary);
  font-variant-numeric: tabular-nums;
  /* Bold: this is the line a buyer scans for. Somebody searching
     "FOX 803-00-969" needs to find it without reading the card. The
     disclaimer in .part-note stays at 400 so the two still read apart. */
  font-weight: 600;
}

/* ─── Narrow screens: hero inside the band ───────────────
   The hero is pinned to a fixed-height band, so on a narrow screen its text
   must not wrap into more lines than the band can hold. The column goes full
   width (the robot sits faded behind it here), the type steps down, and the
   band gets a little more room. Without this the buttons fell through the
   dark/cream boundary and collided with the first heading. */
@media (max-width: 768px) {
  :root {
    --band-h: clamp(360px, 56vh, 540px);
    --robot-h: clamp(420px, 66vh, 620px);
  }

  /* --band-h no longer drives the sub-page hero on a phone; see the
     unpinned-hero block below. Left in place because .spline-bg still reads
     it, and because a future tablet breakpoint would want it back. */
  body.page-sub {
    --band-h: clamp(295px, 36vh, 340px);
  }

  .hero {
    padding: 4.5rem 0 1rem;
  }

  .hero-content h1,
  .hero-content p {
    max-width: none;
  }

  .hero .display-xl {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .hero-content p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }

  .page-hero h1,
  .page-hero p {
    max-width: none;
  }

  /* The home hero's paragraph has always stepped down on a phone
     (.hero-content p above); the sub-page hero's never did, so it sat at
     full desktop size and ran to three lines inside a band that could not
     hold them. That, not the band height, is why "…you order it." was being
     sliced off at the boundary. */
  .page-hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ── The sub-page hero is not pinned on a phone ──────────────────────
     It was a fixed-height band with overflow:hidden, and the hero text had
     to fit inside whatever height a clamp() happened to produce. It did not.
     The last line of the paragraph was being sliced off, and I widened the
     band three times chasing it — each fix covered only the sizes I had
     tested. 230px clipped every phone; 270px still clipped Services and
     About; 295px still clipped Services at 320px wide, where its paragraph
     runs to five lines. A fixed height cannot be made to fit text that
     reflows at every width, and picking a bigger number is not a fix, it is
     a wider guess.

     So on a phone the hero is simply in the flow: auto height, no clipping,
     exactly as tall as its own text at any width, on any device, whatever
     the copy becomes. Nothing to measure and nothing to keep in sync.

     This is only possible because of 4g. The band is pinned so the Spline
     robot stays put while the content scrolls past it — and the robot does
     not load below 768px, so on a phone the pinning had nothing left to do.

     The black comes from the hero itself here, not body::before, and the
     top padding clears the fixed 69px navbar. */
  body.page-sub {
    padding-top: 0;
  }

  body.page-sub::before {
    display: none;
  }

  body.page-sub .page-hero {
    position: static;
    height: auto;
    overflow: visible;
    background: var(--black);
    justify-content: flex-start;
    padding: 5.25rem 0 2rem;   /* 84px top: navbar 69 + 15 of breathing room */
  }
}

/* Error toast: red accent, so a failure never reads as a success. */
.toast.toast-error {
  background: #6B1B0E;
  border-color: rgba(255, 107, 53, 0.5);
}

.toast.toast-error .toast-icon {
  color: var(--burnt);
  font-weight: 700;
}

/* ─── Category intro ─────────────────────────────────────────────────
   The one line that says what a range is for, above the shop grid. It is
   deliberately larger and darker than the "Showing N products" count and the
   colour caveat beneath it: those are housekeeping, this is the answer to
   why any of these tools exist, and at the same size it reads as a third
   piece of small print and gets skipped. Capped in width because a single
   line running the full grid is hard to come back from at the end. */
.category-intro {
  max-width: 62ch;
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark-secondary);
}

.category-intro[hidden] { display: none; }

/* ─── Cart destination picker ──────────────────────────────
   Stripe fixes shipping options when the session is created, before it has
   an address, so the destination is asked for here instead. Sits between
   the total and the note because the note's content depends on it. */
.cart-destination {
  margin: 0 0 0.85rem;
}
.cart-destination label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}
.cart-destination .form-control {
  width: 100%;
  min-height: 44px;
}


/* ─── Legal pages ──────────────────────────────────────────
   Shared by privacy.html, terms.html and returns.html. Lived inline in
   privacy.html until there were three of them; one copy, so a change to
   how a legal page reads cannot apply to only two of them.

   These pages are long prose, not marketing. The body size is bumped above
   what .section-light gives, because the default lands at 13.6px on a
   phone and nobody reads a refund policy for pleasure — the least the page
   can do is not make it squint-work. */
.legal { max-width: 720px; }
.legal h2 { margin: 2.75rem 0 0.75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.02rem; }
.legal p, .legal li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-dark-secondary);
}
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.1rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--burnt); font-weight: 500; }
.legal strong { color: var(--text-dark); }
.legal-updated { font-size: 0.85rem; opacity: 0.65; margin-bottom: 2.5rem; }
.legal-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  border-left: 3px solid var(--burnt);
  padding-left: 1.1rem;
  margin-bottom: 2rem;
}
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.9rem; }
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.7rem 0.85rem 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.legal-table th { font-family: var(--font-display); font-weight: 600; color: var(--text-dark); }
.legal-table td { color: var(--text-dark-secondary); line-height: 1.55; }

@media (max-width: 768px) {
  /* The table becomes stacked blocks. Three columns of prose do not survive
     375px, and a sideways-scrolling legal table is unreadable. */
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { padding: 0.85rem 0; border-bottom: 1px solid var(--border-light); }
  .legal-table td { border: 0; padding: 0 0 0.3rem; }
  .legal-table td:first-child {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-dark);
  }
  .legal-table td:last-child { font-size: 0.85rem; opacity: 0.85; }
}

/* The three legal links in the footer bottom bar. Spaced rather than
   separated by pipes: a pipe between links is one more thing to get wrong
   at 375px, where the bar already wraps. */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 1.1rem; }

/* ── Product pages (generated by tools/build-product-pages.py) ──────────
   One page per product, at the site root. Two columns on a wide screen,
   stacked on a phone, with the gallery first either way — the photo is what
   tells a mechanic whether the tool is the one they are after. */
.pp-section { padding-top: 2.5rem; }
.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}
.pp-media { position: sticky; top: 90px; }
.pp-main {
  background: var(--warm-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.pp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-pending { padding: 2rem; text-align: center; }
.pp-thumbs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem;
}
.pp-thumb {
  width: 64px; height: 64px; padding: 0; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--warm-grey);
  border: 2px solid transparent; transition: border-color 0.2s var(--ease);
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb.active { border-color: var(--burnt); }
.pp-thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ─── The quote and contact forms ────────────────────────
   These styles used to live in a <style> block duplicated inside
   services.html AND about.html, which is why the two forms could drift and
   why neither could be fixed in one place. They are here now; the inline
   copies are gone.

   The layout bug they hid: the form sat in a bare
   `<div style="max-width:720px">` inside a 1200px container, left-aligned.
   On a 1440px screen that left 448px of empty page beside it — the form did
   not look constrained, it looked abandoned, which is exactly how it reads
   in a screenshot.

   Above 1024px the section now splits: the heading and the explanation hold
   the left column, the form the right. The width is used, the eye has
   somewhere to go, and the form is beside its own introduction instead of
   stranded under it. Below 1024 it stacks, which is what it already did on
   a phone. */
.form-section-grid {
  display: grid;
  gap: 3rem 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .form-section-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
  /* The intro stays with the form as you scroll a long form. */
  .form-section-intro {
    position: sticky;
    top: 7rem;
  }
}

.form-section-intro h2 { margin-bottom: 0.75rem; }
.form-section-intro p { max-width: 46ch; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-section-grid { gap: 2rem; }
}

.pp-cat {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--burnt); margin: 0 0 0.5rem;
}
.pp-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.1; margin: 0 0 0.75rem; letter-spacing: -0.02em;
}
.pp-desc { font-size: 1.05rem; color: var(--text-dark-secondary); margin: 0 0 1.25rem; }
.pp-details { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pp-details li {
  padding: 0.6rem 0; border-top: 1px solid var(--border-light);
  font-size: 0.92rem; color: var(--text-dark-secondary);
}
.pp-details li:last-child { border-bottom: 1px solid var(--border-light); }
.pp-details strong { color: var(--text-dark); }

/* A highlighted detail. One flag, `highlight: true` on a detail in data.js,
   boxed and labelled so it reads as a notice rather than a feature. Built for
   MTB-019's "A V2 is in the making": the buyer needs it before they decide,
   and in a plain list it sat third of four and disappeared.

   --burnt on a warm tint, NOT a red: this is information, not a warning, and
   a red box on a product page reads as "something is wrong with this item".
   The left rule carries the colour so the text stays on the page's own warm
   ground and keeps its contrast in both themes.

   The borders have to be killed explicitly. .pp-details li carries a
   border-top and the last child a border-bottom, so a boxed item inherits a
   stray line across its middle and another under it. */
.pp-details li.is-highlight {
  border-top: none;
  border-bottom: none !important;
  background: rgba(255, 107, 53, 0.07);
  border-left: 3px solid var(--burnt);
  border-radius: 0 6px 6px 0;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0;
}
.pp-details li.is-highlight + li { border-top: 1px solid var(--border-light); }
.pp-note-tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burnt);
  margin-bottom: 0.3rem;
}
/* MTB-021's bore boxes. The only product where the customer specifies the
   thing being made, so the inputs sit directly above the price rather than
   after it — they are part of choosing, not part of paying.

   The running total is the reason the block exists. "Your sizes added
   together, no more than 140 mm" is not a sum anyone wants to do in their
   head, and an order that breaks it costs a refund and a lost sale. */
.pp-bores {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  background: rgba(10, 10, 10, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.pp-bores-h {
  margin: 0 0 0.7rem; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dark);
}
/* Wraps rather than shrinking: five boxes squeezed onto a 320px phone give
   you five unusable 40px targets. Two rows of readable inputs is better. */
.pp-bores-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pp-bore {
  width: 4.6rem; padding: 0.55rem 0.5rem; text-align: center;
  font: inherit; font-variant-numeric: tabular-nums;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border-light); border-radius: 6px;
}
.pp-bore:focus { outline: 2px solid var(--burnt); outline-offset: 1px; }
/* Spinners steal width from a four-character number and nobody nudges a bore
   size by 0.1 with a mouse. */
.pp-bore::-webkit-outer-spin-button,
.pp-bore::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-bore { -moz-appearance: textfield; appearance: textfield; }
.pp-bores-rule {
  margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--text-dark-secondary);
  font-variant-numeric: tabular-nums;
}
.pp-bores-rule strong { color: var(--text-dark); }
/* The one place red is right on a product page: this is the customer's own
   entry being out of range, which is a thing they can fix. */
.pp-bores-warn {
  margin: 0.6rem 0 0; font-size: 0.82rem; font-weight: 500; color: #B3261E;
}
.pp-bores-note {
  margin: 0.8rem 0 0; font-size: 0.78rem; color: var(--text-dark-secondary);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pp-bore { background: rgba(255,255,255,0.06); }
}
:root[data-theme="dark"] .pp-bore { background: rgba(255,255,255,0.06); }

.pp-buy {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  margin: 1.5rem 0 0.75rem;
}
.pp-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.pp-meta { font-size: 0.78rem; color: var(--text-dark-secondary); margin: 0 0 1rem; }
.pp-ship { font-size: 0.82rem; color: var(--text-dark-secondary); margin: 0; }

@media (max-width: 860px) {
  .pp-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Sticky is wrong once the columns stack: it pins the photo over the copy
     the reader is scrolling towards. */
  .pp-media { position: static; }
}

/* The card title links to the product's own page. Underline only on hover:
   23 permanently underlined headings turned the grid into a wall of blue. */
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The disclaimer that travels with an OEM part number. Quieter than the
   number itself, but on the same line so the two cannot be read apart. */
.product-part .part-note{opacity:.7;font-weight:400}
/* Our own reference, under the OEM number. Quieter than the OEM line: a buyer
   looking for "the FOX 803-00-969 clamp" needs that number to stand out, and
   only comes looking for MF3D-MTB-017 after they already own one. */
.product-sku{font-size:.72rem;margin:-.25rem 0 .6rem;color:var(--text-dark-secondary);opacity:.75}
.product-sku .sku-code{font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap}

/* ─── Related tools, foot of every product page ──────────────────
   Added 2026-11-12. These 23 pages were orphans: every link to them was
   written by JavaScript at runtime, so the raw HTML a crawler fetches first
   contained no path to any product. The sitemap listed the URLs; nothing
   connected them to each other. Google answered with "crawled, currently not
   indexed". Plain <a href>, no JS, deliberately. */
.pp-related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.pp-related h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-secondary);
  margin: 0 0 1rem;
}
.pp-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.2rem 2rem;
}
.pp-related li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
}
.pp-related a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
}
.pp-related a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pp-related .rel-price {
  font-size: 0.8rem;
  color: var(--text-dark-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pp-related .rel-all { margin: 1.25rem 0 0; font-size: 0.82rem; }
.pp-related .rel-all a { color: var(--text-dark-secondary); }

/* ─── "Every product" index at the foot of the shop ──────────────
   Added 2026-11-12, same reason as .pp-related: the grid above it is built
   by JavaScript and ships no links in the HTML. Shown to readers, not just
   crawlers — a list of links visible only to Google is cloaking, and this is
   genuinely quicker than scrolling 23 cards when you know what you want. */
.product-index-section { padding-top: 0; }
.product-index { border-top: 1px solid var(--border-light); padding-top: 2rem; }
.product-index h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-secondary);
  margin: 0 0 1.5rem;
}
.product-index h3 {
  font-size: 0.95rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--text-dark);
}
.product-index h3:first-of-type { margin-top: 0; }
.product-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 2rem;
}
.product-index li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.product-index a { color: var(--text-dark); text-decoration: none; font-size: 0.88rem; }
.product-index a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-index .pi-price {
  font-size: 0.78rem;
  color: var(--text-dark-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
