/* ============================================================
   PDP Layout · Ofelia Vallejo
   ============================================================ */

.pdp {
  margin-top: 64px;
  background: var(--marfil);
  /* Latón antiguo patinado — acento metálico de marca (NO oro brillante).
     Reservado para reglas/divisores, no para texto. */
  --gold-brass: #8A7549;
  --gold-brass-muted: rgba(138, 117, 73, 0.30);
  --gold-brass-subtle: rgba(138, 117, 73, 0.15);
  /* Eyebrows / labels en navy tenue — restraint editorial, no spec-sheet dorado */
  --eyebrow: rgba(11, 31, 58, 0.45);
}

/* ─── HERO ───────────────────────────────────────────────── */
.pdp__hero {
  display: flex;
  min-height: calc(100vh - 64px);
}

.pdp__hero-left {
  flex: 0 0 44%;
  padding: 72px var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdp__hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--espresso);
  min-height: calc(100vh - 64px);
}

/* Gallery inside hero-right */
.pdp__gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pdp__stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.pdp__main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 0.3s var(--ease);
}

.pdp__main-img.is-fade-out { opacity: 0; }

.pdp__stage--pending {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--leather-mid, #3B2B26) 72%, #F3EEE6) 0%,
    var(--leather-mid, #3B2B26) 48%,
    color-mix(in srgb, var(--leather-mid, #3B2B26) 85%, #141414) 100%
  );
}

.pdp__stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(243,238,230,.45);
}

/* Horizontal thumbnail strip (desktop) */
.pdp__thumbs {
  display: flex;
  flex-direction: row;
  height: 72px;
  flex-shrink: 0;
  border-top: 1px solid rgba(243,238,230,.1);
}

.pdp__thumb {
  flex: 1;
  padding: 0;
  border: none;
  border-right: 1px solid rgba(243,238,230,.08);
  background: var(--navy);
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
  cursor: pointer;
}

.pdp__thumb:last-child { border-right: none; }
.pdp__thumb.is-active, .pdp__thumb:hover { opacity: 1; }

.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s var(--ease);
}

.pdp__thumb.is-swapping img { opacity: 0; }

.pdp__gallery--pending .pdp__thumbs,
.pdp__gallery--pending .pdp__carousel,
.pdp__gallery--pending .pdp__dots { display: none; }

/* Mobile carousel (hidden on desktop) */
.pdp__carousel { display: none; }

/* ─── Hero-left content ─────────────────────────────────── */
.pdp__label {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pdp__title {
  font-family: Cinzel, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.pdp__tagline {
  font-family: Cinzel, serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(11,31,58,.5);
  margin-bottom: 28px;
}

.pdp__desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(11,31,58,.68);
  letter-spacing: 0.02em;
  max-width: 420px;
  margin-bottom: 24px;
}

.pdp__stock {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.pdp__stock--out { color: var(--vino); }

/* ─── QUICK SPECS BAR ────────────────────────────────────── */
.pdp__specs-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--gold-brass-muted, rgba(138,117,73,.30));
  border-bottom: 1px solid var(--gold-brass-muted, rgba(138,117,73,.30));
  background: var(--marfil);
}

.pdp__spec {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Gold vertical divider between spec cells */
.pdp__spec:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 52%;
  width: 1px;
  background: var(--gold-brass, #8A7549);
  opacity: 0.28;
}

.pdp__spec-label {
  font-size: 7.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.pdp__spec-val {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1.45;
}

/* ─── FICHA COMPLETA ─────────────────────────────────────── */
.pdp__ficha {
  background: var(--beige-medio);
  padding: 80px var(--pad-x) 104px;
}

.pdp__ficha-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}

/* Expanding gold rule between label and quote */
.pdp__ficha-header-rule {
  flex: 1;
  height: 1px;
  background: var(--gold-brass, #8A7549);
  opacity: 0.28;
  min-width: 20px;
}

.pdp__ficha-label {
  font-size: 7.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--eyebrow);
  white-space: nowrap;
}

.pdp__ficha-subtitle {
  font-family: Cinzel, serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(11,31,58,.55);
  white-space: nowrap;
}

.pdp__ficha-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) 0.8fr 1.1fr;
  gap: 72px;
  align-items: start;
}

/* Ficha · Left: media */
.pdp__ficha-media { display: flex; flex-direction: column; gap: 6px; }

.pdp__ficha-img-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--espresso);
}

.pdp__ficha-img-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pdp__ficha-img-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--espresso);
}

.pdp__ficha-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #4a362e, #3B2B26, #2e211c);
}

/* Editorial caption below the lifestyle image */
.pdp__ficha-caption {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-brass, #8A7549);
  margin-top: 12px;
  line-height: 1.55;
}

/* Ficha · Center: specs */
.pdp__ficha-specs {
  border-top: 1px solid rgba(138,117,73,.26);
}

.pdp__ficha-specs-title {
  font-size: 7.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 16px;
  padding-top: 4px;
}

.pdp__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(138,117,73,.22);
}

.pdp__spec-row-label {
  font-size: 7.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--eyebrow);
  flex-shrink: 0;
}

.pdp__spec-row-val {
  font-family: Cinzel, serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.55;
  text-align: right;
}

/* Ficha · Right: purchase */
.pdp__ficha-purchase {
  display: flex;
  flex-direction: column;
}

.pdp__desc-long {
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(11,31,58,.7);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.pdp__desc-block {
  margin-bottom: 24px;
}

.pdp__desc-block-label {
  font-size: 7px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pdp__desc-para {
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(11,31,58,.7);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.pdp__desc-para:last-child {
  margin-bottom: 0;
}

.pdp__care {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--marfil);
  border-left: 3px solid var(--gold-brass, #8A7549);
}

.pdp__care-label {
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.pdp__care-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(11,31,58,.68);
  letter-spacing: 0.02em;
}

.pdp__material-note {
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

/* Color selector */
.pdp__colors { margin: 24px 0; }

.pdp__colors-label {
  font-size: 7px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pdp__swatches {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pdp__swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(11,31,58,.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.pdp__swatch.is-active {
  box-shadow: 0 0 0 2px var(--marfil), 0 0 0 3.5px var(--navy);
  transform: scale(1.12);
}

.pdp__color-name {
  margin-top: 10px;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* Price row */
.pdp__ficha-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}

.pdp__origin-label {
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pdp__origin-val {
  font-family: Cinzel, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.pdp__price {
  font-family: Cinzel, serif;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}

.pdp__price-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Engrave section */
.pdp__engrave {
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(243,238,230,.75);
  border: 1px solid rgba(11,31,58,.08);
}

.pdp[data-personalizable="false"] .pdp__engrave { display: none; }

.pdp__engrave-label {
  font-family: Cinzel, serif;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}

.pdp__engrave-input {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: none;
  border-bottom: 1px solid rgba(11,31,58,.25);
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--navy);
  outline: none;
}

.pdp__engrave-input::placeholder { color: rgba(11,31,58,.35); }

.pdp__engrave-preview { margin-top: 18px; width: 100%; }

.pdp__engrave-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 80px;
}

.pdp__engrave-leather-text {
  font-family: Cinzel, serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.18em;
  fill: #0a1628;
}

@media (max-width: 900px) {
  .pdp__engrave-leather-text { font-size: 16px; letter-spacing: 0.14em; }
}

.pdp__engrave-note {
  margin-top: 12px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ─── CTAs ───────────────────────────────────────────────── */
.pdp__cta-primary,
.pdp__cta-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: var(--navy);
  color: var(--marfil);
  border: none;
  font-family: Cinzel, serif;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease);
  margin-bottom: 10px;
  cursor: pointer;
}

.pdp__cta-primary:hover,
.pdp__cta-cart:hover { background: var(--vino); }

.pdp__cta-primary:disabled,
.pdp__cta-cart:disabled { opacity: 0.4; pointer-events: none; }

.pdp__cta-engrave {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: Cinzel, serif;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  margin-bottom: 10px;
  cursor: pointer;
}

.pdp__cta-engrave:hover { background: var(--navy); color: var(--marfil); }

.pdp__cta-whatsapp {
  background: transparent !important;
  border: 1px solid rgba(11,31,58,.28) !important;
  color: var(--navy) !important;
  font-size: 8px !important;
}

.pdp__cta-whatsapp:hover {
  background: rgba(11,31,58,.05) !important;
  color: var(--navy) !important;
}

.pdp__pay-note {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 4px;
  min-height: 1.4em;
}

/* ─── QUOTE BAND ─────────────────────────────────────────── */
.pdp__quote {
  background: var(--espresso);
  padding: 72px var(--pad-x);
}

.pdp__quote-text {
  font-family: Cinzel, serif;
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(243,238,230,.86);
  max-width: 640px;
  letter-spacing: 0.02em;
}

/* ─── RELATED ─────────────────────────────────────────────── */
.pdp__related {
  padding: 72px var(--pad-x) 96px;
  background: var(--marfil);
  border-top: 1px solid var(--rule);
}

.pdp__related-title {
  font-family: Cinzel, serif;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
}

.pdp__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.pdp__card { display: block; transition: opacity 0.35s var(--ease); }
.pdp__card:hover { opacity: 0.8; }

.pdp__card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--espresso);
}

.pdp__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp__card-name {
  margin-top: 14px;
  font-family: Cinzel, serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.pdp__card-price {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pdp__hero {
    flex-direction: column;
    min-height: 0;
  }

  .pdp__hero-right {
    order: -1;
    min-height: 0;
    height: 72vw;
    max-height: 480px;
  }

  .pdp__hero-left {
    padding: 36px 24px 48px;
    justify-content: flex-start;
  }

  .pdp__stage { display: none; }
  .pdp__gallery--pending .pdp__stage { display: flex; align-items: center; justify-content: center; flex: 1; }

  .pdp__thumbs { display: none; }

  .pdp__carousel {
    display: flex;
    flex: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pdp__carousel::-webkit-scrollbar { display: none; }

  .pdp__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 100%;
    background: var(--espresso);
  }

  .pdp__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pdp__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 12px;
    background: var(--navy);
    flex-shrink: 0;
  }

  .pdp__dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(243,238,230,.3);
    transition: background 0.3s ease;
    cursor: pointer;
  }

  .pdp__dot.is-active { background: var(--marfil); }

  .pdp__specs-bar {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: auto;
  }

  .pdp__spec { padding: 18px 16px; }
  /* Remove gold pseudo-dividers on mobile — grid wraps anyway */
  .pdp__spec:not(:last-child)::after { display: none; }

  .pdp__ficha-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pdp__ficha-header-rule { display: none; }

  .pdp__ficha { padding: 40px 24px 56px; }

  .pdp__ficha-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pdp__ficha-media { display: none; }

  .pdp__ficha-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pdp__related { padding: 48px 24px 64px; }
  .pdp__related-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }

  .pdp__quote { padding: 56px 24px; }
}

@media (min-width: 901px) {
  .pdp__dots { display: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
