/**
 * High-Resolution Product Image Zoom Lens & Lightbox Styles (C6)
 */

.amazon-zoom-lens {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid #0284c7;
  background: rgba(2, 132, 199, 0.15);
  pointer-events: none;
  opacity: 0;
  border-radius: 4px;
  transition: opacity 0.15s ease;
  z-index: 10;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
}

.amazon-zoom-lens.is-active {
  opacity: 1;
}

.amazon-zoom-window {
  position: absolute;
  border: 1px solid #cbd5e1;
  background-repeat: no-repeat;
  background-color: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.amazon-zoom-window.is-active {
  opacity: 1;
}

/* Lightbox Modal */
.amazon-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.amazon-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.amazon-lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amazon-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

.amazon-lightbox-stage {
  max-width: 80vw;
  max-height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amazon-lightbox-stage img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease-out;
  cursor: grab;
}

.amazon-lightbox-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.amazon-lightbox-controls button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.amazon-lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
}
