/* Static demo polish — does not alter core product CSS */

.demo-lock-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(90deg, #1a1612, #3d2e12 50%, #1a1612);
  color: #f5e6c8;
  font-size: 0.78rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}
.demo-lock-banner a {
  color: #e8d48b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Offset header for sticky demo banner */
body.has-mobile-nav {
  --demo-banner-h: 34px;
}
.site-header {
  top: var(--demo-banner-h, 0);
}
.page-home-v10 main {
  padding-top: calc(var(--header-h) + var(--gold-strip-h, 38px) + var(--demo-banner-h, 0px));
}
.page-home-v10 .gallery-hero {
  margin-top: calc(-1 * (var(--header-h) + var(--gold-strip-h, 38px)));
}

.page-hero-simple {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), transparent);
}
.page-hero-simple .gallery-heading {
  margin-bottom: 0.35rem;
}
.lead-muted,
.page-hero-simple .text-muted {
  color: var(--text-muted);
  max-width: 42rem;
}

.product-media-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 20px);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.product-main-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin-inline: auto;
}

.demo-form .form-control {
  border-radius: 12px;
  border-color: rgba(184, 134, 11, 0.22);
  min-height: 48px;
  background: #fff;
}
.demo-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.gold-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gold-page-grid .gold-sheet-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

#productSwitcher .btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* Ensure horizontal tracks scroll smoothly on mobile */
.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.gallery-track-item {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
}

html.gold-sheet-open,
html.gold-sheet-open body {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .demo-lock-banner {
    font-size: 0.72rem;
    padding-inline: 0.6rem;
  }
  main {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 430px) {
  .gallery-hero-title {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem) !important;
  }
  .gallery-hero-actions {
    width: 100%;
  }
  .gallery-hero-actions .btn {
    flex: 1 1 auto;
  }
}
