/* Simple Product Zoom – white lightbox (bikini-bible style) */

.spz-open {
  overflow: hidden !important;
}

.spz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30000000000001;
  background: #fff;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}

.spz-overlay.is-open {
  display: flex;
}

/* Top bar */
.spz-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  min-height: 52px;
  box-sizing: border-box;
}

.spz-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spz-title .spz-back {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px 4px 0;
  color: #111;
}

.spz-close {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.spz-close:hover {
  background: #f5f5f5;
}

/* Main stage */
.spz-stage {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.spz-stage-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  cursor: zoom-in;
}

.spz-stage-inner.is-zoomed {
  cursor: zoom-out;
}

.spz-stage img {
  max-width: min(90vw, 900px);
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center center;
  pointer-events: none;
}

.spz-stage-inner.is-zoomed img {
  max-width: none;
  max-height: none;
  transform: scale(2);
}

/* Nav arrows */
.spz-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.spz-nav:hover {
  background: #f5f5f5;
}

.spz-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.spz-prev {
  left: 16px;
}

.spz-next {
  right: 16px;
}

/* Bottom thumbs */
.spz-thumbs {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px 24px;
  flex-wrap: wrap;
}

.spz-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #f0f0f0;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.7;
}

.spz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.spz-thumb.is-active {
  border-color: #111;
  opacity: 1;
}

.spz-thumb:hover {
  opacity: 1;
}

/* Product page: clickable cursor */
.js-qv-product-cover,
.product-cover img,
.images-container .product-cover img,
#content-wrapper .product-images img,
.product-images img,
.product-main-images img {
  cursor: zoom-in;
}

/* Mobile */
@media (max-width: 767px) {
  .spz-title {
    font-size: 13px;
    max-width: 60%;
  }

  .spz-nav {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .spz-prev {
    left: 8px;
  }

  .spz-next {
    right: 8px;
  }

  .spz-thumb {
    width: 48px;
    height: 48px;
  }

  .spz-stage img {
    max-width: 94vw;
    max-height: calc(100vh - 200px);
  }

  .spz-stage-inner.is-zoomed img {
    transform: scale(2.4);
  }
}
