/**
 * Amazon Style Mobile Gallery - Swiper.js
 * Solo activo en pantallas < 992px
 *
 * @package    theme_amazon
 * @version    2.4.4
 */

/* ========================================
   MOBILE: Mostrar swiper, ocultar desktop
   ======================================== */

/* Por defecto: ocultar galería móvil */
.amazon-mobile-gallery {
  display: none;
}

@media (max-width: 991.98px) {
  /* Mostrar galería móvil */
  .amazon-mobile-gallery {
    display: block;
  }

  /* Ocultar galería desktop */
  .amazon-product-gallery {
    display: none !important;
  }
}

/* ========================================
   SWIPER CONTAINER
   ======================================== */

.amazon-mobile-swiper {
  width: 100%;
  background: #fff;
  border-radius: var(--amazon-radius, 8px);
  overflow: hidden;
}

.amazon-mobile-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  aspect-ratio: 1;
}

.amazon-mobile-gallery-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transform: translateZ(0);
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ========================================
   DOTS - ESTILO AMAZON
   ======================================== */

.amazon-mobile-dots {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  padding: 12px 0 8px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  transform: none !important;
}

/* Dot base */
.amazon-mobile-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  opacity: 1;
  margin: 0 !important;
  transition: background 0.25s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* Dot activo */
.amazon-mobile-dots .swiper-pagination-bullet-active {
  background: var(--amazon-accent, #e47911);
}

/* ========================================
   COUNTER (N de M) - fallback si no hay dots
   ======================================== */

.amazon-mobile-counter {
  text-align: center;
  font-size: 13px;
  color: var(--amazon-text-secondary, #565959);
  padding: 6px 0;
}
