/**
* Flag Eagle - Premium Design System
* Black + white + tricolour accents — confident, American, premium.
* Near-black page bg with white text, Old Glory Red (#B22234) and Old Glory
* Blue (#3C3B6E) as primary brand accents, pure white for tricolour highlights.
* Variable names retain their `--green-*` / `--cream-*` legacy spellings
* (deep references throughout the file) but the colour VALUES are flag-coded.
*/

/*--------------------------------------------------------------
# Design System Variables
--------------------------------------------------------------*/
:root {
  /* Brand Colors — Old Glory Red + Old Glory Blue (US flag) */
  --green-light: #B22234;
  --green-dark: #3C3B6E;
  --green-glow: rgba(178, 34, 52, 0.20);
  --green-accent: #ffffff;

  /* Dark Neutrals (inverted from cream — near-black surfaces) */
  --cream: #0a0a0a;
  --cream-dark: #000000;
  --warm-white: #1a1a1a;

  /* Text Colors — inverted: light on dark */
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --flag-white: #ffffff;  /* American flag white, for tricolour accents */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);

  /* Functional */
  --border-light: #2a2a2a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);

  /* Legacy compatibility */
  --brand-green-light: #B22234;
  --brand-green-dark: #3C3B6E;
  --brand-black: #000000;
  --brand-white: #1a1a1a;
  --brand-offwhite: #0a0a0a;
}

/* Screen-reader-only utility — content for AT users only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*--------------------------------------------------------------
# A11y: keyboard focus safety net + skip-to-content link
# - :focus-visible restores an outline for keyboard users even when
#   individual components zero out :focus.
# - .skip-link is visually hidden until focused, then jumps to top.
--------------------------------------------------------------*/
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  background: var(--green-dark);
  color: var(--warm-white);
  padding: 12px 20px;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--green-accent);
  outline-offset: 2px;
}

/*--------------------------------------------------------------
# Mobile nav toggle button (hamburger / close-X swap)
# Single button containing both icons; CSS shows one or the other
# based on .is-open. Replaces the FA fa-bars ↔ fa-times class swap
# that main.js used to do (now toggles .is-open instead).
--------------------------------------------------------------*/
.mobile-nav-toggle {
  background: transparent;
  border: 0;
  padding: 8px;
  color: inherit;
  cursor: pointer;
  line-height: 0;
}

.mobile-nav-toggle-close { display: none; }
.mobile-nav-toggle.is-open .mobile-nav-toggle-bars { display: none; }
.mobile-nav-toggle.is-open .mobile-nav-toggle-close { display: inline-block; }

/*--------------------------------------------------------------
# Custom follow-cursor (Patek-style)
# A subtle dot trails the pointer over .cursor-aware regions; the
# native cursor is hidden inside those regions. JS is in
# assets/static/js/cursor-dot.js — pure vanilla, respects
# prefers-reduced-motion and touch devices.
--------------------------------------------------------------*/
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-light);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.18s ease, width 0.18s ease, height 0.18s ease;
  will-change: transform;
  mix-blend-mode: multiply;
}

.cursor-dot.is-active {
  opacity: 0.85;
}

/* Inside cursor-aware regions, hide the native cursor so only the
   dot is visible. Anchors and buttons inside still respond to clicks
   — pointer-events is left default; just the visual is hidden. */
.cursor-aware,
.cursor-aware * {
  cursor: none;
}

/* Body scroll lock — applied by main.js when the search overlay opens.
   Stops the page behind from scrolling while the modal is up. */
body.no-scroll {
  overflow: hidden;
  /* Preserve scroll position on the body so closing returns visually. */
  touch-action: none;
}

/*--------------------------------------------------------------
# Motion
# Phase 8f decision: removed the scroll-driven reveal animations
# entirely. They were a 2026 tech-flex but they made the page feel
# "designed" rather than present. Premium watch sites (Patek,
# F.P. Journe, Hermès) are STILL — stillness is the highest motion
# design. Hover micro-interactions (on cards, on the trusted-logo
# scale, on the .arrow span) remain because they are functional
# affordances, not entrance choreography.
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

/* Honour user motion preference — shorten transitions and remove
   smooth scroll for those who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# Base Typography
--------------------------------------------------------------*/
/* overflow-x: clip prevents horizontal scrolling WITHOUT creating a
   scroll container — which `overflow-x: hidden` does, and that breaks
   `position: sticky` on descendants (e.g. the shop filter sidebar).
   `clip` is supported in all modern browsers (Chrome 90+, Safari 16+,
   Firefox 81+ for `overflow: clip`; Safari 15.4+ for `overflow-x: clip`). */
html, body {
  overflow-x: clip;
}

/* Phase 10c safety net: when an <img> sets width/height attributes for
   CLS prevention, the browser uses them as intrinsic-aspect hints AND
   as pixel defaults. Pair them with a CSS `height: auto` so the rendered
   size scales to the container width while preserving the aspect ratio.
   Containers that intentionally crop (service / bracelet / category /
   catalogue tiles using object-fit: cover) override this with explicit
   height + object-fit and continue to work. */
img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  /* Flag Eagle: page background uses --cream (now near-black #0a0a0a).
     --warm-white is reserved for slightly elevated card surfaces (#1a1a1a).
     The American flag red + blue accents stand cleaner against near-black
     than pure black; pure black is reserved for alternating sections. */
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
  text-wrap: pretty;
}

p {
  text-wrap: pretty;
}

/* Phase 8g + Iteration 4 polish: lighter weights, larger display scale,
   balanced wrap. Premium watchmaking sites lean into ultra-light display
   serifs at editorial size — the type itself signals craft. Weight 300
   for hero H1, 400 for section H2s, 500 for H4 small-caps. Letter-spacing
   is optically tuned: tighter on the huge sizes, neutral on H3, slight
   positive tracking on H2 for editorial breath. text-wrap: balance keeps
   multi-line headings visually weighted. */
h1, h2, h3, h4 {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 400;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
}
h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}
h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

a {
  color: var(--green-light);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

/* Inline body links inside prose paragraphs get a subtle hover
   underline so they're discoverable without a permanent rule. */
p > a:hover,
.detail-card a:hover,
.description-formatted a:hover,
.basic-page a:hover {
  text-decoration: underline;
  text-decoration-color: var(--green-light);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.mono, .price, .sku, .code {
  font-family: 'JetBrains Mono', monospace;
}

/*--------------------------------------------------------------
# Section Styling
--------------------------------------------------------------*/
section {
  padding: 100px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
}

.section-eyebrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   Flag Eagle signature — numbered section eyebrow (editorial-American).
   Cormorant serif label paired with a JetBrains Mono 2-digit prefix
   delivered via `data-num="01"` attribute.
============================================================ */
.section-num-eyebrow {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green-light);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-style: italic;
}
.section-num-eyebrow::before {
  content: attr(data-num);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-style: normal;
}

/* Section divider — a subtle 3-stripe flag accent (red/white/blue gradient)
   sitting between major homepage sections. 60% width, centered.
   Iteration 4: increase top/bottom breathing so it doesn't crash into
   the following heading or numbered eyebrow. */
.section-flag-divider {
  width: 60%;
  max-width: 720px;
  height: 3px;
  margin: 80px auto;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--green-light) 18%,
    var(--green-light) 38%,
    var(--green-accent) 50%,
    var(--green-dark) 62%,
    var(--green-dark) 82%,
    transparent 100%);
  opacity: 0.5;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .section-flag-divider {
    margin: 56px auto;
    width: 72%;
  }
}

.section-bg {
  background-color: var(--warm-white);
}

.section-dark {
  background: var(--green-dark);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-dark);
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq {
  background: var(--cream-dark);
  padding-block: 100px;
}

.faq-inner {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 24px;
}

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--green-light);
}

.faq-item[open] {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  padding: 22px 60px 22px 28px;
  cursor: pointer;
  list-style: none;
  position: relative;
  text-wrap: balance;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '';
  position: absolute;
  right: 28px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--green-light);
  border-bottom: 2px solid var(--green-light);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  text-wrap: pretty;
}

.faq-answer p {
  margin: 0;
}

@media (max-width: 600px) {
  .faq { padding-block: 64px; }
  .faq-question { font-size: 1.15rem; padding: 18px 48px 18px 20px; }
  .faq-question::after { right: 20px; }
  .faq-answer { padding: 0 20px 20px 20px; }
}

/*--------------------------------------------------------------
# Promo Strip (demoted, below hero, feature-flagged)
--------------------------------------------------------------*/
.promo-strip {
  background: var(--cream-dark);
  border-block: 1px solid var(--border-light);
  padding: 14px 24px;
  text-align: center;
}

.promo-strip p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.promo-strip code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--green-dark);
  background: transparent;
  padding: 0 2px;
  letter-spacing: 0.08em;
}

.promo-strip-sep {
  margin: 0 8px;
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# Promo Banner (legacy — retained for opt-in re-enablement,
#  but no longer rendered by default; see base.html)
--------------------------------------------------------------*/
.promo-banner {
  background: var(--green-dark);
  padding: 12px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.promo-banner-text {
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.promo-banner-text i {
  color: var(--green-light);
  font-size: 0.5rem;
}

.promo-banner-code {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

.promo-banner-code span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--green-accent);
  letter-spacing: 0.1em;
}

.promo-banner-code button {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.promo-banner-code button:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header,
.site-header {
  background: var(--warm-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 0;
  transition: all 0.3s;
}

.header-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo,
.site-header .logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

#header .logo img,
.site-header .logo img {
  height: 44px;
  width: auto;
}

/* Header search — collapsed magnifier (P1.1 strip-header pass).
   The old expanded search bar consumed the header's most valuable visual
   slot. Now it's a single 44×44 icon button that opens an overlay; the
   header reads as logo · nav · cart, premium-watchmaker style. */
.header-search-collapsed {
  display: flex;
  align-items: center;
}

.header-search-trigger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  background: var(--cream);
  border-color: var(--border-light);
  color: var(--green-light);
}

/* Full-width overlay search dialog. Slides down from the top when
   triggered; ESC closes; click outside closes. */
.header-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(0, 41, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 24px;
  animation: headerSearchFade 180ms ease-out;
}

.header-search-overlay[hidden] {
  display: none;
}

@keyframes headerSearchFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.header-search-overlay-inner {
  width: min(640px, 100%);
}

.header-search-overlay-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-white);
  border-radius: 4px;
  padding: 8px 12px 8px 20px;
  box-shadow: var(--shadow-lg);
}

.header-search-overlay-icon {
  color: var(--green-light);
  display: inline-flex;
  align-items: center;
}

.header-search-overlay-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  padding: 14px 0;
  color: var(--text-primary);
}

.header-search-overlay-input::placeholder {
  color: var(--text-muted);
}

.header-search-overlay-close {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.header-search-overlay-close:hover,
.header-search-overlay-close:focus-visible {
  background: var(--cream-dark);
  color: var(--text-primary);
}

/* Legacy .header-search selectors retained below for any consumers
   we might've missed; the visible markup no longer uses them. */
.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 48px;
}

.header-search .search-wrapper {
  position: relative;
}

.header-search .form-control,
.header-search .search-input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s;
}

.header-search .form-control:focus,
.header-search .search-input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.header-search .search-wrapper i,
.header-search .btn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search .input-group {
  position: relative;
}

.header-search .input-group .form-control {
  padding-left: 48px;
  border-radius: 4px;
}

.header-search .input-group .btn {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-select,
.language-selector .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  text-decoration: none;
}

/* Subtle hover affordance — cream tint, no border. */
.lang-select:hover,
.lang-select:focus-visible,
.language-selector .nav-link:hover {
  background: var(--cream);
  color: var(--text-primary);
}

/* Compact variant for P1.1 strip-header pass — drops the trailing
   two-letter code, keeps only flag + chevron, tightens to 44px. */
.lang-select-compact {
  gap: 6px;
  padding: 10px 10px;
}

.lang-select-compact .dropdown-toggle-text {
  display: none;
}

/* Button-specific resets for language selector */
button.lang-select {
  font-family: inherit;
  line-height: inherit;
}

.lang-select:hover,
.language-selector .nav-link:hover {
  border-color: var(--green-light);
  background: var(--cream);
}

.lang-select:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 2px rgba(var(--green-light-rgb, 76, 175, 80), 0.2);
}

/* Style Bootstrap's dropdown caret */
.lang-select.dropdown-toggle::after {
  margin-left: 6px;
  font-size: 0.6rem;
  vertical-align: middle;
}

.lang-select img,
.language-selector img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* Ensure dropdown menu has proper z-index and scrolling for many languages */
.language-selector .dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
}

/*--------------------------------------------------------------
# Main Navigation
--------------------------------------------------------------*/
.main-nav,
.navbar {
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0;
}

.main-nav .nav-inner,
.navbar .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul,
.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-nav .nav-item,
.navbar li {
  position: relative;
}

.main-nav .nav-link,
.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.navbar a:hover,
.navbar .active,
.navbar li:hover > a {
  color: white;
  background: rgba(255,255,255,0.05);
}

.main-nav .nav-link.active,
.navbar .nav-link.active {
  color: white;
  border-bottom-color: var(--green-light);
}

.main-nav .nav-link i,
.navbar a i {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s;
  margin-left: 4px;
}

.main-nav .nav-item:hover .nav-link i {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.main-nav .nav-dropdown,
.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-xl), 0 8px 20px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 200;
  padding: 12px 0;
  border: none;
  margin: 0;
}

.main-nav .nav-item:hover .nav-dropdown,
.navbar .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.main-nav .nav-dropdown-link,
.navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
  background: transparent;
  border: none;
  width: 100%;
}

.main-nav .nav-dropdown-link:hover,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--cream);
  color: var(--green-light);
  padding-left: 28px;
}

.main-nav .nav-dropdown-link i,
.navbar .dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.main-nav .nav-dropdown-link:hover i {
  color: var(--green-light);
}

.nav-dropdown-divider,
.navbar .dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
  border: none;
}

.nav-dropdown-header {
  padding: 8px 24px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 680px;
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--shadow-xl), 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 200;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.main-nav .nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.mega-menu-link:hover {
  background: var(--cream);
  color: var(--green-light);
}

.mega-menu-link i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mega-menu-link:hover i {
  color: var(--green-light);
}

.mega-menu-all {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 16px;
  border-top: 1px solid #eee;
  text-align: center;
}

.mega-menu-all a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green-light);
  color: white;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Higher specificity needed because `.navbar li:hover > a` at line ~849 is
   a legacy dark-navbar rule that wins on specificity (0,2,2) and forced the
   button to white-on-white. The `.navbar` prefix here lifts us to (0,3,2)
   so the brand-green hover wins. !important on the background only because
   the legacy rule explicitly sets background and we need to override it. */
.navbar .mega-menu-all a:hover,
.navbar .mega-menu-all a:focus-visible {
  background: var(--green-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--green-glow);
}

/* Nav Cart Button */
/* Cart button — text-link styling, no border / no pill. Matches the
   rest of the typographic nav. The site header is white now (phase 8e),
   so the previous white-on-white-with-faint-border treatment was both
   invisible and out of step with the heritage-monument voice. */
.nav-cart-btn,
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: transparent;
  color: var(--text-primary);
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-cart-btn:hover,
.cart-link:hover {
  color: var(--green-dark);
  background: transparent;
}

.nav-cart-btn svg,
.cart-link svg {
  flex-shrink: 0;
}

/* Cart count badge — small green pill, only shown when count > 0. */
.nav-cart-count,
#cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--green-light);
  color: var(--warm-white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0 6px;
  border-radius: 9px;
  letter-spacing: 0;
}

/* Hide the badge entirely when the cart is empty so the nav reads
   clean. shop.js maintains a numeric text content; we hide via CSS
   on the empty state via :has() — supported in all evergreen
   browsers as of 2026. */
.nav-cart-count:empty,
.nav-cart-btn:has(#cart-badge:empty) #cart-badge {
  display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 24px;
  padding: 10px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero,
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--cream-dark) 100%);
  position: relative;
  overflow: hidden;
  min-height: auto;
  height: auto;
  border-bottom: none;
}

#hero::before,
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, var(--green-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner,
#hero .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}


/* Eyebrow container (P1.6 founder byline). Sits above the hero H1.
   Mono caps small text + soft brand-gold dot. */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-eyebrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

#hero h1,
.hero-title {
  font-family: 'Cormorant', Georgia, serif;
  /* Phase 8g: hero H1 scales from 2.75rem on small screens up to
     ~5.5rem at desktop. Weight 300 (light). text-wrap balance to
     keep multi-line headings visually weighted.
     Phase 10f: editorial overhang on desktop — H1 breaks the grid
     edge by 12px so it reads designed, not templated. */
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--text-on-dark);
  margin: 0 0 32px -12px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: none;
}

@media (max-width: 768px) {
  #hero h1,
  .hero-title {
    margin-left: 0;
  }
}

#hero h1 em,
.hero-title em {
  font-style: italic;
  color: var(--green-accent);
}

#hero h2,
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  margin-bottom: 36px;
  line-height: 1.55;
  max-width: 520px;
  text-shadow: none;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  #hero h2,
  .hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 28px;
  }
}

.hero-features {
  margin-bottom: 44px;
  padding: 0;
  list-style: none;
}

.hero-feature,
#hero .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  text-shadow: none;
}

/* CSS-drawn check mark in brand accent — replaces fa-check-circle
   per design system: no Font Awesome icon stacks. */
.hero-feature::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--green-accent);
  border-bottom: 2px solid var(--green-accent);
  transform: rotate(45deg);
  margin-top: 4px;
  margin-right: 4px;
}

/* Legacy: keep working if any leftover <i> still renders */
.hero-feature i,
#hero .feature-item i {
  color: var(--green-accent);
  font-size: 1rem;
  margin-top: 4px;
  text-shadow: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-feature strong {
  color: white;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-main {
  width: 100%;
  height: auto;
  max-width: 520px;
  border-radius: 4px;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 4px rgba(0, 0, 0, 0.2),
    0 0 0 5px rgba(255, 255, 255, 0.08);
  /* Subtle inner glow for luxury feel */
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}



.hero-stat-value {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-accent);
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}





/* Hero Image */
.hero-image-container {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.hero-image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  padding: 20px 28px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.hero-image-badge-number {
  font-family: 'Cormorant', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--green-light);
  line-height: 1;
}

.hero-image-badge-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  background: var(--cream);
  padding: 120px 48px;
  position: relative;
}

/* Elegant top border/divider for About section */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--green-accent) 50%,
    transparent 100%);
  opacity: 0.6;
}

.about::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--green-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green-glow);
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: 'Cormorant', serif;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--green-accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: 'Cormorant', serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .about-grid {
    gap: 32px;
  }
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .about-content {
    padding: 0 24px;
  }
}

.about-content h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content strong {
  color: var(--text-primary);
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255, 255, 255, 0.10);
  margin-top: 24px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-features {
  display: grid;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 20px;
  padding: 28px 28px 28px 32px;
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 4px;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-light);
  transition: border-left-color 0.2s ease, transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 600px) {
  .about-feature {
    padding: 20px 20px 20px 24px;
    gap: 16px;
  }
}

.about-feature:hover {
  border-left-color: var(--green-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.about-feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature-num {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
}

.about-feature h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Legacy about styles */
.about .icon-box,
.about-feature-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--cream);
  border-radius: 4px;
  transition: all 0.3s;
}

.about .icon-box:hover,
.about-feature-box:hover {
  background: var(--warm-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about .icon-box i,
.about-feature-box i {
  font-size: 1.5rem;
  color: var(--green-light);
  flex-shrink: 0;
}

.about .icon-box h4,
.about-feature-box h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  min-height: auto;
}

.about-feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
  padding: 100px 0;
  background: var(--cream);
}

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/*--------------------------------------------------------------
# Curated catalogue grid (six featured product cards)
# Replaces the three-tier service cards on the homepage.
--------------------------------------------------------------*/
.catalogue-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 960px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 24px;
  }
}

@media (max-width: 560px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}

.catalogue-card {
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease,
              border-left-color 0.2s ease,
              box-shadow 0.3s ease;
}

.catalogue-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-light);
  border-left-color: var(--green-light);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.catalogue-image {
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalogue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.catalogue-card:hover .catalogue-image img {
  transform: scale(1.04);
}

.catalogue-content {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.catalogue-tier {
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0;
}

.catalogue-tier-genuine { color: var(--green-light); }
.catalogue-tier-custom_made { color: var(--green-accent); }
.catalogue-tier-high_quality_aftermarket { color: var(--text-secondary); }

.catalogue-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

.catalogue-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.catalogue-sku {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.catalogue-price {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.services .service-box,
.service-card {
  background: var(--warm-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  text-align: left;
  padding: 0;
  margin-bottom: 0;
}

.services .service-box:hover,
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.services .service-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.service-card-content {
  padding: 28px;
}

.services .service-box i {
  display: none;
}

.services .service-box h4,
.service-card h4 {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.services .service-box p,
.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-light);
  text-decoration: none;
}

.service-card-link:hover {
  gap: 12px;
}

/*--------------------------------------------------------------
# Products Section
--------------------------------------------------------------*/
.products {
  padding: 100px 0;
  background: var(--warm-white);
}

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.product-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: var(--green-light);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card-content {
  padding: 20px;
}

.product-card-sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
}

.product-card-models {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.product-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
}

.product-card-btn {
  padding: 10px 18px;
  background: var(--green-light);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-card-btn:hover {
  background: var(--green-dark);
}

.product-card-btn:active {
  transform: translateY(1px);
}

/*--------------------------------------------------------------
# Product Price Display (Amazon-style)
--------------------------------------------------------------*/
.product-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  line-height: 1;
  color: var(--green-dark);
}

.price-symbol {
  font-size: 0.9rem;
  padding-top: 2px;
}

.price-pounds {
  font-size: 1.5rem;
  font-weight: 600;
}

.price-pence {
  font-size: 0.9rem;
  padding-top: 2px;
}

/*--------------------------------------------------------------
# Categories Section
--------------------------------------------------------------*/
.categories {
  padding: 100px 0;
  background: var(--cream);
}





.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background 0.3s;
}




.category-card-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}


/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  padding: 100px 0;
  background: var(--warm-white);
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card,
.testimonial-box {
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 32px 32px 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-light);
  transition: border-left-color 0.2s ease, transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover,
.testimonial-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--green-accent);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars i {
  color: var(--green-accent);
  font-size: 1rem;
}

.testimonial-card blockquote,
.testimonial-box .feedback p {
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--green-light);
}

.testimonial-author-name,
.testimonial-box .item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding: 100px 0;
  background: var(--green-dark);
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.contact-inner h2 {
  color: white;
  font-family: 'Cormorant', serif;
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.contact-content h2 {
  color: white;
  margin-bottom: 20px;
}

.contact-content p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item i {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.contact-info-item a {
  color: var(--green-accent);
}

.contact-form {
  background: var(--warm-white);
  color: var(--text-primary);
  padding: 40px;
  border-radius: 4px;
  box-shadow: var(--shadow-xl);
}

.contact-form h3 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}



/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer,
.site-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
  margin: 20px 0;
}

.footer-logo {
  display: inline-block;
  /* No more white pill — using the white-coloured logo asset directly so
     it sits cleanly on the dark footer background. */
  padding: 0;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

#footer h3,
.footer-brand h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--green-light);
  color: white;
}

.footer-social a.ebay-link {
  width: auto;
  height: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.footer-social a.ebay-link:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

#footer h4,
.footer-column h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--green-light);
}

.footer-bottom,
#footer .copyright {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
  margin-top: 0;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--green-accent);
}

#footer .disclaimer {
  text-align: center;
  max-width: 800px;
  margin: 30px auto 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}


.trusted-by-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.trusted-by-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-by-logos img {
  height: 40px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.trusted-by-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}






/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 24px;
  bottom: 24px;
  z-index: 996;
  background: var(--green-light);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  background: var(--green-dark);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Rolex Collection & Reference Pages
--------------------------------------------------------------*/
.collection-hero {
  background: var(--green-dark);
  padding: 80px 0;
  text-align: center;
}

.collection-hero h1 {
  color: white;
  margin-bottom: 16px;
}

.collection-hero p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.reference-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.reference-card {
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.reference-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}

.reference-image-container,
.reference-image-placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
}

.reference-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.reference-image-placeholder {
  background-color: var(--cream);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.reference-card-content {
  padding: 20px;
}

.reference-card h4 {
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.reference-card .reference-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spec-group {
  margin-bottom: 24px;
}

.spec-group h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.spec-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-group ul li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.parts-sidebar {
  position: sticky;
  top: 120px;
}

.related-model {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 4px;
}

.related-model:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.badge.bg-primary {
  background-color: var(--green-light) !important;
}

/*--------------------------------------------------------------
# Shop Page
--------------------------------------------------------------*/
.shop-hero {
  background: var(--green-dark);
  padding: 60px 0;
  text-align: center;
}

.shop-hero h1 {
  color: white;
  margin-bottom: 16px;
}

.shop-hero p {
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Rolex reference page — hero + parts-filter chips
   Hierarchy: production years (eyebrow) → model name (Cormorant H1)
   → reference number (JetBrains Mono technical code) → primary CTA
============================================================ */
.reference-hero {
  background: var(--cream);
  padding: 56px 0;
}
.reference-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.reference-hero-title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 16px;
  text-wrap: balance;
}
.reference-hero-refnumber {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.reference-hero-refnumber .ref-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.reference-hero-nicknames {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nickname-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-glow);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.btn-reference-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--green-light);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-reference-cta:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-1px);
}
.btn-reference-cta .ref-cta-count {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.btn-reference-cta-email {
  background: transparent;
  color: var(--green-light);
  border: 1px solid var(--green-light);
}
.btn-reference-cta-email:hover {
  background: var(--green-light);
  color: var(--flag-white);
}
.reference-hero-image {
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  background: var(--warm-white);
}
.reference-hero-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Reference-guide inline code blocks — Bootstrap's `code.bg-light`
   (#f8f9fa background + dark text) fails contrast on the page's
   light hero. Brand-token version uses cream-dark + brand text. */
.ref-guide-code {
 background: var(--cream-dark);
 color: var(--text-primary);
 padding: 2px 8px;
 border-radius: 4px;
 font-family: 'JetBrains Mono', monospace;
 font-size: 0.85em;
}

/* Reference-guide `.lead` text on its light hero — Bootstrap default
   text-muted fails AA. Pin to brand text-secondary. */
.reference-guide-lead, .ref-guide-hero p.lead {
 color: var(--text-secondary);
}

/* Inline links inside any content section <p> or <li> get a visible
   underline so they don't fail Lighthouse's `link-in-text-block`
   (links can't rely on colour alone). Buttons + brand-CTAs are
   explicitly excluded so they keep their pill styling. */
.content p a,
.content li a,
section p a:not(.btn):not(.btn-text):not(.btn-reference-cta):not(.empty-link):not(.empty-clear-all),
section .content li a {
 text-decoration: underline;
 text-decoration-thickness: 1px;
 text-underline-offset: 2px;
 color: var(--green-light);
}

/* ============================================================
   Caliber (movement) page — hero. Caliber number is the identifier
   buyers search for, so it's the H1 in JetBrains Mono large. Model
   name (e.g. "Caliber 3135") sits below as a Cormorant subtitle.
============================================================ */
.caliber-hero-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.caliber-hero-title {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.caliber-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.caliber-feature-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
}
.caliber-hero-watches {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 24px;
}
.caliber-hero-watches-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 6px;
}
.caliber-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.caliber-hero-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--warm-white);
  border-radius: 4px;
  padding: 24px;
  border: 1px solid var(--border-light);
}
.caliber-hero-placeholder {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Rolex collection page — hero, reference grids (notable + all),
   bottom CTA. Reuses .reference-hero (already styled) but adds a
   lead paragraph slot below the H1 + the section/grid wrappers.
============================================================ */
.reference-hero-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 520px;
}

.collection-references-section {
  background: var(--cream-dark);
  padding: 56px 0;
}
.collection-section-header {
  margin-bottom: 24px;
}
.collection-section-header-secondary {
  margin-top: 48px;
}
.collection-section-title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.collection-section-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.collection-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.collection-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, border-left-color 0.2s ease;
}
.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.collection-card.collection-card-compact:hover {
  border-left: 3px solid var(--green-light);
}
.collection-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.collection-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.collection-card-refnumber {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.collection-card-title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 2px 0 4px;
  color: var(--text-primary);
}
.collection-card-title-compact {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collection-card-years,
.collection-card-years-compact {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.collection-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 6px 0 0;
}
.collection-card-nicknames {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}

.collection-cta-section {
  background: var(--warm-white);
  padding: 64px 0;
  text-align: center;
}
.collection-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.collection-cta-title {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.collection-cta-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.collection-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Reference-page spec-group + parts-info subheadings — h3 elements
   that should LOOK like the previous h5 styling (smaller eyebrow-y
   labels) while keeping a sane heading order. */
.spec-group-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.parts-info .spec-group-heading {
  margin-top: 16px;
}

/* Reference-page "Other references in this collection" — capped at 8,
   fully-clickable cards with thumbnail + ref-number + model name.
   Replaces the 36-card wall of Bootstrap btn-outline-primary cards. */
.related-models-section {
  background: var(--cream);
  padding: 56px 0;
}
.related-models-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.related-models-header h2 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-primary);
}
.related-models-all {
  color: var(--green-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.related-models-all:hover {
  color: var(--green-dark);
}
.related-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.related-model-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.related-model-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.related-model-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-placeholder-tile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.related-model-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.related-model-refnumber {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.related-model-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reference-page sidebar — flat list driven by matching_products
   category counts (not the legacy available_parts databag). */
.parts-sidebar {
  background: var(--cream-dark);
  padding: 24px;
  border-radius: 4px;
}
.parts-sidebar h3 {
  font-family: 'Cormorant', serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.parts-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.parts-sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.parts-sidebar-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Bootstrap's `.text-muted` (#6c757d at 4.54:1) drops below WCAG AA
   on the cream-dark parts-sidebar background. Override locally with
   the brand text-secondary token (#5a5a5a) which is 7.43:1 on cream-
   dark and passes AAA. */
.parts-sidebar .text-muted {
  color: var(--text-secondary) !important;
}

/* Reference-page parts grid stock badges — replace Bootstrap's
   bg-success/bg-warning which both fail WCAG AA on the white card
   bg. Brand-aligned tokens: green-dark on green-glow for in-stock,
   amber on cream-dark for low-stock. */
.ref-stock-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ref-stock-in {
  background: var(--green-glow);
  color: var(--green-dark);
}
.ref-stock-low {
  background: var(--green-glow);
  color: var(--green-light);
}

/* Reference-page parts-filter chips — matches the shop sidebar chip
   pattern (rounded pill, brand outline on active, count tag). */
.parts-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.parts-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.parts-filter-badge:hover {
  border-color: var(--green-light);
}
.parts-filter-badge.active {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
}
.parts-filter-count {
  background: var(--cream-dark);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 1px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.parts-filter-badge.active .parts-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: var(--flag-white);
}

/* Related parts on the product detail page — sibling cards for
   products sharing the same SKU (per CLAUDE.md "SKU is NOT unique"
   rule). Square thumbnails in a responsive grid, brand-card styling
   matching the shop grid. */
.related-parts .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.related-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.related-card-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.related-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-card-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-price {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* (Removed: legacy .shop-content / .shop-filters / .filter-group /
   .shop-grid rules — superseded by .shop-layout / .shop-sidebar /
   .filter-card / .product-grid in the current shop template. Zero
   references in templates/ and assets/static/js/.) */

/*--------------------------------------------------------------
# Product Detail Page
--------------------------------------------------------------*/
.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-gallery {
  position: sticky;
  top: 120px;
}

.product-gallery-main {
  width: 100%;
  height: 500px;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

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

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product-gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--green-light);
}

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

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.product-info .sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-info .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 24px;
}

.product-info .description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-specs {
  background: var(--cream);
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 32px;
}

.product-specs h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-specs dt {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-specs dd {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}



/*--------------------------------------------------------------
# Checkout Page
--------------------------------------------------------------*/
.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
}



/*--------------------------------------------------------------
# Bootstrap Overrides
--------------------------------------------------------------*/
.btn-primary {
  background-color: var(--green-light);
  border-color: var(--green-light);
  color: var(--flag-white);
  padding: 12px 24px;
  border-radius: 2px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--flag-white);
}

.btn-primary:active {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--flag-white);
  transform: translateY(1px);
  box-shadow: none;
}

.btn-outline-primary {
  color: var(--green-light);
  border-color: var(--green-light);
  border-radius: 2px;
}

.btn-outline-primary:hover {
  background-color: var(--green-light);
  border-color: var(--green-light);
  color: var(--flag-white);
}

/* Phase 8b — text-only CTA pattern for the new minimal hero.
   No fill, no border, no rounded pill — just a link with an arrow
   that slides on hover. Patek's "Discover More" / FP Journe's
   collection links use this exact restraint. */
.btn-text {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s ease;
}

.btn-text:hover {
  opacity: 0.72;
  color: inherit;
}

/* Hero context — the text CTA sits on a dark hero so currentColor
   inherits white. Hover state nudges arrow rather than colour. */
.hero .btn-text {
  color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-text:hover {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.bg-primary {
  background-color: var(--green-light) !important;
}

.text-primary {
  color: var(--green-light) !important;
}

.form-control {
  padding: 12px 16px;
  border-radius: 2px;
  border: 1px solid var(--border-light);
  background-color: var(--warm-white);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px var(--green-glow);
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1200px) {
  .hero-inner,
  #hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 32px;
  }

  .hero-image-container {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reference-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav ul,
  .navbar ul {
    display: none;
  }

  .navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    transition: 0.3s;
    z-index: 999;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .navbar-mobile ul {
    display: block;
    position: absolute;
    top: 70px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 20px;
    background-color: var(--warm-white);
    color: var(--text-primary);
    border-radius: 4px;
    overflow-y: auto;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active {
    color: var(--green-light);
    background: var(--cream);
    border-radius: 4px;
  }

  .navbar-mobile .dropdown-menu {
    position: static;
    background: var(--cream);
    border-radius: 4px;
    margin: 8px 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* The Discover mega-menu has a fixed desktop width of 680px which
     shoots off the right edge inside the mobile drawer. Force it to
     flow inside the parent and drop to a single column. */
  .navbar-mobile .mega-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    border-radius: 4px;
    padding: 8px;
    box-shadow: none;
  }

  .navbar-mobile .mega-menu-link {
    padding: 10px 14px;
  }

  .navbar-mobile .mega-menu-all {
    margin-top: 8px;
    padding: 10px;
  }

  /* Old legacy inline search bar — never rendered now (replaced by the
     header-search-collapsed magnifier trigger which we keep visible on
     mobile too). Hide if some downstream consumer still emits it. */
  .header-search {
    display: none;
  }

  /* The collapsed-search magnifier trigger STAYS visible on mobile. */
  .header-search-collapsed {
    display: flex;
  }

  .shop-content {
    grid-template-columns: 1fr;
  }

  .shop-filters {
    position: static;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .checkout-page {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  /* H1 + H2 already scale via clamp() — these are intentional overrides
     for sections that don't take clamp (legacy markup), retained as a
     safety floor at 2rem / 1.625rem. */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.375rem; }

  .header-main {
    padding: 14px 20px;
  }

  .main-nav .nav-inner,
  .navbar .container-fluid {
    padding: 0 20px;
  }

  #hero h1,
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-inner,
  #hero .container {
    padding: 60px 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .reference-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 20px;
  }

  .footer-inner {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .about .features,
  .about-features {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .promo-banner-inner {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .reference-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  #hero .btn-get-started,
  #hero .btn-get-quote,
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Shop Page Styles
--------------------------------------------------------------*/
.shop-hero {
  background: var(--green-dark);
  padding: 80px 0 50px;
  color: var(--text-on-dark);
}

.shop-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.shop-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
}

.shop-breadcrumb .breadcrumb-item a {
  color: var(--text-on-dark-muted);
  font-size: 0.875rem;
}

.shop-breadcrumb .breadcrumb-item.active {
  color: var(--text-on-dark);
}

.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-on-dark-muted);
}

.shop-hero-content h1 {
  font-size: 2.5rem;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.shop-hero-subtitle {
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  margin: 0;
}

.reference-filter-badge {
  margin-top: 16px;
}

.filter-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: white;
  padding: 8px 16px;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.filter-badge-pill i {
  margin-right: 4px;
}

.filter-badge-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  margin-left: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.filter-badge-close:hover {
  opacity: 1;
}

.shop-main {
  background: var(--cream);
  padding: 40px 0 80px;
  /* Override the global `section { overflow: hidden }` rule — `overflow:
     hidden` on this ancestor would break `position: sticky` on the
     filter sidebar (any non-visible overflow on an ancestor clips the
     sticky positioning context). */
  overflow: visible;
}

.shop-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Shop Sidebar */
.shop-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-card {
  background: var(--warm-white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Collapsible filter cards (the .filter-toggle button replaces the
   filter-title's text, with a +/− indicator on the right). */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.filter-toggle-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  margin-left: 12px;
  transition: color 0.15s ease;
}
.filter-toggle:hover .filter-toggle-icon {
  color: var(--green-light);
}
.filter-card-body {
  display: block;
}
.filter-card.collapsed .filter-card-body {
  display: none;
}
.filter-card.collapsed .filter-title {
  margin-bottom: 0;
}

/* Small grey count after each filter option label, e.g. "(47)" */
.filter-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

/* Empty-state options — when current selections would mean this
   option matches 0 products, mute it so the user reads it as a
   dead-end rather than an inviting click. The checkbox remains
   interactive (click it and it still becomes a filter; you just see
   nothing). */
.filter-option-empty {
  opacity: 0.45;
}

.search-wrapper {
  position: relative;
}

.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.filter-search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.filter-option:hover {
  color: var(--green-light);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green-light);
  cursor: pointer;
}

.filter-close-btn {
  display: none;
  width: 100%;
  padding: 14px;
  background: var(--green-light);
  color: var(--flag-white);
  border: none;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.filter-close-btn i {
  margin-right: 8px;
}

/* Shop Products Area */
.shop-products {
  min-height: 500px;
}

.filter-toggle-btn {
  display: none;
  width: 100%;
  padding: 14px 20px;
  background: var(--warm-white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.filter-toggle-btn:hover {
  background: var(--cream-dark);
}

.filter-toggle-btn i {
  margin-right: 8px;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  /* Sticky toolbar — pairs with the sticky sidebar so sort + results
     count stays visible while scrolling a long grid. top:84 sits just
     below the 76-px-tall site header. */
  position: sticky;
  top: 84px;
  z-index: 5;
  background: var(--cream);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

/* Tabular nums so "Showing 1-24 of 168" doesn't reflow as the digit
   widths change page-to-page. */
.shop-results-count {
  font-variant-numeric: tabular-nums;
}
.results-count-total,
.results-count-range {
  font-variant-numeric: tabular-nums;
}
.results-count-total {
  font-weight: 600;
  color: var(--text-primary);
}

/* Trust-signal strip — quiet single line below the toolbar reinforcing
   the brand promises (UK based, worldwide shipping, 24h dispatch,
   14-day returns). Doesn't compete with the H1, fits the workshop tone. */
.shop-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: -8px 0 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.shop-trust-strip .trust-sep {
  color: var(--text-muted);
  margin: 0 2px;
}

.shop-results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.shop-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.shop-select {
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--warm-white);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.shop-select:focus {
  outline: none;
  border-color: var(--green-light);
}

/* Shop empty state — replaces the JS-rendered "no products" panel with
   a recoverable layout: icon, headline, what the user filtered by,
   and three clear actions (clear-all + two quick category links). */
.shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  background: var(--warm-white);
  color: var(--text-primary);
  border-radius: 4px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.shop-empty > svg {
  color: var(--text-muted);
  margin-bottom: 8px;
}
.shop-empty h3 {
  margin: 0;
  font-family: 'Cormorant', serif;
  font-weight: 500;
}
.shop-empty .empty-context {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.shop-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.empty-clear-all,
.empty-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.empty-clear-all {
  background: var(--green-light);
  color: var(--flag-white);
  border: 1px solid var(--green-light);
}
.empty-clear-all:hover { background: var(--green-dark); border-color: var(--green-dark); }
.empty-link {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.empty-link:hover { border-color: var(--green-light); color: var(--green-light); }

/* Skeleton cards — same dimensions as a real product card so the
   layout doesn't reflow when shop.js swaps them out. Pure CSS shimmer
   uses a moving linear-gradient background for the "loading" feel. */
.product-card-skeleton {
  background: var(--warm-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--cream-dark) 0%,
    var(--border-light) 50%,
    var(--cream-dark) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
}
.skeleton-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-line {
  height: 14px;
}
.skeleton-line-title { width: 80%; height: 18px; }
.skeleton-line-sku   { width: 40%; height: 12px; }
.skeleton-line-price { width: 30%; height: 22px; margin-top: 6px; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* Active filter chips — rendered by shop.js renderActiveFilters().
   Hidden when no non-default filters are active (display:none inline). */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.active-filter-chip:hover {
  border-color: var(--green-light);
  background: var(--cream-dark);
}
.active-filter-chip .chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.active-filter-chip:hover .chip-x {
  background: var(--green-light);
  color: var(--flag-white);
}

.clear-all-filters {
  background: transparent;
  border: none;
  color: var(--green-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.clear-all-filters:hover {
  text-decoration-color: var(--green-light);
}

/* Product Grid — responsive auto-fill: 3-4 cards/row on desktop, 2 on
   tablet, 1 on phone. minmax(260px, 1fr) gives a 260px minimum and
   stretches to fill the row. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Product Card layout extension — base style (background/radius/border)
   is defined once earlier; here we layer the shop-grid-specific tweaks. */
.product-grid .product-card {
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.product-grid .product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
  transform: translateY(-2px);
}

.product-card.out-of-stock {
  opacity: 0.7;
}

.product-card.out-of-stock .product-image {
  filter: grayscale(30%);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Secondary image — overlays the primary, fades in on hover when the
   product has 2+ images. Pattern from Mr Porter / Net-a-Porter. */
.product-image-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-card:hover .product-image-secondary {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .product-image-secondary { transition: none; }
}

.product-image i {
  font-size: 3rem;
  color: var(--border-light);
}

.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.out-of-stock-badge {
  background: var(--green-light);
  color: var(--flag-white);
}

.pre-order-badge {
  background: var(--green-accent);
  color: var(--cream-dark);
}

.low-stock-badge {
  background: var(--green-glow);
  color: var(--green-light);
  border: 1px solid var(--green-light);
}

.product-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-title-link {
  text-decoration: none;
  color: inherit;
}

.product-title-link:hover .product-title {
  color: var(--green-dark);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* Monochrome ghost-pill — single brand chip with a coloured dot for variation.
   Replaces the SaaS pastel chip family. */
.category-link {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.category-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
}
/* .category-dial and .category-movement_part removed (dead code — FE doesn't sell those) */

.product-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s;
}

.product-title:hover {
  color: var(--green-light);
}

.product-sku {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.product-review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  /* Reserve the row's vertical space even when there are no reviews
     yet. Prevents card-height jitter when name-sorted lists mix
     reviewed and un-reviewed products in the same row. */
  min-height: 22px;
}

/* .product-stars dead-rule removed — overridden ~line 7030 by the Iteration 3
   star-system rule using Old Glory Red (var(--green-light)). */

.product-review-count {
  color: var(--green-light);
  cursor: pointer;
}

.product-review-count:hover {
  text-decoration: underline;
}

.product-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-symbol {
  font-size: 0.9rem;
}

.price-pounds {
  font-weight: 600;
}

.price-pence {
  font-size: 0.9rem;
}

.verified-authentic {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--green-light);
  font-weight: 500;
}

.product-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

/* Monochrome ghost-pill scheme (Flag Eagle signature) — transparent bg,
   hairline border, dot indicates type. Replaces SaaS pastel chips. */
.type-genuine,
.type-custom_made,
.type-high_quality_aftermarket {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.type-genuine::before,
.type-custom_made::before,
.type-high_quality_aftermarket::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.type-genuine::before { background: var(--green-light); }
.type-custom_made::before { background: var(--green-dark); }
.type-high_quality_aftermarket::before { background: var(--text-muted); }

.btn-add-cart {
  width: 100%;
  background: var(--green-light);
  color: var(--flag-white);
  border: none;
  padding: 12px 20px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--green-glow);
}

.btn-contact-reserve {
  width: 100%;
  background: var(--green-light);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  margin-top: auto;
}

.btn-contact-reserve:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-2px);
}

/* Shop Pagination */
.shop-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 20px;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--warm-white);
}

.page-link:hover {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
}

.page-item.active .page-link {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Cart Widget */
.cart-widget {
  position: fixed;
  top: 140px;
  right: 24px;
  background: var(--warm-white);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid var(--border-light);
}

.cart-widget:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cart-widget i {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--green-light);
  color: var(--flag-white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

/* Shop Mobile Responsive */
@media (max-width: 991px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    color: var(--text-primary);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    max-height: 100vh;
  }

  .shop-sidebar.active {
    display: block;
  }

  .filter-close-btn {
    display: block;
  }

  .filter-toggle-btn {
    display: block;
  }
}

/* Mobile-specific card adjustments now folded into the default
   .product-card / .product-image styles above (grid auto-fill +
   aspect-ratio handle the responsive sizing natively). */

@media (max-width: 600px) {
  .shop-hero-inner {
    padding: 0 20px;
  }

  .shop-layout {
    padding: 0 20px;
  }

  .shop-hero-content h1 {
    font-size: 1.75rem;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-toolbar-controls {
    justify-content: space-between;
  }
}

/*--------------------------------------------------------------
# Basic Page Styles
--------------------------------------------------------------*/
.page-hero {
  background: var(--green-dark);
  padding: 80px 0 50px;
  color: var(--text-on-dark);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--text-on-dark);
  margin: 0;
}

.basic-page {
  background: var(--cream);
  padding: 60px 0 80px;
}

.basic-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.basic-page .content {
  background: var(--warm-white);
  color: var(--text-primary);
  padding: 48px 48px 48px 52px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  box-shadow: var(--shadow-md);
}

.basic-page .content h2 {
  font-size: 1.75rem;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.basic-page .content h3 {
  font-size: 1.35rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.basic-page .content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.basic-page .content ul,
.basic-page .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.basic-page .content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0 40px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero-inner,
  .basic-page-inner {
    padding: 0 20px;
  }

  .basic-page .content {
    padding: 24px;
  }
}

/*--------------------------------------------------------------
# Collection & Reference Page Styles
--------------------------------------------------------------*/
.collection-hero {
  background: var(--green-dark);
  padding: 80px 0 60px;
  color: var(--text-on-dark);
}

.collection-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.collection-hero h1 {
  font-size: 2.75rem;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.collection-hero h2 {
  font-size: 1.25rem;
  color: var(--text-on-dark-muted);
  font-weight: 400;
  margin-bottom: 16px;
}

.collection-hero p {
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
}

.collection-hero-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.collection-hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* (duplicate .reference-card rule consolidated — see earlier definition).
   Hover variant for collection-page reference-grid retained: */
.reference-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--green-light);
}

.reference-card.popular {
  border: 2px solid var(--green-light);
}

.reference-image-container {
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reference-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s;
}

.reference-card:hover .reference-image {
  transform: scale(1.05);
}

.reference-card h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
}

.reference-card h5 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.reference-card .badge.bg-primary {
  background-color: var(--green-light) !important;
}

@media (max-width: 991px) {
  .collection-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .collection-hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .collection-hero {
    padding: 60px 0 40px;
  }

  .collection-hero h1 {
    font-size: 2rem;
  }

  .collection-hero-inner {
    padding: 0 20px;
  }

  .reference-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}


.checkout-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}









@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .checkout-hero {
    padding: 60px 0 40px;
  }

  .checkout-hero-inner,
  .checkout-layout {
    padding: 0 20px;
  }

  .checkout-cart,
  .checkout-summary {
    padding: 24px;
  }
}

/*--------------------------------------------------------------
# Homepage Section Styles (Luxury Editorial Design)
--------------------------------------------------------------*/

/* Services Section - Additional Classes */
.services-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.service-image {
  height: 240px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}


.service-content {
  padding: 32px;
}

.service-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Bracelet Links Section */
.bracelet-section {
  margin-top: 40px;
}

.bracelet-header {
  text-align: center;
  margin-bottom: 40px;
}

.bracelet-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.bracelet-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.bracelet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bracelet-item {
  text-decoration: none;
  text-align: center;
}

.bracelet-image {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.bracelet-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.bracelet-item:hover .bracelet-image {
  box-shadow: 0 12px 40px var(--green-glow);
}

.bracelet-item:hover .bracelet-image img {
  transform: scale(1.05);
}

.bracelet-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bracelet-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Trusted By Section */
.trusted {
  background: var(--cream);
  padding: 80px 48px;
  border-top: 1px solid var(--border-light);
}

.trusted-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  margin-bottom: 40px;
}

.trusted-logo {
  height: 36px;
  opacity: 0.62;
  filter: grayscale(100%);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trusted-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.06);
}

.trusted-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.trusted-note strong {
  color: var(--green-light);
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}



/* The new typographic arrow used in category CTAs in place of fa-arrow-right.
   Slides 4px on hover for a subtle peak-end micro-interaction. */
.category-btn .arrow,
.btn .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-btn:hover .arrow,
.btn:hover .arrow {
  transform: translateX(4px);
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--green-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--green-light);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-btn:hover {
  background: var(--green-light);
  color: white;
}






/* Why Choose Us Section */
.why-section {
  margin-top: 80px;
}






/* Testimonials Section - Additional Classes */
.testimonials-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial {
  background: var(--warm-white);
  border-radius: 4px;
  padding: 36px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.testimonial .testimonial-stars {
  display: inline-flex;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--green-accent); /* tricolour white — premium, replaces antique gold */
  line-height: 1;
}

/* Legacy fallback for any leftover <i class="fas fa-star"> not yet
   converted to Unicode stars (e.g. on product detail pages). */
.testimonial .testimonial-stars i {
  color: var(--green-accent);
  font-size: 0.85rem;
}

.testimonial .testimonial-text {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
  /* Subtle opening-quote glyph in brand green */
  position: relative;
}

.testimonial .testimonial-text::before {
  content: '“';
  position: absolute;
  left: -0.4em;
  top: -0.3em;
  font-size: 2.5em;
  color: var(--green-light);
  opacity: 0.18;
  line-height: 1;
  font-style: normal;
}

.testimonial .testimonial-author {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* Contact Section - Additional Classes */
.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 40px;
}

.contact-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 48px;
  text-align: center;
}

.contact-box i {
  font-size: 2.5rem;
  color: var(--green-accent);
  margin-bottom: 20px;
}

.contact-box h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 12px;
}

.contact-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--green-accent);
  margin-bottom: 16px;
}

.contact-box p {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

/*--------------------------------------------------------------
# Responsive Adjustments for Homepage Sections
--------------------------------------------------------------*/
@media (max-width: 1200px) {
  .bracelet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .services-grid,
  .category-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trusted {
    padding: 60px 24px;
  }

  .trusted-logos {
    gap: 32px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .cta-box h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .bracelet-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 32px 24px;
  }

  .service-image {
    height: 200px;
  }

  .service-content {
    padding: 24px;
  }
}

/*--------------------------------------------------------------
# Footer restock-alerts (P4.18)
# Quiet inline form, mono-caps label, mailto handoff (no backend).
--------------------------------------------------------------*/
.footer-restock {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0 24px;
  margin-top: 24px;
}

.footer-restock-form {
  max-width: 480px;
}

.footer-restock-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted, rgba(255, 255, 255, 0.7));
  margin-bottom: 12px;
}

.footer-restock-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.footer-restock-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--warm-white);
  transition: border-color 0.2s, background 0.2s;
}

.footer-restock-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-restock-input:focus {
  outline: none;
  border-color: var(--green-accent);
  background: rgba(255, 255, 255, 0.1);
}

.footer-restock-btn {
  background: var(--green-light);
  border: 1px solid var(--green-light);
  color: var(--warm-white);
  padding: 10px 18px;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.footer-restock-btn:hover,
.footer-restock-btn:focus-visible {
  background: var(--green-accent);
  border-color: var(--green-accent);
  color: var(--green-dark);
}

.footer-restock-confirm {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--green-accent);
  font-family: 'Inter', sans-serif;
}

/*--------------------------------------------------------------
# Homepage aggregate rating line (P4.17)
# Quiet single-line above the catalogue grid. JetBrains Mono caps,
# brand gold star, links to /reviews/. Render-skipped silently
# when no reviews are aggregated.
--------------------------------------------------------------*/
.catalogue-aggregate-rating {
  text-align: center;
  margin: 0 0 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.catalogue-aggregate-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.catalogue-aggregate-link:hover,
.catalogue-aggregate-link:focus-visible {
  color: var(--green-light);
}

.catalogue-aggregate-star {
  color: var(--green-accent);
  font-size: 1rem;
  line-height: 1;
}

.catalogue-aggregate-value {
  font-weight: 500;
  color: var(--text-primary);
}

.catalogue-aggregate-sep {
  opacity: 0.5;
}

/*--------------------------------------------------------------
# Cross-page view transitions — DISABLED
# `@view-transition { navigation: auto }` was added in P3.13 but the
# default Chrome cross-fade gives a "page snapshot fills the viewport"
# flash on every nav click that reads as a glitch on the
# `.mega-menu-all` "All Collections" button (and any sub-second click).
# The named-element morph infrastructure stays below in case we want
# to re-opt-in selectively via JS (document.startViewTransition) rather
# than blanket-on for every nav.
--------------------------------------------------------------*/
@supports (view-transition-name: a) {
  /* No global @view-transition rule. View-transition-names stay on the
     elements below so a future JS-triggered transition has the hooks. */
  .catalogue-card .catalogue-image[style*="--vt-name"] {
    view-transition-name: var(--vt-name);
  }
  .collection-card .collection-card-image[style*="--vt-name"] {
    view-transition-name: var(--vt-name);
  }
  .reference-hero-image[style*="--vt-name"] {
    view-transition-name: var(--vt-name);
  }
}

/*--------------------------------------------------------------
# Cart toast (P3.12 end-of-journey peak)
# Brand-green pill, slide-in from top-right, 2.4s lifetime.
# Replaces the old raw-hex inline toast in shop.js.
--------------------------------------------------------------*/
.cart-toast {
  position: fixed;
  top: 84px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--green-light);
  color: var(--warm-white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  max-width: 360px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.cart-toast-in {
  transform: translateX(0);
  opacity: 1;
}

.cart-toast-out {
  transform: translateX(20%);
  opacity: 0;
}

.cart-toast-check {
  display: inline-flex;
  align-items: center;
  color: var(--green-accent);
}

.cart-toast-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .cart-toast {
    transition: opacity 200ms ease;
    transform: none;
  }
  .cart-toast-in  { opacity: 1; }
  .cart-toast-out { opacity: 0; }
}

/*--------------------------------------------------------------
# Rolex collection & reference FAQ (P2.10)
# Q-style H2s using <details>/<summary> for native accordion behaviour
# (no JS needed). Mirrors the visible content into FAQPage schema for
# AI-search "People also ask" results.
--------------------------------------------------------------*/
.collection-faq-section {
  padding: 80px 0;
  background: var(--cream-dark);
}

.collection-faq-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.collection-faq-title {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-wrap: balance;
}

.collection-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collection-faq-item {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.collection-faq-item[open] {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
}

.collection-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text-primary);
  position: relative;
  padding-right: 56px;
  text-wrap: pretty;
}

.collection-faq-q::-webkit-details-marker { display: none; }

.collection-faq-q::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--green-light);
  transition: transform 0.2s;
  line-height: 1;
}

.collection-faq-item[open] .collection-faq-q::after {
  content: '−';
}

.collection-faq-a {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-wrap: pretty;
}

/*--------------------------------------------------------------
# Entrance animation (P2.8)
# - main fades + lifts on every navigation (cheap hint, no JS).
# - hero internals stagger (title → visual → CTAs).
# Both gated to (prefers-reduced-motion: no-preference) so users who
# request reduced motion get an instant hard cut, no transitions.
# Uses @starting-style + transition-behavior: allow-discrete so the
# animation runs on the very first load too, not just dynamic mounts.
--------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  main {
    opacity: 1;
    transform: none;
    transition:
      opacity 600ms ease,
      transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-behavior: allow-discrete;
  }
  @starting-style {
    main {
      opacity: 0;
      transform: translateY(20px);
    }
  }

  /* Hero internals — stagger via animation-delay so they cascade in
     after main's transition starts. Single keyframe so we get
     opacity + transform without redefining transition tokens. */
  .hero .hero-title,
  .hero .hero-visual,
  .hero .hero-ctas {
    animation: hero-stagger-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero .hero-title  { animation-delay: 0ms; }
  .hero .hero-visual { animation-delay: 120ms; }
  .hero .hero-ctas   { animation-delay: 240ms; }

  /* Eyebrow shares the title's timing so it doesn't lag behind. */
  .hero .hero-eyebrow { animation: hero-stagger-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

  @keyframes hero-stagger-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/*--------------------------------------------------------------
# /reviews/ — aggregate summary + full editorial list
# Renders every review collected as a child under products in
# /shop/. Single-column editorial layout, max-width 720px; trust
# the scroll. Brand tokens only.
--------------------------------------------------------------*/
.reviews-summary {
  padding: 60px 0 48px;
  background: var(--cream);
  border-bottom: 1px solid var(--border-light);
}

.reviews-summary-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.reviews-summary-score {
  text-align: center;
}

.reviews-summary-stars {
  font-size: 1.5rem;
  color: var(--green-light);
  letter-spacing: 0.12em;
  line-height: 1;
}

.reviews-summary-rating {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}

.reviews-summary-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.reviews-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-breakdown-row {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.reviews-breakdown-label {
  text-align: right;
  color: var(--text-secondary);
}

.reviews-breakdown-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  display: block;
}

.reviews-breakdown-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--green-light);
  border-radius: 2px;
  display: block;
  transition: width 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reviews-breakdown-count {
  text-align: right;
  color: var(--text-muted);
}

.reviews-list-section {
  padding: 80px 0 120px;
}

.reviews-list-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.review-item {
  padding: 36px 0;
  border-top: 1px solid var(--border-light);
}

.review-item:first-child {
  border-top: none;
  padding-top: 0;
}

.review-header {
  margin-bottom: 14px;
}

.review-stars {
  color: var(--green-light);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 8px;
}

.review-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.review-author {
  color: var(--text-primary);
  font-weight: 500;
}

.review-meta-sep {
  color: var(--text-muted);
}

.review-verified {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--green-light);
  text-transform: uppercase;
}

.review-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.review-product {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  display: inline-block;
}

.review-product:hover {
  color: var(--green-light);
  border-bottom-color: var(--green-light);
}

.reviews-empty {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  padding: 80px 0;
}

/* Progressive disclosure — hide-until-revealed by JS. */
.review-item.is-hidden { display: none; }

.reviews-pagination {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.reviews-show-more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--green-light);
  border-radius: 6px;
  color: var(--green-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.reviews-show-more:hover,
.reviews-show-more:focus-visible {
  background: var(--green-light);
  color: white;
}

.reviews-show-more-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.7;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .reviews-summary-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .reviews-summary-rating { font-size: 3.25rem; }
  .reviews-list-section { padding: 60px 0 80px; }
  .reviews-list-inner { padding: 0 24px; }
  .review-item { padding: 28px 0; }
}

/* ========================================================================
   Homepage trust strip — five quantified US-specific brand promises
   sitting directly below the hero. Quiet single-line typography, no
   icons. Bullets via mid-dot separators. Wraps on narrow viewports
   without breaking visual rhythm. Phase 4 US-tailoring.
   ======================================================================== */
.homepage-trust-strip {
  background: var(--cream-dark);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 24px;
}
.homepage-trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.homepage-trust-strip .trust-item {
  white-space: nowrap;
}
.homepage-trust-strip .trust-sep {
  color: var(--text-muted);
  opacity: 0.6;
}
@media (max-width: 720px) {
  .homepage-trust-strip { padding: 14px 16px; }
  .homepage-trust-strip-inner { font-size: 0.72rem; gap: 4px 10px; }
}

/* Secondary text CTA on the hero — same primitives as .btn-text but
   without the underline rule, so the primary "Browse links" reads as
   the lead action and the secondary stays quieter. */
.hero .btn-text-secondary {
  border-bottom-color: transparent;
  opacity: 0.78;
}
.hero .btn-text-secondary:hover {
  border-bottom-color: currentColor;
  opacity: 1;
}

/* Footer scope footnote — sits between the legal row and the
   trademark disclaimer. Quiet, parenthetical. */
.footer-scope {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0 16px;
}

/* ============================================================
   ITERATION 3 — Product Detail Page (Flag Eagle)

   Migrated wholesale from templates/product.html inline <style>
   block (~660 lines). All values now route through the brand
   tokens defined in :root.

   Differentiation moves baked in:
     - Move 4: .product-price-large in JetBrains Mono with a
       muted "USD" suffix.
     - Move 5: .product-title-h1 with text-wrap: balance and a
       40×2px Old Glory Red underline accent.
     - Move 6: stars use --green-light (Old Glory Red), tighter
       tracking, JetBrains Mono numeric pair.
     - .product-info-card carries a 4px Old Glory Red left bar.
============================================================ */

/* --- Breadcrumb strip ------------------------------------- */
.product-breadcrumb {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border-light);
}
.product-breadcrumb .breadcrumb {
  background: transparent;
}
.product-breadcrumb .breadcrumb-item,
.product-breadcrumb .breadcrumb-item a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.product-breadcrumb .breadcrumb-item a:hover {
  color: var(--green-light);
}
.product-breadcrumb .breadcrumb-item.active {
  color: var(--text-primary);
}
.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* --- H1 + section headings (Move 5: 40×2px underline) ----- */
.product-title-h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.product-title-h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--green-light);
}

.detail-card h2,
.detail-card-heading {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* --- Gallery -------------------------------------------- */
.product-gallery {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
  min-height: 400px;
}
.product-gallery.placeholder {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery i {
  font-size: 6rem;
  color: var(--text-muted);
}

.main-image-container {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}
.main-image {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.2s;
}
.main-image:hover {
  transform: scale(1.02);
}

/* --- Lightbox ------------------------------------------- */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  z-index: 10000;
}
.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--warm-white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s;
  z-index: 10001;
}
.lightbox-close:hover {
  background: var(--green-light);
  color: var(--flag-white);
  transform: rotate(90deg);
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: grab;
}
.lightbox-content img:active {
  cursor: grabbing;
}
.lightbox-caption {
  text-align: center;
  color: var(--text-primary);
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* --- Thumbnails --------------------------------------- */
.thumbnail-container {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}
.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--warm-white);
  transition: all 0.2s;
}
.thumbnail:hover {
  border-color: var(--green-light);
  transform: scale(1.05);
}
.thumbnail.active {
  border-color: var(--green-light);
  box-shadow: 0 0 0 1px var(--green-glow);
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Right-column info card — LEFT-EDGE RED ACCENT BAR --- */
.product-info-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

/* --- Price block (Move 4: USD suffix, JetBrains Mono) --- */
.product-price-large {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.25rem 0 0.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.product-price-large .price-symbol {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0.35rem;
  color: var(--text-secondary);
}
.product-price-large .price-pounds {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
}
.product-price-large .price-pence {
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.35rem;
  color: var(--text-secondary);
}
.product-price-large::after {
  content: "USD";
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-left: 8px;
  align-self: center;
  padding-top: 0.4rem;
}

/* --- Meta + badges ------------------------------------ */
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

.stock-badge-large {
  background: var(--green-glow);
  color: var(--green-light);
  border: 1px solid var(--border-light);
}
.category-badge-large {
  background: var(--cream-dark);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* --- product-type-badge-large — ghost-pill with coloured dot --- */
.product-type-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.product-type-badge-large::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.product-type-badge-large.type-genuine::before {
  background: var(--green-light);
  box-shadow: 0 0 6px var(--green-glow);
}
.product-type-badge-large.type-custom_made::before {
  background: var(--green-dark);
}
.product-type-badge-large.type-high_quality_aftermarket::before {
  background: var(--text-muted);
}

/* --- Urgency badge — replaces the bootstrap amber --- */
.urgency-badge {
  background: var(--green-glow);
  color: var(--green-light);
  border: 1px solid var(--green-light);
  font-weight: 600;
}

/* --- Quantity selector ------------------------------- */
.quantity-selector {
  margin: 1.5rem 0;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  background: var(--cream-dark);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.qty-btn:hover {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
}
.qty-btn:active {
  transform: translateY(1px);
}
.qty-input {
  width: 80px;
  height: 44px;
  border: 1px solid var(--border-light);
  background: var(--cream-dark);
  border-radius: 4px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input[type=number] {
  -moz-appearance: textfield;
}

/* --- Add-to-cart buttons ----------------------------- */
.btn-add-to-cart-large {
  width: 100%;
  min-height: 52px;
  background: var(--green-light);
  color: var(--flag-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  margin: 1.5rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}
.btn-add-to-cart-large:active {
  transform: translateY(1px);
  box-shadow: none;
}
.btn-add-to-cart-large:hover {
  background: var(--green-dark);
  color: var(--flag-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-add-to-cart-deposit {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
}

/* --- OOS notice — uses brand tokens now -------------- */
.out-of-stock-notice {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  color: var(--text-primary);
}
.out-of-stock-notice .oos-title {
  color: var(--green-light);
  margin-bottom: 0.5rem;
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 500;
}
.out-of-stock-notice .oos-body {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.out-of-stock-notice .oos-list {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-left: 20px;
}

/* --- Detail cards (description / spec / compat / reviews) --- */
.product-details-section {
  margin-top: 3rem;
}
.detail-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.description-formatted p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.description-formatted .bullet-point {
  padding-left: 1.5rem;
  position: relative;
}
.description-formatted .bullet-point::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 600;
  font-size: 1.125rem;
}
.description-formatted .description-highlight {
  background: var(--cream-dark);
  padding: 1rem;
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- Compatibility badges ---------------------------- */
.compatibility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.compatibility-badge-link {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}
.compatibility-badge-link:hover {
  transform: translateY(-2px);
}
.compatibility-badge {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  transition: all 0.2s;
}
.compatibility-badge-link:hover .compatibility-badge {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
  box-shadow: 0 2px 8px var(--green-glow);
}

/* Inline links inside muted-text paragraphs need a visible underline */
.detail-card p a,
.detail-card p.text-muted a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  color: var(--green-light);
}

/* --- Reviews section --------------------------------- */
.reviews-section {
  margin-top: 3rem;
}
.review-card {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green-light);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.review-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.review-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.review-rating {
  color: var(--green-light);
  font-size: 1rem;
  letter-spacing: -0.05em;
}
.review-text {
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--green-glow);
  color: var(--green-light);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Star input + summary --------------------------- */
.review-form {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem;
  margin-top: 2rem;
  color: var(--text-primary);
}
.rating-input {
  display: flex;
  gap: 4px;
  margin: 1rem 0;
}
.rating-star {
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
  color: inherit;
}
.rating-star .star-full { color: var(--green-light); }
.rating-star .star-empty { color: var(--text-muted); }
.rating-star:hover { transform: scale(1.05); }
.rating-star:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.average-rating {
  text-align: center;
}
.average-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.average-stars {
  color: var(--green-light);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
}
.review-count {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* --- Sticky mobile CTA bar -------------------------- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 0;
  z-index: 998;
  display: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
  }
}
.sticky-price {
  display: flex;
  align-items: baseline;
  gap: 0.125rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}
.sticky-price .price-symbol { font-size: 1rem; }
.sticky-price .price-amount { font-size: 1.5rem; }
.sticky-price .price-decimal { font-size: 1rem; }
.btn-sticky-add-cart {
  width: 100%;
  background: var(--green-light);
  color: var(--flag-white);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
}
.btn-sticky-add-cart:active {
  transform: scale(0.98);
  background: var(--green-dark);
}

/* --- WhatsApp button — keep brand colours of WhatsApp itself */
.btn-whatsapp {
  background: #25D366;
  color: var(--flag-white);
  border: none;
  transition: all 0.2s;
}
.btn-whatsapp:hover {
  background: #128C7E;
  color: var(--flag-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* --- Returns highlight ----------------------------- */
.returns-policy-card .policy-highlight {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* --- Trust badges ---------------------------------- */
.stripe-badge {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.trust-badge-item {
  padding: 8px 4px;
}
.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  margin-bottom: 6px;
}
.trust-badge-cap {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================================
   ITERATION 3 — Move 6: Star rating system refinement.

   Replaces the legacy amber #f59e0b stars with Old Glory Red,
   tightens letter-spacing, and pairs them with a JetBrains-Mono
   numeric rating delivered as a 0.5em right-margin sibling.
============================================================ */
.product-stars,
.review-stars,
.testimonial-stars,
.average-stars {
  color: var(--green-light);
  letter-spacing: -0.05em;
  font-size: 0.95rem;
  line-height: 1;
  margin-right: 0.5em;
}
.testimonial-stars i {
  color: var(--green-light);
}
.product-review-rating .product-stars + .product-review-count,
.review-rating-numeric,
.average-number {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.review-rating-numeric {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0;
}

/* ============================================================
   ITERATION 3 — Move 7: Page-hero signature flag-pole flash.

   Every <section class="page-hero"> on /reviews/, /faq/, /about/,
   /rolex/{collection}/ etc. gains a quiet 80×2px Old Glory Red
   underline at the bottom. Reads as a flag-pole flash without
   overpowering the editorial calm of the hero.

   Decision: chose the bar over the star-row to keep the
   typographic restraint of the rest of the site.
============================================================ */
.page-hero {
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 2px;
  background: var(--green-light);
  transform: translateX(-50%);
}

/* ============================================================
   ITERATION 3 — Checkout page styles (migrated from templates/checkout.html)

   All values now route through brand tokens. Stripe purple (#635BFF)
   is preserved on the Stripe attribution lozenge only, where the
   third-party brand colour is appropriate.
============================================================ */
.checkout-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--cream-dark) 100%);
  color: var(--flag-white);
  border-bottom: 1px solid var(--border-light);
}
.checkout-logo {
  max-width: 60px;
  height: auto;
  margin-bottom: 1rem;
}
.checkout-container {
  padding: 3rem 0;
  background: var(--cream);
}
.cart-section,
.summary-section {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  color: var(--text-primary);
}
.summary-section {
  position: sticky;
  top: 100px;
  border-left: 4px solid var(--green-light);
}
.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-image i {
  font-size: 2rem;
  color: var(--text-muted);
}
.cart-item-details {
  flex-grow: 1;
}
.cart-item-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.cart-item-sku {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}
.cart-item-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  background: var(--cream-dark);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.quantity-btn:hover {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
}
.quantity-input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-light);
  background: var(--cream-dark);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
}
.remove-btn {
  color: var(--green-light);
  cursor: pointer;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.remove-btn:hover {
  text-decoration: underline;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}
.summary-row.total {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.summary-row-discount {
  display: none;
  color: var(--green-light);
}
.btn-checkout {
  width: 100%;
  background: var(--green-light);
  color: var(--flag-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1.5rem;
}
.btn-checkout:hover {
  background: var(--green-dark);
  color: var(--flag-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-checkout:disabled {
  background: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}
.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-cart i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.shipping-selector {
  margin: 1.5rem 0;
}
.shipping-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border-light);
  background: var(--cream-dark);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}
.shipping-option:hover {
  border-color: var(--green-light);
}
.shipping-option.selected {
  border-color: var(--green-light);
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--green-glow);
}
.shipping-option input[type="radio"] {
  margin-right: 1rem;
  accent-color: var(--green-light);
}
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.stripe-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  margin-top: 1rem;
}
.stripe-secured-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.stripe-logo {
  background: #635bff; /* Stripe brand purple — third-party attribution */
  color: var(--flag-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.5px;
}
.alert-info {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-dark);
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.alert-success {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
  color: var(--text-primary);
}

/* Discount-code input pair — keep the visual seam between input and
   apply-button, but on dark tokens. */
.discount-code-input {
  border-radius: 4px 0 0 4px;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.discount-apply-btn {
  border-radius: 0 4px 4px 0;
  border: 1px solid var(--green-light);
  color: var(--green-light);
  background: transparent;
}
.discount-apply-btn:hover {
  background: var(--green-light);
  color: var(--flag-white);
}

/* ============================================================
   ITERATION 3 — Reference Guide page styles (migrated from
   templates/reference_guide.html). All on dark tokens.
============================================================ */
.rg-section {
  background: var(--cream-dark);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.rg-section-lede {
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.reference-guide-lead {
  color: var(--text-secondary);
}

.decoder-tool {
  background: var(--warm-white);
  padding: 3rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
.decoder-tool h2 {
  color: var(--text-primary);
  font-family: 'Cormorant', Georgia, serif;
}
.decoder-tool p {
  color: var(--text-secondary);
}
.decoder-tool small {
  color: var(--text-muted);
}
.decoder-input {
  font-size: 2rem;
  text-align: center;
  padding: 1rem;
  border: 2px solid var(--green-light);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--cream-dark);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.decoder-input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.decoder-result {
  background: var(--cream-dark);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.decoder-segment {
  background: var(--warm-white);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--green-light);
  box-shadow: var(--shadow-sm);
}
.decoder-segment h5 {
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.interactive-table {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.interactive-table table {
  width: 100%;
  margin-bottom: 0;
  color: var(--text-primary);
}
.interactive-table thead {
  background: var(--green-dark);
  color: var(--flag-white);
}
.interactive-table thead th {
  padding: 1rem;
  font-weight: 600;
  border: none;
  color: var(--flag-white);
}
.interactive-table tbody tr {
  transition: background-color 0.2s;
  cursor: pointer;
  background: var(--warm-white);
  color: var(--text-primary);
}
.interactive-table tbody tr:hover {
  background-color: var(--cream-dark);
}
.interactive-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.search-filter {
  position: relative;
  margin-bottom: 1rem;
}
.search-filter input {
  padding-left: 2.5rem;
  background: var(--cream-dark);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.search-filter i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.code-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--flag-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.era-timeline {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
}
.era-timeline::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green-light), var(--flag-white), var(--green-dark));
}
.era-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.era-circle {
  width: 50px;
  height: 50px;
  background: var(--cream-dark);
  border: 3px solid var(--green-light);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

.example-watch {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--text-primary);
}
.example-watch:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.example-watch img {
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.info-card {
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--green-light);
  background: transparent;
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.tab-button:hover {
  background: var(--green-light);
  color: var(--flag-white);
}
.tab-button.active {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--flag-white);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Era cards — three columns of vintage/transitional/modern */
.rg-era-panel {
  background: var(--cream-dark);
  border-left: 4px solid var(--green-light);
  color: var(--text-primary);
}
.rg-era-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.rg-era-digit {
  color: var(--green-light);
  font-family: 'JetBrains Mono', monospace;
}
.rg-era-period {
  color: var(--text-secondary);
}

/* Icon circles for "Why It Matters" — flag tricolour rotation */
.rg-icon-circle {
  width: 50px;
  height: 50px;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  color: var(--green-light);
}
.rg-icon-circle--genuine {
  border-color: var(--green-light);
  background: var(--green-glow);
}
.rg-icon-circle--custom {
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.rg-icon-circle--info {
  border-color: var(--green-dark);
  background: rgba(60, 59, 110, 0.18);
  color: var(--green-dark);
}
.rg-icon-circle--purple {
  border-color: var(--text-muted);
  color: var(--text-secondary);
}

/* Reference-guide brand-aligned alert (Pro Tip) */
.rg-alert-success {
  background: var(--cream-dark);
  border-left: 4px solid var(--green-dark) !important;
  color: var(--text-primary);
}
.rg-alert-success .alert-heading {
  color: var(--green-light);
}

/* =====================================================================
   Iteration 4 — Move 8: tiny "verified" inline meta labels.
   Editorial-American polish: a mono caps verification strip that sits
   above the product price, listing provenance (VERIFIED · NEVADA ·
   USPS PRIORITY). Tiny enough to read as fine print yet typographically
   distinctive — Patek's reference-card meta language at our scale.
   Used on product.html. The shop-card variant is the corner micro-pill.
   ===================================================================== */
.fe-verify-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}
.fe-verify-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 6px var(--green-glow);
  flex-shrink: 0;
}
.fe-verify-strip__item {
  display: inline-flex;
  align-items: center;
}
.fe-verify-strip__sep {
  color: var(--border-light);
  font-weight: 400;
}
.fe-verify-strip__item--accent {
  color: var(--green-light);
}

/* Shop-card corner micro-pill — only present when the SKU has reviews.
   Sits in the top-right corner of the product-card-image, opposite
   the type-genuine badge in the top-left. */
.fe-verify-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--green-light);
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  backdrop-filter: blur(2px);
}
.fe-verify-pill__star {
  font-size: 0.7rem;
  line-height: 1;
}

/* ============================================================
   Bundle B Wave 1 — Move N2: numbered top-level nav.
   .nav-num renders a JetBrains-Mono 2-digit prefix beside each nav
   label via a data-num attribute and ::before pseudo (same pattern as
   .section-num-eyebrow). Three top-level items: 01 Shop, 02 Reference,
   03 About — no dropdowns, plain links to top-tier pages.
============================================================ */
.nav-num {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.nav-num::before {
  content: attr(data-num);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: none;
  transition: color 0.2s ease;
}
.navbar > .container-fluid > ul > li > a:hover .nav-num::before,
.navbar > .container-fluid > ul > li > a:focus-visible .nav-num::before,
.navbar > .container-fluid > ul > li > a.active .nav-num::before,
.navbar > .container-fluid > ul > li > a[aria-current="page"] .nav-num::before {
  color: var(--green-light);
}

/* ============================================================
   Bundle B Wave 1 — Move C3: footer trust ribbon.
   Narrow strip above the main footer surfacing four JetBrains-Mono
   trust signals (years trading, eBay positives, negatives, guarantee).
============================================================ */
.footer-trust-ribbon {
  background: var(--cream-dark);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 0;
}
.footer-trust-ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.ftr-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.ftr-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: -0.02em;
}
.ftr-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ftr-divider {
  color: var(--text-muted);
  opacity: 0.4;
}
@media (max-width: 768px) {
  .ftr-divider { display: none; }
  .ftr-num { font-size: 1.25rem; }
  .footer-trust-ribbon-inner { gap: 16px 20px; }
}

/* ============================================================
   Wave 2a · Move H1 — Homepage reviews ribbon
   Slim proof/transition element between the trust strip and the
   numbered content sections. Card-grid of 4 short 5-star reviews,
   center-aligned header with aggregate rating + read-all link.
   Intentionally NOT given a section-num-eyebrow — it is a proof
   element, not a numbered section.
============================================================ */
.homepage-reviews-ribbon {
  background: var(--cream-dark);
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.homepage-reviews-ribbon-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.reviews-ribbon-header {
  text-align: center;
  margin-bottom: 48px;
}
.reviews-ribbon-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.reviews-ribbon-aggregate {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  justify-content: center;
}
.rra-stars {
  color: var(--green-light);
  letter-spacing: -0.05em;
}
.rra-rating {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--text-primary);
}
.rra-divider { opacity: 0.5; }
.rra-link {
  color: var(--green-light);
  text-decoration: none;
  font-weight: 500;
}
.rra-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.reviews-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.ribbon-review {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-light);
  padding: 24px;
  border-radius: 4px;
  transition: border-color 200ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.ribbon-review:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ribbon-review-stars {
  color: var(--green-light);
  letter-spacing: -0.05em;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.ribbon-review-text {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0 0 16px;
  text-wrap: balance;
}
.ribbon-review-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .homepage-reviews-ribbon { padding: 60px 0; }
  .reviews-ribbon-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Wave 2a · Move P2 — Product detail numbered case file
   Four numbered sections on the product page body:
     01 The Part        — title, price, qty, cart (existing 2-col hero)
     02 Compatibility   — compat refs + "what this fits" copy
     03 Install         — screwdriver guidance copy
     04 Provenance      — sourcing + trust signal
   Each wrapped in .case-file-section with a .section-num-eyebrow.
============================================================ */
.case-file-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}
.case-file-section:first-of-type {
  padding-top: 40px;
  border-top: none;
}
.case-file-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.case-file-section .section-num-eyebrow {
  margin-bottom: 24px;
}
.case-file-section h2 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 32px;
  text-wrap: balance;
  color: var(--text-primary);
}
.case-file-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 720px;
}
.case-file-body p { margin: 0 0 16px; }
.case-file-body p:last-child { margin-bottom: 0; }
.case-file-body strong { color: var(--text-primary); font-weight: 600; }
.case-file-body a {
  color: var(--green-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.case-file-body a:hover { border-bottom-color: var(--green-light); }

/* Compatibility cards */
.case-file-compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.case-file-compat-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 200ms ease, transform 200ms ease;
}
.case-file-compat-card:hover {
  border-color: var(--green-light);
  transform: translateY(-1px);
}
.case-file-compat-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: block;
}
.case-file-compat-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

@media (max-width: 768px) {
  .case-file-section { padding: 60px 0; }
  .case-file-section h2 { font-size: 1.625rem; margin-bottom: 24px; }
}

/* ============================================================
   Wave 2b · Move S3 — Shop reference picker
   New section between the shop hero and the filter+grid layout.
   Form that resolves a typed Rolex reference number into the
   matching /rolex/{collection}/{ref}/ encyclopedia page. The
   companion JS lives in /static/js/reference.js and reads the
   window.FE_REFERENCE_MAP emitted by base.html.
============================================================ */
.shop-reference-picker {
  background: var(--cream-dark);
  padding: 60px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.shop-reference-picker-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.srp-header {
  text-align: center;
  margin-bottom: 32px;
}
.srp-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
  margin: 8px 0 6px;
  text-wrap: balance;
}
.srp-lede {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}
.srp-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 580px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.srp-input {
  flex: 1 1 280px;
  background: var(--warm-white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 200ms ease;
}
.srp-input::placeholder { color: var(--text-muted); }
.srp-input:focus-visible {
  border-color: var(--green-light);
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
}
.srp-submit {
  white-space: nowrap;
  padding: 14px 24px;
}
.srp-hint {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
  text-align: center;
}
.srp-result {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green-light);
  border-radius: 4px;
}
.srp-result p { margin: 0; }
.srp-result a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.srp-result a:hover { color: var(--green-light); }
.srp-popular {
  margin-top: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.srp-popular-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}
.srp-pop-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}
.srp-pop-pill:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}
@media (max-width: 600px) {
  .srp-form { flex-direction: column; }
  .srp-submit { width: 100%; }
  .shop-reference-picker { padding: 40px 0; }
  .srp-title { font-size: 1.625rem; }
}

/* ============================================================
   Wave 2b · Move C2 — Reference-number autolinks
   Site-wide JS scans body-text containers (.about-content,
   .basic-page .content, .faq-answer, .review-text, etc.) and
   wraps Rolex ref numbers in <a class="fe-ref-autolink">. The
   dotted-then-solid underline mirrors a manual citation rather
   than a flat hyperlink.
============================================================ */
.fe-ref-autolink {
  color: var(--green-light);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted var(--green-light);
  transition: border-bottom-style 200ms ease, color 200ms ease;
}
.fe-ref-autolink:hover,
.fe-ref-autolink:focus-visible {
  color: var(--green-accent);
  border-bottom-style: solid;
}

/* =====================================================================
   REFERENCE GUIDE — Iteration 6 (frontend-design pass)

   Purpose:
     1. Bug fix — Bootstrap defaults (.card, .card-body, .card-title,
        .card-text, .badge bg-*, .accordion-*) were bleeding through on
        a dark page and rendering as white boxes with white text.
        Everything inside .reference-guide is now scoped to brand tokens.
     2. Halo effect — page-hero flag-pole flash + numbered eyebrow +
        pulse dot anchor the first impression.
     3. Cognitive fluency — every major section gets a numbered eyebrow
        (03 Anatomy, 04 Eras, 05 Structure, 06 Why It Matters, 07
        Tables, 08 Catalogue, 09 Examples, 10 In Practice, 11 Next Step)
        and section-flag-divider separators inside the long Anatomy
        section.
     4. Micro-interactions — decoder result slides in via @starting-style
        + transition; purpose cards lift on hover with a flag-flicker
        left bar (red → white); suggestion pills replace the "Try: ..."
        plain text; era cards and structure cards scroll-fade with
        animation-timeline: view().
   All animations are wrapped in @media (prefers-reduced-motion: no-preference).
===================================================================== */

/* ---- 1. Defensive Bootstrap-component overrides (scope to .reference-guide
   so we don't accidentally affect other pages). These zero out the
   white .card bleed-through that triggered the bug report. -------------- */
.reference-guide .card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 4px;
}
.reference-guide .card-body,
.reference-guide .card-title,
.reference-guide .card-text {
  color: var(--text-primary);
  background: transparent;
}

/* ---- 2. Hero — extend .page-hero with reference-guide-specific layout.
   Keep the page-hero flag-pole flash from line 7071, but swap the
   solid blue background for the page's cream-dark so the decoder
   tool reads as the visual anchor. ---------------------------------- */
.rg-page-hero {
  background: var(--cream-dark);
  padding: 88px 0 100px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.rg-hero-inner {
  max-width: 1140px;
}
.rg-hero-stack {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.rg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.rg-hero-eyebrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.rg-hero-h1 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0 0 20px;
  text-wrap: balance;
}
.rg-hero-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* The decoder tool re-themed for hero anchoring. */
.rg-decoder {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.rg-decoder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
    var(--green-glow) 0%,
    transparent 55%);
  pointer-events: none;
  opacity: 0.6;
}
.rg-decoder-label {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.rg-decoder-label-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.rg-decoder-label-text {
  font-family: 'Cormorant', Georgia, serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green-light);
  letter-spacing: 0.02em;
}
.rg-decoder-help {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Suggestion pills replacing the "Try: 116610LN, ..." plain text. */
.rg-decoder-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.rg-decoder-suggest-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.rg-suggest-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}
.rg-suggest-pill:hover,
.rg-suggest-pill:focus-visible {
  border-color: var(--green-light);
  color: var(--green-light);
  background: var(--green-glow);
  outline: none;
  transform: translateY(-1px);
}

/* Decoder result entrance animation — replaces the old abrupt
   style.display = 'block' with a smooth slide-down + fade-in.
   Uses [hidden]-based pattern, transitions opacity / max-height /
   translate-y on .is-open. */
.decoder-result {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  padding-block: 0;
  margin-top: 0;
  border-width: 0;
  transition: max-height 320ms ease, opacity 240ms ease 60ms,
              transform 240ms ease 60ms, padding-block 240ms ease,
              margin-top 240ms ease, border-width 100ms ease;
}
.decoder-result[hidden] {
  display: block;  /* override HTML hidden default; we use class+attr to
                      keep transition control while remaining accessible */
}
.decoder-result.is-open {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  padding-block: 1.5rem;
  margin-top: 1.5rem;
  border-width: 1px;
}
.decoder-result[hidden]:not(.is-open) {
  visibility: hidden;
}

/* Individual decoder segments — stagger fade-in. */
.decoder-result.is-open .decoder-segment {
  animation: rgSegmentIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.decoder-result.is-open .decoder-segment:nth-child(2) { animation-delay: 60ms; }
.decoder-result.is-open .decoder-segment:nth-child(3) { animation-delay: 120ms; }
.decoder-result.is-open .decoder-segment:nth-child(4) { animation-delay: 180ms; }
.decoder-result.is-open .decoder-segment:nth-child(5) { animation-delay: 240ms; }
@keyframes rgSegmentIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Decoder segment headings — the existing h5 rule (line 7436) only
   covers h5; the JS emits h3. Pin both. */
.decoder-segment h3,
.decoder-segment h5 {
  color: var(--green-light);
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

/* ---- 3. Section titles — paired with .section-num-eyebrow above. */
.rg-section-title {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 12px;
  text-wrap: balance;
}

/* ---- 4. Anatomy section — "Where to find it / Evolution / Code". */
.rg-anatomy {
  padding-block: 80px;
}
.rg-anatomy-image {
  border: 1px solid var(--border-light);
}
.rg-anatomy-card {
  position: relative;
  padding-top: 2rem;
  transition: transform 240ms ease, border-left-color 240ms ease,
              box-shadow 240ms ease;
}
.rg-anatomy-card-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: lowercase;
}
.rg-anatomy-card-title {
  font-family: 'Cormorant', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.rg-anatomy-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--green-accent);
  box-shadow: var(--shadow-md);
}

/* ---- 5. Structure cards — replace the four .list-group-item
   border-success/info/warning/danger nodes with brand-aligned blocks.
   Each carries a numbered badge in the relevant brand colour and a
   coloured left-bar (red, blue, white). -------------------------------- */
.rg-structure-grid {
  max-width: 1040px;
  margin: 0 auto;
}
.rg-structure-card {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  color: var(--text-primary);
  transition: transform 240ms ease, border-left-color 240ms ease,
              border-color 240ms ease, box-shadow 240ms ease;
}
.rg-structure-card[data-accent="blue"]  { border-left-color: var(--green-dark); }
.rg-structure-card[data-accent="white"] { border-left-color: var(--flag-white); }
.rg-structure-card[data-accent="red"]   { border-left-color: var(--green-light); }
.rg-structure-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
}
.rg-structure-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.rg-structure-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
  color: var(--text-primary);
}
.rg-structure-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Numbered badge inside a structure card / anywhere we replace
   .badge bg-success / bg-info / bg-warning / bg-danger. */
.rg-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  background: transparent;
  border: 1px solid currentColor;
  letter-spacing: 0;
}
.rg-num-badge--red   { color: var(--green-light); }
.rg-num-badge--blue  { color: #8a89c4; /* lighter readable Old Glory Blue */ }
.rg-num-badge--white { color: var(--flag-white); }

/* ---- 6. Purpose cards (THE BUG FIX) — replace 4× raw .card blocks
   with themed cards. Red left-bar that flicks to white on hover,
   icon-left, content-right layout. ------------------------------------- */
.rg-purpose-grid {
  max-width: 1040px;
  margin: 0 auto;
}
.rg-purpose-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 1.75rem;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  color: var(--text-primary);
  transition: transform 240ms ease, border-left-color 240ms ease,
              border-color 240ms ease, box-shadow 240ms ease;
}
.rg-purpose-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--green-accent);
  border-color: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}
.rg-purpose-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-light);
  background: var(--green-glow);
  color: var(--green-light);
  border-radius: 4px;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}
.rg-purpose-card:hover .rg-purpose-icon {
  background: var(--green-light);
  color: var(--flag-white);
  border-color: var(--green-light);
}
.rg-purpose-body { flex: 1; min-width: 0; }
.rg-purpose-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.rg-purpose-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  text-wrap: pretty;
}

/* ---- 7. Pro-tip block — replaces .alert .rg-alert-success. ----------- */
.rg-protip {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--green-dark);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.rg-protip-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 8px;
}
.rg-protip-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.rg-protip-body {
  color: var(--text-secondary);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---- 8. Tables section — improve hover affordance. ------------------ */
.rg-tables-section {
  padding-block: 80px;
}

/* ---- 9. Accordion overrides — Bootstrap's white default would also
   have been visually broken on this dark page. Re-theme it. ----------- */
.rg-accordion .accordion-item {
  background: var(--warm-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.rg-accordion .accordion-header { margin: 0; }
.rg-accordion .accordion-button {
  background: var(--warm-white);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 1rem 1.25rem;
  border: none;
  border-left: 3px solid transparent;
  box-shadow: none;
  transition: background 200ms ease, border-left-color 200ms ease;
}
.rg-accordion .accordion-button:not(.collapsed) {
  background: var(--cream-dark);
  color: var(--text-primary);
  border-left-color: var(--green-light);
  box-shadow: none;
}
.rg-accordion .accordion-button:hover {
  background: var(--cream-dark);
  border-left-color: var(--green-light);
}
.rg-accordion .accordion-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--green-glow);
}
/* Override Bootstrap's chevron SVG with a brand-coloured one. */
.rg-accordion .accordion-button::after {
  filter: invert(82%) sepia(8%) saturate(0%) hue-rotate(180deg) brightness(95%);
}
.rg-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(33%) sepia(76%) saturate(2570%) hue-rotate(335deg) brightness(86%) contrast(95%);
}
.rg-accordion .accordion-body {
  background: var(--cream-dark);
  color: var(--text-primary);
  padding: 1.25rem 1.5rem;
}

/* Quiet count pill replacing .badge bg-secondary. */
.rg-count-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* 2024 references list inside the accordion body. */
.rg-ref-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.rg-ref-list li:last-child { border-bottom: none; }
.rg-ref-list code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--green-light);
  background: transparent;
  padding: 0;
  font-weight: 500;
  font-size: 0.95rem;
}
.rg-ref-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---- 10. Examples section — keep .example-watch but replace the
   .badge bg-primary with a quiet ghost-pill nickname. ----------------- */
.rg-examples-section {
  padding-block: 80px;
}
.rg-watch-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  background: transparent;
  border: 1px solid var(--green-light);
  color: var(--green-light);
  border-radius: 999px;
}
.example-watch h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

/* ---- 11. "Why It Matters" why-section info-cards. ------------------- */
.rg-why-section { padding-block: 80px; }
.rg-why-card h3 {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.rg-why-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---- 12. CTA section ------------------------------------------------ */
.rg-cta-section {
  padding-block: 80px;
}
.rg-cta-title {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-wrap: balance;
}

/* ---- 13. Scroll-driven entrance animations on era / structure /
   purpose / why cards. Modern browsers fade them in as they enter the
   viewport using animation-timeline: view(). Older browsers just see
   the cards in their final state. Respects reduced-motion. ------------ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rg-era-card,
    .rg-structure-card,
    .rg-purpose-card,
    .rg-why-card,
    .rg-anatomy-card {
      animation: rgFadeUp linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
  }
  @keyframes rgFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Hero stagger — eyebrow → h1 → lead → decoder. Fires once on load. */
  .rg-hero-eyebrow { animation: rgHeroIn 600ms cubic-bezier(0.2,0.8,0.2,1) both; }
  .rg-hero-h1     { animation: rgHeroIn 700ms cubic-bezier(0.2,0.8,0.2,1) 80ms both; }
  .rg-hero-lead   { animation: rgHeroIn 700ms cubic-bezier(0.2,0.8,0.2,1) 160ms both; }
  .rg-decoder     { animation: rgHeroIn 800ms cubic-bezier(0.2,0.8,0.2,1) 280ms both; }
  @keyframes rgHeroIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .decoder-result,
  .decoder-segment,
  .rg-purpose-card,
  .rg-structure-card,
  .rg-anatomy-card,
  .rg-era-card,
  .rg-why-card,
  .rg-suggest-pill,
  .rg-purpose-icon {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- 14. Responsive tightening ------------------------------------- */
@media (max-width: 768px) {
  .rg-page-hero {
    padding: 56px 0 64px;
  }
  .rg-hero-stack {
    margin-bottom: 36px;
  }
  .rg-decoder {
    padding: 1.75rem 1.25rem;
  }
  .rg-purpose-card {
    padding: 1.25rem;
    gap: 14px;
  }
  .rg-structure-card {
    padding: 1.25rem;
  }
  .rg-protip {
    padding: 1.25rem;
  }
  .rg-accordion .accordion-button {
    font-size: 0.95rem;
  }
}
