/* ==========================================================================
   Nevoura — Product Page Theme Showcase
   Apple-style: neutral, quiet, generous whitespace, system typography.
   No gold/decorative palette — text is near-black/gray, the only colour is
   the site's own --nv-accent token, used sparingly (active dot only).
   Shown below the product summary; content is fetched live per selected
   Theme (see assets/js/product-options.js).
   ========================================================================== */

.nv-showcase {
  --nv-sc-ink: #1d1d1f;      /* Apple-style near-black */
  --nv-sc-muted: #6e6e73;    /* Apple-style secondary gray */
  --nv-sc-hairline: rgba(0, 0, 0, .08);
  --nv-sc-surface: #fff;
  --nv-sc-surface-alt: #fbfbfd;
  --nv-sc-radius: 22px;
  --nv-sc-accent: var(--nv-accent, #0071e3);

  margin: 56px 0 8px;
  background: var(--nv-sc-surface-alt);
  border-radius: var(--nv-sc-radius);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nv-showcase[hidden] { display: none !important; }

.nv-showcase__inner {
  padding: 56px 24px 64px;
  max-width: 980px;
  margin: 0 auto;
}

/* ---------- Heading ---------- */
.nv-showcase__head {
  text-align: center;
  margin-bottom: 40px;
}

.nv-showcase__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -.01em;
  color: var(--nv-sc-muted);
  margin-bottom: 6px;
}

.nv-showcase__title {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--nv-sc-ink);
  margin: 0;
}

/* ---------- Gallery ---------- */
.nv-showcase__gallery {
  position: relative;
  margin: 0 -24px 48px;
}
.nv-showcase__gallery[hidden] { display: none !important; }

.nv-showcase__gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 6px;
  scrollbar-width: none;
}
.nv-showcase__gallery-track::-webkit-scrollbar { display: none; }

.nv-showcase__slide {
  position: relative;
  flex: 0 0 auto;
  width: min(82%, 560px);
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: #efeff0;
  aspect-ratio: 4 / 3;
}

.nv-showcase__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nv-showcase__slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0));
}

.nv-showcase__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  color: var(--nv-sc-ink);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
  transition: background .2s ease, transform .15s ease;
}
.nv-showcase__nav:hover { background: rgba(255, 255, 255, .92); transform: translateY(-50%) scale(1.05); }
.nv-showcase__nav:active { transform: translateY(-50%) scale(.96); }
.nv-showcase__nav--prev { left: 12px; }
.nv-showcase__nav--next { right: 12px; }

.nv-showcase__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.nv-showcase__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.nv-showcase__dot.is-active {
  background: var(--nv-sc-accent);
  transform: scale(1.25);
}

/* ---------- Features ---------- */
.nv-showcase__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 28px;
  margin-bottom: 48px;
}
.nv-showcase__features[hidden] { display: none !important; }

.nv-showcase__feature {
  text-align: center;
}

.nv-showcase__feature-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.nv-showcase__feature-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--nv-sc-ink);
  margin: 0 0 6px;
}

.nv-showcase__feature-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--nv-sc-muted);
  margin: 0;
}

/* ---------- Video ---------- */
.nv-showcase__video[hidden] { display: none !important; }

.nv-showcase__video-frame {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.nv-showcase__video-frame iframe,
.nv-showcase__video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nv-showcase { margin-top: 40px; border-radius: 18px; }
  .nv-showcase__inner { padding: 40px 0 48px; }
  .nv-showcase__head,
  .nv-showcase__features,
  .nv-showcase__video { padding: 0 20px; }
  .nv-showcase__head { margin-bottom: 32px; }
  .nv-showcase__gallery { margin: 0 0 40px; }
  .nv-showcase__gallery-track { padding: 0 20px 6px; }
  .nv-showcase__slide { width: 86%; border-radius: 14px; }
  .nv-showcase__nav { width: 38px; height: 38px; }
  .nv-showcase__features { grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-bottom: 40px; }
}

@media (max-width: 380px) {
  .nv-showcase__features { grid-template-columns: 1fr; gap: 28px; }
}

/* Loading state while AJAX fetches showcase content */
.nv-showcase.is-loading .nv-showcase__inner { opacity: .35; pointer-events: none; transition: opacity .2s ease; }
