/* Product detail page styles */

.product-page-state {
  min-height: 48vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  color: var(--ink-soft);
  font-size: 18px;
  text-align: center;
}
.product-page-state.is-error { color: #9e2626; }
.product-page-state:empty { display: none; }
.product-content { display: none; }
.product-content.is-ready { display: block; }

.product-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--bg-panel);
}
.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.product-hero-copy .product-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.product-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 12px;
}
.product-hero-copy .subtitle {
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.product-hero-copy .desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 52ch;
}
.product-hero-media {
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.product-hero-media img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.12));
}
@media (max-width: 900px) {
  .product-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-hero-media { aspect-ratio: 4/3; }
}

/* Breadcrumb */
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}
.crumb a:hover { color: var(--ink); }
.crumb span { opacity: .5; }

/* Gallery (magnify) */
.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-thumb {
  border: 2px solid transparent;
  background: var(--bg-panel);
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.gallery-thumb.is-active { border-color: var(--ink); }
.gallery-thumb:hover { transform: translateY(-2px); }

.gallery-main {
  background: var(--bg-panel);
  border-radius: var(--radius-xl);
  aspect-ratio: 16/11;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 40px;
  transition: transform .3s;
  transform-origin: center;
}
.gallery-main.is-hover img { transform: scale(2.2); }
.gallery-hint {
  position: absolute;
  bottom: 20px; right: 20px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity .2s;
}
.gallery-main.is-hover .gallery-hint { opacity: 0; }

@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; overflow-x: auto; }
  .gallery-thumb { flex: 0 0 80px; }
}

/* Features section */
.features-section .section-header { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.feature-item {
  padding: 40px 36px;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  transition: background .3s;
}
.feature-item:hover { background: #f0f0f2; }
.feature-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.feature-item h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.feature-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 780px) { .features-list { grid-template-columns: 1fr; } }

/* Specification table */
.spec-section { background: var(--ink); color: #fff; }
.spec-section .h2 { color: #fff; }
.spec-section .eyebrow { color: #7fb3ff; }
.spec-section .lead { color: rgba(255,255,255,.7); }
.spec-table {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.spec-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  gap: 32px;
}
.spec-label {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.spec-value {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-label { font-size: 12px; }
}

/* CTA banner */
.cta-banner {
  padding: 100px 0;
  background: var(--bg-soft);
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.cta-banner p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}
.cta-banner-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
