/* ===========================
   PRODUCTO — LABRIEGO
   Mobile-first. Objetivo: galería + nombre + rating + precio +
   variantes + botones de acción visibles sin scroll (o con muy poco),
   con dirección de arte premium (Nike / New Era / Adidas / Apple Store).
   =========================== */

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

:root {
  --white:     #FFFFFF;
  --gray-50:   #FAFAFA;
  --gray-100:  #F4F4F4;
  --gray-150:  #EFEFEF;
  --gray-200:  #E8E8E8;
  --gray-300:  #D0D0D0;
  --gray-500:  #888888;
  --gray-700:  #333333;
  --gray-900:  #0F0F0F;
  --coral:      #E8593C;
  --coral-deep: #B2441F;
  --coral-10:  rgba(232, 89, 60, .1);
  --coral-16:  rgba(232, 89, 60, .16);
  --green-wsp: #25D366;
  --font:      'Space Grotesk', system-ui, -apple-system, sans-serif;
  --nav-h:     68px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 1px 2px rgba(15,15,15,.03), 0 20px 40px -20px rgba(15,15,15,.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.pd-breadcrumb {
  padding: calc(var(--nav-h) + 12px) 16px 0;
}

.pd-breadcrumb-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--gray-500);
  padding: 0 4px 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.pd-breadcrumb-inner::-webkit-scrollbar { display: none; }

.pd-breadcrumb-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--coral);
}

.pd-breadcrumb a {
  color: var(--gray-500);
  transition: color .15s ease;
  font-weight: 500;
}

.pd-breadcrumb a:hover { color: var(--coral); }

.pd-crumb-sep {
  color: var(--gray-300);
  font-weight: 500;
  flex: 0 0 auto;
}

.pd-crumb-current {
  color: var(--coral-deep);
  font-weight: 700;
}

/* ── Layout principal ───────────────────────────────────── */
.pd-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.pd-buy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}

/* ── Galería ────────────────────────────────────────────── */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-gallery-stage {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, var(--gray-50) 0%, var(--white) 72%);
  border: 1px solid var(--gray-100);
  padding: 14px;
}

.pd-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 27vh;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
}

.pd-thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-150);
  background: var(--gray-50);
  overflow: hidden;
  cursor: pointer;
  padding: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb.active { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-10); }
.pd-thumb:hover { border-color: var(--gray-300); }

/* ── Info de compra ─────────────────────────────────────── */
/* Sin contenedor/tarjeta: todo fluye como una sola composición,
   la jerarquía se logra con tipografía y márgenes, no con bordes. */
.pd-info {
  display: flex;
  flex-direction: column;
}

.pd-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 6px;
}

.pd-title {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.pd-tagline {
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-500);
  margin-bottom: 10px;
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.pd-stars { color: #F5A623; letter-spacing: 1px; font-size: 14px; }
.pd-rating-count { color: var(--gray-500); }

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 14px;
}

.pd-price {
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 700;
  color: var(--gray-900);
}

.pd-price-old {
  font-size: 15px;
  color: var(--gray-500);
  text-decoration: line-through;
}

/* ── Variantes ──────────────────────────────────────────── */
.pd-variants:empty { display: none; }
.pd-variants {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pd-variants-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 10px;
  display: block;
  flex: 0 0 100%;
}

.pd-opcion-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pd-color-thumb {
  position: relative;
  display: flex;
  border: none;
  background: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gray-200);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.pd-color-thumb:hover {
  box-shadow: 0 0 0 1px var(--gray-400);
  transform: translateY(-1px);
}

.pd-color-thumb.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 2.5px var(--coral);
}

.pd-color-thumb__img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--white);
}

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

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

.pd-opcion-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}

.pd-opcion-pill.selected { border-color: var(--gray-900); background: var(--gray-900); color: var(--white); }

/* ── Talla ──────────────────────────────────────────────── */
.pd-size:empty { display: none; }
.pd-size { margin-bottom: 14px; }

.pd-size-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 8px;
  display: block;
}

.pd-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-size-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-900);
  background: var(--gray-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

/* ── Cantidad + Agregar al carrito ───────────────────────── */
.pd-cantidad { margin-bottom: 10px; }

.pd-buy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.pd-qty {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.pd-qty-btn {
  width: 40px;
  height: 100%;
  min-height: 52px;
  border: none;
  background: var(--gray-50);
  font-size: 17px;
  cursor: pointer;
  font-family: var(--font);
}

.pd-qty-val { width: 34px; text-align: center; font-size: 14px; font-weight: 600; }

/* ── CTA principal ──────────────────────────────────────── */
.pd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.pd-btn--full { width: 100%; margin-bottom: 8px; }
.pd-buy-row .pd-btn--cart { flex: 1; }

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

.pd-btn--cart {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(15,15,15,.45);
}

.pd-btn--cart:hover { box-shadow: 0 14px 28px -10px rgba(15,15,15,.5); }

.pd-btn--wsp {
  background: var(--green-wsp);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(37,211,102,.5);
}

.pd-btn--wsp:hover { box-shadow: 0 14px 28px -10px rgba(37,211,102,.55); }

.pd-added-msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-wsp);
  min-height: 16px;
  display: block;
}

/* ── Indicadores de confianza ───────────────────────────── */
.pd-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.pd-trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-700);
}

.pd-trust-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--coral-16);
  color: var(--coral);
}

.pd-trust-icon svg { width: 16px; height: 16px; }

/* ── Tarjetas promo (mayoreo / guía de siluetas) ─────────────── */
.pd-promo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.pd-promo-card:first-of-type { margin-top: 16px; }

.pd-promo-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.pd-promo-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-150);
  color: var(--gray-700);
}

.pd-promo-icon svg { width: 17px; height: 17px; }

.pd-promo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-promo-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-900);
}

.pd-promo-text span {
  font-size: 12px;
  color: var(--gray-500);
}

.pd-promo-arrow {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--gray-300);
  transition: transform .15s ease;
}

.pd-promo-card:hover .pd-promo-arrow { transform: translateX(3px); }

/* Tarjeta de mayoreo: CTA coral, más protagonismo */
.pd-promo-card--coral {
  background: var(--coral-10);
  border-color: var(--coral-16);
}

.pd-promo-card--coral:hover {
  border-color: var(--coral);
  box-shadow: 0 16px 32px -18px rgba(232,89,60,.45);
}

.pd-promo-card--coral .pd-promo-icon {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

.pd-promo-card--coral .pd-promo-arrow { color: var(--coral-deep); }

/* ── Sección de soporte ─────────────────────────────────── */
.pd-support {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Pestañas ─────────────────────────────────────────────── */
.pd-tabs {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pd-tabs-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.pd-tabs-list::-webkit-scrollbar { display: none; }

.pd-tab {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 18px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color .15s ease;
}

.pd-tab-icon { width: 16px; height: 16px; display: inline-flex; }
.pd-tab-icon svg { width: 100%; height: 100%; }

.pd-tab::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.pd-tab:hover { color: var(--gray-900); }

.pd-tab.active {
  color: var(--coral-deep);
}

.pd-tab.active::after { transform: scaleX(1); }

.pd-tab-panel {
  padding: 24px 22px;
}

.pd-tab-panel p { font-size: 14px; line-height: 1.65; color: var(--gray-700); }

.pd-tab-subblock {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-150);
}

.pd-tab-subblock h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pd-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.4;
}

.pd-feature-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--coral-10);
  color: var(--coral);
}

.pd-feature-icon svg { width: 11px; height: 11px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.pd-faq-list { display: flex; flex-direction: column; }

.pd-faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 0;
}

.pd-faq-item:last-child { border-bottom: none; }

.pd-faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .15s ease;
}

.pd-faq-item summary:hover { color: var(--coral); }
.pd-faq-item summary::-webkit-details-marker { display: none; }

.pd-faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--coral-10);
  color: var(--coral);
  font-weight: 700;
  font-size: 15px;
}

.pd-faq-item[open] summary::after { content: '−'; }

.pd-faq-item p {
  font-size: 13.5px;
  color: var(--gray-700);
  margin-top: 10px;
  line-height: 1.65;
}

/* ── También te puede interesar (carrusel horizontal) ────── */
.pd-crosssell { margin-top: 8px; }

.pd-crosssell-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pd-crosssell-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pd-crosssell-subtitle { font-size: 13.5px; color: var(--gray-500); }

.pd-crosssell-nav { display: flex; gap: 8px; flex: 0 0 auto; }

.pd-crosssell-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

.pd-crosssell-arrow:hover { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }

.pd-crosssell-arrow:disabled {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* ── Tarjeta de producto — mismo componente visual que /tienda/
   (prod-card, badges y acciones copiados de tienda/css/tienda.css
   para no acoplar esta página al resto de las reglas globales de esa
   hoja de estilos, p. ej. su fondo oscuro de body). ────────────── */
.pd-crosssell-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.pd-crosssell-track::-webkit-scrollbar { display: none; }

.pd-crosssell-track .prod-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}

.prod-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: pd-cardIn 0.45s ease forwards;
}

@keyframes pd-cardIn { to { opacity: 1; transform: translateY(0); } }

.prod-card:hover {
  box-shadow: 0 20px 56px rgba(0,0,0,0.13), 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(-6px);
  border-color: rgba(232,89,60,0.22);
}

.prod-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #ffffff;
  padding: 14px;
}

.prod-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.prod-card:hover .prod-img { transform: scale(1.04); }

.prod-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.badge-new { background: var(--coral); color: #fff; }
.badge-top { background: var(--gray-900); color: #fff; letter-spacing: 1px; }
.badge-urgency {
  background: rgba(240,160,60,0.11);
  color: #E09825;
  border: 1px solid rgba(240,160,60,0.32);
}

.prod-body { padding: 18px 18px 20px; }

.prod-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.prod-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.prod-precio-old {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: line-through;
  line-height: 1.1;
}

.prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-precio {
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  white-space: nowrap;
}

.prod-social-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.prod-rating { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.prod-stars { color: #F5C542; font-size: 11px; letter-spacing: 1px; line-height: 1; }
.prod-rating-val { font-size: 12px; font-weight: 700; color: var(--gray-900); }
.prod-rating-count { font-size: 11px; color: var(--gray-500); white-space: nowrap; }

.prod-actions { display: flex; gap: 8px; margin-bottom: 12px; }

.pa-info {
  flex: 1;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pa-info:hover { background: #1f1f1f; transform: translateY(-1px); }

.pa-cart {
  width: 38px;
  height: 38px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pa-cart:hover { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); }

@keyframes pd-cart-pinch {
  0%   { transform: scale(1); }
  18%  { transform: scaleX(0.80) scaleY(1.18); }
  42%  { transform: scaleX(1.12) scaleY(0.88); }
  65%  { transform: scaleX(0.95) scaleY(1.05); }
  100% { transform: scale(1); }
}

.pa-cart:hover .cart-icon { animation: pd-cart-pinch 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

.pa-wsp {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-wsp);
  text-decoration: none;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  letter-spacing: 0.3px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pa-wsp:hover { background: rgba(37, 211, 102, 0.06); border-color: rgba(37, 211, 102, 0.5); }

@media (min-width: 861px) {
  .pd-crosssell-track .prod-card { width: 250px; }
}

/* ── Modal: Guía de siluetas ─────────────────────────────── */
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15,15,15,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.pd-modal-overlay.open { opacity: 1; visibility: visible; }

.pd-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px;
  transform: translateY(24px);
  transition: transform .25s ease;
}

.pd-modal-overlay.open .pd-modal { transform: translateY(0); }

.pd-modal h2 { font-size: 19px; font-weight: 700; margin-bottom: 14px; padding-right: 30px; }
.pd-modal-body p { font-size: 14px; line-height: 1.65; color: var(--gray-700); margin-bottom: 12px; }
.pd-modal-body p:last-child { margin-bottom: 0; }

.pd-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
}

/* ── Barra fija móvil ───────────────────────────────────── */
.pd-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  transform: translateY(100%);
  transition: transform .25s ease;
}

.pd-sticky-bar.visible { transform: translateY(0); }

.pd-sticky-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.pd-btn--sticky { flex: 1; min-height: 42px; font-size: 14px; }

/* Deja espacio para que la barra fija no tape el contenido final en móvil */
.pd-support { padding-bottom: 76px; }

/* Sube el botón flotante de WhatsApp para que no choque con la barra fija */
@media (max-width: 860px) {
  .wa-fab { bottom: 84px !important; }
}

/* ── Desktop ────────────────────────────────────────────── */
@media (min-width: 861px) {
  .pd-breadcrumb { padding: calc(var(--nav-h) + 22px) 32px 0; }

  .pd-main { padding: 0 32px 64px; }

  .pd-buy {
    flex-direction: row;
    gap: 56px;
    align-items: flex-start;
    padding-top: 24px;
  }

  .pd-gallery {
    flex: 0 0 52%;
    max-width: 660px;
    flex-direction: row;
    gap: 14px;
    position: sticky;
    top: calc(var(--nav-h) + 32px);
  }

  .pd-gallery-thumbs {
    order: -1;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 420px;
    padding: 2px 2px 2px 0;
  }

  .pd-thumb { width: 68px; height: 68px; }

  .pd-gallery-stage { flex: 1; padding: 26px; }
  .pd-gallery-main { max-height: 420px; }

  .pd-info {
    flex: 1;
    min-width: 0;
    max-width: 500px;
    padding-top: 0;
  }

  .pd-eyebrow { margin-bottom: 4px; }
  .pd-tagline { margin-bottom: 8px; }
  .pd-rating { margin-bottom: 10px; }
  .pd-price-row { padding-top: 10px; margin-bottom: 12px; }
  .pd-variants { margin-bottom: 10px; }
  .pd-size { margin-bottom: 12px; }
  .pd-cantidad { margin-bottom: 8px; }

  .pd-support { max-width: 1296px; padding-bottom: 0; }

  .pd-modal-overlay { align-items: center; }

  .pd-modal {
    max-width: 460px;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    padding: 32px;
  }

  .pd-sticky-bar { display: none; }
  .wa-fab { bottom: 28px !important; }
}
