/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.popup-body {
    position: relative;
    padding: 40px 30px;
    text-align: center;
}

.popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/popup_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
}

/* Semi-transparent overlay to ensure text readability */
.popup-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.popup-text {
    position: relative;
    z-index: 1;
}

.popup-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
}

.promo-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 2px solid #ffb7b2;
    padding-bottom: 2px;
}

.popup-text .highlight {
    font-size: 1.5rem;
    color: #e57373;
    margin-bottom: 25px;
    font-weight: 700;
}

.discount-details {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(229, 115, 115, 0.2);
}

.discount-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #444;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.discount-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.discount-item .label {
    font-weight: 500;
}

.discount-item .value strong {
    color: #e57373;
    font-weight: 700;
}

.total-save {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.btn-popup {
    display: inline-block;
    padding: 12px 30px;
    background: #e57373;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(229, 115, 115, 0.3);
}

.btn-popup:hover {
    background: #ef5350;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 115, 115, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 0 10px;
    }

    .popup-text h2 {
        font-size: 1.8rem;
    }

    .popup-text .highlight {
        font-size: 1.3rem;
    }
}