/* ============================================
   PROMOTIONAL BANNER EXTENSION
   Mobile-first, closable banner with timer
   ============================================ */

/* Base Banner Styles - Mobile First (Compact Design) */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(135deg, #0F1C15 0%, #1a2e1a 100%);
    color: #ffffff;
    padding: 8px 40px 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.promo-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Content Container - Single Line on Mobile */
.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Hide fire icon on mobile */
.promo-banner-icon {
    display: none;
}

/* Main Text - Compact */
.promo-banner-text {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.promo-discount {
    background: #CCF381;
    color: #0F1C15;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-offer {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-offer strong {
    font-weight: 700;
    color: #CCF381;
}

/* Hide original price on mobile */
.promo-original-price {
    display: none;
}

/* Hide discount badge on small mobile */
.promo-mobile-text .promo-discount {
    display: none;
}

/* Mobile/Desktop text toggle */
.promo-mobile-text {
    display: flex;
}

.promo-desktop-text {
    display: none;
}

/* Timer - Compact */
.promo-timer {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-timer-icon {
    font-size: 11px;
}

/* CTA Button - Compact */
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #CCF381;
    color: #0F1C15;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-cta:hover {
    background: #bce36c;
    transform: scale(1.02);
}

.promo-cta-arrow {
    transition: transform 0.2s ease;
    font-size: 10px;
}

/* Close Button - Mobile */
.promo-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Body Offset - Mobile */
body.has-promo-banner {
    padding-top: 36px;
}

body.has-promo-banner .main-nav {
    top: 44px;
}

/* ============================================
   TABLET STYLES (480px+) - Show more content
   ============================================ */
@media (min-width: 480px) {
    .promo-banner {
        padding: 10px 50px 10px 16px;
        font-size: 13px;
    }

    .promo-banner-icon {
        display: inline;
        font-size: 16px;
        animation: pulse 1.5s infinite;
    }

    .promo-discount {
        font-size: 11px;
        padding: 3px 8px;
    }

    .promo-original-price {
        display: inline;
        text-decoration: line-through;
        opacity: 0.6;
        font-size: 11px;
    }

    /* Switch to desktop text at 600px+ */
    .promo-mobile-text {
        display: none;
    }

    .promo-desktop-text {
        display: flex;
    }

    .promo-timer {
        font-size: 12px;
        padding: 4px 10px;
    }

    .promo-cta {
        padding: 6px 14px;
        font-size: 12px;
    }

    body.has-promo-banner {
        padding-top: 42px;
    }

    body.has-promo-banner .main-nav {
        top: 50px;
    }
}

/* ============================================
   TABLET STYLES (768px+)
   ============================================ */
@media (min-width: 768px) {
    .promo-banner {
        padding: 12px 60px 12px 24px;
        font-size: 14px;
    }

    .promo-banner-content {
        gap: 12px;
    }

    .promo-banner-icon {
        font-size: 18px;
    }

    .promo-discount {
        font-size: 12px;
        padding: 4px 10px;
    }

    .promo-timer {
        padding: 5px 12px;
        font-size: 13px;
    }

    .promo-cta {
        padding: 8px 18px;
        font-size: 13px;
    }

    .promo-close {
        right: 16px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    body.has-promo-banner {
        padding-top: 46px;
    }

    body.has-promo-banner .main-nav {
        top: 58px;
    }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .promo-banner {
        padding: 12px 80px 12px 24px;
        font-size: 15px;
    }

    .promo-banner-content {
        gap: 16px;
    }

    .promo-banner-icon {
        font-size: 20px;
    }

    .promo-discount {
        font-size: 13px;
        padding: 5px 12px;
    }

    .promo-timer {
        font-size: 14px;
    }

    .promo-cta {
        padding: 8px 20px;
        font-size: 14px;
    }

    .promo-close {
        right: 24px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    body.has-promo-banner {
        padding-top: 48px;
    }

    body.has-promo-banner .main-nav {
        top: 60px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.promo-banner {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}