/* ================================
   PRODUCT POPUP MODAL
================================ */

/* Overlay */
.product-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active state */
.product-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Popup container */
.product-popup-content {
    background: #ffffff;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* Image */
.product-popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px 16px 0 0;
}

/* Body */
.product-popup-body {
    padding: 40px;
}

/* Close button */
.product-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

/* Lock background scroll */
body.popup-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .product-popup-body {
        padding: 24px;
    }
}
