/* Popup Promotion Styles */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #334155;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.popup-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffd700;
    color: #000;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-body {
    padding: 40px;
    text-align: center;
}

.popup-title {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.popup-product-name {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: 600;
}

.popup-description {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.popup-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .popup-image {
        height: 200px;
    }
    
    .popup-body {
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-product-name {
        font-size: 18px;
    }
    
    .popup-description {
        font-size: 14px;
    }
    
    .popup-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .popup-price {
        font-size: 18px;
        padding: 8px 15px;
        bottom: 15px;
        right: 15px;
    }
}

/* Animation for popup entrance */
@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-overlay.active .popup-content {
    animation: popupSlideIn 0.4s ease-out;
}
