/* Mobile-First Product Image Slider */
/* Reusable component for smooth touch-enabled image sliders */

.product-image-slider {
  position: relative;
  width: 100%;
  height: 400px;
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  touch-action: pan-y pinch-zoom;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slider-slide img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.slider-slide.active img {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0.8; }
  to { opacity: 1; }
}


/* Modern minimalistic dot indicators */
.slider-indicators {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  backdrop-filter: blur(10px);
}

.indicator-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Hide indicators when there's only one image */
.product-image-slider[data-count="1"] .slider-indicators {
  display: none;
}

/* Touch feedback */
.slider-slide {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for touch devices */
.slider-track {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .product-image-slider {
    height: 600px;
  }
  
  .indicator-dot {
    width: 10px;
    height: 10px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .product-image-slider {
    height: 700px;
  }
}