:root {
  --brand:        #2A1B38;
  --brand-deep:   #1A0F24;
  --accent:       #B87333;
  --accent-light: #D4956A;
  --muted:        #6B5F78;
  --surface:      #fdfbf7;
  --surface-2:    #f5f1f9;
  --border:       rgba(42,27,56,0.12);
  --radius:       10px;
  --ff-display:   'Cormorant Garamond', serif;
  --ff-body:      'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--ff-body);
  background: var(--surface);
  color: var(--brand);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE WRAPPER ── */
.pdp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── BACK NAV ── */
.back-nav {
  padding: 24px 0 0;
}
.back-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.back-nav a:hover { color: var(--accent); }

/* ── HERO GRID ── */
.pdp-hero {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 56px;
  padding: 28px 0 64px;
  align-items: start;
}

/* ── GALLERY ── */
.gallery-wrap { position: sticky; top: 88px; }

.main-img-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ede8f0;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(42,27,56,0.1);
}

.video-btn-play {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  z-index: 10;
}
.video-btn-play:hover {
  background: var(--brand);
  color: #fff;
  transform: scale(1.05);
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.main-img-wrap:hover .main-img { transform: scale(1.04); }

.badge-overlay {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
}
.cert-overlay {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(26,15,36,0.82);
  color: #fff;
  font-size: 0.62rem;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  background: #e8e0f0;
  display: block;
}
.thumb.active,
.thumb:hover { border-color: var(--accent); opacity: 1; }
.thumb:not(.active) { opacity: 0.7; }

/* Video Thumbnail Specifics */
.thumb-vid-wrap {
  position: relative;
  cursor: pointer;
}
.thumb-vid-wrap .thumb-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #fff;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.video-overlay-main {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 8;
}
.video-overlay-main i {
  font-size: 4.5rem;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(0,0,0,0.3));
}
.main-img-wrap.is-video-active { cursor: pointer; }
.main-img-wrap.is-video-active .video-overlay-main {
  opacity: 1;
  pointer-events: auto;
}
.main-img-wrap.is-video-active .activeImg {
  filter: brightness(0.85);
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 36, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.video-modal.open { display: flex; }
.video-container {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}
.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Swipe Indicators (Mobile only) */
.slide-indicator {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  gap: 6px;
  z-index: 9;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(42,27,56,0.3);
  transition: all 0.3s;
}
.dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--brand);
}
@media (max-width: 900px) {
  .slide-indicator { display: flex; }
}

/* ── INFO PANEL ── */
.product-info { padding-top: 4px; }

.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.product-name {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 8px;
}
.variant-code {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.planet-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.planet-tag strong { color: var(--brand); }

/* ── WEIGHT SELECTOR ── */
.weight-selector-block { margin-bottom: 18px; }
.field-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.weight-select {
  width: 100%;
  max-width: 220px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--brand);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B5F78' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.weight-select:focus { outline: none; border-color: var(--accent); }

/* ── PRICE ── */
.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.price-current {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
}
.price-per-carat {
  font-size: 0.8rem;
  color: var(--muted);
}
.stock-warn {
  font-size: 0.78rem;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

/* ── SPEC PILLS ── */
.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.spec-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 90px;
}
.pill-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pill-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}

/* ── HOOK QUOTE ── */
.hook-block {
  background: linear-gradient(135deg, var(--brand-deep), #3d2854);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  border-left: 3px solid var(--accent);
}
.hook-block p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-style: italic;
}

/* ── CTA ── */
.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.btn-cart, .btn-buy {
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  transition: all 0.25s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-cart {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-cart:hover { background: var(--brand); color: #fff; }
.btn-buy {
  background: var(--accent);
  color: #fff;
}
.btn-buy:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 8px 20px rgba(184,115,51,0.35);
  transform: translateY(-1px);
}

/* ── TRUST BAR ── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--muted);
}
.trust-item i { color: var(--accent); font-size: 0.95rem; flex-shrink: 0; }

/* ── BELOW FOLD ── */
.below-fold { padding-bottom: 80px; }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 52px 0;
}

.section-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: 2.1rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 28px;
}

/* ── URGENCY ── */
.urgency-banner {
  background: #fff8f0;
  border: 1px solid rgba(184,115,51,0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}
.urgency-banner i { font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.urgency-banner strong { font-size: 0.86rem; color: var(--brand); display: block; }
.urgency-banner span { font-size: 0.78rem; color: var(--muted); }

/* ── BENEFITS ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.benefit-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,27,56,0.07);
}
.benefit-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.benefit-title { font-weight: 600; font-size: 0.86rem; margin-bottom: 5px; }
.benefit-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* ── WHO SHOULD WEAR ── */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.who-col h4 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 16px;
}
.who-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.who-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
}
.who-list li::before {
  content: '✦';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.65rem;
  margin-top: 4px;
}

/* ── ASTRO BLOCK ── */
.astro-block {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #3a2050 100%);
  border-radius: 14px;
  padding: 44px;
  color: #fff;
}
.astro-block .section-label { color: var(--accent-light); }
.astro-block .section-title { color: #fff; margin-bottom: 16px; }
.astro-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 28px;
}
.astro-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.outcome-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 8px;
  padding: 18px;
  transition: background 0.2s;
}
.outcome-item:hover { background: rgba(255,255,255,0.11); }
.outcome-item i {
  color: var(--accent-light);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
}
.outcome-item p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.6;
}

/* ── SPECS TABLE ── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 13px 4px; font-size: 0.86rem; vertical-align: top; }
.specs-table td:first-child {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 36%;
  padding-right: 16px;
  padding-top: 15px;
}
.specs-table td:last-child { font-weight: 500; }

/* ── DESCRIPTION ── */
.stone-description {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #4a3f55;
  max-width: 720px;
}

/* ── FAQs ── */
.faq-wrap { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  user-select: none;
}
.faq-q i { color: var(--accent); transition: transform 0.3s; flex-shrink: 0; }
.faq-a {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

/* ── FINAL CTA ── */
.final-cta {
  text-align: center;
  padding: 24px 0 48px;
}
.final-cta-btns {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.final-cta-btns .btn-cart,
.final-cta-btns .btn-buy { min-width: 210px; padding: 16px 20px; }

/* ── TOAST ── */
.pdp-toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--brand);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: 0.4s cubic-bezier(0.18,0.89,0.32,1.28);
  border-left: 4px solid var(--accent);
  max-width: 320px;
}
.pdp-toast.show { transform: translateY(0); opacity: 1; }

/* ══ RESPONSIVE ══ */

/* Large tablet */
@media (max-width: 1100px) {
  .pdp-hero { grid-template-columns: 420px 1fr; gap: 40px; }
}

/* Tablet */
@media (max-width: 900px) {
  .pdp-wrap { padding: 0 24px; }
  .pdp-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0 48px;
  }
  .gallery-wrap { position: static; }
  .main-img-wrap { max-height: 420px; aspect-ratio: 3/2; }
  .thumb-row { grid-template-columns: repeat(4, 1fr); }
  .product-name { font-size: 2.4rem; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { gap: 24px; }
  .astro-block { padding: 32px; }
  .astro-outcomes { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  .pdp-wrap { padding: 0 16px; }
  .product-name { font-size: 2rem; }
  .price-current { font-size: 2.1rem; }
  .main-img-wrap { aspect-ratio: 4/3; max-height: 300px; }
  .thumb-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cta-block { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: 28px; }
  .astro-block { padding: 22px 18px; }
  .astro-outcomes { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .final-cta-btns { flex-direction: column; width: 100%; }
  .final-cta-btns .btn-cart,
  .final-cta-btns .btn-buy { min-width: unset; width: 100%; }
  .pdp-toast { left: 16px; right: 16px; bottom: 16px; max-width: unset; }
}

/* Small mobile */
@media (max-width: 380px) {
  .product-name { font-size: 1.75rem; }
  .spec-pills { gap: 6px; }
  .spec-pill { min-width: 80px; padding: 8px 10px; }
}

/* ── STICKY MOBILE CTA BAR ── */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 900px) {
  .mobile-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 900;
    box-shadow: 0 -4px 24px rgba(42,27,56,0.1);
  }
  /* Push page content above bar so nothing is hidden under it */
  .below-fold { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  .mobile-cta-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
  }
  .mobile-cta-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
  }
  .mobile-cta-amount {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 600;
    color: var(--brand);
  }
  .mobile-cta-actions {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }
  .mobile-cta-actions .btn-cart,
  .mobile-cta-actions .btn-buy {
    padding: 12px 16px;
    font-size: 0.75rem;
    flex: 1;
    max-width: 150px;
  }
}
