/* ==========================================================================
   Product pages (public/termekek/*.html, generated by scripts/build_catalog.py).
   Depends on tokens.css + base.css + components.css.
   ========================================================================== */
.product { padding: 7.5rem var(--gutter) var(--space-8); max-width: 1280px; margin: 0 auto; }
.product .breadcrumb { margin-bottom: 2.5rem; }

.product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

/* ── Gallery ── */
.gallery-main {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(90, 64, 48, .08);
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-5); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: var(--space-4); }
.gallery-thumb {
  width: 76px; height: 76px;
  border-radius: .8rem;
  border: 2px solid transparent;
  background: var(--color-surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: var(--lift-sm); }
.gallery-thumb.active { border-color: var(--color-accent); }

/* ── Intro ── */
.product-intro h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: .8rem;
}
.product-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--bark-light);
  margin-bottom: var(--space-6);
}
.product-price {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--color-accent-strong);
  margin: calc(var(--space-6) * -0.5) 0 var(--space-6);
}
.product-price a { color: inherit; text-decoration: none; }
.product-price a:hover { color: var(--color-accent); }
.product-note { font-size: .82rem; color: var(--color-text-muted); margin-top: 1.2rem; max-width: 380px; }

/* ── Description (rendered catalog markdown) ── */
/* Edina's product videos, between the intro and the description */
.product-videos { max-width: 760px; margin: var(--space-8) auto 0; }
.product-video { margin: var(--space-4) 0 0; }
.product-video + .product-video { margin-top: var(--space-6); }
.product-video figcaption {
  margin-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.4;
  color: var(--color-heading);
}

.product-body {
  max-width: 760px;
  margin: var(--space-8) auto 0;
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}
.product-body p { margin-bottom: 1.2rem; }
.product-body strong { font-weight: var(--fw-medium); color: var(--color-heading); }
.product-body a {
  color: var(--color-accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--sage-light);
  text-underline-offset: .2em;
  transition: color var(--dur-fast);
}
.product-body a:hover { color: var(--color-accent); }
.product-body h2 {
  font-size: 1.9rem;
  font-weight: var(--fw-regular);
  margin: 2.6rem 0 var(--space-4);
  line-height: 1.25;
}
.product-body ul { list-style: none; margin: 0 0 1.4rem; }
.product-body li { position: relative; padding-left: 1.6rem; margin-bottom: var(--space-2); }
.product-body li::before {
  content: "";
  position: absolute; left: .2rem; top: .75em;
  width: .5rem; height: .5rem;
  border-radius: var(--radius-full);
  background: var(--sage-light);
}
.table-wrap { overflow-x: auto; margin: var(--space-5) 0 var(--space-6); border-radius: 1rem; background: var(--color-surface); }
.product-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.product-body th {
  text-align: left;
  font-weight: var(--fw-medium);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-button);
  text-transform: uppercase;
  color: var(--color-accent-strong);
  background: var(--color-surface-soft);
  padding: .9rem 1.1rem;
}
.product-body td { padding: var(--space-3) 1.1rem; border-top: 1px solid var(--color-surface-soft); }
.product-body td:not(:first-child), .product-body th:not(:first-child) { text-align: right; white-space: nowrap; }
.product-body .price-note { font-size: var(--fs-xs); color: var(--bark-light); }
.product-notice { margin-top: var(--space-7); }
.product-body .product-notice p { margin-bottom: 0; }
.product-body .product-notice .notice-title { margin-bottom: var(--space-2); }
.product-notice + .product-source { border-top: none; padding-top: 0; margin-top: var(--space-4); }
.product-source {
  font-size: .78rem;
  color: var(--bark-light);
  border-top: 1px solid var(--color-border);
  padding-top: 1.2rem;
  margin-top: var(--space-7);
}

/* ── Prev / next pager ── */
.product-pager {
  display: flex; justify-content: space-between; gap: var(--space-4);
  max-width: 760px;
  margin: 4rem auto 0;
}
.product-pager a {
  display: flex; flex-direction: column;
  max-width: 48%;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-heading);
  padding: var(--space-4) 1.4rem;
  border-radius: 1rem;
  background: var(--color-surface);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.product-pager a:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(90, 64, 48, .1); }
.product-pager a span {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.pager-next { margin-left: auto; text-align: right; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product { padding: 6.5rem var(--gutter) 4rem; }
  .product-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-body { margin-top: 3.5rem; }
}
@media (max-width: 600px) {
  .gallery-thumb { width: 60px; height: 60px; }
  .product-pager { flex-direction: column; }
  .product-pager a { max-width: none; }
}
