:root {
  --bg: #050508;
  --bg-elevated: #0c0c10;
  --surface: #121218;
  --surface-hover: #1a1a22;
  --fg: #f0f0f3;
  --muted: #9b9ba8;
  --subtle: #6b6b78;
  --primary: #3b82f6;
  --border: #23232e;
  --border-strong: #343444;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  /* sticky header clearance for anchors / scroll targets */
  --header-offset: 7.5rem;
}

@media (min-width: 640px) {
  :root {
    --header-offset: 8.5rem;
  }
}

@media (min-width: 900px) {
  :root {
    --header-offset: 9.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100dvh;
  /* allow last sections to scroll fully under sticky header */
  padding-bottom: 70vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo-row {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 1rem;
}

.logo-row img {
  height: 4.5rem;
  width: auto;
  max-width: 42vw;
  object-fit: contain;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  background: var(--surface);
  color: var(--fg);
}

.btn {
  display: inline-flex;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-solid {
  background: var(--fg);
  color: var(--bg);
}

.btn-solid:hover {
  opacity: 0.9;
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--surface-hover);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-contact-mobile {
  display: inline-flex;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  border-radius: 8px;
  background: var(--fg);
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg);
}

/* Sections */
.section {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.section-muted {
  background: color-mix(in oklab, var(--bg-elevated) 50%, transparent);
}

.hero-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.photo-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem auto 0;
  max-width: 64rem;
}

.photo-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.js-zoom {
  overflow: hidden;
  cursor: zoom-in;
}

.js-zoom img {
  display: block;
}

@media (hover: none) {
  .js-zoom {
    cursor: default;
  }
}

.zoom-window {
  position: fixed;
  z-index: 80;
  display: none;
  overflow: hidden;
  pointer-events: none;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #0c0c10;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.zoom-window.is-open {
  display: block;
}

.zoom-window-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8e8ec;
  background: linear-gradient(to bottom, rgba(12, 12, 16, 0.85), transparent);
}

.zoom-window-view {
  position: absolute;
  inset: 0;
  background-color: #0a0a0c;
  background-repeat: no-repeat;
}
  position: fixed;
  z-index: 79;
  display: none;
  pointer-events: none;
  border: 2px solid #c4b08a;
  background: color-mix(in oklab, #c4b08a 18%, transparent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.zoom-lens.is-open {
  display: block;
}

.photo-card figcaption {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* YMM */
.ymm {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.ymm-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ymm-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.ymm-title {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ymm-sub {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.ymm-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.field-control {
  position: relative;
}

.field select {
  width: 100%;
  height: 3rem;
  appearance: none;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--fg);
  padding: 0 2.5rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.field select:hover:not(:disabled) {
  border-color: color-mix(in oklab, var(--primary) 50%, var(--border-strong));
}

.field-control::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ymm-result {
  display: none;
  margin-top: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1rem;
  gap: 1rem;
}

.ymm-result.is-visible {
  display: flex;
  flex-direction: column;
}

.ymm-result-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.ymm-result-name {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.ymm-result-copy {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.ymm-hint {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--subtle);
}

.ymm-reset {
  align-self: flex-start;
  margin-top: 0.75rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.ymm-reset:hover {
  background: var(--surface-hover);
  color: var(--fg);
}

/* Content blocks */
.center {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.display {
  margin: 0;
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display span {
  display: block;
  color: var(--muted);
}

.lead {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: stretch;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
}

.card h3 {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--primary);
  font-weight: 700;
}

.split {
  display: grid;
  gap: 2.5rem;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.cta-box {
  display: grid;
  gap: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
}

.cta-box h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.cta-box p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-logos img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.footer-logos .bar {
  width: 1px;
  height: 1.75rem;
  background: var(--border-strong);
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--subtle);
  text-align: center;
}

@media (min-width: 640px) {
  .logo-row img {
    height: 6rem;
    max-width: none;
  }

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

  .ymm {
    padding: 1.75rem;
  }

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

  .ymm-result.is-visible {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .actions {
    flex-direction: row;
    justify-content: center;
  }

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

@media (min-width: 900px) {
  .logo-row img {
    height: 6.75rem;
  }

  .nav {
    display: flex;
  }

  .btn-contact-mobile {
    display: none;
  }

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

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .cta-box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer p {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Product results (after YMM) */
.product-results {
  margin-top: 2rem;
}

.product-results-head {
  margin-bottom: 1.25rem;
}

.product-results-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-results-sub {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-results-sub a {
  color: var(--primary);
  text-decoration: underline;
}

.product-grid {
  display: grid;
  gap: 1rem;
}

.product-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.product-card:hover {
  border-color: var(--border-strong);
}

.product-card-link {
  display: grid;
  color: inherit;
}

.product-card-image {
  background: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 1rem;
  overflow: hidden;
}

.product-card-image img {
  max-height: 14rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.product-card-body {
  padding: 1rem 1.15rem 1.25rem;
  border-top: 1px solid var(--border);
}

.product-card-type {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.part-number {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b08a;
}

.product-card-body h3 {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.product-card-fit {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.product-card-material {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #c4b08a;
}

.material-callout {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #c4b08a;
  border-radius: 0 8px 8px 0;
  background: color-mix(in oklab, #c4b08a 12%, var(--surface));
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.product-card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

/* Product detail page */
.breadcrumb {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--subtle);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--fg);
}

.product-detail {
  display: grid;
  gap: 2rem;
}

.product-detail-media {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-detail-media img {
  max-width: 100%;
  max-height: 28rem;
  width: auto;
  object-fit: contain;
}

.product-detail-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-vehicle-banner {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
}

.product-subhead {
  margin: 1.75rem 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.product-list,
.fitment-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-list li,
.fitment-list li {
  margin: 0.35rem 0;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }
}


/* Cart / pricing */
.price-block {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.price-plus {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.price-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--subtle);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s;
}

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

.cart-badge {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.3rem;
}

.product-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-paypal,
.btn-swipe,
.btn-stripe {
  background: #635bff;
  color: #fff;
  border: none;
}

.btn-paypal:hover,
.btn-swipe:hover,
.btn-stripe:hover {
  opacity: 0.92;
  background: #0a2540;
  color: #fff;
}

.swipe-pay-box {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.swipe-pay-amount {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.swipe-pay-hint {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.swipe-copy-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.swipe-copy-row label {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.swipe-copy-row input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--fg);
  padding: 0 0.75rem;
  font-weight: 600;
}

.swipe-pay-box .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-cart {
  background: var(--fg);
  color: var(--bg);
}

.product-card-price {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.product-card-price span {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.product-card-actions .btn {
  height: 2.4rem;
  padding: 0 0.85rem;
  font-size: 0.8rem;
}

/* Cart page */
.cart-layout {
  display: grid;
  gap: 1.5rem;
}

.cart-lines {
  display: grid;
  gap: 1rem;
}

.cart-line {
  display: grid;
  gap: 1rem;
  grid-template-columns: 5.5rem 1fr;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.cart-line-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 8px;
  background: #0a0a0c;
  border: 1px solid var(--border);
  overflow: hidden;
}

.cart-line-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-line-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.cart-line-title:hover {
  color: var(--primary);
}

.cart-line-meta {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cart-qty-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-qty {
  width: 3.5rem;
  height: 2.25rem;
  margin-left: 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--fg);
  text-align: center;
  font-weight: 600;
}

.cart-remove {
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

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

.cart-line-total {
  grid-column: 1 / -1;
  text-align: right;
  font-size: 1rem;
}

.cart-line-total-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--subtle);
}

.cart-summary {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cart-row.total {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.cart-empty {
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}

.cart-summary .btn {
  width: 100%;
  margin-top: 0.75rem;
}

.cart-secure-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--subtle);
  text-align: center;
  line-height: 1.4;
}

.cart-ship-note {
  margin: -0.15rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.ship-form {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.ship-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.ship-form input[type="text"],
.ship-form select {
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  padding: 0 0.75rem;
  font-weight: 600;
}

.ship-methods {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.ship-methods legend {
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.ship-methods label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.ship-result {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b08a;
}

.ship-result.is-error {
  color: #f87171;
}

.ship-options {
  display: grid;
  gap: 0.45rem;
}

.ship-option {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.ship-option strong {
  font-size: 0.9rem;
}

.ship-option span {
  grid-column: 1;
  font-size: 0.75rem;
  color: var(--muted);
}

.ship-option em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
}

.ship-option.is-selected,
.ship-option:hover {
  border-color: #635bff;
  background: color-mix(in oklab, #635bff 12%, var(--surface));
}

@media (min-width: 640px) {
  .cart-line {
    grid-template-columns: 5.5rem 1fr auto;
    align-items: center;
  }
  .cart-line-total {
    grid-column: auto;
    text-align: right;
    min-width: 6rem;
  }
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr 20rem;
    align-items: start;
  }
}


/* Keep in-page targets just below sticky header */
.section[id],
#home,
#products,
#product-results,
#services,
#about,
#contact,
#product-detail,
main > section:first-child {
  scroll-margin-top: var(--header-offset);
}

.product-results {
  scroll-margin-top: var(--header-offset);
}

/* Product page main content sits cleanly under header */
.product-detail,
.cart-layout,
.breadcrumb {
  scroll-margin-top: var(--header-offset);
}

/* Payment complete / receipt */
.receipt-wrap {
  max-width: 48rem;
}

.receipt-hero {
  margin-bottom: 1.25rem;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.receipt-empty {
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
}

.receipt-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.receipt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.receipt-brands {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.receipt-brands img {
  height: 2.75rem;
  width: auto;
}

.receipt-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.receipt-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 1.15rem 0 0;
}

.receipt-meta dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.receipt-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  word-break: break-word;
}

.receipt-split {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 1.15rem;
}

.receipt-split h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.receipt-split p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.receipt-addr {
  white-space: pre-line;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.receipt-table th,
.receipt-table td {
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.receipt-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.receipt-table .num {
  text-align: right;
  white-space: nowrap;
}

.rc-sku {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--subtle);
}

.receipt-totals {
  max-width: 18rem;
  margin: 1rem 0 0 auto;
}

.receipt-foot {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--subtle);
}

@media (min-width: 640px) {
  .receipt-meta {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .receipt-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
    padding-bottom: 0;
  }

  .no-print,
  .site-header,
  .footer,
  .receipt-hero,
  .receipt-actions {
    display: none !important;
  }

  .receipt-card {
    border: none;
    box-shadow: none;
    background: #fff;
    color: #111;
    padding: 0;
  }

  .receipt-table th,
  .receipt-table td,
  .receipt-head,
  .receipt-foot {
    border-color: #ccc;
  }

  .receipt-split p,
  .receipt-foot,
  .cart-row,
  .rc-sku {
    color: #333;
  }
}
