/* ============================================================
   PRODUCT DETAIL GALLERY LIGHTBOX
   ============================================================ */

.detail-img-main {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-img-main:hover {
    transform: scale(1.02);
}

.pasti-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pasti-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--pasti-red);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev {
    left: -70px;
}

.lightbox-nav-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-nav-prev {
        left: 10px;
    }
    .lightbox-nav-next {
        right: 10px;
    }
    .lightbox-nav {
        background: rgba(0, 0, 0, 0.3);
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}
