.product-details-section .product-left-box .pd-gallery-image-wrap {
  position: relative;
}

.product-details-section .product-left-box .pd-gallery-open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.product-details-section .product-left-box .pd-gallery-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.product-details-section .product-left-box .pd-gallery-image-wrap:hover .pd-gallery-zoom-hint,
.product-details-section .product-left-box .pd-gallery-open:focus-visible .pd-gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.pd-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: center;
  justify-content: center;
}

.pd-gallery-lightbox.is-open {
  display: flex;
}

.pd-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.pd-gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pd-gallery-lightbox__stage {
  width: 100%;
  max-height: calc(92vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery-lightbox__image {
  max-width: 100%;
  max-height: calc(92vh - 72px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
}

.pd-gallery-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}

.pd-gallery-lightbox__counter {
  font-size: 14px;
  min-width: 64px;
  text-align: center;
}

.pd-gallery-lightbox__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #232323;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pd-gallery-lightbox__btn:hover,
.pd-gallery-lightbox__btn:focus-visible {
  background: rgba(var(--primary-color), 1);
  outline: none;
}

.pd-gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.pd-gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.pd-gallery-lightbox__nav--prev {
  left: 16px;
}

.pd-gallery-lightbox__nav--next {
  right: 16px;
}

@media (max-width: 767.98px) {
  .pd-gallery-lightbox__nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .pd-gallery-lightbox__nav--prev {
    left: calc(50% - 52px);
  }

  .pd-gallery-lightbox__nav--next {
    right: calc(50% - 52px);
  }

  .product-details-section .product-left-box .pd-gallery-zoom-hint {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pd-gallery-lightbox-open {
  overflow: hidden;
}
