/**
 * Sweets Website
 * =============================================================
 * File: promo-popup.css
 * Description: Premium styles for promotional popup
 * =============================================================
 */

.c-promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.c-promo-popup.is-visible {
    display: flex;
    pointer-events: auto;
}

.c-promo-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.c-promo-popup.is-visible .c-promo-popup__overlay {
    opacity: 1;
}

.c-promo-popup__container {
    position: relative;
    width: 400px;
    /* Slimmer for vertical banner */
    max-width: 90%;
    max-height: 95vh;
    /* Increased to allow vertical banner */
    background: transparent;
    /* Changed to allow full visual from image */
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: none;
    /* Shadow handled by image or overall container if needed */
    z-index: 10;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-promo-popup.is-visible .c-promo-popup__container {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}

/* Close Button */
.c-promo-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #333;
}

.c-promo-popup__close:hover {
    background: #f8f9fa;
    transform: rotate(90deg);
    color: #7b1d1d;
}

/* Image Wrap */
.c-promo-popup__image-wrap {
    width: 100%;
    background: #fdf8f2;
}

.c-promo-popup__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Content Area */
.c-promo-popup__content {
    padding: 2.5rem 3rem;
    background: #ffffff;
}

.c-promo-popup__brand {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.c-promo-popup__title {
    font-family: var(--ff-heading, 'Quando', serif);
    font-size: 2.8rem;
    color: #7b1d1d;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.c-promo-popup__subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Highlights */
.c-promo-popup__highlights {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 1.2rem;
    background: #fdfaf5;
    border-radius: 12px;
    border: 1px solid #eee;
}

.c-promo-popup__highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
}

.c-promo-popup__highlight-item i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Button */
.c-promo-popup__btn {
    background: #f59223;
    /* Branded Orange from screenshot */
    color: #ffffff !important;
    padding: 16px 45px;
    border-radius: 8px;
    /* Slightly more modern than rounded for this style */
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 146, 35, 0.3);
    transition: all 0.3s ease;
    width: 90%;
    /* Wide button like screenshot */
    margin: 0 auto;
}

.c-promo-popup__btn:hover {
    transform: translateY(-2px);
    background: #e0821d;
    box-shadow: 0 8px 25px rgba(245, 146, 35, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .c-promo-popup__container {
        width: 90%;
        max-width: 360px;
        margin: 10px;
    }

    .c-promo-popup__content {
        padding: 1.5rem 1rem;
    }

    .c-promo-popup__btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .c-promo-popup__container {
        max-width: 202px;
    }

    .c-promo-popup__close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
        font-size: 1.25rem;
    }

    .c-promo-popup__content {
        padding: 1rem 0.75rem;
    }

    .c-promo-popup__btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Accessibility */
body.promo-popup-open {
    overflow: hidden;
}