.gallery-thumb {
  display: block;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.gallery-thumb.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(7, 94, 234, .12);
}
.main-img {
  position: relative;
  width: 100%;
  font: inherit;
  cursor: zoom-in;
  overflow: hidden;
}
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(6, 27, 70, .82);
  color: #fff;
  border-radius: 99px;
  padding: 7px 11px;
  font-size: 12px;
  pointer-events: none;
}
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 8, 25, .92);
  padding: 28px;
}
.product-lightbox[hidden] { display: none !important; }
.product-lightbox > img {
  max-width: min(1200px, 90vw);
  max-height: 88vh;
  object-fit: contain;
  user-select: none;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close {
  right: 24px;
  top: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 36px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 72px;
  border-radius: 12px;
  font-size: 34px;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 13px;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 680px) {
  .gallery-thumb { width: 68px; height: 68px; }
  .zoom-hint { font-size: 11px; }
  .product-lightbox { padding: 12px; }
  .lightbox-nav { width: 42px; height: 58px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  .lightbox-close { right: 10px; top: 10px; }
}
