/* DALTON — estilos del módulo product (owner: PRODUCT). Ficha de producto /producto/{slug}.
   Prefijo de clases: .pdp-* · Tokens var(--d-*) de css/dalton.css (docs/DESIGN-SYSTEM.md). Mobile-first.
   Bloques: layout · galería · info (compra) · opciones · acciones · acordeones · completá el look · relacionados ·
   barra fija · lightbox · guía de talles (también dentro del quick add de CART). */

/* Layout ------------------------------------------------------------------------------------------ */
.pdp__top { padding-bottom: clamp(40px, 6vw, 88px); }
.pdp__layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.pdp__info { min-width: 0; padding-top: 20px; }

@media (min-width: 992px) {
  .pdp__top { padding-top: 24px; }
  .pdp__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: start;
  }
  .pdp__info { padding-top: 0; }
  .pdp__sticky {
    position: sticky;
    top: var(--pdp-sticky-top, calc(var(--d-header-h) + 24px));
  }
}
@media (min-width: 1400px) {
  .pdp__layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
/* Una sola foto oficial (≈ 600 × 800 px): no se estira a 3/5 del ancho. Foto (≤ 560 px) e info (≤ 520 px) forman un
   bloque de dos columnas centrado. Sin soporte de :has() queda el layout general. */
@media (min-width: 992px) {
  .pdp__layout:has(.pdp-gallery--single) {
    grid-template-columns: minmax(0, 560px) minmax(0, 520px);
    justify-content: center;
  }
}

/* Galería ----------------------------------------------------------------------------------------- */
.pdp-gallery { position: relative; margin-inline: calc(var(--d-gutter) * -1); }
.pdp-gallery__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pdp-gallery__track::-webkit-scrollbar { display: none; }
.pdp-gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
@media (min-width: 576px) and (max-width: 991.98px) {
  .pdp-gallery__track { gap: 4px; }
  .pdp-gallery__slide { flex-basis: 72%; }
  .pdp-gallery--single .pdp-gallery__slide { flex-basis: 100%; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .pdp-gallery__slide { flex-basis: calc(50% - 2px); }
  .pdp-gallery--single .pdp-gallery__slide { flex-basis: 100%; }
  .pdp-gallery--single .pdp-gallery__media { aspect-ratio: 16 / 13; }
}

.pdp-gallery__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--d-ratio-product);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--d-media-bg);
  cursor: zoom-in;
}
.pdp-gallery__media.is-placeholder { cursor: default; }
.pdp-gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--d-photo-position); }
.pdp-gallery__media:focus-visible { outline: 2px solid var(--d-focus-color); outline-offset: -4px; }
.pdp-gallery__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--d-white);
  color: var(--d-black);
  opacity: 0;
  transition: opacity var(--d-dur) var(--d-ease);
}
.pdp-gallery__media:focus-visible .pdp-gallery__hint { opacity: 1; }
@media (hover: hover) {
  .pdp-gallery__media:hover .pdp-gallery__hint { opacity: 1; }
  .pdp-gallery__media:hover .pdp-gallery__img { transform: scale(1.02); }
  .pdp-gallery__img { transition: transform var(--d-dur-slow) var(--d-ease); }
}

.pdp-gallery__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: var(--d-gutter);
  pointer-events: none;
}
.pdp-gallery__counter {
  margin: 0;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--d-black);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.pdp-gallery__dots { display: flex; flex-wrap: wrap; justify-content: flex-end; pointer-events: auto; }
.pdp-gallery__dot {
  position: relative;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pdp-gallery__dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(5, 5, 5, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
  transform: translate(-50%, -50%);
  transition: width var(--d-dur) var(--d-ease), background-color var(--d-dur) var(--d-ease);
}
.pdp-gallery__dot[aria-current='true']::before { width: 14px; background: var(--d-black); }
.pdp-gallery__dot:focus-visible { outline: 2px solid var(--d-focus-color); outline-offset: -2px; }

@media (min-width: 992px) {
  .pdp-gallery { margin-inline: 0; }
  .pdp-gallery__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .pdp-gallery__slide:first-child,
  .pdp-gallery__slide:last-child:nth-child(even) { grid-column: 1 / -1; }
  .pdp-gallery__ui { display: none; }
}
/* ≥ 1200: 2 fotos (frente / espalda) lado a lado, a su tamaño útil (≈ 390 px), en vez de dos fotos apiladas a 3/5 del
   ancho (≈ 780 px, el doble de las fotos oficiales). Entre 992 y 1199 siguen apiladas (≈ 540 px cada una). */
@media (min-width: 1200px) {
  .pdp-gallery--pair .pdp-gallery__slide:first-child,
  .pdp-gallery--pair .pdp-gallery__slide:last-child:nth-child(even) { grid-column: auto; }
}

/* Info y precio ----------------------------------------------------------------------------------- */
.pdp-crumbs { margin-bottom: 18px; }
.pdp-badges { flex-direction: row; gap: 6px; margin-bottom: 14px; }
/* El contorno negro de los badges blancos ahora lo define dalton.css (§17) para todas las vistas. */

.pdp-title {
  margin: 0;
  font-family: var(--d-font-display);
  font-size: clamp(1.875rem, 3.2vw, 2.875rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: var(--d-tracking-display);
  text-wrap: balance;
}
.pdp-sku {
  margin: 10px 0 0;
  color: var(--d-text-muted);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.pdp-lead { max-width: 48ch; margin: 16px 0 0; color: var(--d-text-muted); font-size: .9375rem; line-height: 1.6; }

.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 20px; }
.pdp-price__value .d-price { margin: 0; }
.pdp-price__from { color: var(--d-text-muted); }
.pdp-bundle {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--d-black);
  font-size: .78rem;
  line-height: 1.45;
}
.pdp-bundle > strong { font-size: .88rem; }

.pdp-promos {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: var(--d-line);
  list-style: none;
}
.pdp-promo { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; font-size: .8125rem; line-height: 1.45; }
.pdp-promo__logo { width: 40px; height: 24px; object-fit: contain; }
.pdp-promo__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 28px; border: var(--d-line); }
.pdp-promo__title { display: block; font-weight: 500; }
.pdp-promo__detail { display: block; color: var(--d-text-muted); font-size: .75rem; }

/* Opciones: color y talle ------------------------------------------------------------------------- */
.pdp-form { display: grid; gap: 20px; margin-top: 28px; }
.pdp-option__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.pdp-option__label { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.pdp-option__value { font-size: .8125rem; font-weight: 500; }
.pdp-swatches { gap: 16px; padding: 4px; }

.pdp-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) {
  .pdp-guide-link:hover { text-decoration-color: transparent; }
}

.pdp-sizes { gap: 8px; }
.pdp-sizes .d-size-chip__label { min-width: 56px; height: 52px; font-size: .875rem; }
.pdp-chip { display: contents; }
.pdp-chip[hidden] { display: none; }
.pdp-sizes__note { margin-top: 10px; }

.pdp-option--sizes.is-attention .pdp-sizes { animation: pdp-nudge .5s var(--d-ease); }
.pdp-option--sizes.is-attention .d-size-chip:not(.is-soldout) .d-size-chip__label { border-color: var(--d-black); }
@keyframes pdp-nudge {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.pdp-stock { display: flex; align-items: center; gap: 8px; margin: -10px 0 0; font-size: .8125rem; line-height: 1.4; }
.pdp-stock[hidden] { display: none; }
.pdp-stock::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; background: currentColor; }
.pdp-stock.is-ok::before { background: var(--d-success); }
.pdp-stock.is-low { color: var(--d-warning); font-weight: 500; }
.pdp-stock.is-out { color: var(--d-text-muted); }
.pdp-stock.is-hint { color: var(--d-text-muted); }
.pdp-stock.is-hint::before { display: none; }
.pdp-stock.is-alert { color: var(--d-danger); font-weight: 600; }

/* Acciones ---------------------------------------------------------------------------------------- */
.pdp-actions { display: grid; gap: 10px; }
.pdp-qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.pdp-actions__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pdp-add { width: 100%; padding-inline: 16px; }
.pdp-add[disabled]:not(.is-loading) { cursor: not-allowed; }
.pdp-whatsapp { gap: 10px; }
.pdp-whatsapp .d-icon { width: 18px; height: 18px; }
.pdp-form > .pdp-whatsapp { justify-self: start; margin-top: -6px; }

.pdp-wish { width: 56px; }
.pdp-wish .d-icon { width: 20px; height: 20px; }
.pdp-wish .d-icon--on { display: none; }
.pdp-wish[aria-pressed='true'] .d-icon--off { display: none; }
.pdp-wish[aria-pressed='true'] .d-icon--on { display: inline-block; }
.pdp-wish.is-bump .d-icon { animation: d-bump .45s var(--d-ease); }

.pdp-error { margin: 0; color: var(--d-danger); font-size: .75rem; line-height: 1.45; }
.pdp-error:empty { display: none; }
.pdp-note { margin: 0 0 4px; color: var(--d-text-muted); font-size: .8125rem; line-height: 1.5; }

/* Confianza contextual: sólo resume datos reales/configurables y enlaza al detalle correspondiente. */
.pdp-assurances {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border-block: var(--d-line);
  list-style: none;
}
.pdp-assurance {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
}
.pdp-assurance + .pdp-assurance { border-top: var(--d-line); }
.pdp-assurance__icon { display: inline-flex; padding-top: 1px; color: var(--d-text-muted); }
.pdp-assurance__icon .d-icon { width: 19px; height: 19px; }
.pdp-assurance__content { display: grid; gap: 3px; min-width: 0; }
.pdp-assurance__title { color: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .06em; line-height: 1.35; text-transform: uppercase; }
a.pdp-assurance__title { text-underline-offset: 3px; text-decoration-color: transparent; }
.pdp-assurance__text { color: var(--d-text-muted); font-size: .75rem; line-height: 1.45; }
@media (hover: hover) {
  a.pdp-assurance__title:hover { text-decoration-color: currentColor; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .pdp-assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp-assurance { align-content: start; padding-inline: 14px; }
  .pdp-assurance + .pdp-assurance { border-top: 0; border-left: var(--d-line); }
  .pdp-assurance:first-child { padding-left: 0; }
  .pdp-assurance:last-child { padding-right: 0; }
}

/* Acordeones -------------------------------------------------------------------------------------- */
.pdp-details { margin-top: 36px; }
.pdp-details .d-accordion__content p { margin: 0 0 .75em; }
.pdp-details .d-accordion__content p:last-child { margin-bottom: 0; }
.pdp-prose { max-width: none; font-size: .875rem; }
.pdp-fit { display: flex; align-items: baseline; gap: 10px; }
.pdp-fit strong { font-weight: 500; }
.pdp-muted { color: var(--d-text-muted); }

/* Etiquetas (D8): links discretos al filtro del catálogo ------------------------------------------- */
.pdp-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 20px; }
.pdp-tags__label { margin: 0; color: var(--d-text-muted); }
.pdp-tags__list { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0; padding: 0; list-style: none; }
.pdp-tags__link {
  display: inline-block;
  padding-block: 12px; /* objetivo táctil ≥ 44 px sin mover el layout */
  margin-block: -12px;
  color: var(--d-text-muted);
  font-size: .8125rem;
  text-decoration: none;
}
.pdp-tags__link:focus-visible { color: var(--d-text); }
@media (hover: hover) {
  .pdp-tags__link:hover { color: var(--d-text); }
}

/* Completá el look -------------------------------------------------------------------------------- */
.pdp-look__list { display: grid; gap: 12px; margin-top: 28px; }
.pdp-look__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  background: var(--d-white);
}
.pdp-look__media { position: relative; display: block; align-self: start; aspect-ratio: var(--d-ratio-product); overflow: hidden; background: var(--d-media-bg); }
.pdp-look__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--d-photo-position); }
.pdp-look__item.is-unavailable .pdp-look__media img { opacity: .55; }
.pdp-look__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.pdp-look__name { margin: 0; font-family: var(--d-font-ui); font-size: .75rem; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.pdp-look__name a { color: inherit; }
.pdp-look__price { margin: 0; }
.pdp-look__sizes { gap: 6px; }
.pdp-look__state { margin: 0; color: var(--d-text-muted); font-size: .75rem; }
.pdp-look__error { margin: 0; color: var(--d-danger); font-size: .75rem; }
.pdp-look__error:empty { display: none; }
.pdp-look__add { gap: 6px; margin-top: auto; }
.pdp-look__add .d-icon { width: 14px; height: 14px; }
.pdp-look__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: var(--d-line);
}
.pdp-look__summary { margin: 0; color: var(--d-text-muted); font-size: .8125rem; }
.pdp-look__all-error { flex-basis: 100%; }
@media (max-width: 575.98px) {
  .pdp-look__all { width: 100%; }
}
@media (min-width: 768px) {
  .pdp-look__list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .pdp-look__item { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 0; padding: 0 0 16px; }
  .pdp-look__body { padding: 16px 16px 0; }
}
@media (min-width: 1200px) {
  .pdp-look__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* También te puede gustar ------------------------------------------------------------------------- */
.pdp-related__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  margin: 28px calc(var(--d-gutter) * -1) 0;
  padding-inline: var(--d-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--d-gutter);
  scrollbar-width: none;
}
.pdp-related__track::-webkit-scrollbar { display: none; }
.pdp-related__track > * { min-width: 0; scroll-snap-align: start; }
@media (min-width: 768px) {
  .pdp-related__track { grid-auto-columns: 38%; gap: 16px; }
}
@media (min-width: 992px) {
  .pdp-related__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 20px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
}

.pdp-compare { align-self: flex-start; gap: 8px; }
.pdp-compare[aria-pressed='true'] { background: var(--d-gray-200); color: var(--d-black); }

/* Comparador -------------------------------------------------------------------------------------- */
.compare { padding-block: clamp(32px, 6vw, 80px) 96px; }
.compare__header { max-width: 760px; margin-bottom: 40px; }
.compare__header .d-breadcrumb { margin-bottom: 28px; }
.compare__intro { max-width: 620px; margin: 14px 0 0; color: var(--d-text-muted); line-height: 1.65; }
.compare__scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.compare__scroll:focus-visible { outline: 2px solid var(--d-focus-color); outline-offset: 3px; }
.compare__table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.compare__table th, .compare__table td { min-width: 210px; padding: 18px; border: var(--d-line); text-align: left; vertical-align: top; }
.compare__table > thead > tr > th:first-child,
.compare__table > tbody > tr > th { width: 150px; min-width: 150px; background: var(--d-white-warm); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.compare-card { position: relative; display: grid; gap: 12px; }
.compare-card__media { display: block; aspect-ratio: var(--d-ratio-product); overflow: hidden; background: var(--d-media-bg); }
.compare-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--d-photo-position); }
.compare-card h2 { margin: 0; font-family: var(--d-font-ui); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.compare-card__remove { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: rgba(255,255,255,.94); color: var(--d-black); }
.compare-card__remove .d-icon { width: 18px; height: 18px; }
.compare__na { color: var(--d-text-muted); }
.compare-bar { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1035; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--d-black); color: var(--d-white); box-shadow: 0 10px 35px rgba(0,0,0,.25); font-size: .75rem; }
.compare-bar .btn-d { background: var(--d-white); color: var(--d-black); }
.compare-bar__clear { min-height: 36px; padding: 0 4px; border: 0; background: transparent; color: inherit; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 575.98px) {
  .compare-bar { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; justify-content: space-between; }
  .compare__table th, .compare__table td { min-width: 190px; padding: 14px; }
}

/* Barra fija mobile ------------------------------------------------------------------------------- */
.pdp-sticky .d-sticky-bar__action { min-height: 44px; padding-inline: 16px; }
.pdp-sticky__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 2px;
  overflow: hidden;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pdp-sticky__price { font-weight: 500; }
.pdp-sticky__price del { margin-left: 4px; color: var(--d-text-muted); font-size: .75rem; font-weight: 400; }
.pdp-sticky__size { color: var(--d-text-muted); font-size: .75rem; }
.pdp-sticky__size[hidden] { display: none; }
@media (max-width: 419.98px) {
  .pdp-sticky__price del { display: none; }
}
@media (max-width: 991.98px) {
  body.pdp-page.has-sticky-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Lightbox ---------------------------------------------------------------------------------------- */
[data-pdp-lightbox] .d-modal__body { position: relative; display: flex; padding: 0; overflow: hidden; }
.pdp-lightbox { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; }
.pdp-lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--d-media-bg);
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
}
/* Centrada con su proporción real (sin franjas): el origen del zoom se mide sobre la foto, no sobre el escenario. */
.pdp-lightbox__img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  transform-origin: 50% 50%;
  transition: transform var(--d-dur) var(--d-ease), opacity var(--d-dur-fast) ease;
  -webkit-user-drag: none;
}
.pdp-lightbox__stage.is-zoomed { cursor: zoom-out; touch-action: none; }
.pdp-lightbox__stage.is-zoomed .pdp-lightbox__img { transform: scale(2); }
.pdp-lightbox__stage.is-loading .pdp-lightbox__img { opacity: .25; }
.pdp-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid var(--d-gray-200);
  border-top-color: var(--d-black);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.pdp-lightbox__stage.is-loading .pdp-lightbox__spinner { opacity: 1; animation: d-spin .8s linear infinite; }
.pdp-lightbox__nav {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .94);
  color: var(--d-black);
  cursor: pointer;
}
.pdp-lightbox__nav--prev { left: 12px; }
.pdp-lightbox__nav--next { right: 12px; }
.pdp-lightbox__nav:focus-visible,
.pdp-lightbox__zoom:focus-visible { outline: 2px solid var(--d-focus-color); outline-offset: 2px; }
@media (hover: hover) {
  .pdp-lightbox__nav:hover { background: var(--d-black); color: var(--d-white); }
}
.pdp-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 12px 6px 20px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  border-top: var(--d-line);
  background: var(--d-white);
}
.pdp-lightbox__counter { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pdp-lightbox__zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.pdp-lightbox__zoom[aria-pressed='true'] { font-weight: 700; }

/* Guía de talles (modal de la ficha y quick add de CART) ------------------------------------------ */
.pdp-guide { display: grid; gap: 20px; }
.pdp-guide__name { margin: 0; font-family: var(--d-font-display); font-size: var(--d-fs-h4); font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
.pdp-guide__intro { margin: 0; color: var(--d-text-muted); font-size: .875rem; line-height: 1.6; }
.pdp-guide__table tbody th:first-child,
.pdp-guide__table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--d-white); }
.pdp-guide__table-wrap:focus-visible { outline: 2px solid var(--d-focus-color); outline-offset: 2px; }
.pdp-guide__note { margin: -8px 0 0; color: var(--d-text-muted); font-size: .75rem; }
.pdp-guide__pending { display: grid; gap: 12px; justify-items: start; padding: 20px; border: 1px dashed var(--d-gray-500); font-size: .875rem; line-height: 1.55; }
.pdp-guide__cta { gap: 8px; }
.pdp-guide__sizes { margin: 0; color: var(--d-text-muted); font-size: .75rem; letter-spacing: .04em; }
.pdp-guide__how { display: grid; gap: 12px; padding-top: 20px; border-top: var(--d-line); }
.pdp-guide__how-title { margin: 0; }
.pdp-guide__how-body { display: grid; gap: 16px; }
.pdp-guide__how-text { margin: 0; font-size: .875rem; line-height: 1.7; }
.pdp-guide__how-media { margin: 0; background: var(--d-media-bg); }
.pdp-guide__how-media img { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .pdp-guide__how-body:has(.pdp-guide__how-media) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.pdp-guide--compact { gap: 14px; }
.pdp-guide--compact .d-table th,
.pdp-guide--compact .d-table td { padding: 8px 10px; }
.pdp-guide--compact .pdp-guide__pending { padding: 14px; font-size: .8125rem; }
.pdp-guide--compact .pdp-guide__how { padding-top: 14px; }
.pdp-guide--compact .pdp-guide__how-text { font-size: .8125rem; }
.pdp-guide--compact .pdp-guide__how-body { grid-template-columns: minmax(0, 1fr); }
