﻿/* ==========================================================================
   Product Detail — Editorial Luxury × Z-Axis Cascade
   Vibe: warm parchment, deep espresso, Cormorant Garamond serif
   Layout: Z-Axis Cascade — overlapping physical-card layers
   ========================================================================== */

/* ── Film-grain overlay (fixed, pointer-events-none) ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  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)'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* ── Page shell ── */
.pd-page {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 55% 45% at 90% 5%, rgba(196, 154, 90, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 5% 75%, rgba(184,134,11,0.06) 0%, transparent 55%),
    var(--bg, #FDFBF7);
  padding: 0 0 var(--sp-40, 10rem);
  overflow-x: hidden;
}

/* ── Breadcrumb ── */
.pd-breadcrumb {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--sp-8, 2rem) var(--sp-8, 2rem) 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted, #7A6A5A);
}

.pd-breadcrumb a {
  color: var(--ink-muted, #7A6A5A);
  text-decoration: none;
  transition: color 600ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-breadcrumb a:hover { color: var(--amber, #B8860B); }

.pd-breadcrumb .sep {
  color: var(--ink-ghost, #B8A898);
  font-size: 0.6rem;
}

.pd-breadcrumb .current {
  color: var(--ink, #1C1612);
  font-weight: 500;
}

/* ── Z-AXIS CASCADE HERO ── */
.pd-cascade {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--sp-12, 3rem) var(--sp-8, 2rem) 0;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: start;
}

/* ── Gallery card — the "back" layer ── */
.pd-gallery-layer {
  position: relative;
  will-change: transform;
  transform: rotate(-1.2deg) translateY(0);
  transform-origin: bottom right;
  transition: transform 900ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 1;
}

.pd-gallery-layer:hover {
  transform: rotate(-0.4deg) translateY(-6px);
}

/* Double-bezel outer shell */
.pd-gallery-shell {
  background: var(--bg-warm, #F7F3EC);
  border: 1px solid rgba(184,134,11,0.10);
  border-radius: 2rem;
  padding: 0.625rem;
  box-shadow:
    0 2px 0px rgba(255, 255, 255, 0.9) inset,
    0 40px 80px -20px rgba(28, 22, 18, 0.14),
    0 8px 24px -8px rgba(28, 22, 18, 0.08);
}

/* Double-bezel inner core */
.pd-gallery-core {
  background: #FFFFFF;
  border-radius: calc(2rem - 0.5rem);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pd-gallery-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2.5rem;
  transition: transform 900ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-gallery-core:hover img {
  transform: scale(1.02);
}

/* Carousel within gallery */
.pd-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.pd-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2.5rem;
}

.pd-carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  pointer-events: none;
}

.pd-carousel-btn {
  pointer-events: all;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.92);
  border: 1px solid rgba(184,134,11,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 22, 18, 0.10);
  transition: all 700ms cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--amber, #B8860B);
}

.pd-carousel-btn:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(28, 22, 18, 0.14);
}

/* Carousel dots */
.pd-carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  pointer-events: all;
}

.pd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-pale, #F5E6B8);
  cursor: pointer;
  transition: all 600ms cubic-bezier(0.32, 0.72, 0, 1);
  border: none;
  padding: 0;
}

.pd-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--amber, #B8860B);
}

/* No-image placeholder */
.pd-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--ink-ghost, #B8A898);
  padding: 4rem;
}

.pd-placeholder-icon {
  width: 5rem;
  height: 5rem;
  opacity: 0.35;
}

/* ── Info card — the "front" layer, offset right and slightly rotated ── */
.pd-info-layer {
  position: relative;
  margin-left: -4.5rem;
  margin-top: 3.5rem;
  will-change: transform;
  transform: rotate(0.8deg) translateY(0);
  transform-origin: bottom left;
  transition: transform 900ms cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 2;
}

.pd-info-layer:hover {
  transform: rotate(0.2deg) translateY(-4px);
}

/* Double-bezel outer shell — espresso dark */
.pd-info-shell {
  background: var(--bg-deep, #1A1410);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  padding: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 50px 100px -30px rgba(28, 22, 18, 0.5),
    0 12px 32px -10px rgba(28, 22, 18, 0.3);
}

/* Double-bezel inner core */
.pd-info-core {
  background: var(--bg-deep, #1A1410);
  border-radius: calc(2rem - 0.4rem);
  padding: var(--sp-10, 2.5rem) var(--sp-10, 2.5rem) var(--sp-12, 3rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Ambient glow orb inside info card */
.pd-info-core::before {
  content: '';
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(184,134,11,0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Eyebrow tag ── */
.pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.3rem 0.875rem;
  background: rgba(184,134,11,0.18);
  color: var(--amber-light, #D4A843);
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--sp-5, 1.25rem);
  border: 1px solid rgba(200, 150, 90, 0.2);
}

.pd-eyebrow svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

/* ── Product title ── */
.pd-title {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  color: #FDFBF7;
  margin: 0 0 var(--sp-3, 0.75rem);
  letter-spacing: -0.02em;
}

.pd-sku {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-ghost, #B8A898);
  margin: 0 0 var(--sp-6, 1.5rem);
}

/* ── Price ── */
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: var(--sp-6, 1.5rem);
}

.pd-price-amount {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  color: var(--amber-light, #D4A843);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pd-price-note {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-ghost, #B8A898);
}

/* ── Stock status ── */
.pd-stock-status {
  margin-bottom: var(--sp-6, 1.5rem);
}

/* ── Short description ── */
.pd-short-desc {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  line-height: 1.75;
  color: rgba(253, 251, 247, 0.55);
  margin: 0 0 var(--sp-8, 2rem);
  padding-bottom: var(--sp-8, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Meta table ── */
.pd-meta {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: var(--sp-8, 2rem);
  padding-bottom: var(--sp-8, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pd-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-meta-label {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost, #B8A898);
}

.pd-meta-value {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-sm, 0.8125rem);
  color: rgba(253, 251, 247, 0.75);
  font-weight: 500;
  text-align: right;
}

.pd-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.2rem 0.625rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.pd-meta-badge.yes {
  background: rgba(45, 122, 79, 0.22);
  color: #7ECFA0;
  border: 1px solid rgba(126, 207, 160, 0.2);
}

.pd-meta-badge.no {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-ghost, #B8A898);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Personalization section ── */
/* ── Product option chips (material / color / size / font) ── */
.pd-options {
  margin-bottom: var(--sp-6, 1.5rem);
}
.pd-option-group {
  margin-bottom: var(--sp-5, 1.25rem);
}
.pd-option-label {
  display: block;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.55);
  margin-bottom: var(--sp-2, 0.5rem);
}
.pd-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2, 0.5rem);
}
.pd-option-chip {
  background: transparent;
  border: 1px solid rgba(253, 251, 247, 0.2);
  border-radius: 2px;
  color: rgba(253, 251, 247, 0.75);
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.pd-option-chip:hover {
  border-color: rgba(196, 154, 42, 0.5);
  color: #FDFBF7;
}
.pd-option-chip.is-selected {
  border-color: var(--gold, #C9A227);
  color: var(--gold, #C9A227);
  background: rgba(196, 154, 42, 0.08);
}

.pd-personalize {
  margin-bottom: var(--sp-8, 2rem);
  padding-bottom: var(--sp-8, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pd-personalize-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #FDFBF7;
  margin: 0 0 var(--sp-5, 1.25rem);
}

.pd-personalize-title svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--amber-light, #D4A843);
  flex-shrink: 0;
}

.pd-engraving-field {
  margin-bottom: var(--sp-4, 1rem);
}

.pd-engraving-field:last-child { margin-bottom: 0; }

.pd-engraving-label {
  display: block;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost, #B8A898);
  margin-bottom: 0.5rem;
}

/* Double-bezel input outer shell */
.pd-input-shell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 0.2rem;
}

.pd-input-shell:focus-within {
  border-color: rgba(200, 150, 90, 0.4);
  background: rgba(184,134,11,0.06);
}

/* Double-bezel input inner core */
.pd-engraving-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: calc(0.875rem - 0.15rem);
  padding: 0.75rem 1rem;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  color: #FDFBF7;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 600ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-engraving-input::placeholder { color: rgba(253, 251, 247, 0.22); }
.pd-engraving-input:focus { background: rgba(255, 255, 255, 0.05); }

.pd-char-count {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ink-ghost, #B8A898);
  text-align: right;
  margin-top: 0.3rem;
  font-family: var(--font-mono, "DM Mono", monospace);
}

/* ── Quantity + Actions ── */
.pd-commerce {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5, 1.25rem);
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pd-qty-label {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost, #B8A898);
}

/* Double-bezel quantity outer shell */
.pd-qty-shell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem;
  display: flex;
  align-items: center;
}

/* Double-bezel quantity inner core */
.pd-qty-core {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pd-qty-btn {
  background: none;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--amber-light, #D4A843);
  font-size: 1.1rem;
  font-weight: 400;
  transition: all 600ms cubic-bezier(0.32, 0.72, 0, 1);
  font-family: var(--font-body, "DM Sans", sans-serif);
}

.pd-qty-btn:hover { background: rgba(255, 255, 255, 0.06); }
.pd-qty-btn:active { transform: scale(0.92); }

.pd-qty-input {
  background: none;
  border: none;
  width: 3rem;
  text-align: center;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: #FDFBF7;
  outline: none;
  -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── CTA Row ── */
.pd-cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3, 0.75rem);
}

/* Primary Add-to-Cart — button-in-button island architecture */
.pd-btn-cart {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #1A1714;
  color: #FDFBF7;
  border: none;
  border-radius: 999px;
  padding: 0.875rem 0.875rem 0.875rem 1.75rem;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 700ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow:
    0 4px 16px rgba(26, 23, 20, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pd-btn-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pd-btn-cart:hover {
  background: #2E2A26;
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(26, 23, 20, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pd-btn-cart:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 2px 8px rgba(26, 23, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pd-btn-cart-text { flex: 1; text-align: left; }

/* The nested icon circle — "button-in-button" */
.pd-btn-cart-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 700ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pd-btn-cart:hover .pd-btn-cart-icon {
  transform: translateX(2px) translateY(-1px) scale(1.06);
  background: rgba(255, 255, 255, 0.20);
}

.pd-btn-cart-icon svg {
  width: 1rem;
  height: 1rem;
}

/* Wishlist button */
.pd-btn-wish {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(253, 251, 247, 0.5);
  transition: all 700ms cubic-bezier(0.32, 0.72, 0, 1);
  flex-shrink: 0;
}

.pd-btn-wish:hover {
  background: rgba(200, 150, 90, 0.15);
  border-color: rgba(200, 150, 90, 0.3);
  color: var(--amber-light, #D4A843);
  transform: scale(1.08);
}

.pd-btn-wish:active { transform: scale(0.96); }

.pd-btn-wish svg { width: 1.1rem; height: 1.1rem; }

/* ── Detailed description — separate section below the cascade ── */
.pd-details-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--sp-24, 6rem) var(--sp-8, 2rem) 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-20, 5rem);
  align-items: start;
}

.pd-details-label {
  position: sticky;
  top: var(--sp-8, 2rem);
}

.pd-details-label-text {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: var(--text-4xl, 3rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink, #1C1612);
  letter-spacing: -0.025em;
}

.pd-details-label-text em {
  font-style: italic;
  color: var(--amber, #B8860B);
}

.pd-details-line {
  width: 3rem;
  height: 1px;
  background: var(--amber, #B8860B);
  margin: 1.25rem 0 0;
  opacity: 0.4;
}

.pd-details-body {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  line-height: 1.85;
  color: var(--ink-secondary, #4A3F35);
}

.pd-details-body p {
  margin: 0 0 var(--sp-5, 1.25rem);
}

.pd-details-body p:last-child { margin-bottom: 0; }

/* ── Related Products ── */
.pd-related {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--sp-32, 8rem) var(--sp-8, 2rem) 0;
}

.pd-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8, 2rem);
  margin-bottom: var(--sp-12, 3rem);
}

.pd-related-eyebrow {
  display: inline-block;
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber, #B8860B);
  margin-bottom: 0.75rem;
}

.pd-related-title {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  color: var(--ink, #1C1612);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5, 1.25rem);
}

.pd-related-card {
  display: block;
  text-decoration: none;
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-related-card:hover {
  transform: translateY(-6px);
}

/* Double-bezel card outer shell */
.pd-related-card-shell {
  background: var(--bg-warm, #F7F3EC);
  border: 1px solid rgba(184,134,11,0.08);
  border-radius: 1.5rem;
  padding: 0.5rem;
  margin-bottom: var(--sp-4, 1rem);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px -8px rgba(28, 22, 18, 0.1);
  transition: box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-related-card:hover .pd-related-card-shell {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 40px -12px rgba(28, 22, 18, 0.18);
}

/* Double-bezel card inner core */
.pd-related-card-core {
  background: #FFFFFF;
  border-radius: calc(1.5rem - 0.4rem);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.pd-related-card-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-related-card:hover .pd-related-card-core img {
  transform: scale(1.04);
}

.pd-related-card-placeholder {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  color: var(--ink-ghost, #B8A898);
  text-align: center;
  padding: 1.5rem;
  line-height: 1.5;
}

.pd-related-card-info { padding: 0 0.25rem; }

.pd-related-card-name {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 500;
  color: var(--ink, #1C1612);
  line-height: 1.4;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-related-card-price {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber, #B8860B);
  letter-spacing: -0.01em;
}

/* ── Product Reviews ── */
.pd-reviews {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--sp-24, 6rem) var(--sp-8, 2rem) 0;
}

.pd-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6, 1.5rem);
  margin-bottom: var(--sp-8, 2rem);
  flex-wrap: wrap;
}

.pd-reviews-title {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 500;
  color: var(--ink, #1C1612);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.pd-reviews-btn {
  white-space: nowrap;
}

.pd-reviews-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  background: var(--bg-warm);
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  padding: 0.45rem var(--sp-4);
  white-space: nowrap;
}

.pd-reviews-locked-msg {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

.pd-reviews-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--sp-10, 2.5rem);
  padding-bottom: var(--sp-8, 2rem);
  border-bottom: 1px solid var(--line-subtle, rgba(184,134,11,0.10));
}

.pd-rating-stars {
  display: flex;
  gap: 2px;
}

.pd-star {
  width: 1.25rem;
  height: 1.25rem;
}

.pd-star-full { fill: var(--gold, #C9A227); stroke: var(--gold, #C9A227); }
.pd-star-half { fill: var(--gold, #C9A227); stroke: var(--gold, #C9A227); }
.pd-star-empty { fill: none; stroke: var(--line-subtle, rgba(184,134,11,0.15)); }

.pd-rating-average {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: var(--text-2xl, 1.75rem);
  font-weight: 600;
  color: var(--ink, #1C1612);
  line-height: 1;
}

.pd-rating-count {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  color: var(--ink-secondary, #4A3F35);
}

.pd-review-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5, 1.25rem);
}

.pd-review-card {
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-review-card:hover {
  transform: translateY(-3px);
}

/* ── Notify Me form ─────────────────────────────────── */
.pd-notify-wrap {
  margin-top: var(--sp-5, 1.25rem);
  padding-top: var(--sp-5, 1.25rem);
  border-top: 1px solid var(--line-subtle, rgba(184,134,11,0.1));
}

.pd-notify-label {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: var(--text-sm, 0.875rem);
  color: var(--ink-muted, #7A6A5A);
  margin: 0 0 var(--sp-3, 0.75rem);
  letter-spacing: 0.02em;
}

.pd-notify-inner {
  display: flex;
  gap: var(--sp-3, 0.75rem);
  align-items: center;
}

.pd-notify-input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--line-subtle, rgba(184,134,11,0.15));
  border-radius: var(--radius-md, 0.5rem);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: var(--text-sm, 0.875rem);
  background: var(--bg-warm, #F7F3EC);
  color: var(--ink, #1C1612);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.pd-notify-input:focus {
  border-color: var(--gold, #B8860B);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}

.pd-notify-input::placeholder {
  color: var(--ink-muted, #7A6A5A);
  opacity: 0.7;
}

.pd-notify-btn {
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--gold, #B8860B);
  border-radius: var(--radius-md, 0.5rem);
  background: var(--gold, #B8860B);
  color: #fff;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.pd-notify-btn:hover {
  background: var(--gold-muted, #A0760A);
  transform: translateY(-1px);
}

.pd-notify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pd-notify-msg {
  margin: var(--sp-2, 0.5rem) 0 0;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.4;
}

.pd-notify-msg.success {
  color: var(--success, #059669);
}

.pd-notify-msg.error {
  color: var(--danger, #DC2626);
}

.pd-review-card-shell {
  background: var(--bg-warm, #F7F3EC);
  border: 1px solid rgba(184,134,11,0.08);
  border-radius: 1.5rem;
  padding: 0.5rem;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px -8px rgba(28, 22, 18, 0.08);
  transition: box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pd-review-card:hover .pd-review-card-shell {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px -12px rgba(28, 22, 18, 0.16);
}

.pd-review-card-core {
  background: #FFFFFF;
  border-radius: calc(1.5rem - 0.4rem);
  padding: 1.5rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.pd-review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4, 1rem);
  margin-bottom: 0.5rem;
}

.pd-review-author {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 600;
  color: var(--ink, #1C1612);
}

.pd-review-date {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-xs, 0.6875rem);
  color: var(--ink-ghost, #B8A898);
  letter-spacing: 0.04em;
}

.pd-review-stars {
  display: flex;
  gap: 1px;
  margin-bottom: 0.75rem;
}

.pd-review-stars .pd-star {
  width: 1rem;
  height: 1rem;
}

.pd-review-text {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  line-height: 1.7;
  color: var(--ink-secondary, #4A3F35);
  margin: 0;
}

.pd-reviews-empty {
  text-align: center;
  padding: var(--sp-12, 3rem) var(--sp-6, 1.5rem);
  background: var(--bg-warm, #F7F3EC);
  border-radius: 1.5rem;
  border: 1px dashed rgba(184,134,11,0.12);
}

.pd-reviews-empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--sp-4, 1rem);
  color: var(--ink-ghost, #B8A898);
  opacity: 0.4;
}

.pd-reviews-empty p {
  font-family: var(--font-body, "DM Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  color: var(--ink-secondary, #4A3F35);
  margin: 0 0 var(--sp-5, 1.25rem);
}

/* ── Scroll entry animations ── */
.pd-reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(4px);
  transition:
    opacity 900ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 900ms cubic-bezier(0.32, 0.72, 0, 1),
    filter 900ms cubic-bezier(0.32, 0.72, 0, 1);
  animation: pd-reveal-failsafe 1000ms cubic-bezier(0.32, 0.72, 0, 1) 280ms forwards;
}

.pd-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  animation: none;
}

@keyframes pd-reveal-failsafe {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.pd-reveal-delay-1 { transition-delay: 80ms; }
.pd-reveal-delay-2 { transition-delay: 160ms; }
.pd-reveal-delay-3 { transition-delay: 240ms; }
.pd-reveal-delay-4 { transition-delay: 320ms; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pd-cascade {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .pd-info-layer { margin-left: -3rem; margin-top: 2.5rem; }

  .pd-details-section {
    grid-template-columns: 1fr;
    gap: var(--sp-10, 2.5rem);
  }

  .pd-details-label { position: static; }

  .pd-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .pd-cascade {
    grid-template-columns: 1fr;
    padding: var(--sp-6, 1.5rem) var(--sp-4, 1rem) 0;
  }

  /* Remove all rotations and negative margins on mobile */
  .pd-gallery-layer,
  .pd-info-layer {
    transform: none !important;
    margin-left: 0;
    margin-top: 0;
  }

  .pd-gallery-layer:hover,
  .pd-info-layer:hover {
    transform: none !important;
  }

  .pd-info-layer {
    margin-top: var(--sp-4, 1rem);
    z-index: 1;
  }

  .pd-info-core {
    padding: var(--sp-8, 2rem) var(--sp-6, 1.5rem) var(--sp-10, 2.5rem);
  }

  .pd-title { font-size: 2.25rem; }

  .pd-details-section {
    padding: var(--sp-16, 4rem) var(--sp-4, 1rem) 0;
    grid-template-columns: 1fr;
    gap: var(--sp-8, 2rem);
  }

  .pd-details-label-text { font-size: var(--text-3xl, 2.25rem); }

  .pd-related {
    padding: var(--sp-20, 5rem) var(--sp-4, 1rem) 0;
  }

  .pd-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4, 1rem);
  }

  .pd-related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4, 1rem);
  }
}

@media (max-width: 480px) {
  .pd-info-core { padding: var(--sp-6, 1.5rem) var(--sp-5, 1.25rem) var(--sp-8, 2rem); }
  .pd-cta-row { flex-direction: column; }
  .pd-btn-cart { width: 100%; }
  .pd-btn-wish { width: 100%; border-radius: 999px; height: 3rem; }
  .pd-notify-inner { flex-direction: column; }
  .pd-notify-btn { width: 100%; }
}

