/* ==============================================
   Lilith - Enhanced Product Zoom (Drift-style)
   ============================================== */

/* Zoom container - appears on click */
.lilith-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lilith-zoom-overlay.is-active {
  opacity: 1;
}

.lilith-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  cursor: zoom-out;
}

/* Close button */
.lilith-zoom-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 28px;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.2s;
}

.lilith-zoom-close:hover {
  opacity: 0.5;
}

/* Navigation arrows in zoom */
.lilith-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 80px;
  background: none;
  border: none;
  font-size: 36px;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.2s;
}

.lilith-zoom-nav:hover {
  opacity: 0.5;
}

.lilith-zoom-prev {
  left: 16px;
}

.lilith-zoom-next {
  right: 16px;
}

/* Dots indicator */
.lilith-zoom-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100000;
}

.lilith-zoom-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.lilith-zoom-dots .dot.active {
  background: #222;
}

/* Hover zoom on product page image */
.lilith-featured-image .lilith-featured-link {
  cursor: zoom-in !important;
}

/* Hide default Elementor lightbox trigger */
.lilith-featured-image .lilith-featured-link[data-lilith-lightbox] {
  cursor: zoom-in !important;
}

@media (max-width: 768px) {
  .lilith-zoom-overlay img {
    max-width: 100vw;
    max-height: 85vh;
  }
  .lilith-zoom-nav {
    width: 40px;
    font-size: 28px;
  }
}
