/* [NM2-PDP-LB-2026-05-29] Lightbox de galería de producto */
.nm2-pdp-lb {
  position: fixed; inset: 0;
  background: rgba(8, 12, 20, .92);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  animation: nm2-pdp-lb-in .18s ease-out;
}
@keyframes nm2-pdp-lb-in { from { opacity: 0; } to { opacity: 1; } }

.nm2-pdp-lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  user-select: none;
}

.nm2-pdp-lb-close,
.nm2-pdp-lb-prev,
.nm2-pdp-lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.nm2-pdp-lb-close:hover,
.nm2-pdp-lb-prev:hover,
.nm2-pdp-lb-next:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.05);
}

.nm2-pdp-lb-close {
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 28px; line-height: 1;
}

.nm2-pdp-lb-prev,
.nm2-pdp-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 36px; line-height: 1;
}
.nm2-pdp-lb-prev:hover { transform: translateY(-50%) scale(1.05); }
.nm2-pdp-lb-next:hover { transform: translateY(-50%) scale(1.05); }
.nm2-pdp-lb-prev { left: 24px; }
.nm2-pdp-lb-next { right: 24px; }

.nm2-pdp-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  border: 1px solid rgba(255,255,255,.2);
}

@media (max-width: 640px) {
  .nm2-pdp-lb-prev, .nm2-pdp-lb-next { width: 44px; height: 44px; font-size: 28px; }
  .nm2-pdp-lb-prev { left: 8px; }
  .nm2-pdp-lb-next { right: 8px; }
  .nm2-pdp-lb-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .nm2-pdp-lb-img { max-width: 96vw; max-height: 80vh; }
}

/* Cursor de zoom-in en la imagen principal */
#nm2-product-gallery-img { cursor: zoom-in; }

/* [NM2-PDP-FAV-2026-05-29] Estado activo del botón favorito en PDP cuando está en wishlist
   La regla base .nm2-product-gallery-main--epic .nm2-product-gallery-action:hover
   pinta el botón azul con texto blanco al hover. Sobrescribimos con la misma o mayor
   especificidad para garantizar el rojo persistente cuando está en wishlist. */
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist,
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist:hover,
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist:focus,
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist:active {
  background: #fff1f2 !important;
  border-color: #e11d48 !important;
  color: #e11d48 !important;
  transform: none !important;
}
/* El símbolo #i-heart tiene fill="none" stroke="currentColor";
   con currentColor=#e11d48 el stroke ya es rojo. Forzamos fill también para
   que el corazón se vea "lleno". */
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist svg,
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist svg use,
.nm2-product-gallery-main--epic .nm2-pdp-fav.o_in_wishlist svg path {
  color: #e11d48 !important;
  fill: #e11d48 !important;
  stroke: #e11d48 !important;
}
