/* Product detail — gallery zoom & lightbox (layout in product-detail.css) */

.product-gallery-zoom-lens {
  display: none;
  position: absolute;
  z-index: 2;
  width: 142px;
  height: 142px;
  pointer-events: none;
  background-color: #fff;
  background-repeat: no-repeat;
  border: 2px solid var(--pd-gold, #c8953c);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(8, 36, 74, .18);
}

.product-gallery-main.is-zooming .product-gallery-zoom-lens {
  display: block;
}

body.product-lightbox-open {
  overflow: hidden;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 90px 84px;
  background: rgba(3, 12, 24, .88);
}

.product-lightbox[aria-hidden="false"] {
  display: flex;
}

.product-lightbox-close,
.product-lightbox-control {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .18s ease;
}

.product-lightbox-close:hover,
.product-lightbox-close:focus-visible,
.product-lightbox-control:hover,
.product-lightbox-control:focus-visible {
  color: var(--pd-gold, #c8953c);
  outline: none;
}

.product-lightbox-close {
  top: 14px;
  right: 22px;
  padding: 0 8px;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.product-lightbox-control {
  top: 50%;
  padding: 12px;
  transform: translateY(-50%);
  font-size: 68px;
  font-weight: 200;
  line-height: .7;
}

.product-lightbox-prev {
  left: 22px;
}

.product-lightbox-next {
  right: 22px;
}

.product-lightbox-figure {
  display: grid;
  max-width: min(100%, 1100px);
  max-height: 100%;
  margin: 0;
  justify-items: center;
  gap: 12px;
}

.product-lightbox-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 220px);
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: #fff;
}

.product-lightbox-caption {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.2;
}

.product-lightbox-thumbs {
  position: absolute;
  bottom: 17px;
  left: 50%;
  display: flex;
  max-width: calc(100% - 180px);
  gap: 8px;
  overflow: auto;
  padding: 2px;
  transform: translateX(-50%);
}

.product-lightbox-thumbs button {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 3px;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
}

.product-lightbox-thumbs button:hover,
.product-lightbox-thumbs button:focus-visible,
.product-lightbox-thumbs button.is-active {
  border-color: var(--pd-gold, #c8953c);
  outline: none;
}

.product-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 520px) {
  .product-lightbox {
    padding: 64px 48px 88px;
  }

  .product-lightbox-close {
    top: 13px;
    right: 15px;
    font-size: 38px;
  }

  .product-lightbox-control {
    padding: 8px;
    font-size: 50px;
  }

  .product-lightbox-prev {
    left: 8px;
  }

  .product-lightbox-next {
    right: 8px;
  }

  .product-lightbox-figure img {
    max-width: calc(100vw - 100px);
    max-height: calc(100vh - 190px);
  }

  .product-lightbox-thumbs {
    bottom: 16px;
    max-width: calc(100% - 48px);
  }
}
