/* ── Product Image Lightbox ── */

.product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: default;
}

.product-lightbox__img {
    display: block;
    max-width: calc(100% - 80px);
    max-height: calc(100% - 80px);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.product-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: var(--color-bg-hover, #f5f5f5);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-lightbox__close:hover {
    background: var(--color-bg-hover, #e0e0e0);
    color: #333;
}

.product-lightbox__prev,
.product-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    background: var(--color-bg-hover, #f5f5f5);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-lightbox__prev {
    left: 20px;
}

.product-lightbox__next {
    right: 20px;
}

.product-lightbox__prev:hover,
.product-lightbox__next:hover {
    background: var(--color-bg-hover, #e0e0e0);
    color: #333;
}

/* ── Responsive ── */
@media (max-width: 575px) {
    .product-lightbox__close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border-radius: 4px;
    }

    .product-lightbox__prev,
    .product-lightbox__next {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }

    .product-lightbox__prev {
        left: 10px;
    }

    .product-lightbox__next {
        right: 10px;
    }

    .product-lightbox__img {
        max-width: calc(100% - 60px);
        max-height: calc(100% - 40px);
    }

    .product-lightbox__prev i,
    .product-lightbox__next i {
        width: 16px;
        height: 16px;
    }
}
