.product-gallery-zoom-btn {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.dark .product-gallery-zoom-btn {
  background: rgba(15, 15, 15, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
}

.productMainSwiper img {
  cursor: zoom-in;
}

.productThumbsSwiper .swiper-slide {
  cursor: pointer;
}

.product-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.94);
  color: #fff;
}

.product-gallery-lightbox.is-open {
  display: flex;
}

.product-gallery-lightbox__stage {
  position: relative;
  width: min(1120px, calc(100vw - 2rem));
  height: min(78vh, calc(100dvh - 8.5rem));
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}

.product-gallery-lightbox.is-zoomed .product-gallery-lightbox__stage {
  cursor: grab;
}

.product-gallery-lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}

.product-gallery-lightbox__close,
.product-gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.product-gallery-lightbox__close {
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

.product-gallery-lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  transform: translateY(-50%);
}

.product-gallery-lightbox__nav.is-next {
  left: 1rem;
}

.product-gallery-lightbox__nav.is-prev {
  right: 1rem;
}

.product-gallery-lightbox__close:hover,
.product-gallery-lightbox__nav:hover {
  background: rgba(37, 99, 235, 0.9);
}

.product-gallery-lightbox__thumbs {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  padding: 0.25rem;
}

.product-gallery-lightbox__thumb {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.45;
  cursor: pointer;
}

.product-gallery-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-lightbox__thumb.is-active {
  opacity: 1;
  border-color: #2563eb;
}

.product-gallery-lightbox__hint {
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.62);
}

body.product-gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .product-gallery-lightbox__nav {
    display: none;
  }

  .product-gallery-lightbox__stage {
    height: min(72vh, calc(100dvh - 9.5rem));
  }

  .product-gallery-lightbox__hint {
    display: none;
  }
}
