@import './static-preview.css';

.product-page-header {
  align-items: center;
  background: rgba(255, 253, 247, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 64px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.product-hero {
  background:
    linear-gradient(135deg, rgba(23, 32, 27, 0.98), rgba(23, 63, 52, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(212, 92, 46, 0.22), transparent 34%);
  color: #fffdf7;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 78svh;
}

.product-hero-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 88px);
}

.product-hero-copy h1 {
  font-size: 68px;
  letter-spacing: 0;
}

.product-hero-copy p {
  color: rgba(255, 253, 247, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.product-hero-image {
  min-height: 520px;
  position: relative;
}

.product-hero-image::after {
  background: linear-gradient(90deg, rgba(23, 32, 27, 0.3), transparent 42%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.product-hero-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.quick-specs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin: 28px 0;
}

.quick-specs span {
  background: rgba(255, 253, 247, 0.1);
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 6px;
  color: #fffdf7;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
}

.gallery-section {
  background: #fffdf7;
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 78px);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.85fr;
  margin: 0 auto;
  max-width: 1180px;
}

.gallery-main,
.gallery-side {
  background: #eef1ed;
  border: 1px solid #cfd7d1;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(23, 32, 27, 0.08);
  overflow: hidden;
}

.gallery-main img,
.gallery-side img {
  aspect-ratio: 1.55;
  object-fit: cover;
  width: 100%;
}

.gallery-caption {
  padding: 20px;
}

.gallery-caption h2,
.config-section h2 {
  font-size: 44px;
  line-height: 1.05;
}

.gallery-caption p {
  color: var(--muted);
  line-height: 1.6;
}

.config-section {
  background: #eef1ed;
  display: grid;
  gap: 24px;
  grid-template-columns: 0.8fr 1.2fr;
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 78px);
}

.config-list {
  display: grid;
  gap: 12px;
}

.config-list article {
  background: var(--panel);
  border: 1px solid #cfd7d1;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 27, 0.06);
  padding: 22px;
}

.config-list h3 {
  margin-bottom: 8px;
}

.config-list p {
  color: var(--muted);
  line-height: 1.55;
}

.options-section,
.spec-table-section,
.faq-section {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 78px);
}

.options-section {
  background: #fffdf7;
}

.options-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px auto 0;
  max-width: 1180px;
}

.option-card {
  background: var(--panel);
  border: 1px solid #cfd7d1;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 27, 0.06);
  display: grid;
  gap: 12px;
  padding: 22px;
}

.option-card h3 {
  margin-bottom: 0;
}

.option-card p {
  color: var(--muted);
  line-height: 1.55;
}

.option-card label {
  align-items: start;
  display: flex;
  gap: 10px;
  font-weight: 800;
}

.option-card input,
.option-card select {
  accent-color: var(--accent);
}

.option-card select,
.option-card input[type='number'] {
  background: #fffdf7;
  border: 1px solid #cfd7d1;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.spec-table-section {
  background: #eef1ed;
}

.spec-table {
  border-collapse: collapse;
  margin: 28px auto 0;
  max-width: 1180px;
  width: 100%;
}

.spec-table-section {
  overflow-x: auto;
}

.spec-table th,
.spec-table td {
  border: 1px solid #c7d2cb;
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  background: #dde5df;
  width: 30%;
}

.spec-table td {
  background: #fffdf7;
  color: var(--muted);
}

.faq-section {
  background: #fffdf7;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin: 28px auto 0;
  max-width: 900px;
}

.faq-list details {
  background: #eef1ed;
  border: 1px solid #cfd7d1;
  border-radius: 8px;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

.quote-strip {
  align-items: center;
  background: var(--accent);
  color: white;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 30px clamp(18px, 5vw, 78px);
}

.quote-strip a {
  background: white;
  border-radius: 8px;
  color: var(--accent-dark);
  font-weight: 850;
  padding: 14px 18px;
}

@media (max-width: 1100px) {
  .product-hero-copy h1 {
    font-size: 56px;
  }
}

@media (max-width: 860px) {
  .product-page-header {
    align-items: flex-start;
    flex-direction: column;
    position: relative;
  }

  .product-hero,
  .gallery-grid,
  .config-section,
  .options-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
  }

  .product-hero-copy {
    padding: 34px 20px 44px;
  }

  .product-hero-copy h1 {
    font-size: 42px;
    line-height: 1.04;
  }

  .gallery-caption h2,
  .config-section h2 {
    font-size: 34px;
  }

  .product-hero-image {
    min-height: 360px;
    order: -1;
  }

  .gallery-section,
  .config-section,
  .options-section,
  .spec-table-section,
  .faq-section {
    padding: 46px 18px;
  }

  .quick-specs {
    grid-template-columns: 1fr;
  }

  .spec-table {
    min-width: 620px;
  }

  .quote-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-strip a {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .product-hero-copy h1 {
    font-size: 36px;
  }

  .product-hero-image {
    min-height: 280px;
  }

  .gallery-main img,
  .gallery-side img {
    aspect-ratio: 1.15;
  }
}
