/* ==========================================================
   GAIA — PRODUCT PAGE  ·  Redesign 2025
   Aesthetic: Dark luxury editorial · Layered depth · Organic
========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --wine:      #5b2333;
  --wine-deep: #3d1522;
  --wine-mid:  #7a3048;
  --cream:     #f5ede8;
  --gold:      #c9a96e;
  --gold-lt:   #e8d5b0;
  --white:     #ffffff;
  --muted:     rgba(245,237,232,0.55);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── PAGE SHELL ─────────────────────────────────────────── */

.pd-page {
  background: var(--wine-deep);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle noise grain overlay */
.pd-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.pd-page > * { position: relative; z-index: 1; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

.pd-page h1, .pd-page h2, .pd-page h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
}

.pd-page p, .pd-page span, .pd-page li {
  color: var(--muted);
}

/* ── HERO SECTION ───────────────────────────────────────── */

.pd-hero {
  padding: 3rem 1rem 0;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

/* ── LEFT: IMAGE COLUMN ─────────────────────────────────── */

.pd-image-col {
  position: sticky;
  top: 80px;
  padding: 0 2rem 3rem 0;
}

.pd-image-frame {
  position: relative;
  background: linear-gradient(145deg, var(--wine-mid) 0%, var(--wine-deep) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,169,110,0.15);
  box-shadow:
    0 0 0 1px rgba(201,169,110,0.08),
    0 40px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Decorative corner accent */
.pd-image-frame::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px;
  width: 40px; height: 40px;
  border-top: 1px solid rgba(201,169,110,0.4);
  border-left: 1px solid rgba(201,169,110,0.4);
  border-radius: 2px 0 0 0;
}
.pd-image-frame::after {
  content: '';
  position: absolute;
  bottom: 18px; right: 18px;
  width: 40px; height: 40px;
  border-bottom: 1px solid rgba(201,169,110,0.4);
  border-right: 1px solid rgba(201,169,110,0.4);
  border-radius: 0 0 2px 0;
}

#product-image {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.pd-image-frame:hover #product-image {
  transform: scale(1.04) translateY(-4px);
}

/* Glow pulse behind image */
.pd-image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(201,169,110,0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Badge overlay */
.pd-image-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

/* ── RIGHT: INFO COLUMN ─────────────────────────────────── */

.pd-info-col {
  padding: 0 0 4rem 2.5rem;
  border-left: 1px solid rgba(201,169,110,0.1);
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Brand eyebrow */
.pd-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.pd-eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.pd-eyebrow span {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* Product name */
.pd-info-col h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 1.8rem;
  color: var(--cream);
  letter-spacing: -0.5px;
}

.pd-info-col h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

/* Rating */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pd-stars {
  display: flex;
  gap: 3px;
}

.pd-stars span {
  color: var(--gold);
  font-size: 0.85rem;
}

.pd-rating-text {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* ── INGREDIENTS CARD ───────────────────────────────────── */

.pd-ingredients-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.pd-ingredients-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--gold), transparent);
  border-radius: 0 0 0 var(--radius-md);
}

.pd-ingredients-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pd-ingredients-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,169,110,0.2);
}

#product-ingredients-side {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#product-ingredients-side li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: rgba(245,237,232,0.75);
  padding: 0.3rem 0;
}

#product-ingredients-side li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── PRICE ──────────────────────────────────────────────── */

.pd-price-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.pd-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}

.pd-price-currency {
  font-size: 1rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 1px;
}

/* ── QTY + CART ACTIONS ─────────────────────────────────── */

.pd-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Quantity control */
.qty-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 999px;
  overflow: hidden;
  height: 52px;
}

.qty-btn {
  width: 44px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
}

.qty-btn:hover {
  background: rgba(201,169,110,0.12);
}

#product-qty {
  min-width: 36px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  border-left: 1px solid rgba(201,169,110,0.15);
  border-right: 1px solid rgba(201,169,110,0.15);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Add to cart */
.pd-btn {
  height: 52px;
  padding: 0 2.4rem;
  border-radius: 999px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.pd-btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8894a 100%);
  color: var(--wine-deep);
  flex: 1;
  max-width: 260px;
  box-shadow: 0 8px 24px rgba(201,169,110,0.25);
}

.pd-btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pd-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201,169,110,0.35);
}

.pd-btn.primary:hover::before { opacity: 1; }

.pd-btn.ghost {
  background: transparent;
  border: 1px solid rgba(245,237,232,0.2);
  color: var(--cream);
  width: 52px;
  padding: 0;
  flex-shrink: 0;
}

.pd-btn.ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── TAGS / CHIPS ───────────────────────────────────────── */

.pd-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.pd-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,237,232,0.12);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: rgba(245,237,232,0.6);
  letter-spacing: 0.5px;
}

/* ── TRUST BADGES ───────────────────────────────────────── */

.pd-trust {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,169,110,0.1);
}

.pd-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  flex: 1;
}

.pd-trust-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.pd-trust-item span {
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  color: rgba(245,237,232,0.45);
  line-height: 1.4;
}

/* ── DESCRIPTION SECTION ────────────────────────────────── */

.pd-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 1rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.pd-content-block h2 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.3px;
}

.pd-content-block h2 em {
  font-style: italic;
  color: var(--gold-lt);
}

#product-description-full {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(245,237,232,0.65);
  font-family: 'DM Sans', sans-serif;
}

/* Right column decorative */
.pd-content-deco {
  position: relative;
}

.pd-content-quote {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin-top: 1rem;
  background: rgba(201,169,110,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pd-content-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-lt);
  line-height: 1.6;
  font-weight: 300;
}

/* ── BOTTOM CTA STRIP ───────────────────────────────────── */

.pd-cta {
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, rgba(91,35,51,0.3) 100%);
  border-top: 1px solid rgba(201,169,110,0.12);
  padding: 2.5rem 1rem;
  text-align: center;
}

.pd-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(245,237,232,0.6);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.3px;
}

/* ── UNAVAILABLE STATE ──────────────────────────────────── */

.pd-unavailable {
  background: rgba(183,35,24,0.12);
  border: 1px solid rgba(183,35,24,0.3);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  color: #f5a19b;
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 960px) {
  .pd-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pd-image-col {
    position: static;
    padding: 0 0 2rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .pd-info-col {
    padding: 2.5rem 0 3rem;
    border-left: none;
    border-top: 1px solid rgba(201,169,110,0.1);
  }

  .pd-info-col h1 {
    font-size: 2.4rem;
  }

  .pd-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1rem 5rem;
  }
}

@media (max-width: 600px) {
  .pd-hero { padding: 2rem 1rem 0; }

  .pd-info-col h1 { font-size: 2rem; }
  .pd-price { font-size: 2.2rem; }

  .pd-actions { gap: 0.75rem; }
  .pd-btn.primary { max-width: 100%; }

  .pd-trust { gap: 1rem; }

  .pd-content-quote { display: none; }
}