/* ============================================
   IMAGE ZOOM LIGHTBOX
   ============================================ */

.iz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(15, 23, 42, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.iz-lightbox.is-open { display: flex; }

.iz-stage {
    width: 90vw;
    height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    cursor: zoom-in;
}

.iz-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 200ms ease, transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}
.iz-img.is-zoomed {
    transform: scale(2);
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}

.iz-close,
.iz-prev,
.iz-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.iz-close:hover,
.iz-prev:hover,
.iz-next:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.08);
}

.iz-close { top: 24px; right: 24px; }
.iz-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.iz-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.iz-prev:hover { transform: translateY(-50%) scale(1.08); }
.iz-next:hover { transform: translateY(-50%) scale(1.08); }

.iz-counter,
.iz-hint {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 13px;
    pointer-events: none;
}
.iz-counter {
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.iz-hint {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0.65;
}

@media (max-width: 640px) {
    .iz-close { top: 16px; right: 16px; width: 40px; height: 40px; }
    .iz-prev { left: 8px; }
    .iz-next { right: 8px; }
    .iz-prev, .iz-next { width: 40px; height: 40px; }
    .iz-stage { width: 96vw; height: 80vh; }
    .iz-counter { top: 20px; font-size: 12px; }
    .iz-hint { bottom: 16px; font-size: 11px; }
}

/* Zoom-in cursor hint on the actual product image */
#pp-main-image { cursor: zoom-in; transition: opacity 0.3s ease; }
