/* ==========================================================================
   Whiteblock Racing — stylesheet
   Aesthetic: quietly serious technical catalog
   Type: Archivo (display) + IBM Plex Sans (body) + IBM Plex Mono (specs)
   ========================================================================== */

:root {
  /* Palette */
  --ink:          #0d2438;
  --ink-soft:     #1a3a55;
  --paper:        #f6f7f8;
  --card:         #ffffff;
  --tint:         #f0f3f5;
  --tint-warm:    #f4f4ef;
  --line:         #e2e6ea;
  --line-soft:    #eef1f4;
  --muted:        #6b7a87;
  --muted-light:  #a8b3bd;
  --accent:       #f5c400;
  --accent-deep:  #d4a800;
  --flag-blue:    #005293;
  --danger:       #b3361b;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --font-sans:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing */
  --max:    1240px;
  --pad-x:  clamp(20px, 4vw, 56px);

  /* Effects */
  --radius:   6px;
  --radius-lg:10px;
  --shadow:   0 1px 2px rgba(13,36,56,0.04), 0 4px 16px rgba(13,36,56,0.04);
  --shadow-hover: 0 4px 8px rgba(13,36,56,0.06), 0 10px 32px rgba(13,36,56,0.08);

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection { background: var(--accent); color: var(--ink); }

/* --- Typography ---------------------------------------------------------- */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(34px, 4.8vw, 56px); font-weight: 800; letter-spacing: -0.018em; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.008em; line-height: 1.2; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow.on-dark { color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.lede.on-dark { color: #c9d4dd; }

.mono { font-family: var(--font-mono); }

/* --- Layout primitives --------------------------------------------------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: clamp(48px, 7vw, 96px) 0;
}

.section.tight { padding: clamp(28px, 4vw, 44px) 0; }

.section + .section { padding-top: 0; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 68px;
  padding: 12px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 4px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark-line {
  margin-top: 6px;
  height: 2px;
  width: 24px;
  background: var(--accent);
  border-radius: 1px;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 28px;
  order: 1;
}

nav.primary a {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s var(--ease);
}

nav.primary a:hover { color: var(--ink); }

nav.primary a.active { color: var(--ink); }
nav.primary a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: 2;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--ink);
  transition: background 0.15s var(--ease);
}

.cart-link:hover { background: var(--tint); }

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  visibility: hidden;
}

.cart-count.has-items {
  visibility: visible;
  background: var(--accent);
  color: var(--ink);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}

.menu-button:hover { border-color: var(--ink-soft); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
  text-align: center;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-dark {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--paper); }

.btn-link {
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
}
.btn-link:hover { text-decoration-color: var(--accent); }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }

.btn-full { width: 100%; }

.btn-icon-right::after {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1em;
  transition: transform 0.18s var(--ease);
}
.btn-icon-right:hover::after { transform: translateX(3px); }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--card);
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* Subtle Swedish-flag mark anchored top-right of hero */
  content: "";
  position: absolute;
  top: 0;
  right: -80px;
  width: 380px;
  height: 380px;
  background:
    linear-gradient(to bottom, transparent calc(50% - 8px), var(--accent) calc(50% - 8px), var(--accent) calc(50% + 8px), transparent calc(50% + 8px)),
    linear-gradient(to right, transparent calc(38% - 8px), var(--accent) calc(38% - 8px), var(--accent) calc(38% + 8px), transparent calc(38% + 8px)),
    radial-gradient(circle at center, rgba(245,196,0,0.10), transparent 60%);
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(0deg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(56px, 9vw, 112px) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--card);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

.hero h1 .accent { color: var(--accent); }

.hero p.lede { color: #c9d4dd; max-width: 50ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--tint);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: block;
}

.hero-feature-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13,36,56,0.85);
  color: var(--card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-feature-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #4ade80;
}

.hero-feature-meta {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(8px);
}

.hero-feature-meta strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.hero-feature-meta .mono {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* Page hero (interior pages) -- quieter */
.page-head {
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.page-head .eyebrow { color: var(--muted); }

.page-head h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.014em;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 15px;
}

/* --- Section heading ----------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 { margin-bottom: 0; }

.section-head .head-aside {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Trust / value strip ------------------------------------------------- */

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.value-strip > div {
  padding: clamp(24px, 3vw, 36px) var(--pad-x);
  border-right: 1px solid var(--line);
}

.value-strip > div:last-child { border-right: 0; }

.value-strip h3 {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.value-strip p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.value-strip .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

/* --- Product cards (grid view) ------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  display: flex;
  flex-direction: column;
}

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

.product-card-link {
  display: block;
  position: relative;
  flex: 1 1 auto;
}

.product-card-link::after {
  /* Whole card is clickable */
  content: "";
  position: absolute;
  inset: 0;
}

.product-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tint);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-art img { transform: scale(1.025); }

.product-art .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}

.product-art .badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #4ade80;
}

.product-info {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-info .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.product-info .price {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.product-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
  position: relative;
  z-index: 1; /* sits above the card-link overlay */
}

.product-actions .btn { flex: 1; }

/* List view */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-grid.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}

.product-grid.list-view .product-card-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
}

.product-grid.list-view .product-art {
  width: 220px;
  aspect-ratio: 4 / 3;
  flex: 0 0 220px;
  border-right: 1px solid var(--line);
}

.product-grid.list-view .product-info {
  flex: 1;
  padding: 18px 22px;
  gap: 6px;
}

.product-grid.list-view .product-info h3 {
  font-size: 18px;
}

.product-grid.list-view .product-actions {
  align-items: center;
  padding: 18px 22px 18px 0;
  flex: 0 0 auto;
  gap: 10px;
}

.product-grid.list-view .product-actions .btn { flex: 0 0 auto; }

/* --- Toolbar (filters + view + fitment) ---------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.chip:hover { border-color: var(--ink-soft); }

.chip.active {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.view-toggle button {
  background: transparent;
  border: 0;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.view-toggle button + button { border-left: 1px solid var(--line); }

.view-toggle button.active {
  background: var(--ink);
  color: var(--card);
}

/* Fitment selector */
.fitment {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.fitment-title {
  padding: 14px 18px;
  background: var(--ink);
  color: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.fitment-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  flex: 0 0 auto;
}

.fitment-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  flex: 1;
  align-items: stretch;
}

.fitment-fields > div {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
}

.fitment-fields > div:last-of-type { border-right: 0; }

.fitment-fields label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.fitment-fields select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%236b7a87' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 16px;
}

.fitment-apply {
  align-self: center;
  margin: 10px 14px;
}

/* --- Product detail page ------------------------------------------------- */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.gallery {
  position: sticky;
  top: 88px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s var(--ease);
}

.gallery-main:hover { border-color: var(--ink-soft); }

.gallery-main:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
  pointer-events: none;
}

.gallery-main:hover .gallery-zoom-hint,
.gallery-main:focus-visible .gallery-zoom-hint { opacity: 1; }

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumbs button {
  aspect-ratio: 1 / 1;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: border-color 0.15s var(--ease);
}

.gallery-thumbs button:hover { border-color: var(--ink-soft); }

.gallery-thumbs button.active { border-color: var(--ink); border-width: 2px; }

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

/* ---------- Lightbox ---------------------------------------------- */

body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 24, 0.86);
  border: 0;
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox-arrow:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-arrow.hidden { display: none; }

@media (max-width: 640px) {
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-arrow { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-stage img { max-height: 74vh; }
}

.detail-body { padding: 8px 0 24px; }

.detail-body .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-body .breadcrumb a:hover { color: var(--ink); }
.detail-body .breadcrumb span { opacity: 0.5; }

.detail-body h1 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
}

.detail-body .short {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.detail-price .amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.detail-price .note {
  font-size: 13px;
  color: var(--muted);
}

.detail-buy {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-buy .btn-primary { flex: 1; min-height: 48px; font-size: 15px; }
.detail-price + .detail-section {
  margin-bottom: 0;
}


.detail-blocks > * + * { margin-top: 28px; }

.detail-section h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}

.detail-section p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.detail-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-section ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.detail-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--accent-deep);
}

.detail-section .ref-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-section .ref-pills span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.options-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--card);
}

.option-group { margin-bottom: 14px; }
.option-group:last-child { margin-bottom: 0; }

.option-group > strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.option-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease);
}

.option-row label:hover { border-color: var(--ink-soft); }

.option-row input[type="radio"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.option-row label:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper);
}

/* --- Cart ---------------------------------------------------------------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cart-items {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-items-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child { border-bottom: 0; }

.cart-row h4 {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.cart-row .cart-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.cart-row .cart-opts {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.cart-row .remove-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
}

.cart-row .remove-btn:hover { color: var(--danger); }

.cart-empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.cart-empty p { color: var(--muted); margin-bottom: 16px; }

.cart-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quote-box {
  position: sticky;
  top: 88px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.quote-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.quote-box p.hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.field input,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.12s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field input.error,
.field textarea.error { border-color: var(--danger); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  font-size: 14px;
  cursor: pointer;
}

.field-check input { width: 16px; height: 16px; accent-color: var(--ink); }

.quote-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- Support ------------------------------------------------------------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.support-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-card .type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.support-card h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.support-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.support-card a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  align-self: flex-start;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.18s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 70ch;
}

/* --- About / Contact ----------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.about-body p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-body p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.about-body p .accent {
  background: linear-gradient(transparent 70%, rgba(245,196,0,0.4) 70%);
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.contact-card p { font-size: 14.5px; color: var(--muted); }

.contact-card .btn { margin-top: 10px; margin-right: 8px; }

.contact-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #c9d4dd;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--pad-x) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand { text-align: center; }

.footer-brand .brand {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-brand .brand-mark { width: 88px; height: 88px; }

.footer-brand .brand-name { color: var(--card); font-size: 20px; }

.footer-brand p {
  margin: 16px auto 0;
  font-size: 14px;
  color: #9eb0bf;
  max-width: 36ch;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e8294;
}

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

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: #c9d4dd;
  transition: color 0.15s var(--ease);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: #6e8294;
}

.footer-bottom .disclaimer { max-width: 70ch; line-height: 1.5; }

.footer-bottom .flag-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.footer-bottom .flag-mark::before {
  content: "";
  width: 18px;
  height: 12px;
  background:
    linear-gradient(to bottom, var(--flag-blue) 0 5px, var(--accent) 5px 7px, var(--flag-blue) 7px 100%),
    linear-gradient(to right, var(--flag-blue) 0 5px, var(--accent) 5px 7px, var(--flag-blue) 7px 100%);
  background-blend-mode: lighten;
  background:
    linear-gradient(to right, transparent 5px, var(--accent) 5px 7px, transparent 7px),
    linear-gradient(to bottom, transparent 5px, var(--accent) 5px 7px, transparent 7px),
    var(--flag-blue);
  border-radius: 2px;
}

/* --- Misc ---------------------------------------------------------------- */

.empty-state {
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.coming-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.back-link:hover { color: var(--ink); }

.back-link::before { content: "←"; font-family: var(--font-mono); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .fitment-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .fitment-fields > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 880px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 16px;
  }
  nav.primary.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  nav.primary.open a:last-child { border-bottom: 0; }
  .menu-button { display: inline-flex; }

  .hero-inner { grid-template-columns: 1fr; padding: 56px var(--pad-x); }
  .hero-feature { max-width: 480px; margin: 0 auto; }

  .product-detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .gallery-main {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .gallery-thumbs {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .cart-layout { grid-template-columns: 1fr; }
  .quote-box { position: static; }

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

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

  .value-strip { grid-template-columns: 1fr; }
  .value-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .value-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .product-grid:not(.list-view) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .product-grid.list-view .product-card { flex-direction: column; }
  .product-grid.list-view .product-art { width: 100%; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-grid.list-view .product-actions { padding: 0 18px 18px; }

  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }

  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col h4 { font-size: 12px; }
  .fitment { border-radius: var(--radius); }
  .fitment-title { width: 100%; }
  .fitment-fields { grid-template-columns: 1fr; }
  .fitment-fields > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .fitment-apply { margin: 12px; align-self: stretch; }
}

/* --- Focus visibility ---------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* --- Home: full-bleed hero image ---------------------------------------- */

/* When transparent header sits over a hero image, drop the bottom border and
   keep the blurred white background for nav legibility. */
body.home .site-header { border-bottom: 0; }

.hero-image {
  position: relative;
  width: 100%;
  min-height: 78vh;
  max-height: 880px;
  overflow: hidden;
  background: #0a1722;
  color: var(--card);
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,23,34,0.25) 0%, rgba(10,23,34,0.0) 35%, rgba(10,23,34,0.55) 75%, rgba(10,23,34,0.85) 100%),
    linear-gradient(to right, rgba(10,23,34,0.55) 0%, rgba(10,23,34,0) 55%);
  pointer-events: none;
}

.motto-bar {
  background: #000;
  text-align: center;
  padding: clamp(14px, 2.2vw, 22px) 16px;
}

.motto-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4.5vw, 48px);
  letter-spacing: -0.01em;
  line-height: 1;
}

.motto-text .motto-oem { color: #006aa7; }
.motto-text .motto-fn { color: #fecc02; }

.hero-image-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0 clamp(36px, 5vw, 64px);
}

.hero-image-content .eyebrow.on-dark {
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-image-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--card);
  margin: 0 0 18px;
  max-width: 16ch;
}

.hero-image-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-image-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.hero-image-meta > span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72);
}

.hero-image-meta > span em {
  font-style: normal;
  color: var(--card);
}

.hero-image-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.18s var(--ease);
}

.hero-image-link::after { content: "→"; font-family: var(--font-mono); }
.hero-image-link:hover { gap: 12px; }

/* --- Home: mission -------------------------------------------------------- */

.mission {
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  background: var(--paper);
  text-align: center;
}

.mission .eyebrow { margin-bottom: 20px; }

.mission-body {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 52ch;
  margin: 0 auto 24px;
}

.mission-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.15s var(--ease);
}

/* --- Home: gallery -------------------------------------------------------- */

.gallery-section {
  padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 120px);
  background: var(--card);
  border-top: 1px solid var(--line);
}

.gallery-section .head-aside a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: end;
  background: linear-gradient(to top, rgba(10,23,34,0.92) 0%, rgba(10,23,34,0.65) 60%, rgba(10,23,34,0) 100%);
  color: var(--card);
}

.gallery-item .cap-num {
  grid-row: 1 / span 2;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.25);
  line-height: 1;
  padding-bottom: 2px;
}

.gallery-item figcaption strong {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--card);
}

.gallery-item .cap-meta {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}

/* Feature: spans 2 cols × 2 rows in a 4-col grid. With 3 photos + 1 CTA on the
   right side, the layout fills exactly 4×2 cells. */
.gallery-item.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* CTA card lives inside the gallery grid as the 5th cell. */
.gallery-cta-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-cta-card .cta-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 20px;
  width: 100%;
}

.gallery-cta-card .eyebrow { margin: 0 0 8px; color: var(--accent-deep); }

.gallery-cta-card .cta-card-body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.gallery-cta-card .cta-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gallery-cta-card .cta-card-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s var(--ease);
  align-self: flex-start;
}

.gallery-cta-card .cta-card-links a:hover { border-color: var(--accent); }

/* --- Home: end strip ----------------------------------------------------- */

.end-strip {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 96px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.end-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.end-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 64px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.end-card:hover {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.end-card .eyebrow { margin: 0 0 8px; }

.end-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.end-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.end-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  transition: transform 0.2s var(--ease);
}

.end-card:hover .end-arrow { transform: translateX(4px); }

/* --- Responsive overrides for home --------------------------------------- */

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .end-grid { grid-template-columns: 1fr 1fr; }
  .end-grid .end-card:last-child { grid-column: span 2; }
}

@media (max-width: 880px) {
  .hero-image { min-height: 70vh; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.gallery-feature {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
  .gallery-cta-card { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .hero-image { min-height: 0; aspect-ratio: 4 / 3; max-height: none; }
  .hero-image-bg { object-position: center center; }
  .hero-image-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.gallery-feature, .gallery-cta-card {
    aspect-ratio: 4 / 3;
    grid-column: auto;
    grid-row: auto;
  }
  .end-grid, .end-grid .end-card:last-child { grid-template-columns: 1fr; grid-column: auto; }
}

/* --- 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;
  }
}

/* --- Home: trust strip ---------------------------------------------------- */
.trust-strip {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}

.trust-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  text-transform: uppercase;
}

.trust-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
}

.trust-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 38ch;
}

@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Cart: how-it-works --------------------------------------------------- */
.how-it-works {
  padding: clamp(20px, 2.5vw, 32px) 0 clamp(8px, 1vw, 16px);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.how-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
}

.how-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  margin: 4px 0 4px;
}

.how-body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; gap: 18px; }
}

.how-note {
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin: 18px 0 0;
}

/* --- Reviews -------------------------------------------------------------- */
.reviews-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0 0 24px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-stars {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-deep);
  letter-spacing: 2px;
}

.review-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.review-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

.review-meta strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 880px) {
  .review-list { grid-template-columns: 1fr; }
}

/* Review submission form */
.review-form-intro h2 { margin-bottom: 6px; }
.review-form-intro p { color: var(--muted); margin: 0 0 24px; }

.review-form {
  display: grid;
  gap: 14px;
  max-width: 56ch;
}

.review-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.review-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-form input,
.review-form textarea,
.review-form select {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), outline 0.15s var(--ease);
}

.review-form input:focus,
.review-form textarea:focus,
.review-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent-deep);
}

.review-form .hint,
.review-form .muted {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.review-form .hint { margin-top: 2px; }

.review-form button[type="submit"] {
  justify-self: start;
  margin-top: 4px;
}

.review-status {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 1.5em;
}

.review-status.error { color: var(--danger); }

@media (max-width: 600px) {
  .review-form .field-row { grid-template-columns: 1fr; }
}

/* --- Policy pages (shipping & returns, future legal) --------------------- */
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.policy {
  max-width: 68ch;
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

.policy-toc {
  position: sticky;
  top: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
}

.policy-toc .toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.policy-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-toc li { margin-bottom: 10px; }

.policy-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
  transition: color 0.15s var(--ease);
}

.policy-toc a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .policy-toc { position: static; order: -1; }
  .policy-toc .toc-label { margin-bottom: 8px; padding-bottom: 6px; }
}

.policy h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.policy h2:first-child { margin-top: 0; }

.policy h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
  margin: 24px 0 8px;
}

.policy p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.policy strong { color: var(--ink); font-weight: 600; }

.policy a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: border-color 0.15s var(--ease);
}

.policy a:hover { border-bottom-color: var(--ink); }

/* --- Build V39: home customer car carousel ------------------------------ */
.home-carousel .hero-carousel-slide {
  opacity: 0;
  transition: opacity 900ms ease;
  z-index: 0;
}

.home-carousel .hero-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-carousel .hero-image-overlay,
.home-carousel .hero-image-content,
.home-carousel .hero-carousel-dots {
  z-index: 2;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(90vw, 520px);
  pointer-events: none;
}

.hero-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
  transition: background 250ms ease, transform 250ms ease;
}

.hero-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.35);
}

@media (max-width: 760px) {
  .hero-carousel-dots {
    bottom: 14px;
    gap: 6px;
  }

  .hero-carousel-dot {
    width: 6px;
    height: 6px;
  }
}

/* Build V42 simplified product review form */
.simple-review-form {
  max-width: 48rem;
}

.simple-review-form .field-row,
.simple-review-form .hint,
.review-form-intro {
  display: none !important;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: #c4ccd2;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--accent);
}

.star-rating label:hover {
  transform: translateY(-1px);
}

.simple-review-form button[type="submit"] {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  justify-self: start;
}
