/* ============================================
   PRODUCTS — Catalog & Detail page components
   Built on brand-guidelines.css + site.css
   ============================================ */

/* ============================================
   CATALOG GRID (used on /products/ AND #products on home)
   ============================================ */
.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 600px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .catalog__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Home page variant — 5 cards: 3 + 2 row, second row centered */
.catalog__grid--home {
  --home-cols: 3;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .catalog__grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .catalog__grid--home {
    grid-template-columns: repeat(6, 1fr);
  }
  /* On 6-col grid, each card spans 2 cols. 5 cards × 2 = 10 cells in 6-col rows.
     Row 1: cards 1,2,3 take cols 1-2, 3-4, 5-6.
     Row 2: cards 4,5 — center them (cols 2-3 and 4-5). */
  .catalog__grid--home .product-card { grid-column: span 2; }
  .catalog__grid--home .product-card:nth-child(4) { grid-column: 2 / span 2; }
  .catalog__grid--home .product-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-pure-white);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-brand), box-shadow var(--transition-brand), border-color var(--transition-brand);
  text-decoration: none;
  color: inherit;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-brand);
  z-index: 2;
  pointer-events: none;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(196, 101, 58, 0.3);
}
.product-card:hover::before,
.product-card:focus-visible::before {
  transform: scaleX(1);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--color-fog) 0%, var(--color-sand) 100%);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(27, 42, 74, 0.18);
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: 4rem;
  letter-spacing: -0.02em;
}

.product-card__body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product-card__sku {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-copper);
}
.product-card__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
.product-card__lead {
  font-family: var(--font-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-steel);
  flex: 1;
}
.product-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-card__pills .spec-pill {
  font-size: 0.68rem;
  padding: 4px 10px;
}
.product-card__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-copper);
  padding-top: 14px;
  border-top: 1px solid rgba(27, 42, 74, 0.08);
  transition: gap var(--transition-brand), color var(--transition-brand);
}
.product-card__cta svg { width: 14px; height: 14px; transition: transform var(--transition-brand); }
.product-card:hover .product-card__cta { gap: 12px; color: var(--color-copper-dark); }
.product-card:hover .product-card__cta svg { transform: translateX(3px); }

/* CTA below the home grid */
.products__cta {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* ============================================
   CATALOG HERO (smaller variant of .hero)
   ============================================ */
.catalog-hero {
  position: relative;
  background: linear-gradient(140deg, var(--color-navy) 0%, var(--color-navy-dark) 60%, #0d1729 100%);
  color: var(--color-pure-white);
  padding-block: clamp(140px, 16vw, 200px) clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-bg);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.catalog-hero::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: clamp(360px, 50vw, 720px);
  height: clamp(360px, 50vw, 720px);
  background: radial-gradient(circle, rgba(196, 101, 58, 0.32) 0%, rgba(196, 101, 58, 0.06) 35%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.catalog-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.catalog-hero__inner .eyebrow {
  color: var(--color-copper-light);
  justify-content: center;
}
.catalog-hero__inner h1 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--color-pure-white);
  margin-bottom: 24px;
}
.catalog-hero__inner h1 em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  color: var(--color-copper-light);
}
.catalog-hero__inner p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto;
  max-width: 56ch;
}

/* ============================================
   BREADCRUMBS (detail pages)
   ============================================ */
.breadcrumbs {
  padding-block: clamp(110px, 14vw, 140px) 24px;
  background: var(--color-pure-white);
}
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  padding: 0;
  margin: 0;
}
.breadcrumbs__list a {
  color: var(--color-steel);
  transition: color var(--transition-brand);
}
.breadcrumbs__list a:hover { color: var(--color-copper); }
.breadcrumbs__list [aria-current="page"] {
  color: var(--color-navy);
  font-weight: 600;
}
.breadcrumbs__sep {
  color: rgba(27, 42, 74, 0.25);
  margin-inline: 4px;
}

/* ============================================
   PRODUCT HERO (detail page above-the-fold)
   ============================================ */
.product-hero {
  background: var(--color-pure-white);
  padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 128px);
}
.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .product-hero__inner {
    grid-template-columns: 6fr 5fr;
    gap: clamp(48px, 6vw, 96px);
  }
}

.product-hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--color-fog) 0%, var(--color-sand) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.product-hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-bg);
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.product-hero__visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-hero__model-stamp {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-copper);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-hero__model-stamp::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.product-hero__content { display: flex; flex-direction: column; gap: 20px; }
.product-hero__sku {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-copper);
}
.product-hero__title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}
.product-hero__title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  color: var(--color-copper);
  letter-spacing: -0.01em;
}
.product-hero__lead {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  color: var(--color-charcoal);
  max-width: 56ch;
}
.product-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.product-hero__ctas .btn {
  font-size: 0.85rem;
}

/* On product hero, the "on-dark" btn variant is used on light background; reset to light style */
.product-hero .btn--ghost {
  border: 1px solid rgba(27, 42, 74, 0.2);
  color: var(--color-navy);
  background: transparent;
}
.product-hero .btn--ghost:hover {
  background: var(--color-navy);
  color: var(--color-pure-white);
  border-color: var(--color-navy);
}

/* ============================================
   PRODUCT SPECS — editorial spec table
   ============================================ */
.product-specs {
  background: var(--color-sand);
  background-image: var(--noise-bg);
  position: relative;
}
.product-specs__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 64px);
  text-align: center;
  align-items: center;
}
.product-specs__grid {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-pure-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(27, 42, 74, 0.06), 0 12px 32px -16px rgba(27, 42, 74, 0.18);
}
@media (min-width: 700px) {
  .product-specs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .product-specs__grid { grid-template-columns: repeat(3, 1fr); }
}
.spec-row {
  background: var(--color-pure-white);
  padding: clamp(24px, 3vw, 32px) clamp(20px, 2.5vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  position: relative;
  min-height: 110px;
}
/* horizontal hairline between rows in a column */
.spec-row::after {
  content: '';
  position: absolute;
  left: clamp(20px, 2.5vw, 28px);
  right: clamp(20px, 2.5vw, 28px);
  bottom: 0;
  height: 1px;
  background: rgba(27, 42, 74, 0.08);
  pointer-events: none;
}
/* vertical hairline between columns */
@media (min-width: 700px) {
  .spec-row + .spec-row::before {
    content: '';
    position: absolute;
    top: clamp(20px, 2.5vw, 28px);
    bottom: clamp(20px, 2.5vw, 28px);
    left: 0;
    width: 1px;
    background: rgba(27, 42, 74, 0.08);
    pointer-events: none;
  }
  /* reset vertical lines at the start of each row in 2-col layout */
  .spec-row:nth-child(2n+1)::before { content: none; }
}
@media (min-width: 1100px) {
  /* 3-col: the line goes between cells in same row only */
  .spec-row:nth-child(2n+1)::before { content: ''; }
  .spec-row:nth-child(3n+1)::before { content: none; }
}
.spec-row__label {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-copper);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spec-row__label::before {
  content: '';
  width: 14px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.spec-row__value {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  color: var(--color-navy);
  letter-spacing: -0.015em;
}
.spec-row__value em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--color-copper);
  font-size: 0.78em;
  margin-left: 4px;
  letter-spacing: 0;
}

/* ============================================
   PRODUCT FEATURES (text + visual two-col)
   ============================================ */
.product-features { background: var(--color-pure-white); }
.product-features__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 900px) {
  .product-features__inner {
    grid-template-columns: 1fr 1fr;
  }
  .product-features--reverse .product-features__visual { order: 2; }
}
.product-features__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--color-fog) 0%, var(--color-sand) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-features__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-features__content { display: flex; flex-direction: column; gap: 20px; max-width: 56ch; }
.product-features__content .feature-list { margin-top: 16px; }
.product-features__content .feature-list li {
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   PRODUCT COPY (long description, drop-cap)
   ============================================ */
.product-copy {
  background: var(--color-fog);
}
.product-copy__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.product-copy__inner p {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: #3d4453;
}
.product-copy__inner p:first-of-type::first-letter {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 6px 14px 0 0;
  color: var(--color-copper);
}

/* ============================================
   PRODUCT VIDEO
   ============================================ */
.product-video { background: var(--color-pure-white); }
.product-video__head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.product-video__head .eyebrow { justify-content: center; }
.product-video__frame {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-navy);
  aspect-ratio: 16 / 9;
}
.product-video__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-video__caption {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-steel);
}

/* ============================================
   PRODUCT GALLERY (responsive grid)
   ============================================ */
.product-gallery { background: var(--color-pure-white); padding-top: clamp(40px, 5vw, 64px); }
.product-gallery__head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.product-gallery__head .eyebrow { justify-content: center; }
.product-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 20px);
}
@media (min-width: 600px) {
  .product-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .product-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
.product-gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-fog);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.product-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.product-gallery__item:hover img {
  transform: scale(1.04);
}

/* ============================================
   PRODUCT FITMENT NOTE (CTA strip)
   ============================================ */
.product-fitment {
  background: var(--color-sand);
  background-image: var(--noise-bg);
}
.product-fitment__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.product-fitment h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}
.product-fitment h2 em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  color: var(--color-copper);
}
.product-fitment p {
  font-family: var(--font-secondary);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-charcoal);
  max-width: 56ch;
}

/* ============================================
   PRODUCT RELATED
   ============================================ */
.product-related { background: var(--color-pure-white); }
.product-related__head {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.product-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}
@media (min-width: 700px) {
  .product-related__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SITE HEADER — solid variant for non-hero pages
   (catalog detail / legal: white bg with full nav)
   ============================================ */
.site-header.site-header--solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}
.site-header--solid .site-header__logo-color { opacity: 1 !important; }
.site-header--solid .site-header__logo-light { opacity: 0 !important; display: none; }
.site-header--solid .site-header__logo-name { color: var(--color-navy) !important; }
.site-header--solid .primary-nav__link { color: var(--color-navy) !important; }
.site-header--solid .lang-switcher {
  border-color: rgba(27, 42, 74, 0.18) !important;
  background: rgba(255, 255, 255, 0.6) !important;
}
.site-header--solid .lang-switcher__btn { color: var(--color-navy) !important; }
.site-header--solid .lang-switcher__btn[aria-pressed="true"],
.site-header--solid .lang-switcher__btn[aria-current="page"] {
  background: var(--color-navy) !important;
  color: var(--color-pure-white) !important;
}
.site-header--solid .lang-switcher__btn:hover { color: var(--color-copper) !important; }
.site-header--solid .lang-switcher__btn[aria-pressed="true"]:hover,
.site-header--solid .lang-switcher__btn[aria-current="page"]:hover { color: var(--color-pure-white) !important; }
.site-header--solid .hamburger__line { background: var(--color-navy) !important; }

/* anchor-based lang switcher (path-based, on detail pages) */
a.lang-switcher__btn {
  text-decoration: none;
  display: inline-block;
}
.lang-switcher__btn[aria-current="page"] {
  background: var(--color-navy);
  color: var(--color-pure-white);
}
