/* Products catalogue — the all-products page.
 * Reuses chrome.css (wordmark, ticker, reg-marks, comp-number, footer)
 * + tokens.css. Page-specific styles only. */

.products { position: relative; width: 100%; min-height: 100vh; }

/* Static ambient halo — same trick about.css uses. */
.products .field::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 800px at 25% 30%,
    color-mix(in oklab, var(--field-halo-color) 8%, transparent) 0%,
    transparent 70%
  );
  z-index: 0;
}

/* Back link — matches about/product placement. */
.products .back-link {
  position: fixed;
  top: 80px;
  left: 24px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pova-white);
  opacity: 0.6;
  transition: opacity var(--t-fast) var(--ease-out);
}
.products .back-link:hover { opacity: 1; }
.products .back-link::before { content: "\2190 "; opacity: 0.7; }

/* ---------- Hero band ---------- */
.catalogue-hero {
  position: relative;
  z-index: 4;
  padding: 200px var(--safe-desktop) 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.catalogue-hero .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pova-orange);
  opacity: 0.85;
  margin-bottom: 28px;
}
.catalogue-hero h1 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 14ch;
}
.catalogue-hero .lede {
  font-family: var(--font-serif);
  font-weight: 200;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  max-width: 620px;
  opacity: 0.85;
  margin: 0;
}

/* ---------- Section ---------- */
.catalogue-body {
  position: relative;
  z-index: 4;
  padding: 0 var(--safe-desktop) 160px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.catalogue-section { padding: 80px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.catalogue-section .section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pova-orange);
  opacity: 0.85;
  margin-bottom: 16px;
}
.catalogue-section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}

.card-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ---------- Product card ---------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--pova-black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px 24px;
  min-height: 460px;
  text-decoration: none;
  color: var(--pova-white);
  isolation: isolate;
  transition: border-color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.product-card:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.product-card:hover .pc-img { transform: scale(1.04); }

/* Corner "+" markers — match .glass--reg pattern. */
.product-card::before,
.product-card::after,
.product-card > .pc-corners::before,
.product-card > .pc-corners::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pova-white);
  opacity: 0.4;
  line-height: 1;
  pointer-events: none;
}
.product-card::before { top: 8px; left: 8px; }
.product-card::after { top: 8px; right: 8px; }
.product-card > .pc-corners::before { bottom: 8px; left: 8px; }
.product-card > .pc-corners::after { bottom: 8px; right: 8px; }

/* Featured — orange-framed left-column card from the brand book. */
.product-card.featured { border-color: rgba(255, 93, 1, 0.5); }
.product-card.featured:hover { border-color: var(--pova-orange); }
.product-card.featured::before,
.product-card.featured::after,
.product-card.featured > .pc-corners::before,
.product-card.featured > .pc-corners::after { color: var(--pova-orange); opacity: 0.85; }

/* Render area — fixed-frame so all renders sit consistently regardless
 * of intrinsic image dimensions (POVA 7 Pro is portrait, others square). */
.pc-render {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 24px;
  aspect-ratio: 4 / 5;
  min-height: 240px;
  padding-inline: 12%;
  overflow: hidden;
  /* Resting backdrop so dark-finish phones (Storm Titanium, black
   * variants) read against the card's pure-black surface. The
   * card-glow halo only engages on hover; this gives the product
   * permanent context — soft white glow + warm POVA orange spill
   * that lights the phone from below like a museum plinth. */
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 60%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.08) 35%,
      rgba(255, 124, 38, 0.04) 65%,
      transparent 85%
    );
}
.pc-img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
  transition: transform var(--t-slow) var(--ease-out);
}
.product-card:hover .pc-img,
.product-card.is-tapped .pc-img,
.product-card:focus-within .pc-img { transform: scale(1.04); }

.pc-title {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-md);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--pova-white);
}
.pc-title::before { content: "+ "; opacity: 0.55; }

.pc-specs {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.pc-specs .dot { opacity: 0.4; }

.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.pc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
}
.pc-status.is-new { color: var(--pova-orange); border-color: rgba(255, 93, 1, 0.5); }
.pc-status::before { content: "/"; opacity: 0.5; margin-right: 2px; }
.pc-price {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.15em;
  opacity: 0.85;
}

/* ---------- Empty-state card — editorial register, not card mimicry ---------- */
.product-card.empty {
  background: transparent;
  border: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 0;
  cursor: default;
  pointer-events: none;
  min-height: 0;
  padding: 32px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
}
.product-card.empty:hover { transform: none; border-color: rgba(255, 255, 255, 0.18); }
/* Hide the corner-mark pseudos for the editorial empty state */
.product-card.empty::before,
.product-card.empty::after,
.product-card.empty > .pc-corners { display: none; }
.empty-mark {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--pova-orange);
  opacity: 0.55;
  margin: 0;
}
.empty-line {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 8px;
}
.empty-copy {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 60ch;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .catalogue-hero { padding: 180px var(--safe-tablet) 60px; }
  .catalogue-body { padding: 0 var(--safe-tablet) 120px; }
}
@media (max-width: 900px) {
  .card-rail { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .catalogue-section { padding: 60px 0; }
  .catalogue-section h2 { margin-bottom: 28px; }
  .product-card { min-height: 420px; padding: 24px 20px 20px; }
}
@media (max-width: 700px) {
  .catalogue-hero { padding: 160px var(--safe-tablet) 48px; }
  .card-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin: 0 calc(-1 * var(--safe-tablet));
    padding-left: var(--safe-tablet);
    padding-right: var(--safe-tablet);
  }
  .product-card { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .catalogue-hero { padding: 140px var(--safe-mobile) 40px; }
  .catalogue-body { padding: 0 var(--safe-mobile) 80px; }
  .card-rail {
    grid-auto-columns: 84%;
    margin: 0 calc(-1 * var(--safe-mobile));
    padding-left: var(--safe-mobile);
    padding-right: var(--safe-mobile);
  }
  .product-card { min-height: 400px; padding: 22px 18px 18px; }
  .pc-img { max-height: 240px; }
}
@media (max-width: 420px) {
  .card-rail { grid-auto-columns: 88%; }
  .product-card { min-height: 380px; }
  .pc-img { max-height: 220px; }
  .pc-title { font-size: var(--fs-mono-sm); }
}

/* ============================================================
   Campaign KV band — full-bleed key visual.
   Catalogue version: aggressively height-capped so the campaign
   image sits as a *band* between heading and cards — not a wall.
   The hero family-circle KV at the top of the page is the only
   visual that gets to breathe; per-section bands are tighter.
   ============================================================ */
.kv-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Transparent — the source PNGs already carry alpha, and the page
   * sits on the black field with grid. Painting solid black here was
   * killing the grid pattern behind the image and creating a hard
   * letterbox seam that broke the canvas. */
  background: transparent;
  border: 0;
  padding: 32px 0;
  display: block;
}
.kv-band picture {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  /* Letterbox the picture box itself so portrait images crop
   * landscape-style without distorting. */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.kv-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero family band — the wheel render at the top of products.html.
 * The PNG is transparent, portrait, and very tall (1734×2200) — so:
 *   • no aspect-ratio crop on the picture box (size to image)
 *   • cap visible height so it cannot dominate the viewport
 *   • drop-shadow on the IMG itself (where the alpha lives) so the
 *     shadow follows the wheel silhouette, not a hard rectangle. */
.kv-band.family-band {
  padding: 24px 0 8px;
  /* No backdrop. The wheel floats on the field grid — per
   * feedback_pova_no_black_band.md, never paint a plate behind
   * an alpha asset. The drop-shadow on the IMG itself follows the
   * wheel silhouette (alpha-aware) and is the only depth needed. */
  background: transparent;
}
.kv-band.family-band picture {
  aspect-ratio: auto;
  overflow: visible;
  max-width: 920px;
  margin: 0 auto;
}
.kv-band.family-band img {
  height: auto;
  width: auto;
  max-width: 920px;
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
  aspect-ratio: auto;
  background: transparent;
  /* Stronger, deeper shadow on the IMG — follows the wheel silhouette
   * (alpha-aware). Suppress mobile bilinear blur on scale. */
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 900px) {
  .kv-band.family-band picture { max-width: 92vw; }
  .kv-band.family-band img { max-width: 100%; max-height: 60vh; }
}
@media (max-width: 600px) {
  .kv-band { padding: 16px 0; }
  .kv-band picture { max-width: 100%; aspect-ratio: 4 / 3; }
  .kv-band.family-band { padding: 12px 0 4px; }
  .kv-band.family-band picture { aspect-ratio: auto; max-width: 100%; }
  .kv-band.family-band img { max-width: 100%; max-height: 56vh; }
}
