/* ===== Specs ===== */
.specs {
  padding: var(--space-3xl) 0;
  background-color: var(--clr-neutral-200);
}

.specs__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.specs__subtitle {
  font-size: var(--fs-base);
  color: var(--clr-primary-400);
  opacity: 0.55;
  margin-top: 0.5rem;
  max-width: none;
}

/* ── Quick-spec chips ── */
.specs__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 980px;
  margin: 0 auto var(--space-xl);
  padding: 0 var(--space-base);
}

.spec-chip {
  flex: 0 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem 0.75rem;
  background: var(--clr-neutral-100);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 14px;
  text-align: center;
  cursor: default;
}

/* Chip hover — desktop only (pointer:fine = no touch) */
@media (hover: hover) and (pointer: fine) {
  .spec-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .spec-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15,23,42,0.06);
  }
}

.spec-chip__icon {
  width: 22px;
  height: 22px;
  color: var(--clr-accent-400);
}

.spec-chip__value {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-primary-400);
  line-height: 1.2;
}

.spec-chip__label {
  font-size: var(--fs-xs);
  color: var(--clr-primary-400);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--fw-medium);
}

/* ── Spec body container — single enclosing card ── */
.specs__body {
  max-width: 980px;
  margin-inline: auto;
  background: var(--clr-neutral-100);
  border-radius: 1.25rem;
  border: 1px solid rgba(15,23,42,0.06);
  overflow: hidden;
}

/* ── Accordion items — headers stay solid white, no zebra on headers ── */
details.spec {
  background: var(--clr-neutral-100);
  overflow: hidden;
}

details.spec + details.spec {
  border-top: 1px solid rgba(15,23,42,0.08);
}

/* Open state — subtle yellow inset glow at top to distinguish expanded section */
details.spec[open] {
  box-shadow: inset 0 1px 0 rgba(253,186,18,0.35);
}

/* ── Accordion header — always white, proper button semantics ── */
.spec__question {
  font-family: var(--ff-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-primary-400);
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--clr-neutral-100);
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.15s ease;
}

.spec__question::-webkit-details-marker { display: none; }

/* Keyboard focus — visible focus ring for accessibility */
.spec__question:focus-visible {
  outline: 2px solid var(--clr-accent-400);
  outline-offset: -2px;
}

/* ── Category icon in header ── */
/* Inactive icons use a light navy tint instead of flat gray */
.spec__cat-icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(31,41,87,0.04);
  color: var(--clr-accent-400);
  opacity: 0.75;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* Open state — stronger icon with warm yellow background */
details.spec[open] .spec__cat-icon {
  color: var(--clr-primary-400);
  background: rgba(253,186,18,0.12);
  opacity: 1;
}

/* ── Chevron — smooth rotation on expand/collapse ── */
.spec__chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--clr-primary-400);
  opacity: 0.35;
  transition: transform 0.22s ease;
}

details.spec[open] .spec__chevron {
  transform: rotate(180deg);
}

/* ── Accordion content — smooth expand/collapse animation ── */
/* Extra bottom padding so content breathes before next accordion */
.spec__content {
  padding: 0 1.25rem 1rem;
  animation: specExpand 0.2s ease-out;
}

@keyframes specExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Spec tables ── */
.spec__table {
  width: 100%;
  border-collapse: collapse;
}

.spec__table td {
  padding: 0.75rem 0.75rem;
  vertical-align: top;
  font-size: var(--fs-sm);
  color: var(--clr-primary-400);
}

/*
 * Zebra striping — applied only to expanded spec detail rows.
 * Ultra-soft tint so it aids scanning without feeling like a spreadsheet.
 */
.spec__table tr:nth-child(even) {
  background-color: rgba(15,23,42,0.025);
}

/* Thin row dividers */
.spec__table tr + tr td {
  border-top: 1px solid rgba(15,23,42,0.06);
}

/* Label column — muted, fixed width */
.spec__table td:first-child {
  width: 240px;
  opacity: 0.5;
  font-weight: var(--fw-medium);
}

/* Value column — slightly darker for emphasis, left divider for separation */
.spec__table td:last-child {
  font-weight: var(--fw-medium);
  color: var(--clr-primary-900);
  border-left: 1px solid rgba(15,23,42,0.06);
  padding-left: 1.5rem;
}

/*
 * Row hover — desktop only (hover + fine pointer).
 * Subtle brand-yellow highlight with a 3px left accent border.
 * Touch devices never see hover effects.
 */
@media (hover: hover) and (pointer: fine) {
  .spec__table td {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
  }

  .spec__table tr:hover td {
    background-color: rgba(253,186,18,0.06);
  }

  /* Faint left accent border on hover — 3px brand yellow */
  .spec__table tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--clr-accent-500);
  }
}

/* ── Spec footnote ── */
.specs__footnote {
  max-width: 980px;
  margin: var(--space-lg) auto 0;
  padding: 0 var(--space-base);
  font-size: var(--fs-xs);
  color: var(--clr-primary-400);
  opacity: 0.4;
  text-align: center;
}

/*
 * Reduced motion — disables animations and transitions
 * when the user has prefers-reduced-motion enabled.
 */
@media (prefers-reduced-motion: reduce) {
  .spec-chip {
    transition: none !important;
    transform: none !important;
  }
  .spec__chevron,
  .spec__cat-icon,
  .spec__question,
  .spec__table td {
    transition: none !important;
  }
  .spec__content {
    animation: none !important;
  }
}

/* ── Mobile ── */
@media (max-width: 860px) {
  .specs { padding: var(--space-2xl) 0; }
  .specs__chips { gap: 0.5rem; }
  .spec-chip { flex: 0 1 calc(33.33% - 0.5rem); padding: 0.75rem 0.5rem; }
  .spec-chip__value { font-size: var(--fs-sm); }
  .spec__question { padding: 0.75rem 1rem; font-size: var(--fs-sm); }
  .spec__cat-icon { width: 28px; height: 28px; padding: 5px; }
  .spec__content { padding: 0 1rem 0.75rem; }

  .spec__table td {
    padding: 0.5rem 0.75rem;
    font-size: var(--fs-xs);
  }
  .spec__table td:first-child { width: 44%; }
  .spec__table td:last-child { padding-left: 0.75rem; }
}

@media (max-width: 480px) {
  .spec-chip { flex: 0 1 calc(50% - 0.5rem); }
}

/* ===== Product layout ===== */
.product {
  display: grid;
  grid-template-columns:
    minmax(520px, 1.4fr)
    minmax(360px, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: stretch;
  min-height: clamp(520px, 70vh, 860px);
  overflow-x: clip;
}
.product > * {
  min-width: 0;
}

@media (max-width: 1000px) {
  .product {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }
}

/* ===== Carousel sizing ===== */
.product__carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Main image area fills its column height */
.product__carousel .product__display {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: 12px;
}

/* Slides: absolutely stacked images that we animate */
.product__carousel .product__display img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  transform: translateX(calc((var(--i, 0) - var(--index, 0)) * 100%));
  transition: transform .35s ease;
  will-change: transform;
}

/* Fade mode overrides (optional) */
.product__carousel[data-motion="fade"] .product__display img {
  transform: translateX(0);
  opacity: 0;
  transition: opacity .28s ease;
}
.product__carousel[data-motion="fade"] .product__display img[data-active="true"] {
  opacity: 1;
}

/* Instant mode overrides (optional) */
.product__carousel[data-motion="instant"] .product__display img {
  transition: none !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .product__carousel .product__display img { transition: none !important; }
}

/* Arrows (injected by JS) */
.product__carousel .product__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 45px;
  line-height: 1;
  color: #6b7280;
  padding: 0;
  z-index: 10;
}
.product__carousel .product__arrow--prev { left: 10px; }
.product__carousel .product__arrow--next { right: 10px; }

/* Thumbnails */
.product__carousel .product__thumbs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}

/* Thumbnail wrapper (button/div) */
.product__carousel .product__thumbs .product__thumb {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.product__carousel .product__thumbs .product__thumb:hover {
  transform: translateY(-2px);
}

/* Thumbnail image */
.product__carousel .product__thumbs .product__thumb img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* Underline for active state */
.product__carousel .product__thumbs .product__thumb[aria-current="true"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  border-radius: 1px;
  background-color: #111;
}


/* ===== Product info column ===== */
.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: clamp(460px, 36vw, 560px);
  width: 100%;
}

.product-info__title {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  color: #4b5563;
  line-height: 1.05;
  letter-spacing: .2px;
  margin: 0 0 .25rem;
  text-transform: uppercase;
}
.product-info__description {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.35;
  margin: .25rem 0 .75rem;
}

.product-info__price {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  margin: .25rem 0 1rem;
}

.product-info__price--sale {
  color: #dc2626;
}

.product-info__sku {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 1rem;
}

.product-info__price--original {
  font-size: clamp(14px, 3vw, 16px);
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.5rem;
}

.product-option__price--sale {
  color: #dc2626;
}

.product-option__price--original {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.25rem;
}
/* ── Attribute Cascading Filter ── */
.attr-row {
  margin-bottom: 0.75rem;
}

.attr-row__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.attr-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.attr-chip {
  padding: 0.4rem 0.9rem;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-neutral-900, #111);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}

.attr-chip:hover:not(:disabled) {
  border-color: #d1d5db;
  background: #fafafa;
}

.attr-chip--active {
  border-color: var(--clr-accent-400);
  background: hsl(41, 100%, 97%);
  color: var(--clr-neutral-900, #111);
}

.attr-chip--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Product Options ── */
.product-info__options {
  margin: 0.25rem 0 1rem;
}

.product-info__options-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.product-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}

.product-option:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.product-option--active {
  border-color: var(--clr-accent-400);
  background: hsl(41, 100%, 97%);
}

.product-option__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.product-option__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-neutral-900);
}

.product-option__sku {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}

.product-option__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-neutral-900);
  white-space: nowrap;
}

.product-info__cta { 
  padding: 1rem 0 0.5rem; 
}
.product-info__helper {
  color: #6b7280;
  font-size: 14px;
  margin: .75rem 0 .5rem;
}

/* Product-page button modifier */
.btn--product {
  border: 1px solid #d1d5db;
  background: var(--clr-neutral-100);
  border-radius: 8px;
  padding: .6rem .9rem;
  font-weight: 600;
  font-size: 14px;
  color: var(--clr-neutral-900);
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}
.btn--product:hover {
  border-color: #9ca3af;
  background: var(--clr-neutral-100);
  color: var(--clr-neutral-900);
}

.btn--add-to-cart {
  width: 100%;
  background: var(--clr-accent-500);
  color: var(--clr-neutral-900);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  margin-bottom: 0.5rem;
}
.btn--add-to-cart:hover {
  background: var(--clr-accent-400);
}

/* Color section header */
.product-info__exterior-colour-header {
  display: flex; align-items: center; gap: .5rem; margin: .75rem 0 .5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .5rem;
}
.product-info__exterior-colour-label { font-weight: 600; }
.product-info__exterior-colour-value { color: #6b7280; }

/* Swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .35rem 0 0;
  margin: 0; border: 0;
  overflow: visible;
}
.swatch { display: grid; place-items: center; cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid #615f5f;
  background: var(--swatch); display: block;
}
.swatch input:checked + .swatch__dot,
.swatch input:checked + .swatch__dot--striped {
  border-color: white;
  box-shadow:
    0 0 0 2px white,
    0 0 0 4px #111;
}

/* Bubble */
.swatch::before {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 0);
  background: #333;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 10;
}

/* Arrow */
.swatch::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* Show on hover and keyboard focus */
.swatch:hover::before,
.swatch:focus-within::before,
.swatch:hover::after,
.swatch:focus-within::after {
  opacity: 1;
  transform: translate(-50%, -10px);
  bottom: calc(100% - 4px);
}

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .swatch::before,
  .swatch::after {
    transition: none !important;
    transform: translate(-50%, -8px) !important;
    opacity: 1;
  }

  .swatch:not(:hover):not(:focus-within)::before,
  .swatch:not(:hover):not(:focus-within)::after {
    opacity: 0;
  }
  .swatch:hover::before,
  .swatch:hover::after,
  .swatch:focus-within::before,
  .swatch:focus-within::after {
    opacity: 1;
  }
}

/* Tile swatches for carpet (square, rounded) */
.swatch__tile {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #111;
  display: block;
  background: var(--swatch);
  background-size: 34px 34px;
}
.swatch__dot--striped {
  background: none;

  --base: var(--stripe1);
  --accent-stripe: var(--stripe2);
  --line: 2px;
  --step: 8px;

  background-color: var(--base);
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent-stripe) 0 calc(var(--line)),
    transparent calc(var(--line)) var(--step)
  );
}
/* white diagonal line when not available */
.swatch[data-available="false"] .swatch__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 2px;
  height: 140%;
  background: white;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 2;
}

/* visually tone down unavailable ones */
.swatch[data-available="false"] .swatch__dot {
  opacity: 0.4;
  filter: grayscale(80%);
  cursor: not-allowed;
}


/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-family: var(--ff-body);
  font-size: 14px;
  color: #374151;
  margin: 1rem 1rem;
}

.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-weight: 500;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "›";
  margin: 0 0.5rem;
  color: #9ca3af;
  font-weight: 400;
}

.breadcrumbs__item:last-child {
  color: var(--clr-neutral-900);
  font-weight: 600;
}

/* Optional: subtle hover effect for links */
.breadcrumbs__item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.breadcrumbs__item a:hover {
  border-color: currentColor;
  color: var(--clr-accent-400);
}



/* ===== Hero (golf cart) — scoped under .hero--cart ===== */
.hero--cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: none;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  min-height: 30vh;
}

.hero--cart .hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero--cart .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero--cart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    transparent 100%
  );
  z-index: 0;
}

.hero--cart .hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
}

.hero--cart .hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero--cart .hero__subtitle {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .hero--cart .hero__media img {
    object-position: center 70%;
  }

  .hero--cart[data-no-blend-mobile="true"] .hero__media img {
    mix-blend-mode: normal;
    opacity: 1;
  }
}


/* ===== Feature Grid ===== */
.feature-grid {
  padding: 3rem 20px 2rem;
}

.feature-grid__heading {
  font-family: var(--ff-heading, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-grid__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
}

@media (min-width: 640px) {
  .feature-grid__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid__list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.feature-grid__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-grid__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #9ca3af;
  margin-top: 1px;
}

.feature-grid__title {
  font-family: var(--ff-heading, "Plus Jakarta Sans", sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  color: #1f2937;
}

.feature-grid__desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9ca3af;
  max-width: none;
}

/* ===== Features layout ===== */
.features {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 20px;
  display: grid;
  gap: 56px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  grid-template-areas: "media copy";
  align-items: center;
  gap: 32px;
  overflow: visible;
}

.feature .feature__media { grid-area: media; min-width: 0; margin: 0; }
.feature .feature__copy  { grid-area: copy;  min-width: 0; }

/* 🔁 Alternate automatically: flip areas on even rows */
.feature:nth-child(even) { grid-template-areas: "copy media"; }

/* --- Media box fills full width of its grid track --- */
.feature .feature__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: block;
}

/* Neutral background ONLY when empty */
.feature .feature__media:empty { background: #e5e7eb; }

/* Media content fills container */
.feature .feature__media > img,
.feature .feature__media > video,
.feature .feature__media > picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Text */
.feature .feature__eyebrow { color: #6b7280; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .25rem; }
.feature .feature__title   { font-size: clamp(1.5rem, 1.2vw + 1rem, 2.25rem); margin: 0 0 .35rem; }
.feature .feature__title .feature__tag {
  display: inline-block; margin-left: .5rem; font-size: .8rem; line-height: 1;
  padding: .25rem .5rem; border-radius: 999px; background: #eef6ff; color: #0369a1; border: 1px solid #bae6fd;
}
.feature .feature__desc { color: #4b5563; max-width: 48ch; }

/* ===== Every 4th row full-bleed (true edge-to-edge) ===== */
.feature:nth-of-type(4n) {
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "copy";
  gap: 20px;
}

/* Make media ignore container and fill viewport width */
.feature:nth-of-type(4n) .feature__media {
  border-radius: 0;
  aspect-ratio: 21 / 9;

  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);

  background: transparent;
}
.feature:nth-of-type(4n) .feature__media:empty { background: #e5e7eb; }

@supports (width: 100dvw) {
  .feature:nth-of-type(4n) .feature__media {
    width: 100dvw;
    max-width: 100dvw;
    margin-inline: calc(50% - 50dvw);
  }
}

.feature:nth-of-type(4n) .feature__copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* ===== Mobile: stack image → text; center text; disable bleed ===== */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy";
    gap: 20px;
  }
  .feature:nth-child(even) {
    grid-template-areas:
      "media"
      "copy";
  }

  .feature .feature__copy {
    text-align: center;
    justify-self: center;
    max-width: 60ch;
    margin: 0 auto;
  }

  .feature:nth-of-type(4n) .feature__media {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 0;
  }
}

/* ===== Related Products ===== */
.related-products {
  padding: var(--space-4xl) 0;
  background: var(--clr-neutral-200);
}

.related-products__heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.related-products__row {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-base);
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.related-products__row::-webkit-scrollbar {
  height: 6px;
}

.related-products__row::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.related-products__row > .products__card {
  flex: 0 0 15rem;
  scroll-snap-align: start;
}

/* ===== Technical Documents ===== */
.product-documents {
  padding: var(--space-3xl) 0;
}

.product-documents__heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.product-documents__list {
  max-width: 700px;
  margin-inline: auto;
  display: grid;
  gap: var(--space-sm);
}

.product-documents__item {
  display: flex;
  align-items: center;
  gap: var(--space-base);
  padding: var(--space-base) var(--space-lg);
  background: var(--clr-neutral-200);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--clr-primary-400);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-documents__item:hover {
  background: #e8e8ea;
  transform: translateX(4px);
}

.product-documents__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--clr-accent-400);
}

.product-documents__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  display: block;
}

.product-documents__type {
  font-size: var(--fs-xs);
  opacity: 0.5;
  display: block;
}

/* ===== Bundle Deal ===== */
.bundle-deal {
  padding: var(--space-2xl) 0;
}

.bundle-deal__card {
  background: var(--clr-neutral-200);
  border-radius: 1rem;
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bundle-deal__badge {
  display: inline-block;
  background: var(--clr-accent-400);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.35em 1em;
  border-radius: 2rem;
  margin-bottom: var(--space-base);
}

.bundle-deal__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xs);
}

.bundle-deal__desc {
  opacity: 0.7;
  margin-bottom: var(--space-lg);
}

.bundle-deal__products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.bundle-deal__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  max-width: 180px;
}

.bundle-deal__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem;
}

.bundle-deal__item-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.bundle-deal__item-price {
  font-size: var(--fs-sm);
  opacity: 0.6;
}

.bundle-deal__plus {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-accent-400);
}

.bundle-deal__pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-base);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.bundle-deal__original {
  font-size: var(--fs-lg);
  text-decoration: line-through;
  opacity: 0.5;
}

.bundle-deal__bundle-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-accent-400);
}

.bundle-deal__savings {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-accent-400);
}

/* ===== Accessories & Compatible Parts ===== */
/* ===== Accessories Section ===== */
.acc-section {
  padding: var(--space-2xl) 0;
}

.acc-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-base);
  margin-bottom: var(--space-lg);
}

.acc-section__heading {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0;
}

.acc-section__subtitle {
  font-size: var(--fs-sm);
  opacity: 0.55;
  margin: 0.15rem 0 0;
}

/* Arrow controls */
.acc-arrows {
  display: none;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .acc-arrows { display: flex; }
}

.acc-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.acc-arrow:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.04);
}

.acc-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Filter chips */
.acc-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.acc-chip {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  color: inherit;
  white-space: nowrap;
}

.acc-chip:hover {
  border-color: var(--clr-accent-400, #e67e22);
}

.acc-chip--active {
  background: var(--clr-accent-400, #e67e22);
  border-color: var(--clr-accent-400, #e67e22);
  color: #fff;
}

/* ─── Rail / Grid layout ─── */
/* Mobile: vertical stack */
.acc-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Desktop: horizontal scroll rail */
@media (min-width: 768px) {
  .acc-rail {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-base);
    scrollbar-width: thin;
    gap: var(--space-lg);
  }
}

/* ─── Accessory Card ─── */
.acc-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acc-card[hidden] { display: none; }

/* ── Card top area (image + body in a row) ── */
.acc-card__top {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.acc-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.acc-card__img-wrap {
  width: 100px;
  min-height: 100px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.acc-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.acc-card__body {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.acc-card__name-link {
  text-decoration: none;
  color: inherit;
}

.acc-card__name-link:hover .acc-card__name {
  color: var(--clr-accent-400, #e67e22);
}

.acc-card__name-link:focus-visible {
  outline: 2px solid var(--clr-accent-400, #e67e22);
  outline-offset: 2px;
  border-radius: 4px;
}

.acc-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.acc-card__sub {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.5);
  margin: 0;
  line-height: 1.3;
}

.acc-card__price {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.acc-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--clr-primary-400);
  width: fit-content;
  line-height: 1.4;
}

.acc-card__badge--compat {
  background: #dcfce7;
  color: #16a34a;
}

.acc-card__hint {
  font-size: 0.7rem;
  color: var(--clr-accent-400, #e67e22);
  font-weight: 500;
}

/* ── Actions strip below body ── */
.acc-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem 0.65rem;
  flex-wrap: wrap;
}

/* Circular plus button — always means "add this item" */
.acc-card__plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-400, #0f172a);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.acc-card__plus:hover {
  background: var(--clr-accent-400, #e67e22);
  border-color: var(--clr-accent-400, #e67e22);
  color: #fff;
  transform: scale(1.08);
}

.acc-card__plus:focus-visible {
  outline: 2px solid var(--clr-accent-400, #e67e22);
  outline-offset: 3px;
}

.acc-card__plus.is-added {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  pointer-events: none;
}

/* "Choose Chains" pill — expand/collapse only */
.acc-card__choose {
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 2px solid var(--clr-accent-400, #e67e22);
  border-radius: 999px;
  background: transparent;
  color: var(--clr-accent-400, #e67e22);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.acc-card__choose:hover {
  background: var(--clr-accent-400, #e67e22);
  color: #fff;
}

.acc-card__choose:focus-visible {
  outline: 2px solid var(--clr-accent-400, #e67e22);
  outline-offset: 3px;
}

/* Active/expanded card */
.acc-card.is-active {
  border-color: var(--clr-accent-400, #e67e22);
  box-shadow: 0 0 0 1px var(--clr-accent-400, #e67e22);
}

.acc-card.is-active .acc-card__choose {
  background: var(--clr-accent-400, #e67e22);
  color: #fff;
}

/* Desktop: vertical card in horizontal rail */
@media (min-width: 768px) {
  .acc-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
  }

  .acc-card__top {
    flex-direction: column;
  }

  .acc-card__img-wrap {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-radius: 0;
  }

  .acc-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  }

  .acc-card--expandable {
    align-self: flex-start;
  }
}

/* ─── In-card Expand Area ─── */
.acc-card__expand {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
  overflow: hidden;
}

.acc-card__expand[hidden] {
  display: none;
}

.acc-card__expand-inner {
  padding: 0.75rem;
}

.acc-card__expand-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.4);
  margin: 0 0 0.5rem;
}

/* ─── Child rows — grid layout ─── */
.acc-child {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 100px;
}

.acc-child:last-child {
  margin-bottom: 0;
}

.acc-child:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(15, 23, 42, 0.015);
}

.acc-child:focus-visible {
  outline: 2px solid var(--clr-accent-400, #e67e22);
  outline-offset: 2px;
}

.acc-child.is-selected {
  border-color: var(--clr-accent-400, #e67e22);
  background: rgba(230, 126, 34, 0.04);
}

.acc-child__thumb {
  width: 56px;
  align-self: stretch;
  background: #f0f0f2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 56px;
  position: relative;
}

.acc-child__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Shield fit icon — hidden on mobile, shown on desktop via grid */
.acc-child__fit {
  display: none;
  width: 16px;
  height: 16px;
  color: #16a34a;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
  cursor: help;
}

/* Compat text — hidden on mobile, shown on desktop */
.acc-child__compat {
  display: none;
  font-size: 0.68rem;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.3;
}

.acc-child__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acc-child__info {
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Price + check grouped on right */
.acc-child__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.acc-child__price {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.acc-child__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.acc-child.is-selected .acc-child__check {
  background: var(--clr-accent-400, #e67e22);
  border-color: var(--clr-accent-400, #e67e22);
  color: #fff;
}

.acc-child__check svg {
  display: none;
}

.acc-child.is-selected .acc-child__check svg {
  display: block;
}

/* Desktop child grid — image full height left, content right */
@media (min-width: 768px) {
  .acc-child {
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "thumb title title fit"
      "thumb meta  meta  meta"
      "thumb .     price check";
    align-items: start;
    gap: 0.2rem 0.65rem;
    padding: 0.65rem;
    min-height: 100px;
  }

  .acc-child__thumb {
    grid-area: thumb;
    width: 72px;
    min-height: 80px;
    align-self: stretch;
  }

  .acc-child__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
  }

  .acc-child__info {
    grid-area: title;
    min-width: 0;
    display: block;
    height: auto;
    align-self: start;
  }

  .acc-child__name {
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 700;
    -webkit-line-clamp: 2;
    height: auto;
    padding-right: 1.5rem;
  }

  .acc-child__compat {
    display: block;
    grid-area: meta;
    font-size: 0.68rem;
    color: rgba(15, 23, 42, 0.55);
    line-height: 1.2;
    align-self: start;
  }

  .acc-child__right {
    display: contents;
  }

  .acc-child__price {
    grid-area: price;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    align-self: end;
    justify-self: end;
  }

  .acc-child__check {
    grid-area: check;
    align-self: end;
  }

  .acc-child__fit {
    display: flex;
    grid-area: fit;
    justify-self: end;
    align-self: start;
    width: 18px;
    height: 18px;
  }
}

/* ─── Action bar inside expand ─── */
.acc-card__actions-bar {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.acc-card__actions-bar .acc-action-link {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--clr-accent-400, #e67e22);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acc-card__actions-bar .acc-action-link:hover {
  color: var(--clr-accent-500, #d35400);
}

.acc-action-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
  line-height: 1.3;
}

.acc-action-btn:active {
  transform: scale(0.97);
}

.acc-action-btn:focus-visible {
  outline: 2px solid var(--clr-accent-400, #e67e22);
  outline-offset: 3px;
}

.acc-action-btn--primary {
  background: var(--clr-accent-400, #e67e22);
  color: #fff;
}

.acc-action-btn--primary:hover {
  background: var(--clr-accent-500, #d35400);
}

/* ─── Mobile ─── */
@media (max-width: 767px) {
  .acc-card__img-wrap {
    width: 80px;
    min-height: 80px;
  }

  .acc-card__body {
    padding: 0.6rem 0.65rem;
  }

  .acc-card__name {
    font-size: 0.82rem;
  }

  .acc-card__sub {
    font-size: 0.7rem;
  }

  .acc-card__actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .acc-card__actions-bar .acc-action-link {
    text-align: center;
  }

  .acc-child__thumb {
    width: 56px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-card,
  .acc-card__plus,
  .acc-card__choose,
  .acc-child,
  .acc-child__check,
  .acc-action-btn,
  .acc-arrow,
  .acc-chip { transition: none; }
}

/* ===== Product Detail Section Nav ===== */
.pdp-nav {
  position: sticky;
  top: var(--pdp-nav-top, 0);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pdp-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.pdp-nav__inner::-webkit-scrollbar {
  display: none;
}

.pdp-nav__link {
  flex-shrink: 0;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.55);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

.pdp-nav__link:first-child {
  padding-left: 0;
}

.pdp-nav__link:hover {
  color: rgba(15, 23, 42, 0.85);
}

.pdp-nav__link--active {
  color: var(--clr-accent-400, #e67e22);
  font-weight: 600;
}

.pdp-nav__indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--clr-accent-400, #e67e22);
  transition: left 0.25s ease, width 0.25s ease;
  border-radius: 1px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pdp-nav__link {
    transition: none;
  }
  .pdp-nav__indicator {
    transition: none;
  }
}

@media (max-width: 767px) {
  .pdp-nav__inner {
    scroll-snap-type: x mandatory;
  }
  .pdp-nav__link {
    scroll-snap-align: start;
    padding: 0 1rem;
    font-size: 0.8125rem;
  }
  .pdp-nav__link:first-child {
    padding-left: 0;
  }
}


