/*
 * ficha.css — Ficha de producto (products/ficha.html y products/<slug>.html).
 * Lo usan src/ficha.jsx (clases pdp-*) y FichaRelated de src/mejoras.js (pdr-*).
 * CSS propio: Tailwind es pre-generado y no tiene estas clases.
 * Breakpoints: <768 móvil · 768–1023 tablet (apilado) · ≥1024 desktop (2 columnas).
 */
:root {
  --pdp-navy: #1E3A5F;
  --pdp-navy-2: #16314F;
  --pdp-navy-50: #E8EEF6;
  --pdp-orange: #E76F2D;
  --pdp-orange-ink: #A8461A;   /* texto naranja legible sobre claro (≥4.5:1) */
  --pdp-orange-50: #FCE9DE;
  --pdp-ink: #0F1419;
  --pdp-muted: rgba(15, 20, 25, 0.62);
  --pdp-body: rgba(15, 20, 25, 0.76);
  --pdp-line: rgba(15, 20, 25, 0.08);
  --pdp-ok: #047857;
  --pdp-bg: #FAFAF7;
  --pdp-header: 64px;
  --pdp-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --pdp-header: 72px; } }

.pdp-ico { width: 18px; height: 18px; flex: none; }
html.pdp-lock { overflow: hidden; }

/* Nav: "Volver" con área táctil de 44px */
.pdp-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-right: 6px;
  font-size: 13.5px; color: rgba(15, 20, 25, 0.72); text-decoration: none;
}
.pdp-back:hover { color: var(--pdp-ink); }

/* ── Layout ─────────────────────────────────────────────── */
.pdp-main { padding-top: var(--pdp-header); padding-bottom: 8px; }
.pdp-wrap { max-width: 1240px; margin: 0 auto; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.pdp-col { min-width: 0; padding: 0 16px; }
@media (min-width: 768px) {
  .pdp-main { padding-top: calc(var(--pdp-header) + 20px); }
  .pdp-wrap { padding: 0 32px; }
  .pdp-gal, .pdp-col { width: 100%; max-width: 620px; margin: 0 auto; padding: 0; }
  .pdp-gal { max-width: min(560px, 52vh); }
}
@media (min-width: 1024px) {
  .pdp-main { padding-top: calc(var(--pdp-header) + 28px); }
  .pdp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pdp-gal, .pdp-col { max-width: none; margin: 0; }
}
@media (min-width: 1280px) { .pdp-grid { gap: 64px; } }

/* ── Galería ────────────────────────────────────────────── */
.pdp-gal { position: relative; min-width: 0; }
@media (min-width: 1024px) { .pdp-gal { position: sticky; top: calc(var(--pdp-header) + 20px); } }

.pdp-stage {
  position: relative; overflow: hidden; background: #fff;
  height: min(100vw, 50vh); height: min(100vw, 50svh);
}
@media (min-width: 768px) {
  .pdp-stage { height: auto; aspect-ratio: 1 / 1; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--pdp-line), 0 1px 2px rgba(15,20,25,.04), 0 20px 50px -28px rgba(15,20,25,.18); }
}
.pdp-track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.pdp-track::-webkit-scrollbar { display: none; }
.pdp-slide {
  flex: 0 0 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent;
  scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; display: block;
  -webkit-tap-highlight-color: transparent;
}
.pdp-slide img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 14px; user-select: none; }
@media (min-width: 1024px) { .pdp-slide img { padding: 36px; } }
.pdp-slide:focus-visible { outline: 2px solid rgba(30,58,95,.55); outline-offset: -4px; }

.pdp-noimg { position: absolute; inset: 0; display: grid; place-items: center; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--pdp-muted); }

.pdp-badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; pointer-events: none; }
.pdp-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--pdp-navy-50); color: var(--pdp-navy);
  font: 500 10.5px/1 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase;
}
.pdp-chip-off { background: var(--pdp-orange); color: #fff; font: 700 12px/1 'Geist', sans-serif; letter-spacing: 0; }
@media (min-width: 1024px) { .pdp-badges { left: 18px; top: 18px; } }

.pdp-count {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(15,20,25,.72); color: #fff; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .08em;
  pointer-events: none;
}
.pdp-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pdp-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(15,20,25,.22); transition: width .25s var(--pdp-ease), background .25s; }
.pdp-dots span.on { width: 18px; background: var(--pdp-navy); }

.pdp-arrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 999px;
  display: none; place-items: center; cursor: pointer; color: var(--pdp-ink); background: rgba(255,255,255,.94);
  box-shadow: 0 1px 2px rgba(15,20,25,.08), 0 8px 24px -10px rgba(15,20,25,.25), inset 0 0 0 1px var(--pdp-line);
  opacity: 0; transition: opacity .2s, transform .2s;
}
.pdp-arrow-l { left: 14px; } .pdp-arrow-r { right: 14px; }
.pdp-arrow:hover { transform: scale(1.05); }
.pdp-zoomhint {
  position: absolute; left: 18px; bottom: 18px; display: none; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--pdp-ink);
  font-size: 12px; box-shadow: inset 0 0 0 1px var(--pdp-line); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.pdp-zoomhint .pdp-ico { width: 15px; height: 15px; }
@media (min-width: 1024px) {
  .pdp-arrow { display: grid; }
  .pdp-zoomhint { display: inline-flex; }
  .pdp-stage:hover .pdp-arrow, .pdp-stage:focus-within .pdp-arrow, .pdp-stage:hover .pdp-zoomhint { opacity: 1; }
  .pdp-dots { display: none; }
  .pdp-count { right: 18px; bottom: 18px; }
}
@media (hover: none) { .pdp-arrow, .pdp-zoomhint { display: none !important; } }

.pdp-soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(250,250,247,.55); pointer-events: none; }
.pdp-soldout span { padding: 8px 16px; border-radius: 999px; background: rgba(15,20,25,.86); color: #fff; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }

.pdp-thumbs { display: none; }
@media (min-width: 1024px) {
  .pdp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
  .pdp-thumb {
    width: 76px; height: 76px; padding: 6px; border: 0; border-radius: 14px; background: #fff; cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--pdp-line); transition: box-shadow .2s;
  }
  .pdp-thumb:hover { box-shadow: inset 0 0 0 1px rgba(15,20,25,.2); }
  .pdp-thumb.on { box-shadow: 0 0 0 2px var(--pdp-navy), 0 0 0 5px rgba(30,58,95,.12); }
  .pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
}

/* ── Visor ampliado (<dialog>) ──────────────────────────── */
.pdp-lb {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #fff; color: var(--pdp-ink); overflow: hidden;
}
.pdp-lb[open] { display: flex; flex-direction: column; }
.pdp-lb::backdrop { background: rgba(15,20,25,.6); }
.pdp-lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0 18px; padding-top: max(10px, env(safe-area-inset-top)); }
.pdp-lb-count { font: 500 12px/1 'Geist Mono', monospace; letter-spacing: .1em; color: var(--pdp-muted); }
.pdp-lb-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.pdp-lb-track::-webkit-scrollbar { display: none; }
.pdp-lb-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 8px 12px 24px; scroll-snap-align: start; scroll-snap-stop: always; }
.pdp-lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.pdp-lb-btn {
  width: 44px; height: 44px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  color: var(--pdp-ink); background: rgba(15,20,25,.05);
}
.pdp-lb-btn:hover { background: rgba(15,20,25,.09); }
.pdp-lb-btn .pdp-ico { width: 20px; height: 20px; }
.pdp-lb-prev, .pdp-lb-next { position: absolute; top: 50%; margin-top: -22px; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px -8px rgba(15,20,25,.3), inset 0 0 0 1px var(--pdp-line); }
.pdp-lb-prev { left: 16px; } .pdp-lb-next { right: 16px; }
@media (hover: none) and (max-width: 767px) { .pdp-lb-prev, .pdp-lb-next { display: none; } }

/* ── Columna de compra ──────────────────────────────────── */
.pdp-buy { display: flex; flex-direction: column; padding-top: 12px; }
.pdp-blurb { order: 1; margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--pdp-body); text-wrap: pretty; }
@media (min-width: 768px) { .pdp-buy { padding-top: 20px; } }
@media (min-width: 1024px) {
  .pdp-buy { padding-top: 0; }
  .pdp-blurb { order: 0; margin-top: 14px; font-size: 16px; }
}

.pdp-crumbs { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; font-size: 12px; color: var(--pdp-muted); }
.pdp-crumbs a { color: inherit; text-decoration: none; padding: 3px 0; }
.pdp-crumbs a:last-child { overflow: hidden; text-overflow: ellipsis; }
.pdp-crumbs a:hover { color: var(--pdp-ink); text-decoration: underline; text-underline-offset: 2px; }
.pdp-crumbs span { opacity: .6; }
@media (min-width: 1024px) { .pdp-crumbs { font-size: 12.5px; } }

.pdp-title {
  margin: 4px 0 0; color: var(--pdp-ink); font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (min-width: 768px) { .pdp-title { font-size: 28px; } }
@media (min-width: 1024px) { .pdp-title { margin-top: 10px; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -0.03em; } }

.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.pdp-now { font-size: 28px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; color: var(--pdp-ink); font-variant-numeric: tabular-nums; }
.pdp-quote { font-size: 22px; color: var(--pdp-orange-ink); }
.pdp-was { font-size: 15px; color: var(--pdp-muted); }
.pdp-off { align-self: center; padding: 3px 8px; border-radius: 999px; background: var(--pdp-orange-50); color: var(--pdp-orange-ink); font-size: 12.5px; font-weight: 700; }
@media (min-width: 1024px) { .pdp-price { margin-top: 14px; } .pdp-now { font-size: 38px; } .pdp-was { font-size: 17px; } }

.pdp-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 6px; font-size: 13px; color: var(--pdp-muted); }
.pdp-meta-2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
@media (min-width: 1024px) { .pdp-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; } }
.pdp-unit b { color: var(--pdp-ink); font-weight: 600; }
.pdp-save { color: var(--pdp-ok); font-weight: 600; }
.pdp-stock { display: inline-flex; align-items: center; gap: 6px; color: var(--pdp-ok); font-weight: 500; }
.pdp-stock::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px rgba(4,120,87,.14); }
.pdp-stock.low { color: var(--pdp-orange-ink); }
.pdp-stock.low::before { box-shadow: 0 0 0 3px rgba(231,111,45,.18); }
.pdp-stock.out { color: #B91C1C; }
.pdp-stock.out::before { box-shadow: 0 0 0 3px rgba(185,28,28,.14); }

/* Caja de compra */
.pdp-box { margin-top: 14px; }
@media (min-width: 1024px) {
  .pdp-box {
    margin-top: 22px; padding: 20px; border-radius: 22px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--pdp-line), 0 1px 2px rgba(15,20,25,.04), 0 18px 40px -24px rgba(15,20,25,.16);
  }
}
.pdp-row { display: flex; gap: 10px; }
.pdp-qty {
  flex: none; display: flex; align-items: center; height: 52px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,20,25,.16);
}
.pdp-qty button {
  width: 44px; height: 52px; border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--pdp-ink); -webkit-tap-highlight-color: transparent;
}
.pdp-qty button:hover:not(:disabled) { background: rgba(15,20,25,.04); }
.pdp-qty button:disabled { color: rgba(15,20,25,.3); cursor: default; }
.pdp-qty output { min-width: 22px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.pdp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; height: 52px;
  padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 15.5px/1 'Geist', system-ui, sans-serif; letter-spacing: -0.005em;
  transition: background .2s, box-shadow .2s, transform .15s; -webkit-tap-highlight-color: transparent;
}
.pdp-btn:active:not(:disabled) { transform: scale(.985); }
.pdp-btn-primary { background: var(--pdp-navy); color: #fff; box-shadow: 0 1px 2px rgba(22,49,79,.3), 0 14px 30px -14px rgba(30,58,95,.65); }
.pdp-btn-primary:hover:not(:disabled) { background: var(--pdp-navy-2); }
.pdp-btn-secondary { margin-top: 10px; height: 48px; background: #fff; color: var(--pdp-navy); box-shadow: inset 0 0 0 1.5px var(--pdp-navy); }
.pdp-btn-secondary:hover:not(:disabled) { background: var(--pdp-navy-50); }
.pdp-btn-wa { background: #1E7A46; color: #fff; }
.pdp-btn-wa:hover { background: #18663a; }
.pdp-btn:disabled { background: #EDEDE8; color: rgba(15,20,25,.6); box-shadow: none; cursor: not-allowed; }
.pdp-row .pdp-btn { flex: 1; }

.pdp-incart { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--pdp-muted); }
.pdp-wa-link {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 4px;
  font-size: 14px; color: var(--pdp-navy); text-decoration: none;
}
.pdp-wa-link span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(30,58,95,.35); }
.pdp-wa-link:hover span { text-decoration-color: currentColor; }

.pdp-ship { display: flex; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: #EEF5F1; }
.pdp-ship-ico { width: 22px; height: 22px; color: var(--pdp-ok); margin-top: 1px; }
.pdp-ship p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--pdp-body); }
.pdp-ship b { display: block; color: var(--pdp-ink); font-weight: 600; }

.pdp-trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pdp-trust li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.35; color: var(--pdp-body); }
.pdp-trust .pdp-ico { width: 17px; height: 17px; color: var(--pdp-navy); }
.pdp-trust a { display: inline-block; padding: 4px 0; margin: -4px 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(15,20,25,.3); }
.pdp-trust a:hover { color: var(--pdp-ink); text-decoration-color: currentColor; }

/* Combo: qué incluye */
.pdp-card { margin-top: 20px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--pdp-line); }
.pdp-card-h { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--pdp-ink); }
.pdp-card ul { list-style: none; margin: 0; padding: 0; }
.pdp-ci { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--pdp-line); }
.pdp-card li:first-child .pdp-ci { border-top: 0; }
.pdp-ci img, .pdp-ci-ph { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #F4F4F0; object-fit: contain; }
.pdp-ci-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pdp-ci-name { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--pdp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-ci:hover .pdp-ci-name { text-decoration: underline; text-underline-offset: 2px; }
.pdp-ci-meta { font-size: 12.5px; color: var(--pdp-muted); }
.pdp-ci-qty { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; background: var(--pdp-navy-50); color: var(--pdp-navy); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(15,20,25,.16); font-size: 14px; color: var(--pdp-body); }
.pdp-sum b { color: var(--pdp-ink); font-size: 16px; }
.pdp-combo-skel { min-height: 220px; background: linear-gradient(90deg, #fff 0%, #F4F4F0 50%, #fff 100%); background-size: 200% 100%; animation: pdp-shimmer 1.4s linear infinite; }

/* Secciones desplegables */
.pdp-acc-group { margin-top: 24px; border-top: 1px solid var(--pdp-line); }
.pdp-acc { border-bottom: 1px solid var(--pdp-line); }
.pdp-acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer;
  list-style: none; font-size: 15.5px; font-weight: 600; color: var(--pdp-ink); -webkit-tap-highlight-color: transparent;
}
.pdp-acc > summary::-webkit-details-marker { display: none; }
.pdp-acc > summary::after {
  content: ''; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--pdp-ease); opacity: .65;
}
.pdp-acc[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.pdp-acc > summary:focus-visible { outline: 2px solid rgba(30,58,95,.55); outline-offset: 2px; border-radius: 6px; }
.pdp-acc-body { padding: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--pdp-body); }
.pdp-acc-body p { margin: 0; text-wrap: pretty; }
.pdp-acc-body a { color: var(--pdp-navy); text-decoration: underline; text-underline-offset: 2px; }
.pdp-acc-body b { color: var(--pdp-ink); font-weight: 600; }
.pdp-specs { margin: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--pdp-line); }
.pdp-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border-top: 1px solid var(--pdp-line); }
.pdp-specs div:first-child { border-top: 0; }
.pdp-specs dt { font-size: 13.5px; color: var(--pdp-muted); }
.pdp-specs dd { margin: 0; text-align: right; font-size: 14px; font-weight: 500; color: var(--pdp-ink); }
.pdp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pdp-list li { position: relative; padding-left: 18px; }
.pdp-list li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 999px; background: var(--pdp-orange); }

/* ── Relacionados (mejoras.js → FichaRelated) ───────────── */
.pdr { max-width: 1240px; margin: 48px auto 0; padding: 0 16px; }
@media (min-width: 768px) { .pdr { padding: 0 32px; margin-top: 72px; } }
.pdr-sec + .pdr-sec { margin-top: 44px; }
.pdr-eyebrow { font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--pdp-orange-ink); }
.pdr-h { margin: 8px 0 0; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; color: var(--pdp-ink); text-wrap: balance; }
@media (min-width: 768px) { .pdr-h { font-size: 28px; } }

.pdr-combos { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 1024px) { .pdr-combos { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; } }
.pdr-combo {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "img body" "img add"; gap: 4px 14px; align-items: start;
  padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--pdp-line);
}
@media (min-width: 480px) { .pdr-combo { grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "img body add"; align-items: center; } }
.pdr-combo-img { grid-area: img; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #F4F4F0; }
.pdr-combo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdr-combo-body { grid-area: body; min-width: 0; }
.pdr-combo-title { font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--pdp-ink); text-decoration: none; }
.pdr-combo-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.pdr-combo-parts { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--pdp-muted); }
.pdr-combo-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; font-size: 13px; }
.pdr-combo-price b { font-size: 16px; color: var(--pdp-ink); }
.pdr-combo-price s { color: var(--pdp-muted); }
.pdr-save { color: var(--pdp-ok); font-weight: 600; }
.pdr-add {
  grid-area: add; justify-self: start; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pdp-navy); color: #fff; font: 600 14px/1 'Geist', system-ui, sans-serif; margin-top: 6px;
}
.pdr-add:hover { background: var(--pdp-navy-2); }
@media (min-width: 480px) { .pdr-add { margin-top: 0; } }

.pdr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (min-width: 1024px) { .pdr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.pdr-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px var(--pdp-line); transition: box-shadow .25s; }
.pdr-card:hover { box-shadow: inset 0 0 0 1px rgba(15,20,25,.14), 0 18px 40px -24px rgba(15,20,25,.25); }
.pdr-card-img { position: relative; aspect-ratio: 1; background: #fff; }
.pdr-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; transition: transform .5s var(--pdp-ease); }
.pdr-card:hover .pdr-card-img img { transform: scale(1.04); }
.pdr-off { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 999px; background: var(--pdp-orange); color: #fff; font-size: 11.5px; font-weight: 700; }
.pdr-card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pdr-card-cat { font: 500 10px/1.2 'Geist Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--pdp-muted); }
.pdr-card-title { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--pdp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdr-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.pdr-card-price b { font-size: 15.5px; color: var(--pdp-ink); }
.pdr-card-price s { font-size: 12.5px; color: var(--pdp-muted); }

/* ── Banda de garantías ─────────────────────────────────── */
.pdp-assure { margin-top: 56px; border-top: 1px solid var(--pdp-line); background: #F4F4F0; }
.pdp-assure ul { list-style: none; max-width: 1240px; margin: 0 auto; padding: 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pdp-assure li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.3; color: rgba(15,20,25,.78); }
.pdp-assure .pdp-ico { width: 20px; height: 20px; color: var(--pdp-navy); }
@media (min-width: 768px) { .pdp-assure { margin-top: 80px; } .pdp-assure ul { grid-template-columns: repeat(4, 1fr); padding: 22px 32px; } }

/* ── Barras fijas ───────────────────────────────────────── */
.pdp-bar-img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--pdp-line); }
.pdp-bar-title { font-size: 12.5px; font-weight: 500; color: rgba(15,20,25,.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-bar-price { display: flex; align-items: baseline; gap: 6px; }
.pdp-bar-now { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--pdp-ink); font-variant-numeric: tabular-nums; }
.pdp-bar-price s { font-size: 12px; color: var(--pdp-muted); }
.pdp-bar-btn { width: auto; height: 48px; padding: 0 22px; flex: none; }

/* Móvil / tablet: abajo (ir-pdp-bar le da fondo y la oculta ≥1024px) */
.pdp-mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  border-top: 1px solid var(--pdp-line); box-shadow: 0 -8px 30px -10px rgba(15,20,25,.16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(105%); visibility: hidden;
  transition: transform .3s var(--pdp-ease), visibility 0s linear .3s;
}
.pdp-mbar.on { transform: none; visibility: visible; transition: transform .3s var(--pdp-ease), visibility 0s; }
.pdp-mbar-in { display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 0 auto; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.pdp-bar-txt { min-width: 0; flex: 1; }
/* Espacio para que la barra no tape el pie de página */
@media (max-width: 1023px) { .pdp-main + footer { padding-bottom: 104px; } }
/* Tablet: el botón flotante de WhatsApp no debe tapar la barra */
@media (min-width: 768px) and (max-width: 1023px) { .wa-pulse { bottom: 96px !important; } }

/* Desktop: barra fina arriba, bajo el nav */
.pdp-dbar { display: none; }
@media (min-width: 1024px) {
  .pdp-dbar {
    display: block; position: fixed; left: 0; right: 0; top: var(--pdp-header); z-index: 39;
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--pdp-line); box-shadow: 0 10px 30px -18px rgba(15,20,25,.25);
    transform: translateY(-110%); visibility: hidden; opacity: 0;
    transition: transform .3s var(--pdp-ease), opacity .2s, visibility 0s linear .3s;
  }
  .pdp-dbar.on { transform: none; visibility: visible; opacity: 1; transition: transform .3s var(--pdp-ease), opacity .2s, visibility 0s; }
  .pdp-dbar-in { display: flex; align-items: center; gap: 14px; max-width: 1240px; margin: 0 auto; padding: 10px 32px; }
  .pdp-dbar-title { flex: 1; min-width: 0; font-size: 14px; color: var(--pdp-ink); }
  .pdp-dbar-btn { width: auto; height: 44px; padding: 0 20px; font-size: 14.5px; }
}

/* ── Carga ──────────────────────────────────────────────── */
.pdp-skel { background: linear-gradient(90deg, #EFEFEA 0%, #F6F6F2 50%, #EFEFEA 100%); background-size: 200% 100%; animation: pdp-shimmer 1.4s linear infinite; }
.pdp-loading-msg { margin: 32px 0 0; text-align: center; font: 500 11px/1 'Geist Mono', monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--pdp-muted); }
@keyframes pdp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .pdp-mbar, .pdp-dbar, .pdp-dots span, .pdr-card-img img, .pdp-acc > summary::after { transition: none !important; }
  .pdp-skel, .pdp-combo-skel { animation: none; }
}
