/* ============================================
   LIGHTBOX COMPONENT
   Modern image lightbox for product gallery
   ============================================ */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: rgba(35, 103, 115, 0.9);
  border: 2px solid rgba(35, 103, 115, 1);
  border-radius: 50%;
  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.3);
}

.lightbox-close:hover {
  background: rgba(45, 127, 141, 1);
  border-color: rgba(45, 127, 141, 1);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(35, 103, 115, 0.5);
}

.lightbox-close svg {
  width: 26px;
  height: 26px;
  color: white;
  stroke-width: 2.5;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(35, 103, 115, 0.9);
  border: 2px solid rgba(35, 103, 115, 1);
  border-radius: 50%;
  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.3);
}

.lightbox-nav:hover {
  background: rgba(45, 127, 141, 1);
  border-color: rgba(45, 127, 141, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(35, 103, 115, 0.5);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-nav svg {
  width: 26px;
  height: 26px;
  color: white;
  stroke-width: 2.5;
}

.lightbox-counter {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(35, 103, 115, 0.95);
  border: 2px solid rgba(35, 103, 115, 1);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-nav svg {
    width: 22px;
    height: 22px;
  }
  
  .lightbox-nav.prev {
    left: 10px;
  }
  
  .lightbox-nav.next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
  
  .lightbox-close svg {
    width: 22px;
    height: 22px;
  }
  
  .lightbox-counter {
    bottom: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
