/* ============================================================
   SOAP GALLERY LIGHTBOX STYLES
   ============================================================ */

@keyframes galleryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes galleryFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.soap-gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.soap-gallery-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.soap-gallery-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10002;
}

.soap-gallery-close:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.soap-gallery-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10002;
  line-height: 1;
}

.soap-gallery-prev {
  left: 1rem;
}

.soap-gallery-next {
  right: 1rem;
}

.soap-gallery-nav:hover {
  background: rgba(124, 58, 237, 0.4);
  border-color: rgba(124, 58, 237, 0.6);
}

.soap-gallery-main {
  text-align: center;
  width: 100%;
}

.soap-gallery-main-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(180, 140, 255, 0.2);
  box-shadow: 0 0 40px rgba(120, 60, 200, 0.2);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.soap-gallery-caption {
  color: rgba(200, 170, 255, 0.85);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0.75rem 0 0.25rem;
}

.soap-gallery-counter {
  color: rgba(200, 170, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

.soap-gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 700px;
}

.soap-gallery-thumb {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(180, 140, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  width: 72px;
  height: 72px;
}

.soap-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.soap-gallery-thumb:hover {
  border-color: rgba(180, 140, 255, 0.5);
  transform: scale(1.05);
}

.soap-gallery-thumb.active {
  border-color: #a78bfa;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

/* View All Soaps Button */
.soap-gallery-btn {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  color: #c084fc;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.75rem auto;
  display: block;
}

.soap-gallery-btn:hover {
  background: rgba(124, 58, 237, 0.3);
  color: white;
}

/* Soap card image hover state */
.soap-card-img:hover,
.soap-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

@media (max-width: 600px) {
  .soap-gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .soap-gallery-prev { left: 0.25rem; }
  .soap-gallery-next { right: 0.25rem; }
  .soap-gallery-thumb {
    width: 56px;
    height: 56px;
  }
}
