/* ===========================================
   products.css
   Styles specific to the Products page.
   Requires global.css to be loaded first.
=========================================== */

/* ─────────────────────────────────────────
   SHARED UTILITIES
───────────────────────────────────────── */
.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title.light { color: var(--white); }

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(12px, 1.5vw, 14px) clamp(24px, 3vw, 32px);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 146, 42, 0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────
   REVEAL
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible     { opacity: 1; transform: none; }
.reveal-delay-1     { transition-delay: 0.15s; }

/* ─────────────────────────────────────────
   NAV ACTIVE
───────────────────────────────────────── */
.nav-links a.current { color: var(--gold); }

/* ─────────────────────────────────────────
   PAGE HERO
───────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: clamp(260px, 35vw, 420px);
  margin-top: var(--nav-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.72) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 6vw, 80px);
  max-width: 760px;
}

.page-hero-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
}

.page-hero-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   PRODUCT SECTIONS
───────────────────────────────────────── */
.product-section {
  padding: clamp(72px, 10vw, 40px) clamp(16px, 4vw, 48px);
}

.product-section--light { background: var(--off-white); }
.product-section--pink { background: var(--pink); }
.product-section--dark  { background: var(--dark); }

.product-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

/* Reversed: content left, images right */
.product-inner--reversed {
  direction: rtl;
}
.product-inner--reversed > * {
  direction: ltr;
}

/* ─────────────────────────────────────────
   PRODUCT IMAGES
───────────────────────────────────────── */
.product-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: start;
}

/* Main image — tall, spans first column fully */
.product-img-main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.product-img-main img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Secondary image — shorter, sits top-right */
.product-img-secondary {
  grid-column: 2;
  grid-row: 1;
  position: relative;
}

.product-img-secondary img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

/* Gold accent corner — bottom-right of secondary */
.product-img-accent {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 55%;
  height: 55%;
  border: 2px solid var(--gold);
  z-index: 0;
}

.product-img-accent--light {
  border-color: rgba(200, 146, 42, 0.5);
}

/* ─────────────────────────────────────────
   PRODUCT CONTENT
───────────────────────────────────────── */
.product-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
}

.product-title.light { color: var(--white); }

.product-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 32px;
}

.product-desc.light { color: rgba(255, 255, 255, 0.65); }

/* ── Detail rows ── */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-details--dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 16px;
}

.product-details--dark .product-detail-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-value {
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  text-align: right;
}

.detail-value.light { color: rgba(255, 255, 255, 0.6); }

/* ─────────────────────────────────────────
   SECTION DIVIDER
───────────────────────────────────────── */
.product-divider {
  background: var(--off-white);
  padding: 0 clamp(16px, 4vw, 48px);
}

.product-divider-line {
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: rgba(200, 146, 42, 0.2);
}

/* ─────────────────────────────────────────
   WHERE TO FIND
───────────────────────────────────────── */
.find-section {
  background: var(--dark2);
  border-top: 1px solid rgba(200, 146, 42, 0.15);
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.find-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200, 146, 42, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.find-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.find-body {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .product-inner {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 48px;
  }

  .product-inner--reversed {
    direction: ltr;
  }

  /* Images always on top on mobile */
  .product-inner--reversed .product-images {
    order: -1;
  }

  .product-images {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  /* Simplify to single image on small screens */
  .product-img-secondary { display: none; }

  .product-img-main {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .product-img-main img {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 380px) {
  .page-hero-title { font-size: 30px; }
  .product-title   { font-size: 28px; }
}