/* ================================================================
   product.css — product detail template (all 7 product pages).
   Loaded after style.css; only product-specific components live here.
   ================================================================ */

/* ── Breadcrumb bar ─────────────────────────────────────────── */
.product-crumbs { border-bottom: 1px solid var(--c-hairline); }
.product-crumbs .container { padding-top: 20px; padding-bottom: 20px; }

/* ── Hero: gallery + summary ────────────────────────────────── */
.hero--product { padding: 56px 0 72px; }
.hero--product .hero-grid { align-items: start; }
.gallery { grid-column: span 6; position: sticky; top: calc(var(--header-h) + 24px); }
.summary { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 32px; background: var(--c-panel); overflow: hidden; cursor: zoom-in;
}
.stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; mix-blend-mode: multiply; transition: opacity var(--dur-fast) ease; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mid);
  background: var(--c-page); border: 1px solid var(--c-hairline); padding: 6px 10px; pointer-events: none;
}
.zoom-hint svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumb {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 6px;
  background: var(--c-panel); border: 1px solid var(--c-hairline); transition: border-color var(--dur-fast) ease;
}
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; mix-blend-mode: multiply; }
.thumb:hover { border-color: var(--c-mid); }
.thumb.is-active { border-color: var(--c-ink); }
.title { font-size: 44px; }
.subtitle { font-size: 18px; font-weight: 500; color: var(--c-purple); }
.summary .lead { font-size: 17px; }
.summary .spec-strip { margin-top: 8px; }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 8px; }

/* ── Sections on product pages ──────────────────────────────── */
.product-page .section-title { padding-bottom: 20px; border-bottom: 1px solid var(--c-ink); }
.product-page .section-lead { margin: 20px 0 40px; }
.product-page .section-title + :not(.section-lead) { margin-top: 40px; }
.product-page .index-item > div { display: contents; }
.product-page .index-item h3 svg { display: none; }
.product-page .figure + .figure { margin-top: 24px; }
.product-page .series-grid + .figure { margin-top: 40px; }

/* ── Series cards (Maxflex) ─────────────────────────────────── */
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--c-hairline); border: 1px solid var(--c-hairline); }
.series { background: var(--c-page); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.tag { display: inline-block; }
.series--max .tag { color: var(--c-purple); }
.series--flex .tag { color: var(--c-ink); }
.series h3 { font-size: 22px; }
.series p { font-size: 15.5px; line-height: 1.6; color: var(--c-mid); }
.series ul { display: grid; gap: 8px; margin-top: 4px; }
.series li { position: relative; padding-left: 20px; font-size: 14.5px; }
.series li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--c-purple); }

/* ── Layer diagram (Maxflex) ────────────────────────────────── */
.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--c-hairline); border: 1px solid var(--c-hairline); }
.layer { background: var(--c-page); padding: 28px; }
.layer h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dot { width: 10px; height: 10px; flex: none; background: var(--c-purple); }
.layer--inner .dot { background: var(--c-mid); }
.layer p { font-size: 15px; color: var(--c-mid); }

/* ── Specification table (Maxflex) ──────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-hairline); }
.table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.table thead th {
  text-align: left; padding: 12px 16px; white-space: nowrap; border-bottom: 1px solid var(--c-ink);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mid);
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--c-hairline); color: var(--c-mid); }
.table tbody td:first-child { color: var(--c-ink); font-weight: 500; }
.table tbody tr:last-child td { border-bottom: 0; }

/* ── Certifications ─────────────────────────────────────────── */
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cert { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink); border: 1px solid var(--c-hairline); padding: 10px 14px; }
.cert svg { display: none; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 4000; display: none; align-items: center; justify-content: center; padding: 40px; background: rgba(17, 17, 17, 0.92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; }
.lb-btn { position: absolute; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--c-page); color: var(--c-ink); font-size: 22px; line-height: 1; border: 1px solid var(--c-hairline); }
.lb-btn:hover { background: var(--c-panel); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--c-hairline); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery { position: static; }
  .title { font-size: 36px; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hero--product { padding: 32px 0 48px; }
  .gallery, .summary { grid-column: span 1; }
  .title { font-size: 32px; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .series-grid, .layers { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lightbox { padding: 16px; }
}
