/* ===== DISCOUNT BANNER STYLES ===== */

.discount-banner {
    background: linear-gradient(135deg, #e61e2a, #ff4655);
    color: white;
    text-align: center;
    padding: 12px 20px;
    position: fixed;
    top: 90px; /* Well below the navbar */
    left: 0;
    right: 0;
    z-index: 999; /* Below navbar z-index */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease;
}

.discount-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.discount-banner-text {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-banner-code {
    background: white;
    color: #e61e2a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border: 2px dashed #e61e2a;
}

.discount-banner-btn {
    background: white;
    color: #e61e2a;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid white;
    font-size: 0.9rem;
}

.discount-banner-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.discount-banner-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.discount-banner-close:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) rotate(90deg);
}

/* No navbar adjustment needed - banner sits below navbar */

/* Adjust banner position when navbar is scrolled/sticky */
.navbar.scrolled ~ .discount-banner,
body.banner-visible.scrolled .discount-banner {
    top: 80px; /* Smaller navbar height when scrolled */
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .discount-banner {
        padding: 10px 15px;
    }
    
    .discount-banner-content {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .discount-banner-text {
        font-size: 0.85rem;
        flex-basis: 100%;
    }
    
    .discount-banner-code {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .discount-banner-btn {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .discount-banner-close {
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}
