/* =============================================================
   OffSale — PDP (Product Detail Page) — Sprint 3 · Etapa 4
   Depende de: offsale-header.css (fuentes + :root vars) + offsale-cards.css
   ============================================================= */

:root {
  --grado-excelente: #16a34a;
  --grado-muy-bueno: #2563eb;
  --grado-bueno: #f59e0b;
  --grado-outlet: #64748b;
  --pdp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --pdp-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --pdp-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --pdp-radius: 14px;
  --pdp-radius-sm: 8px;
}

/* Wrap general del PDP en body */
body.single-product {
  background: var(--offsale-bg);
}
body.single-product #primary,
body.single-product #main,
body.single-product .content-area,
body.single-product .site-main {
  background: transparent;
}

/* Ocultar breadcrumbs/wrap de WC/Nasa que no usamos */
body.single-product .woocommerce-breadcrumb,
body.single-product .nasa-breadcrumb,
body.single-product .breadcrumb-wrap,
body.single-product .nasa-single-product-detail-wrap {
  display: none !important;
}

/* ============================================================
   BREADCRUMBS custom (nuestros)
   ============================================================ */
.os-pdp-breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px 6px;
  font-size: 12.5px;
  color: var(--offsale-ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: "Inter", system-ui, sans-serif;
}
.os-pdp-breadcrumbs a {
  color: var(--offsale-ink-mute);
  text-decoration: none;
}
.os-pdp-breadcrumbs a:hover {
  color: var(--offsale-orange);
}
.os-pdp-breadcrumbs .sep {
  color: var(--offsale-line-strong);
}
.os-pdp-breadcrumbs .current {
  color: var(--offsale-ink);
  font-weight: 600;
}

/* ============================================================
   HERO PDP — galería + panel compra
   ============================================================ */
.pdp-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--offsale-ink);
}

/* GALERÍA */
.pdp-gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
}
.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-thumb {
  width: 84px;
  height: 84px;
  border: 2px solid var(--offsale-line);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  background: #f1f5f9;
  transition: all 0.15s ease;
  padding: 0;
}
.pdp-thumb:hover {
  border-color: var(--offsale-line-strong);
}
.pdp-thumb.active {
  border-color: var(--offsale-orange);
  box-shadow: 0 0 0 3px rgba(245, 99, 10, 0.12);
}
.pdp-thumb img,
.pdp-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-main-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--offsale-line);
}
.pdp-main-photo img,
.pdp-main-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pdp-main-photo:hover img,
.pdp-main-photo:hover svg {
  transform: scale(1.06);
}
.pdp-main-photo .zoom-tip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
  pointer-events: none;
}
.pdp-main-photo .zoom-tip svg {
  width: 12px;
  height: 12px;
}
.pdp-main-photo .grade-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pdp-main-photo .grade-tag[data-grade="excelente"] {
  background: var(--grado-excelente);
}
.pdp-main-photo .grade-tag[data-grade="muy-bueno"] {
  background: var(--grado-muy-bueno);
}
.pdp-main-photo .grade-tag[data-grade="bueno"] {
  background: var(--grado-bueno);
  color: #422006;
}
.pdp-main-photo .grade-tag[data-grade="outlet"] {
  background: var(--grado-outlet);
}

.pdp-main-photo .stock-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.pdp-main-photo .stock-badge--out {
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}
.pdp-main-photo .stock-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: osPulse 1.5s ease-in-out infinite;
}
@keyframes osPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* PANEL DE COMPRA */
.pdp-buy-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pdp-brand-tag {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--offsale-ink-mute);
  font-weight: 700;
}
.pdp-title {
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--offsale-ink);
  margin: 0;
  line-height: 1.15;
}
.pdp-subtitle {
  font-size: 15px;
  color: var(--offsale-orange-dark);
  font-weight: 600;
  font-style: italic;
  margin: -6px 0 0;
}
.pdp-meta-row {
  font-size: 12px;
  color: var(--offsale-ink-mute);
}
.pdp-meta-row span {
  color: var(--offsale-ink-soft);
  font-weight: 600;
}

/* Grade box */
.pdp-grade-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-grade-box[data-grade="excelente"] {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.pdp-grade-box[data-grade="bueno"] {
  background: #fffbeb;
  border-color: #fde68a;
}
.pdp-grade-box[data-grade="outlet"] {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.pdp-grade-box .g-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  background: var(--grado-muy-bueno);
}
.pdp-grade-box[data-grade="excelente"] .g-icon {
  background: var(--grado-excelente);
}
.pdp-grade-box[data-grade="bueno"] .g-icon {
  background: var(--grado-bueno);
  color: #422006;
}
.pdp-grade-box[data-grade="outlet"] .g-icon {
  background: var(--grado-outlet);
}

.pdp-grade-box .g-info {
  flex: 1;
}
.pdp-grade-box .g-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  color: #1e40af;
}
.pdp-grade-box[data-grade="excelente"] .g-title {
  color: #14532d;
}
.pdp-grade-box[data-grade="bueno"] .g-title {
  color: #78350f;
}
.pdp-grade-box[data-grade="outlet"] .g-title {
  color: #1f2937;
}

.pdp-grade-box .g-desc {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
  color: #1e3a8a;
}
.pdp-grade-box[data-grade="excelente"] .g-desc {
  color: #166534;
}
.pdp-grade-box[data-grade="bueno"] .g-desc {
  color: #92400e;
}
.pdp-grade-box[data-grade="outlet"] .g-desc {
  color: #334155;
}

.pdp-grade-box .g-link {
  font-size: 11.5px;
  color: var(--offsale-navy);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.pdp-grade-box .g-link:hover {
  background: rgba(26, 39, 64, 0.08);
  color: var(--offsale-orange);
}

/* ============================================================
   MODAL sistema de grados
   ============================================================ */
.pdp-grade-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gradeModalIn 0.18s ease;
}
.pdp-grade-modal[hidden] {
  display: none;
}
@keyframes gradeModalIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.pdp-grade-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.pdp-grade-modal-body {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 22px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: "Inter", sans-serif;
  animation: gradeModalPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gradeModalPop {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.pdp-grade-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--offsale-ink-mute);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.pdp-grade-modal-close:hover {
  background: #f1f5f9;
  color: var(--offsale-ink);
}
.pdp-grade-modal-body h3 {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--offsale-navy);
}
.pdp-grade-modal-body .modal-lead {
  font-size: 13.5px;
  color: var(--offsale-ink-soft);
  margin: 0 0 18px;
  line-height: 1.5;
}
.pdp-grade-modal-body .modal-lead strong {
  color: var(--offsale-ink);
  font-weight: 700;
}
.grade-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grade-modal-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--offsale-line);
  border-radius: 10px;
  background: #fafbfc;
}
.grade-modal-item .gm-badge {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.grade-modal-item[data-grade="excelente"] .gm-badge {
  background: var(--grado-excelente);
}
.grade-modal-item[data-grade="muy-bueno"] .gm-badge {
  background: var(--grado-muy-bueno);
}
.grade-modal-item[data-grade="bueno"] .gm-badge {
  background: var(--grado-bueno);
  color: #422006;
}
.grade-modal-item[data-grade="outlet"] .gm-badge {
  background: var(--grado-outlet);
}

.grade-modal-item .gm-content h4 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--offsale-navy);
  line-height: 1.15;
}
.grade-modal-item .gm-content p {
  font-size: 13px;
  color: var(--offsale-ink-soft);
  line-height: 1.45;
  margin: 0;
}

/* Precio */
.pdp-price-box {
  padding: 16px 0;
  border-top: 1px solid var(--offsale-line);
  border-bottom: 1px solid var(--offsale-line);
}
.pdp-price-main {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--offsale-ink);
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
.pdp-price-old {
  font-size: 15px;
  color: var(--offsale-ink-mute);
  text-decoration: line-through;
  margin-bottom: 4px;
  display: block;
}
.pdp-price-inst {
  font-size: 14px;
  color: var(--offsale-ink-mute);
  margin-top: 8px;
  line-height: 1.5;
}
.pdp-price-inst strong {
  color: var(--offsale-orange);
  font-weight: 700;
}
.pdp-price-inst .highlight {
  display: inline-block;
  background: var(--offsale-orange-soft);
  color: var(--offsale-orange-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 6px;
}

/* CTAs */
.pdp-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--offsale-orange);
  color: #fff !important;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 99, 10, 0.35);
  transition: all 0.15s ease;
  font-family: "Inter", sans-serif;
}
.pdp-btn-buy:hover {
  background: var(--offsale-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 99, 10, 0.4);
  color: #fff !important;
}
.pdp-btn-buy svg {
  width: 20px;
  height: 20px;
}

.pdp-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--wa-green-dark) !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--wa-green);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: "Inter", sans-serif;
}
.pdp-btn-wa:hover {
  background: var(--wa-green);
  color: #fff !important;
}
.pdp-btn-wa svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pdp-btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--offsale-ink-mute);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--offsale-line-strong);
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.pdp-btn-fav:hover {
  color: var(--offsale-orange);
  border-color: var(--offsale-orange);
}
.pdp-btn-fav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Sold out state */
.pdp-btn-sold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  font-size: 15px;
  border: 1px dashed #cbd5e1;
  cursor: not-allowed;
}

/* Trust inline (4 celdas) */
.pdp-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.pdp-trust-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fafbfc;
  border: 1px solid var(--offsale-line);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--offsale-ink-soft);
  font-weight: 600;
  line-height: 1.2;
}
.pdp-trust-cell svg {
  width: 16px;
  height: 16px;
  color: var(--offsale-orange);
  flex-shrink: 0;
}
.pdp-trust-cell strong {
  color: var(--offsale-navy);
}

/* ============================================================
   SECCIONES SIGUIENTES
   ============================================================ */
.pdp-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--offsale-ink);
}
.pdp-section.on-white {
  background: #fff;
  max-width: none;
}
.pdp-section.on-white > .pdp-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}
.pdp-section h2 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  font-weight: 700;
  color: var(--offsale-ink);
}
.pdp-section h2 span {
  color: var(--offsale-orange);
}
.pdp-section-lead {
  color: var(--offsale-ink-mute);
  font-size: 14.5px;
  margin: -12px 0 20px;
}

/* SPECS TABLE */
.pdp-specs-grid {
  background: #fff;
  border: 1px solid var(--offsale-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--pdp-shadow-sm);
}
.pdp-specs-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--offsale-line);
  font-size: 14px;
}
.pdp-specs-row:last-child {
  border-bottom: none;
}
.pdp-specs-row:nth-child(odd) {
  background: #fafbfc;
}
.pdp-specs-label {
  color: var(--offsale-ink-mute);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp-specs-label svg {
  width: 16px;
  height: 16px;
  color: var(--offsale-orange);
}
.pdp-specs-value {
  color: var(--offsale-ink);
  font-weight: 600;
}

/* 3 RAZONES */
.pdp-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pdp-reason-card {
  background: #fff;
  border: 1px solid var(--offsale-line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s ease;
}
.pdp-reason-card:hover {
  border-color: var(--offsale-orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.pdp-reason-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.pdp-reason-icon svg {
  width: 28px;
  height: 28px;
}
.pdp-reason-icon.r-green {
  background: #dcfce7;
  color: #16a34a;
}
.pdp-reason-icon.r-orange {
  background: var(--offsale-orange-soft);
  color: var(--offsale-orange);
}
.pdp-reason-icon.r-blue {
  background: #dbeafe;
  color: #2563eb;
}
.pdp-reason-title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--offsale-navy);
  margin: 0;
  letter-spacing: -0.3px;
}
.pdp-reason-desc {
  font-size: 14px;
  color: var(--offsale-ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* PROCESO 7 PASOS */
.pdp-process-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.pdp-step {
  background: #fafbfc;
  border: 1px solid var(--offsale-line);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
  transition: all 0.18s ease;
}
.pdp-step:hover {
  background: #fff;
  border-color: var(--offsale-orange);
  transform: translateY(-3px);
  box-shadow: var(--pdp-shadow-md);
}
.pdp-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--offsale-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(245, 99, 10, 0.35);
}
.pdp-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--offsale-orange-soft);
  color: var(--offsale-orange);
  display: grid;
  place-items: center;
}
.pdp-step-icon svg {
  width: 26px;
  height: 26px;
}
.pdp-step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--offsale-navy);
}
.pdp-step-desc {
  font-size: 12px;
  color: var(--offsale-ink-mute);
  line-height: 1.35;
}

/* FAQ */
.pdp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-faq-item {
  background: #fff;
  border: 1px solid var(--offsale-line);
  border-radius: 10px;
  overflow: hidden;
}
.pdp-faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--offsale-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.pdp-faq-item summary::-webkit-details-marker {
  display: none;
}
.pdp-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--offsale-orange);
  transition: transform 0.2s ease;
}
.pdp-faq-item[open] summary::after {
  transform: rotate(45deg);
}
.pdp-faq-body {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--offsale-ink-soft);
  line-height: 1.6;
}

/* IG WALL */
.pdp-ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pdp-ig-item {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease;
  text-decoration: none;
}
.pdp-ig-item:hover {
  transform: scale(1.03);
}
.pdp-ig-item .heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
}
.pdp-ig-cta {
  text-align: center;
  margin-top: 20px;
}
.pdp-ig-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.pdp-ig-cta svg {
  width: 18px;
  height: 18px;
}

/* RELATED (usa .osc-card de offsale-cards.css) */
.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pdp-related-grid > li {
  list-style: none;
}

/* STICKY BUY BAR */
.pdp-sticky {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--offsale-line);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
  padding: 12px 24px;
  z-index: 40;
  transition: bottom 0.3s ease;
  font-family: "Inter", sans-serif;
}
.pdp-sticky.visible {
  bottom: 0;
}
.pdp-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.pdp-sticky .mini-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdp-sticky .mini-photo {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.pdp-sticky .mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-sticky .mini-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--offsale-ink);
  line-height: 1.2;
}
.pdp-sticky .mini-sub {
  font-size: 11.5px;
  color: var(--offsale-ink-mute);
}
.pdp-sticky .mini-price {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--offsale-ink);
  letter-spacing: -0.5px;
}
.pdp-sticky .mini-inst {
  font-size: 11px;
  color: var(--offsale-ink-mute);
}
.pdp-sticky .mini-ctas {
  display: flex;
  gap: 8px;
}
.pdp-sticky .pdp-btn-buy {
  padding: 12px 22px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(245, 99, 10, 0.3);
}
.pdp-sticky .pdp-btn-wa {
  padding: 12px;
  font-size: 0;
  border-width: 2px;
}
.pdp-sticky .pdp-btn-wa svg {
  width: 20px;
  height: 20px;
}

/* ARREPENTIMIENTO */
.pdp-arrepentimiento {
  max-width: 1280px;
  margin: 20px auto 24px;
  padding: 14px 20px;
  background: var(--offsale-orange-soft);
  border: 1px solid #fed7aa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "Inter", sans-serif;
}
.pdp-arrepentimiento a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--offsale-orange-dark);
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(245, 99, 10, 0.15);
  transition: all 0.15s ease;
  text-decoration: none;
}
.pdp-arrepentimiento a:hover {
  background: var(--offsale-orange);
  color: #fff;
}
.pdp-arrepentimiento a svg {
  width: 16px;
  height: 16px;
}
.pdp-arrepentimiento .arr-txt {
  font-size: 12px;
  color: #7c2d12;
  line-height: 1.4;
}

/* Espaciador para que el sticky no tape contenido */
.pdp-sticky-spacer {
  height: 100px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .pdp-process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 960px) {
  .pdp-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 16px 32px;
  }
  .pdp-reasons-grid {
    grid-template-columns: 1fr;
  }
  .pdp-process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-gallery {
    grid-template-columns: 1fr;
  }
  .pdp-thumbs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .pdp-thumb {
    flex-shrink: 0;
  }
  .pdp-specs-row {
    grid-template-columns: 1fr;
    padding: 12px 16px;
    gap: 4px;
  }
  .pdp-section {
    padding: 32px 16px;
  }
  .pdp-section.on-white > .pdp-section-inner {
    padding: 32px 16px;
  }

  .pdp-sticky .mini-info .mini-photo {
    display: none;
  }
  .pdp-sticky-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .pdp-sticky .mini-price-block {
    display: none;
  }
}
@media (max-width: 640px) {
  .pdp-title {
    font-size: 24px;
  }
  .pdp-price-main {
    font-size: 30px;
  }
  .pdp-trust {
    grid-template-columns: 1fr;
  }
  .pdp-arrepentimiento {
    flex-direction: column;
    align-items: flex-start;
  }
  .pdp-ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Lightbox de galería (sesión 009) — overlay vanilla sin deps
   ============================================================ */
.pdp-main-photo {
  cursor: zoom-in;
}
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 12, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-lightbox[hidden] {
  display: none;
}
.pdp-lb-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: #fff;
  /* [zoom] */
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  touch-action: none;
  will-change: transform;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.pdp-lightbox.is-zoomed .pdp-lb-img {
  cursor: grab;
}
.pdp-lightbox.is-zoomed .pdp-lb-prev,
.pdp-lightbox.is-zoomed .pdp-lb-next {
  opacity: 0.28;
}
.pdp-lb-hint {
  position: absolute;
  bottom: 22px;
  right: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-family: "Inter", sans-serif;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (max-width: 640px) {
  .pdp-lb-hint {
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}
.pdp-lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pdp-lb-btn:hover {
  background: rgba(245, 99, 10, 0.85);
  border-color: rgba(245, 99, 10, 0.9);
}
.pdp-lb-close {
  top: 22px;
  right: 26px;
  font-size: 34px;
}
.pdp-lb-prev {
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
}
.pdp-lb-next {
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
}
.pdp-lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
}
@media (max-width: 768px) {
  .pdp-lb-btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
  .pdp-lb-prev {
    left: 10px;
  }
  .pdp-lb-next {
    right: 10px;
  }
  .pdp-lb-close {
    top: 12px;
    right: 12px;
  }
  .pdp-lb-img {
    max-width: 96vw;
  }
}

/* [C019] etiquetas del bloque de precio (que se entienda lista vs transferencia) */
.pdp-price-old-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa3ad;
  margin-bottom: 2px;
}
.pdp-price-off {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #f5630a;
  padding: 2px 8px;
  border-radius: 7px;
  vertical-align: middle;
}
/* [precio-claro] cajas por forma de pago (PDP) */
.pdp-price-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdp-pay {
  border: 1px solid var(--offsale-line, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pdp-pay-lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 5px;
}
.pdp-pay--cash {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.pdp-pay--cash .pdp-pay-lbl {
  color: #15803d;
}
.pdp-pay-val {
  font-family: "Inter", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdp-pay-off {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #16a34a;
  padding: 2px 9px;
  border-radius: 7px;
  letter-spacing: 0;
}
.pdp-pay--inst .pdp-pay-lbl {
  color: #c2410c;
}
.pdp-pay-val2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.pdp-pay-val2 small {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.pdp-price-was {
  align-self: flex-start;
  font-size: 13px;
  color: #94a3b8;
}
.pdp-price-was s {
  color: #94a3b8;
}
@media (max-width: 640px) {
  .pdp-pay-val {
    font-size: 28px;
  }
  .pdp-pay-val2 {
    font-size: 20px;
  }
}
.pdp-price-note {
  font-size: 13px;
  font-weight: 600;
  color: #1a9c4b;
  margin: 2px 0 6px;
}

/* ============================================================
   SESIÓN 046 — specs bajo la foto + foto 1:1 sin recorte +
   tira de miniaturas acotada + badge "Sin garantía" en Outlet.
   ============================================================ */

/* 1) Foto principal: cuadrada (los másters son 1600×1600) y SIN recorte.
   contain = la foto entra entera; si alguna no fuera cuadrada, queda con
   un margen prolijo en vez de recortarse. */
.pdp-main-photo {
  aspect-ratio: 1 / 1;
}
.pdp-main-photo img {
  object-fit: contain;
}

/* 2) Especificaciones REUBICADAS dentro del hero, bajo la foto (columna
   izquierda). El panel de compra pasa a ocupar las 2 filas para que las
   specs suban al espacio vacío que quedaba a la izquierda. */
.pdp-hero {
  grid-template-rows: auto 1fr;
  align-items: start;
}
.pdp-gallery {
  grid-column: 1;
  grid-row: 1;
}
.pdp-buy-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.pdp-specs-inhero {
  grid-column: 1;
  grid-row: 2;
  margin-top: 26px;
  min-width: 0;
}
.pdp-specs-inhero > h2 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--offsale-navy);
  margin: 0 0 12px;
}
.pdp-specs-inhero > h2 span {
  color: var(--offsale-orange);
}

/* 3) fila destacada del detalle Outlet dentro de la tabla de specs */
.pdp-specs-row.is-outlet {
  background: #fff3e6;
}
.pdp-specs-row.is-outlet .pdp-specs-label {
  color: #7a2e00;
  font-weight: 700;
}
.pdp-specs-row.is-outlet .pdp-specs-value {
  color: #7a2e00;
  font-weight: 600;
}

/* 4) celda de confianza "Sin garantía" (solo Outlet) */
.pdp-trust-cell--nowarranty {
  background: #fff3e6;
  border-color: #f5630a;
}
.pdp-trust-cell--nowarranty svg {
  color: #b45309;
}
.pdp-trust-cell--nowarranty strong {
  color: #7a2e00;
}

/* Reset mobile (≤960px): todo apilado como antes; la tira de miniaturas es
   horizontal, así que no se acota su altura. */
@media (max-width: 960px) {
  .pdp-hero {
    grid-template-rows: none;
  }
  .pdp-gallery,
  .pdp-buy-panel,
  .pdp-specs-inhero {
    grid-column: auto;
    grid-row: auto;
  }
  .pdp-specs-inhero {
    margin-top: 4px;
  }
  .pdp-thumbs {
    max-height: none !important;
  }
}

/* ============================================================
   SESIÓN 047 — pulido PDP: sin zoom-hover en la foto, botón "Zoom"
   más chico/discreto, indicador de "hay más fotos" en la tira.
   ============================================================ */

/* sin agrandar la foto al pasar el mouse (con contain quedaba raro) */
.pdp-main-photo:hover img,
.pdp-main-photo:hover svg {
  transform: none;
}

/* botón "Zoom" dentro de la foto: más chico y sutil */
.pdp-main-photo .zoom-tip {
  padding: 4px 8px;
  font-size: 10px;
  gap: 3px;
  opacity: 0.85;
}
.pdp-main-photo .zoom-tip svg {
  width: 11px;
  height: 11px;
}

/* indicador "hay más fotos": degradé + chevron al pie de la tira cuando
   scrollea (9+ fotos). La clase la agrega el JS solo si hace falta. */
.pdp-gallery {
  position: relative;
}
.pdp-gallery.has-more-thumbs::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 46px;
  background: linear-gradient(to top, rgba(100, 116, 139, 0.38), rgba(100, 116, 139, 0));
  border-radius: 0 0 10px 10px;
  pointer-events: none;
  z-index: 1;
}
.pdp-gallery.has-more-thumbs::before {
  content: "⌄";
  position: absolute;
  left: 36px;
  bottom: 4px;
  z-index: 2;
  color: #334155;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  animation: osThumbBounce 1.4s ease-in-out infinite;
}
@keyframes osThumbBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-gallery.has-more-thumbs::before {
    animation: none;
  }
}
@media (max-width: 960px) {
  .pdp-gallery.has-more-thumbs::after,
  .pdp-gallery.has-more-thumbs::before {
    display: none;
  }
}
