.swiper-pagination-bullet {
  background: rgb(var(--primary)) !important;
}
.swiper-pagination-bullet-active {
  background: rgb(var(--primary)) !important;
}

/* Product Magnifier Styles */
.magnifier-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.magnifier {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid #dc2626;
  overflow: hidden;
  z-index: 1000;
  display: none;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
  background: white;
}

.magnifier__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.1s ease-out;
}

.magnifier-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.magnifier-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #dc2626;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.magnifier-btn:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.1);
}

.magnifier-btn:active {
  transform: scale(0.95);
}

.magnifier-btn.active {
  background: #dc2626;
  color: white;
}

.magnifier-lens {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid #dc2626;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  pointer-events: none;
  z-index: 5;
  display: none;
  transition: all 0.2s ease;
}

.magnifier-lens.active {
  display: block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.magnifier-zoom-level {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  display: none;
  backdrop-filter: blur(10px);
}

.magnifier-zoom-level.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.magnifier-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
  display: none;
  backdrop-filter: blur(10px);
  text-align: center;
  max-width: 200px;
}

.magnifier-hint.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.magnifier-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(220, 38, 38, 0.3);
  border-top: 3px solid #dc2626;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
  display: none;
}

.magnifier-loading.show {
  display: block;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .magnifier {
    width: 250px;
    height: 250px;
  }

  .magnifier-controls {
    top: 12px;
    right: 12px;
    gap: 6px;
  }

  .magnifier-btn {
    width: 36px;
    height: 36px;
  }

  .magnifier-lens {
    width: 80px;
    height: 80px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .magnifier {
    border: 4px solid #000;
  }

  .magnifier-btn {
    border: 3px solid #000;
    background: #fff;
    color: #000;
  }

  .magnifier-btn:hover {
    background: #000;
    color: #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .magnifier__img,
  .magnifier-btn,
  .magnifier-lens,
  .magnifier-zoom-level,
  .magnifier-hint {
    transition: none;
    animation: none;
  }
}
