/* ============================================================
   RAMADAN THEME - Festive overlay keeping JumboTech identity
   Preserves the orange brand; adds gold/crescent decorative layer
   ============================================================ */

/* ── Ramadan Greeting Badge in Top Bar ───────────────────────── */
.ramadan-greeting {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #B8860B, #DAA520, #B8860B);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 20px;
    animation: ramadanGlow 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

@keyframes ramadanGlow {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(218, 165, 32, 0.5);
    }

    50% {
        box-shadow: 0 0 18px rgba(218, 165, 32, 0.9), 0 0 30px rgba(218, 165, 32, 0.3);
    }
}

/* ── Golden Animated Ramadan Banner Strip ────────────────────── */
.ramadan-banner-strip {
    background: linear-gradient(90deg, #B8860B 0%, #DAA520 30%, #FFD700 50%, #DAA520 70%, #B8860B 100%);
    background-size: 200% auto;
    color: #1A1A1A;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 0;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    animation: bannerGoldFlow 4s linear infinite;
}

@keyframes bannerGoldFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.ramadan-banner-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: bannerShine 3s linear infinite;
}

@keyframes bannerShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ── Hanging Lanterns Decoration Bar ─────────────────────────── */
.ramadan-lanterns-bar {
    background: #fff;
    text-align: center;
    overflow: hidden;
    height: 90px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.ramadan-lanterns-bar img {
    height: 90px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    mix-blend-mode: multiply;
    /* blends transparent areas with white bg */
    opacity: 0.85;
}

/* ── Top Bar — keep original dark, add subtle gold line ──────── */
.ramadan-theme .top-bar {
    border-bottom: 2px solid #B8860B;
}

/* ── Header — minimal tweak: warm gold bottom line ───────────── */
.ramadan-theme .header {
    border-bottom-color: rgba(218, 165, 32, 0.4);
}

.ramadan-theme .header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DAA520, #FFD700, #DAA520, transparent);
    background-size: 200% auto;
    animation: headerGoldLine 3s linear infinite;
    pointer-events: none;
}

@keyframes headerGoldLine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── Search box — keep orange accent, focus ring unchanged ───── */
/* (no overrides needed — orange is the brand) */

/* ── NAV BAR — keep white background, add gold bottom border ─── */
.ramadan-theme .nav {
    border-bottom: 3px solid #B8860B;
    position: relative;
}

/* subtle festive star motif overlay on nav */
.ramadan-theme .nav::after {
    content: '✦  ☽  ✦  ☽  ✦  ☽  ✦  ☽  ✦  ☽  ✦';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 6px;
    color: #B8860B;
    opacity: 0.55;
    pointer-events: none;
    white-space: nowrap;
}

/* Deals nav link gets a subtle gold tint */
.ramadan-theme .nav-item.highlight {
    color: var(--primary);
    /* keep original orange */
}

/* ── HERO SECTION — preserve brand slides, add crescent motif ── */
.ramadan-theme .hero {
    position: relative;
}

/* floating crescent watermark top-right of hero */
.ramadan-theme .hero::after {
    content: '☽';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 80px;
    color: rgba(218, 165, 32, 0.12);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

/* ── Side hero banners — keep original purple/orange, add gold border */
.ramadan-theme .hero-banner-1,
.ramadan-theme .hero-banner-2 {
    border: 1px solid rgba(218, 165, 32, 0.35);
    box-shadow: 0 4px 20px rgba(218, 165, 32, 0.1);
}

/* ── USP / Feature Bar — add very light gold tint ───────────── */
.ramadan-theme .usp-bar {
    background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
}

/* USP icon ring in gold on hover (overrides to gold instead of orange when ramadan) */
.ramadan-theme .usp-item:hover .usp-icon {
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: #fff;
    border-color: transparent;
}

/* ── Section Titles — add a tiny crescent prefix ─────────────── */
.ramadan-theme .section-title::before {
    content: '🌙 ';
    font-size: 0.75em;
    vertical-align: middle;
}

/* ── PRODUCT CARDS — keep original look; add gold shimmer on hover */
.ramadan-theme .product-card {
    position: relative;
    overflow: hidden;
}

/* gold shimmer top bar appears only on hover */
.ramadan-theme .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8860B, #FFD700, #DAA520, #B8860B);
    background-size: 200% auto;
    opacity: 0;
    transition: opacity 0.3s;
    animation: goldFlow 2.5s linear infinite;
    z-index: 3;
}

.ramadan-theme .product-card:hover::before {
    opacity: 1;
}

@keyframes goldFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ── Cart Badge — keep orange, just ensure it shows ─────────── */
/* (no override needed) */

/* ── Newsletter Section — add subtle gold border top/bottom ──── */
.ramadan-theme .newsletter {
    border-top: 3px solid #B8860B;
    border-bottom: 3px solid #B8860B;
    position: relative;
}

/* crescent watermark inside newsletter */
.ramadan-theme .newsletter::before {
    content: '☽';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    color: rgba(218, 165, 32, 0.06);
    pointer-events: none;
}

/* ── FOOTER — keep existing dark bg, add gold top border ─────── */
.ramadan-theme footer,
.ramadan-theme .footer {
    border-top: 3px solid #B8860B;
    position: relative;
    overflow: hidden;
}

/* crescent watermark in footer */
.ramadan-theme footer::after,
.ramadan-theme .footer::after {
    content: '☽';
    position: absolute;
    bottom: 15%;
    right: 3%;
    font-size: 140px;
    color: rgba(218, 165, 32, 0.05);
    pointer-events: none;
    line-height: 1;
}

/* footer col headings get a gold accent */
.ramadan-theme .footer-col h4 {
    position: relative;
    padding-bottom: 6px;
}

.ramadan-theme .footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #DAA520;
    border-radius: 2px;
}

/* ── Social links — gold ring on hover ───────────────────────── */
.ramadan-theme .footer-social a:hover {
    border-color: #DAA520 !important;
    color: #DAA520 !important;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.4);
}

/* ── Payment icons — subtle gold border on row ───────────────── */
.ramadan-theme .footer-payment-row {
    border-top: 1px solid rgba(218, 165, 32, 0.2);
}

/* ── Breadcrumb — very subtle warm tint ──────────────────────── */
.ramadan-theme .breadcrumb {
    background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
}

/* ── Pagination — active page gets gold accent ───────────────── */
.ramadan-theme .pagination .page-item.active .page-link,
.ramadan-theme [aria-current="page"] {
    background: linear-gradient(135deg, #B8860B, #DAA520) !important;
    border-color: #B8860B !important;
    color: #fff !important;
}

/* ── Input focus — keep orange, just a hint of gold ─────────── */
/* (no override — orange brand is correct) */

/* ── RAMADAN OFFER BADGE (reusable utility class) ────────────── */
.ramadan-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #B8860B, #DAA520);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    animation: ramadanGlow 2.5s ease-in-out infinite;
}

/* ── Category Cards — gold hover border ──────────────────────── */
.ramadan-theme .category-card:hover {
    border: 1px solid rgba(218, 165, 32, 0.4);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.12);
}

/* ── Filter / Tab Active — keep orange ───────────────────────── */
/* (no override needed) */

/* ── Toast / Snackbar — subtle gold left border ──────────────── */
.ramadan-theme #snackbar {
    border-left: 3px solid #DAA520 !important;
}

/* ── Star Ratings — keep gold (they should already be #fbbf24) ─ */
.ramadan-theme .product-rating i {
    color: #DAA520 !important;
}

/* ── Scroll-to-top button — keep orange ─────────────────────── */
/* (no override needed) */

/* ── Mobile nav — keep existing styling ──────────────────────── */
/* (no override needed) */

/* ── Ramadan Divider Utility ─────────────────────────────────── */
.ramadan-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.ramadan-divider::before,
.ramadan-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #DAA520, transparent);
}

.ramadan-divider::before {
    left: 0;
}

.ramadan-divider::after {
    right: 0;
}

.ramadan-divider span {
    color: #B8860B;
    font-size: 16px;
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 12px;
}

/* ── Horizontal Products dark section — keep black bg ───────── */
/* (no override needed — black bg in this section looks fine) */

/* ── Phone Showcase — keep existing dark bg identity ─────────── */
/* Subtle: phone glow switches to gold */
.ramadan-theme .phone-glow {
    background: radial-gradient(ellipse, #DAA520 0%, rgba(218, 165, 32, 0) 70%);
    filter: blur(20px);
}

.ramadan-theme .phone-ring {
    border-color: rgba(218, 165, 32, 0.2);
}

.ramadan-theme .phone-feature:hover {
    border-color: rgba(218, 165, 32, 0.5) !important;
}

/* ── Floating stars particle utility (optional, non-intrusive) ── */
@keyframes twinkleStar {

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

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 768px) {
    .ramadan-lanterns-bar {
        height: 60px;
    }

    .ramadan-lanterns-bar img {
        height: 60px;
    }

    .ramadan-banner-strip {
        font-size: 10px;
        padding: 6px 10px;
        letter-spacing: 0.3px;
    }

    .ramadan-theme .hero::after {
        font-size: 50px;
    }

    .ramadan-theme .nav::after {
        display: none;
    }
}