/* ======================================== 
   Global Discount Banner - Ramadan Design
======================================== */

/* Main Banner Container */
.global-discount-banner {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a472a 0%, #2d5f3f 50%, #1a472a 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Cairo', 'Poppins', sans-serif;
    overflow: hidden;
    border-bottom: 3px solid #fac564;
    display: none;
}

.global-discount-banner.active {
    display: flex;
}

.global-discount-banner.hidden {
    display: none !important;
}

/* Ramadan Background Image */
.ramadan-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.ramadan-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2);
}

/* Content Container */
.discount-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Icon - Ramadan Image */
.discount-banner-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.discount-banner-icon {
    font-size: 28px;
    animation: glow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes glow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }

    /* Added missing closing brace */

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
    }
}

/* Text */
/* Text Container */
.discount-banner-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Greeting Text */
.discount-banner-greeting {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2px;
}

/* Details Text (Discount + Timer) */
.discount-banner-details {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    color: #ffd700;
}

/* Timer */
.discount-banner-timer {
    background: rgba(250, 197, 100, 0.25);
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.4);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.discount-banner-timer .timer-label {
    opacity: 0.9;
}

.discount-banner-timer .timer-value {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Banner Actions */
.discount-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CTA Button */
.discount-banner-btn {
    background: linear-gradient(135deg, #fac564 0%, #f8b739 100%);
    color: #1a472a;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3), 0 4px 15px rgba(250, 197, 100, 0.6);
    border: 3px solid #ffd700;
    animation: glow-box 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes glow-box {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3), 0 4px 15px rgba(250, 197, 100, 0.6);
    }

    /* Added missing closing brace */

    50% {
        box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.5), 0 6px 25px rgba(250, 197, 100, 0.8);
    }
}

.discount-banner-btn:hover {
    background: linear-gradient(135deg, #f8b739 0%, #fac564 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.5), 0 8px 30px rgba(250, 197, 100, 0.9);
    text-decoration: none;
    color: #000;
}

/* Close Button */
.discount-banner-close {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    z-index: 1;
    font-weight: bold;
    line-height: 1;
}

.discount-banner-close:hover {
    background: rgba(220, 53, 69, 0.9);
    border-color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .global-discount-banner {
        top: 70px;
        padding: 10px 12px;
        gap: 10px;
    }

    .discount-banner-content {
        gap: 15px;
        flex-wrap: nowrap;
        /* Keep icon and text side-by-side */
        text-align: right;
        /* Ensure text aligns properly */
        justify-content: center;
    }

    .discount-banner-icon-img {
        width: 75px;
        /* Increased size */
        height: 75px;
    }

    .discount-banner-icon {
        font-size: 22px;
    }

    .discount-banner-text-container {
        align-items: flex-start;
        /* Align text to start (right in RTL) */
    }

    .discount-banner-greeting {
        font-size: 14px;
        text-align: right;
    }

    .discount-banner-details {
        font-size: 13px;
        line-height: 1.3;
        gap: 5px;
        justify-content: flex-start;
        /* Align details to start */
    }

    .discount-banner-timer {
        font-size: 10px;
        padding: 3px 6px;
    }

    .discount-banner-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .discount-banner-close {
        position: absolute;
        top: 5px;
        left: 5px;
        width: 26px;
        height: 26px;
        font-size: 16px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .discount-banner-greeting {
        font-size: 12px;
    }

    .discount-banner-details {
        font-size: 11px;
    }

    .discount-banner-timer {
        font-size: 9px;
        padding: 2px 5px;
    }

    .discount-banner-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        height: auto;
        opacity: 1;
    }

    /* Added missing closing brace */

    to {
        height: 0;
        opacity: 0;
        padding: 0;
    }
}