/* ============================================================
   Diwali festival theme — aesthetic lights & lamps (no fireworks)
   Enable:  FESTIVAL_THEME=diwali
   Disable: FESTIVAL_THEME=off   (+ php artisan config:clear)
   ============================================================ */

body.festival-theme-diwali {
    /* Match Famberz site theme: black + brand red + gold accents */
    --festival-saffron: #ff9f43;
    --festival-gold: #f6c945;
    --festival-amber: #ffb347;
    --festival-maroon: #7a1212;
    --festival-deep: #0b0d13;
    --festival-rose: #fe0000;
    --festival-flame: #ff4757;
    --festival-indigo: #141722;
    --festival-violet: #1a1a1a;
    --festival-brand: #fe0000;
    background-color: #0b0d13 !important;
    position: relative;
    isolation: isolate;
}

body.festival-theme-diwali .fb-hero-promo,
body.festival-theme-diwali .fb-hero-promo__copy,
body.festival-theme-diwali .container:has(.fb-hero-promo) {
    display: none !important;
}

/* Site-matched atmosphere — keep subtle, no bright corner blooms */
body.festival-theme-diwali::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 40% at 50% -6%, rgba(254, 0, 0, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 0% 35%, rgba(122, 18, 18, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 100% 40%, rgba(122, 18, 18, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #100c10 0%, #0b0d13 48%, #0a0a0c 100%);
}

body.festival-theme-diwali::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(246, 201, 69, 0.7) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 88% 14%, rgba(255, 159, 67, 0.5) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 28% 72%, rgba(254, 0, 0, 0.35) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 68%, rgba(255, 107, 26, 0.45) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 50% 40%, rgba(246, 201, 69, 0.3) 0 1px, transparent 2px),
        radial-gradient(circle at 65% 90%, rgba(255, 224, 138, 0.3) 0 1px, transparent 2px);
    animation: diwaliSparkle 5.5s ease-in-out infinite alternate;
}

@keyframes diwaliSparkle {
    from { opacity: 0.3; }
    to { opacity: 0.65; }
}

body.festival-theme-diwali .global-cart-pill,
body.festival-theme-diwali #global-cart-pill,
body.festival-theme-diwali #global-sell-cart-pill {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    width: auto !important;
    max-width: 90% !important;
    min-width: 320px !important;
    z-index: 99999 !important;
    transform: translateX(-50%);
}

body.festival-theme-diwali .global-cart-pill:hover {
    transform: translateX(-50%) scale(1.03);
}

@media (max-width: 767px) {
    body.festival-theme-diwali .global-cart-pill,
    body.festival-theme-diwali #global-cart-pill,
    body.festival-theme-diwali #global-sell-cart-pill {
        min-width: 0 !important;
        width: calc(100% - 32px) !important;
        max-width: 360px !important;
    }
}

/* ========== Header band ========== */
body.festival-theme-diwali .fb-app-store-strip {
    background:
        radial-gradient(ellipse 60% 120% at 80% 50%, rgba(254, 0, 0, 0.22) 0%, transparent 55%),
        linear-gradient(90deg, #0a0a0a 0%, #1a0a0a 28%, #2a1010 50%, #160808 75%, #0a0a0a 100%) !important;
    border-bottom: none !important;
    box-shadow: inset 0 -1px 0 rgba(254, 0, 0, 0.28);
    position: relative;
    z-index: 2;
}

body.festival-theme-diwali .fb-app-store-strip__title {
    color: #fff6e0 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 180, 60, 0.28);
}

body.festival-theme-diwali .fb-app-store-strip__badge {
    background: linear-gradient(180deg, #241038 0%, #120818 100%) !important;
    border: 1px solid rgba(246, 201, 69, 0.55) !important;
    box-shadow: 0 0 14px rgba(246, 201, 69, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body.festival-theme-diwali .fixedHeader {
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(254, 0, 0, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 0% 40%, rgba(122, 18, 18, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 40% 60% at 100% 50%, rgba(246, 201, 69, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #1a0a0a 0%, #120808 28%, #0b0d13 60%, #0a0a0c 100%) !important;
    border-bottom: none !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    overflow: visible;
}

body.festival-theme-diwali .fixedHeader.sticky {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(254, 0, 0, 0.22) 0%, transparent 50%),
        linear-gradient(180deg, #160808 0%, #0b0d13 55%, #0a0a0c 100%) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 28px rgba(254, 0, 0, 0.16);
}

body.festival-theme-diwali .fixedHeader .hdr-top,
body.festival-theme-diwali .fixedHeader .fb-header-nav,
body.festival-theme-diwali .fixedHeader .navbar,
body.festival-theme-diwali .fixedHeader .bg-light {
    background: transparent !important;
}

body.festival-theme-diwali .fb-header-separator {
    background: linear-gradient(90deg, transparent, rgba(246, 201, 69, 0.55), transparent) !important;
    box-shadow: 0 0 18px rgba(246, 201, 69, 0.25);
}

/* ========== Header string lights ========== */
.festival-header-lights {
    display: none;
}

body.festival-theme-diwali .festival-header-lights {
    display: flex;
    position: relative;
    z-index: 5;
    height: 30px;
    align-items: flex-start;
    justify-content: space-evenly;
    padding: 0 1%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 100%);
}

body.festival-theme-diwali .festival-header-lights__wire {
    position: absolute;
    top: 5px;
    left: 1%;
    right: 1%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(90, 45, 20, 0.95) 6%, rgba(90, 45, 20, 0.95) 94%, transparent);
    border-radius: 2px;
}

body.festival-theme-diwali .festival-header-lights__bulb {
    position: relative;
    width: 10px;
    height: 13px;
    margin-top: 4px;
    border-radius: 40% 40% 45% 45%;
    animation: diwaliBulbFlicker 2.1s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

body.festival-theme-diwali .festival-header-lights__bulb::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 1.5px;
    height: 6px;
    transform: translateX(-50%);
    background: rgba(90, 50, 25, 0.9);
}

body.festival-theme-diwali .festival-header-lights__bulb--1 {
    background: radial-gradient(circle at 40% 35%, #fff6c8, #f6c945 55%, #d4a017);
    box-shadow: 0 0 12px 3px rgba(246, 201, 69, 0.9), 0 6px 16px rgba(246, 201, 69, 0.35);
}
body.festival-theme-diwali .festival-header-lights__bulb--2 {
    background: radial-gradient(circle at 40% 35%, #ffd0a0, #ff6b1a 55%, #c0392b);
    box-shadow: 0 0 12px 3px rgba(255, 107, 26, 0.85), 0 6px 16px rgba(255, 107, 26, 0.3);
}
body.festival-theme-diwali .festival-header-lights__bulb--3 {
    background: radial-gradient(circle at 40% 35%, #ffe0b8, #fe0000 55%, #7a1212);
    box-shadow: 0 0 12px 3px rgba(254, 0, 0, 0.8), 0 6px 16px rgba(254, 0, 0, 0.28);
}
body.festival-theme-diwali .festival-header-lights__bulb--4 {
    background: radial-gradient(circle at 40% 35%, #fff, #ffe08a 50%, #f0c040);
    box-shadow: 0 0 14px 4px rgba(255, 224, 138, 0.95), 0 6px 16px rgba(255, 224, 138, 0.35);
}

@keyframes diwaliBulbFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    40% { opacity: 0.6; filter: brightness(0.8); }
    60% { opacity: 1; filter: brightness(1.25); }
}

/* ========== Modern Diwali jhalar (toran) ========== */
.diwali-jhalar {
    position: relative;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.diwali-jhalar--hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    z-index: 5;
    padding: 6px 6% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.diwali-jhalar__ribbon {
    position: absolute;
    top: 4px;
    left: 8%;
    right: 8%;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(90deg,
            transparent 0%,
            #c0392b 10%,
            #f6c945 25%,
            #fe0000 40%,
            #ffe08a 50%,
            #fe0000 60%,
            #f6c945 75%,
            #c0392b 90%,
            transparent 100%);
    box-shadow:
        0 0 10px rgba(246, 201, 69, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.diwali-jhalar__scallop {
    position: absolute;
    top: 8px;
    left: 10%;
    right: 10%;
    height: 12px;
    background:
        radial-gradient(circle at 20% 0, #f6c945 0 4px, transparent 5px),
        radial-gradient(circle at 35% 0, #fe0000 0 4px, transparent 5px),
        radial-gradient(circle at 50% 0, #ffe08a 0 5px, transparent 6px),
        radial-gradient(circle at 65% 0, #fe0000 0 4px, transparent 5px),
        radial-gradient(circle at 80% 0, #f6c945 0 4px, transparent 5px);
    opacity: 0.7;
    filter: drop-shadow(0 0 3px rgba(246, 201, 69, 0.25));
}

.diwali-jhalar__drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
    animation: diwaliJhalarSway 2.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.11s);
    transform-origin: top center;
}

.diwali-jhalar__cord {
    width: 1.5px;
    height: var(--len, 16px);
    background: linear-gradient(180deg, #f6c945, rgba(180, 120, 40, 0.55));
    border-radius: 2px;
}

.diwali-jhalar__bead {
    width: 7px;
    height: 7px;
    margin-top: -1px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c8, #f6c945 55%, #b8860b);
    box-shadow: 0 0 10px 2px rgba(246, 201, 69, 0.85);
}

.diwali-jhalar__gem {
    width: 11px;
    height: 14px;
    margin-top: 2px;
    clip-path: polygon(50% 0%, 100% 40%, 50% 100%, 0% 40%);
    background: linear-gradient(160deg, #fff6c8 0%, #f6c945 35%, #fe0000 100%);
    box-shadow: 0 0 8px rgba(254, 0, 0, 0.28);
    animation: diwaliGemPulse 1.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.09s);
}

.diwali-jhalar__tip {
    width: 5px;
    height: 9px;
    margin-top: 2px;
    border-radius: 40% 40% 55% 55%;
    background: radial-gradient(circle at 40% 30%, #fff, #ffe08a 50%, #ff6b1a);
    box-shadow: 0 0 7px 2px rgba(255, 180, 60, 0.45);
}

/* Hide brightest edge drops that create corner light blobs */
.diwali-jhalar--hero .diwali-jhalar__drop:nth-child(-n+5),
.diwali-jhalar--hero .diwali-jhalar__drop:nth-last-child(-n+3) {
    opacity: 0.15;
    filter: brightness(0.55);
}

.diwali-jhalar__drop--2 .diwali-jhalar__gem {
    background: linear-gradient(160deg, #fff 0%, #ff9f43 40%, #c0392b 100%);
}
.diwali-jhalar__drop--3 .diwali-jhalar__gem {
    background: linear-gradient(160deg, #fff6c8 0%, #fe0000 45%, #7a1212 100%);
    width: 13px;
    height: 17px;
}
.diwali-jhalar__drop--4 .diwali-jhalar__bead {
    background: radial-gradient(circle at 35% 30%, #ffd0a0, #fe0000 60%, #7a1212);
    box-shadow: 0 0 12px 3px rgba(254, 0, 0, 0.8);
}
.diwali-jhalar__drop--5 .diwali-jhalar__gem {
    background: linear-gradient(160deg, #fff 0%, #ffe08a 30%, #f6c945 70%, #e67e22 100%);
    clip-path: polygon(50% 0%, 85% 50%, 50% 100%, 15% 50%);
}

@keyframes diwaliJhalarSway {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(2px); }
}

@keyframes diwaliGemPulse {
    0%, 100% { filter: brightness(1); opacity: 0.92; }
    50% { filter: brightness(1.35); opacity: 1; }
}

/* Buy/Sell + search gold glow */
body.festival-theme-diwali .fb-seg {
    border-color: rgba(246, 201, 69, 0.35) !important;
    box-shadow: 0 0 16px rgba(246, 201, 69, 0.12);
}
body.festival-theme-diwali .fb-seg__btn.is-active {
    background: linear-gradient(180deg, #ff4757, #c0392b) !important;
    box-shadow: 0 0 18px rgba(255, 107, 26, 0.45);
}
body.festival-theme-diwali .fb-header-quick__btn {
    border-color: rgba(246, 201, 69, 0.35) !important;
}
body.festival-theme-diwali .fb-header-quick__btn.is-active,
body.festival-theme-diwali .fb-header-quick__btn:hover {
    box-shadow: 0 0 16px rgba(246, 201, 69, 0.35);
}
body.festival-theme-diwali .searchbox-input,
body.festival-theme-diwali .navbar-form .form-control.searchbox-input {
    border-color: rgba(246, 201, 69, 0.35) !important;
    box-shadow: 0 0 14px rgba(246, 201, 69, 0.1);
}

/* ========== Promo strip ========== */
body.festival-theme-diwali .festival-strip {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 120% at 10% 50%, rgba(254, 0, 0, 0.32) 0%, transparent 55%),
        radial-gradient(ellipse 50% 120% at 90% 50%, rgba(246, 201, 69, 0.18) 0%, transparent 55%),
        linear-gradient(90deg, #0a0a0a 0%, #1a0a0a 35%, #2a1010 50%, #1a0a0a 65%, #0a0a0a 100%);
    border-bottom: 1px solid rgba(246, 201, 69, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(246, 201, 69, 0.12);
}
body.festival-theme-diwali .festival-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 224, 138, 0.08) 48%, transparent 58%);
    animation: diwaliStripSheen 4.5s ease-in-out infinite;
}
@keyframes diwaliStripSheen {
    0%, 100% { transform: translateX(-30%); opacity: 0.35; }
    50% { transform: translateX(30%); opacity: 0.85; }
}

body.festival-theme-diwali .festival-strip__lights {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    pointer-events: none;
    opacity: 0.55;
    padding-top: 4px;
}

body.festival-theme-diwali .festival-strip__bulb {
    width: 7px;
    height: 9px;
    border-radius: 50%;
    animation: diwaliBulbFlicker 2.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}
body.festival-theme-diwali .festival-strip__bulb--1 { background: #f6c945; box-shadow: 0 0 8px #f6c945; }
body.festival-theme-diwali .festival-strip__bulb--2 { background: #ff6b1a; box-shadow: 0 0 8px #ff6b1a; }
body.festival-theme-diwali .festival-strip__bulb--3 { background: #fe0000; box-shadow: 0 0 8px #fe0000; }
body.festival-theme-diwali .festival-strip__bulb--4 { background: #ffe08a; box-shadow: 0 0 8px #ffe08a; }

body.festival-theme-diwali .festival-strip__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 16px 14px;
    position: relative;
    z-index: 1;
    text-align: center;
}

body.festival-theme-diwali .festival-strip__text {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

body.festival-theme-diwali .festival-strip__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe08a 0%, #f6c945 40%, #e67e22 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2b0707 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(230, 126, 34, 0.55), 0 0 12px rgba(246, 201, 69, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}

body.festival-theme-diwali .festival-strip__cta:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #2b0707 !important;
}

/* ========== HOME HERO — Diwali night of lights ========== */
.festival-home-hero--diwali {
    display: none;
}

body.festival-theme-diwali .festival-home-hero--diwali {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    overflow: hidden;
    margin: 0;
    padding-bottom: 28px;
    min-height: clamp(500px, calc(100svh - 200px), 820px);
    border-bottom: none !important;
    background:
        radial-gradient(ellipse 65% 50% at 50% 36%, rgba(254, 0, 0, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 40% 55% at 0% 48%, rgba(122, 18, 18, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 55% at 100% 48%, rgba(122, 18, 18, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 28% 32% at 8% 18%, rgba(255, 159, 67, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 28% 32% at 92% 18%, rgba(254, 0, 0, 0.08) 0%, transparent 65%),
        radial-gradient(circle at 50% 100%, rgba(255, 120, 60, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #140a0a 0%, #160a0a 18%, #120808 40%, #0e0707 58%, #0a0505 74%, #080404 88%, #060303 100%);
}

/* Soft top fade only — do not black out left/right lanterns */
body.festival-theme-diwali .festival-home-hero--diwali::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 10%, transparent 100%);
}

/* Tall soft bottom blend — warm ember into shop (not pure black) */
body.festival-theme-diwali .festival-home-hero--diwali::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(160px, 30vw, 260px);
    pointer-events: none;
    z-index: 5;
    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(30, 12, 8, 0.25) 30%,
            rgba(26, 10, 8, 0.55) 58%,
            rgba(22, 10, 8, 0.82) 82%,
            #1a0c0a 100%
        );
}

/* Soft side ambience */
.diwali-side-glow {
    position: absolute;
    top: 18%;
    bottom: 22%;
    width: min(180px, 18vw);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    animation: diwaliSideGlowPulse 5.5s ease-in-out infinite alternate;
}
.diwali-side-glow--left {
    left: 0;
    background:
        radial-gradient(ellipse 100% 55% at 0% 40%, rgba(254, 0, 0, 0.35) 0%, transparent 72%),
        radial-gradient(ellipse 80% 40% at 10% 55%, rgba(246, 201, 69, 0.18) 0%, transparent 70%),
        linear-gradient(90deg, rgba(20, 4, 4, 0.25) 0%, transparent 100%);
}
.diwali-side-glow--right {
    right: 0;
    animation-delay: -2.5s;
    background:
        radial-gradient(ellipse 100% 55% at 100% 40%, rgba(254, 0, 0, 0.3) 0%, transparent 72%),
        radial-gradient(ellipse 80% 40% at 90% 55%, rgba(246, 201, 69, 0.16) 0%, transparent 70%),
        linear-gradient(270deg, rgba(20, 4, 4, 0.22) 0%, transparent 100%);
}
@keyframes diwaliSideGlowPulse {
    from { opacity: 0.4; }
    to { opacity: 0.7; }
}

/* Floating warm lamp orbs (motion circles) */
.diwali-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.diwali-orbs__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.45;
    animation: diwaliOrbFloat 8s ease-in-out infinite;
}
.diwali-orbs__glow--1 {
    width: 150px; height: 150px; left: 10%; top: 24%;
    background: radial-gradient(circle, rgba(254, 0, 0, 0.42), transparent 72%);
}
.diwali-orbs__glow--2 {
    width: 160px; height: 160px; right: 10%; top: 22%;
    background: radial-gradient(circle, rgba(246, 201, 69, 0.32), transparent 72%);
    animation-delay: -2s;
}
.diwali-orbs__glow--3 {
    width: 130px; height: 130px; left: 26%; bottom: 22%;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.34), transparent 72%);
    animation-delay: -4s;
}
.diwali-orbs__glow--4 {
    width: 140px; height: 140px; right: 24%; bottom: 18%;
    background: radial-gradient(circle, rgba(254, 71, 87, 0.3), transparent 72%);
    animation-delay: -6s;
}
.diwali-orbs__glow--5 {
    width: 240px; height: 160px; left: 50%; top: 42%;
    background: radial-gradient(ellipse at center, rgba(246, 201, 69, 0.22), transparent 72%);
    animation-name: diwaliOrbFloatCenter;
    animation-delay: -3s;
    filter: blur(36px);
}
@keyframes diwaliOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(10px, -12px) scale(1.08); opacity: 0.58; }
}
@keyframes diwaliOrbFloatCenter {
    0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) translate(0, -10px) scale(1.06); opacity: 0.5; }
}

/* Rising light motes — soft ambience, not fireworks */
.diwali-motes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}
.diwali-mote {
    position: absolute;
    left: var(--mx);
    bottom: 8%;
    width: var(--msize, 3px);
    height: var(--msize, 3px);
    border-radius: 50%;
    background: #ffe08a;
    box-shadow: 0 0 8px 2px rgba(246, 201, 69, 0.75);
    opacity: 0;
    animation: diwaliMoteRise var(--mdur, 5s) ease-in-out infinite;
    animation-delay: var(--mdelay, 0s);
}
.diwali-mote--2 {
    background: #ff9f43;
    box-shadow: 0 0 8px 2px rgba(255, 159, 67, 0.7);
}
.diwali-mote--3 {
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 240, 200, 0.85);
}
@keyframes diwaliMoteRise {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    15% { opacity: 0.9; }
    70% { opacity: 0.55; }
    100% { opacity: 0; transform: translateY(-58vh) scale(0.2); }
}

/* Soft light rays behind title — desktop off */
.diwali-rays {
    display: none;
    position: absolute;
    left: 50%;
    top: 42%;
    width: min(640px, 90vw);
    height: min(420px, 55vw);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(circle at center, #000 15%, transparent 65%);
    mask-image: radial-gradient(circle at center, #000 15%, transparent 65%);
}
.diwali-rays__beam {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140%;
    height: 2px;
    transform-origin: center;
    background: linear-gradient(90deg, transparent, rgba(246, 201, 69, 0.22), transparent);
    animation: diwaliRayPulse 5s ease-in-out infinite;
}
.diwali-rays__beam--1 { transform: translate(-50%, -50%) rotate(18deg); }
.diwali-rays__beam--2 { transform: translate(-50%, -50%) rotate(-22deg); animation-delay: -1.6s; }
.diwali-rays__beam--3 { transform: translate(-50%, -50%) rotate(68deg); width: 90%; animation-delay: -2.8s; opacity: 0.7; }
@keyframes diwaliRayPulse {
    0%, 100% { opacity: 0.25; filter: blur(1px); }
    50% { opacity: 0.7; filter: blur(0.5px); }
}

/* Floor glow under diya row — soft, not a hard band */
.diwali-floor-glow {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 120px;
    z-index: 5;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 85%, rgba(255, 159, 67, 0.18) 0%, rgba(254, 0, 0, 0.06) 38%, transparent 72%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.45) 100%);
    filter: blur(10px);
    animation: diwaliFloorPulse 3.6s ease-in-out infinite alternate;
}
@keyframes diwaliFloorPulse {
    from { opacity: 0.45; transform: scaleX(0.96); }
    to { opacity: 0.75; transform: scaleX(1.02); }
}

/* Twinkling stars (soft sparkle — not fireworks) */
.diwali-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}
.diwali-star {
    position: absolute;
    left: var(--sx);
    top: var(--sy);
    width: var(--ssize, 2px);
    height: var(--ssize, 2px);
    border-radius: 50%;
    background: #fff8e0;
    box-shadow: 0 0 6px 1px rgba(255, 240, 180, 0.85);
    animation: diwaliStarTwinkle var(--sdur, 2s) ease-in-out infinite;
    animation-delay: var(--sdelay, 0s);
}
.diwali-star--2 {
    background: #ffe08a;
    box-shadow: 0 0 8px 2px rgba(246, 201, 69, 0.9);
}
.diwali-star--3 {
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.85), 0 0 18px rgba(255, 180, 80, 0.4);
}
.diwali-star--cross {
    display: none !important; /* bright corner flares */
}

/* Keep only a few soft center stars */
.diwali-stars .diwali-star:nth-child(n+12) {
    display: none;
}
.diwali-stars {
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
    opacity: 0.45;
}
@keyframes diwaliStarTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.75); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* Old motion circle — sunburst spokes (no thin gold ring outline) */
.diwali-rangolis {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 95%);
    opacity: 0.9;
}
.diwali-rangoli {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: none;
    box-shadow: none;
}
.diwali-rangoli--lg {
    width: min(520px, 78vw);
    aspect-ratio: 1;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(90, 50, 30, 0.5) 0 7.5deg,
            rgba(18, 8, 6, 0.28) 7.5deg 15deg
        );
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 72%, transparent 100%);
    mask-image: radial-gradient(circle at center, #000 0%, #000 72%, transparent 100%);
    animation: diwaliRangoliSpin 32s linear infinite;
    opacity: 0.95;
}
/* Center medium rangoli off */
.diwali-rangoli--md {
    display: none !important;
}

/* Left & right little sunburst circles (desktop) */
.diwali-rangoli--sm {
    display: block;
    width: min(170px, 16vw);
    aspect-ratio: 1;
    top: 48%;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(110, 60, 35, 0.65) 0 7.5deg,
            rgba(20, 10, 8, 0.25) 7.5deg 15deg
        );
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 68%, transparent 100%);
    mask-image: radial-gradient(circle at center, #000 0%, #000 68%, transparent 100%);
    animation: diwaliRangoliSpinLocal 18s linear infinite;
    opacity: 0.95;
    z-index: 2;
}
.diwali-rangoli--left {
    left: clamp(6%, 10vw, 14%);
    right: auto;
    transform: translateY(-50%);
}
.diwali-rangoli--right {
    right: clamp(6%, 10vw, 14%);
    left: auto;
    transform: translateY(-50%);
    animation-direction: reverse;
    animation-duration: 22s;
}
@keyframes diwaliRangoliSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes diwaliRangoliSpinLocal {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Hero string lights */
body.festival-theme-diwali .festival-lights {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 5;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    pointer-events: none;
    padding: 0 7%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
body.festival-theme-diwali .festival-lights__bulb:nth-child(-n+4),
body.festival-theme-diwali .festival-lights__bulb:nth-last-child(-n+3) {
    opacity: 0.2;
    filter: brightness(0.5);
}
body.festival-theme-diwali .festival-lights__wire {
    position: absolute;
    top: 6px;
    left: 2%;
    right: 2%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(120, 70, 20, 0.95) 8%, rgba(120, 70, 20, 0.95) 92%, transparent);
    border-radius: 2px;
}
body.festival-theme-diwali .festival-lights__bulb {
    position: relative;
    width: 12px;
    height: 16px;
    margin-top: 4px;
    border-radius: 40% 40% 48% 48%;
    animation: diwaliBulbFlicker 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.09s);
}
body.festival-theme-diwali .festival-lights__bulb::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 1.5px;
    height: 7px;
    transform: translateX(-50%);
    background: rgba(90, 50, 25, 0.95);
}
body.festival-theme-diwali .festival-lights__bulb--1 {
    background: radial-gradient(circle at 40% 30%, #fff6c8, #f6c945 55%, #b8860b);
    box-shadow: 0 0 8px 2px rgba(246, 201, 69, 0.45), 0 4px 10px rgba(246, 201, 69, 0.18);
}
body.festival-theme-diwali .festival-lights__bulb--2 {
    background: radial-gradient(circle at 40% 30%, #ffd0a0, #ff6b1a 55%, #c0392b);
    box-shadow: 0 0 8px 2px rgba(255, 107, 26, 0.4), 0 4px 10px rgba(255, 107, 26, 0.16);
}
body.festival-theme-diwali .festival-lights__bulb--3 {
    background: radial-gradient(circle at 40% 30%, #ffe0b8, #fe0000 55%, #7a1212);
    box-shadow: 0 0 8px 2px rgba(254, 0, 0, 0.38), 0 4px 10px rgba(254, 0, 0, 0.14);
}
body.festival-theme-diwali .festival-lights__bulb--4 {
    background: radial-gradient(circle at 40% 30%, #fff, #ffe08a 50%, #e67e22);
    box-shadow: 0 0 9px 2px rgba(255, 224, 138, 0.45), 0 4px 10px rgba(255, 224, 138, 0.18);
}

/* Side cascade lights (desktop left / right) */
.diwali-side-jhalar {
    position: absolute;
    top: 70px;
    bottom: 80px;
    width: min(120px, 14vw);
    z-index: 6;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding-top: 8px;
    filter: drop-shadow(0 0 10px rgba(246, 201, 69, 0.3));
}
.diwali-side-jhalar--left { left: 6px; }
.diwali-side-jhalar--right { right: 6px; }

.diwali-side-jhalar__strand {
    position: relative;
    width: 12px;
    height: var(--slen, 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: diwaliSideStrand 3.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.22s);
    transform-origin: top center;
}
.diwali-side-jhalar__strand::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 18px;
    left: 50%;
    width: 1.5px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #f6c945, rgba(254, 0, 0, 0.35), transparent);
}
.diwali-side-jhalar__bead {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 10px;
}
.diwali-side-jhalar__bead--1 {
    background: radial-gradient(circle at 30% 30%, #fff6c8, #f6c945 60%, #b8860b);
    box-shadow: 0 0 12px 3px rgba(246, 201, 69, 0.9);
}
.diwali-side-jhalar__bead--2 {
    background: radial-gradient(circle at 30% 30%, #ffd0a0, #fe0000 55%, #7a1212);
    box-shadow: 0 0 12px 3px rgba(254, 0, 0, 0.85);
    width: 10px;
    height: 10px;
}
.diwali-side-jhalar__bead--3 {
    background: radial-gradient(circle at 30% 30%, #fff, #ffe08a 50%, #ff6b1a);
    box-shadow: 0 0 14px 4px rgba(255, 180, 60, 0.9);
}
.diwali-side-jhalar__leaf {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 22px;
    margin-top: 4px;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: linear-gradient(160deg, #ffe08a 0%, #f6c945 35%, #c0392b 100%);
    box-shadow: 0 0 16px rgba(246, 201, 69, 0.55);
    clip-path: ellipse(45% 50% at 50% 50%);
    animation: diwaliGemPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
}
.diwali-side-jhalar__glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 0, 0, 0.55) 0%, transparent 70%);
    filter: blur(2px);
    animation: diwaliSidePulse 2.8s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.2s);
}
@keyframes diwaliSideStrand {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(4px); }
}

/* Hanging lanterns — left / right lights on desktop */
body.festival-theme-diwali .festival-lantern {
    position: absolute;
    top: 92px;
    z-index: 6;
    width: 52px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: diwaliLanternSway 4.8s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(254, 0, 0, 0.3));
}
body.festival-theme-diwali .festival-lantern--left {
    left: clamp(14px, 4vw, 56px);
}
body.festival-theme-diwali .festival-lantern--right {
    right: clamp(14px, 4vw, 56px);
    animation-delay: -2.4s;
}
body.festival-theme-diwali .festival-lantern--mid-left {
    left: clamp(80px, 14vw, 168px);
    top: 110px;
    transform: scale(0.78);
    transform-origin: top center;
    animation-delay: -1.2s;
    filter: drop-shadow(0 0 12px rgba(246, 201, 69, 0.35));
}
body.festival-theme-diwali .festival-lantern--mid-right {
    right: clamp(80px, 14vw, 168px);
    top: 110px;
    transform: scale(0.78);
    transform-origin: top center;
    animation-delay: -3.4s;
    filter: drop-shadow(0 0 12px rgba(246, 201, 69, 0.35));
}

body.festival-theme-diwali .festival-lantern__cord {
    width: 2px;
    height: 28px;
    background: linear-gradient(#f6c945, #8b6914);
}
body.festival-theme-diwali .festival-lantern__cap {
    width: 28px;
    height: 10px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #ffe08a, #c9a227);
    box-shadow: 0 0 10px rgba(246, 201, 69, 0.55);
}
body.festival-theme-diwali .festival-lantern__body {
    width: 40px;
    height: 54px;
    border-radius: 10px 10px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255, 240, 180, 0.98) 0%, #ff9f43 38%, #fe0000 72%, #7a1212 100%);
    border: 1px solid rgba(246, 201, 69, 0.75);
    box-shadow:
        0 0 28px rgba(254, 0, 0, 0.55),
        0 0 14px rgba(246, 201, 69, 0.45),
        inset 0 0 18px rgba(255, 255, 200, 0.3);
    position: relative;
    animation: diwaliLanternGlow 2.6s ease-in-out infinite alternate;
}
body.festival-theme-diwali .festival-lantern__body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 7px;
    right: 7px;
    height: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 224, 138, 0.35);
}
body.festival-theme-diwali .festival-lantern__body::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: linear-gradient(135deg, #fff6c8, #f6c945);
    box-shadow: 0 0 10px rgba(246, 201, 69, 0.7);
    opacity: 0.85;
}
body.festival-theme-diwali .festival-lantern__flame {
    width: 12px;
    height: 18px;
    margin-top: -10px;
    border-radius: 50% 50% 40% 40%;
    background: radial-gradient(circle at 50% 70%, #fff6c8, #ff9f43 45%, #ff4757 80%);
    box-shadow: 0 0 20px 5px rgba(255, 159, 67, 0.9);
    animation: diwaliFlame 1.2s ease-in-out infinite alternate;
}
body.festival-theme-diwali .festival-lantern__tassel {
    width: 3px;
    height: 22px;
    margin-top: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #f6c945, #fe0000 60%, transparent);
    box-shadow: 0 0 8px rgba(254, 0, 0, 0.45);
}

@keyframes diwaliLanternSway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3.5deg); }
}
@keyframes diwaliLanternGlow {
    from { filter: brightness(0.95); box-shadow: 0 0 22px rgba(254, 0, 0, 0.45), 0 0 10px rgba(246, 201, 69, 0.35), inset 0 0 18px rgba(255, 255, 200, 0.25); }
    to { filter: brightness(1.12); box-shadow: 0 0 36px rgba(254, 0, 0, 0.7), 0 0 18px rgba(246, 201, 69, 0.55), inset 0 0 22px rgba(255, 255, 200, 0.4); }
}
@keyframes diwaliFlame {
    from { transform: scaleY(1) translateY(0); filter: brightness(1); }
    to { transform: scaleY(1.12) translateY(-1px); filter: brightness(1.2); }
}

/* Keep mid lanterns scaled while swaying */
body.festival-theme-diwali .festival-lantern--mid-left,
body.festival-theme-diwali .festival-lantern--mid-right {
    animation-name: diwaliLanternSwayScaled;
}
@keyframes diwaliLanternSwayScaled {
    0%, 100% { transform: scale(0.78) rotate(-3deg); }
    50% { transform: scale(0.78) rotate(3.5deg); }
}

/* Hero copy + pixel lamps stage */
body.festival-theme-diwali .festival-home-hero__inner {
    position: relative;
    z-index: 6;
    text-align: center;
    align-self: center;
    margin: 0 auto;
    padding: 48px 24px 100px;
    max-width: min(680px, 94vw);
    background: none;
    border-radius: 0;
    box-shadow: none;
}

body.festival-theme-diwali .diwali-hero-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: clamp(8px, 2.2vw, 28px);
    max-width: min(1100px, 96vw);
    width: 100%;
    padding: 48px clamp(10px, 2vw, 28px) 18px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Desktop: unwrap so left / copy / right can sit in 3 grid columns */
body.festival-theme-diwali .diwali-pixel-lamps {
    display: contents;
}

body.festival-theme-diwali .diwali-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    max-width: 640px;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 3;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    animation: diwaliCopyIn 0.9s ease-out both;
}
@keyframes diwaliCopyIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Pixel / marquee-dot Diya lamps ========== */
.diwali-pixel-lamp-wrap {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 14px);
    pointer-events: none;
    flex-shrink: 0;
    animation: diwaliPixelLampFloat 3.6s ease-in-out infinite;
}
.diwali-pixel-lamp-wrap--left {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
}
.diwali-pixel-lamp-wrap--right {
    grid-column: 3;
    grid-row: 1;
    animation-delay: -1.8s;
    flex-direction: row;
}

.diwali-pixel-lamp {
    display: block;
    width: clamp(72px, 11vw, 118px);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 14px rgba(255, 180, 60, 0.45));
}
.diwali-pixel-lamp--lg {
    width: clamp(78px, 12vw, 128px);
}
.diwali-pixel-lamp--sm {
    width: 46px;
}

.diwali-pixel-lamp__aura {
    animation: diwaliPixelAura 2.4s ease-in-out infinite alternate;
}

.diwali-pixel-lamp__dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: diwaliPixelFlicker 1.8s ease-in-out infinite;
    animation-delay: calc(var(--di, 0) * 0.045s);
}

.diwali-pixel-lamp__dot--flame {
    fill: #f6c945;
    filter: drop-shadow(0 0 3px rgba(246, 201, 69, 0.95));
}
.diwali-pixel-lamp__dot--core {
    fill: #fff8e0;
    filter: drop-shadow(0 0 4px rgba(255, 248, 220, 1));
}
.diwali-pixel-lamp__dot--hot {
    fill: #ffe08a;
    filter: drop-shadow(0 0 4px rgba(255, 224, 138, 1));
}
.diwali-pixel-lamp__dot--bowl {
    fill: #ff9f43;
    filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.9));
}
.diwali-pixel-lamp__dot--bowl:nth-child(odd) {
    fill: #f6c945;
}

/* Small floral / rangoli motif — left & right little circles on desktop */
.diwali-pixel-motif {
    display: block;
    width: clamp(22px, 3.2vw, 34px);
    height: clamp(22px, 3.2vw, 34px);
    position: relative;
    flex-shrink: 0;
    background:
        radial-gradient(circle at 50% 50%, #fff6c8 0 2px, transparent 3px),
        radial-gradient(circle at 50% 12%, #f6c945 0 2.2px, transparent 3px),
        radial-gradient(circle at 50% 88%, #f6c945 0 2.2px, transparent 3px),
        radial-gradient(circle at 12% 50%, #ff9f43 0 2.2px, transparent 3px),
        radial-gradient(circle at 88% 50%, #ff9f43 0 2.2px, transparent 3px),
        radial-gradient(circle at 22% 22%, #fe0000 0 1.8px, transparent 2.6px),
        radial-gradient(circle at 78% 22%, #fe0000 0 1.8px, transparent 2.6px),
        radial-gradient(circle at 22% 78%, #fe0000 0 1.8px, transparent 2.6px),
        radial-gradient(circle at 78% 78%, #fe0000 0 1.8px, transparent 2.6px);
    filter: drop-shadow(0 0 8px rgba(246, 201, 69, 0.55));
    animation: diwaliGemPulse 2s ease-in-out infinite;
}

@keyframes diwaliPixelFlicker {
    0%, 100% { opacity: 0.72; }
    35% { opacity: 1; }
    55% { opacity: 0.8; }
    75% { opacity: 1; }
}
@keyframes diwaliPixelAura {
    from { opacity: 0.55; }
    to { opacity: 1; }
}
@keyframes diwaliPixelLampFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Strip flanking lamps */
body.festival-theme-diwali .festival-strip__inner {
    gap: 12px 18px;
}
body.festival-theme-diwali .festival-strip__lamp {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
body.festival-theme-diwali .festival-strip__lamp .diwali-pixel-lamp {
    width: 42px;
}

/* Diwali eyebrow badge removed */
body.festival-theme-diwali .festival-home-hero--diwali .festival-home-hero__eyebrow {
    display: none !important;
}
body.festival-theme-diwali .festival-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 7px 18px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(254, 0, 0, 0.18), rgba(246, 201, 69, 0.12), rgba(254, 0, 0, 0.18));
    border: 1px solid rgba(246, 201, 69, 0.4);
    color: #ffe0b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.diwali-eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c8, #f6c945 55%, #fe0000);
    box-shadow: 0 0 10px 2px rgba(246, 201, 69, 0.85);
    animation: diwaliGemPulse 1.6s ease-in-out infinite;
}

.diwali-eyebrow-motion {
    animation: diwaliEyebrowGlow 2.4s ease-in-out infinite;
}
@keyframes diwaliEyebrowGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(254,0,0,0); transform: translateY(0); }
    50% { box-shadow: 0 0 20px rgba(246,201,69,.3), 0 0 12px rgba(254,0,0,.25); transform: translateY(-2px); }
}

.diwali-title-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 6px 0 18px;
    min-height: clamp(110px, 18vw, 180px);
    width: 100%;
}

.diwali-title-underline {
    display: block;
    width: min(180px, 55%);
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #f6c945 20%, #fe0000 50%, #f6c945 80%, transparent);
    box-shadow: 0 0 14px rgba(246, 201, 69, 0.65);
    animation: diwaliUnderlinePulse 2.4s ease-in-out infinite;
}
@keyframes diwaliUnderlinePulse {
    0%, 100% { opacity: 0.55; width: min(150px, 48%); }
    50% { opacity: 1; width: min(200px, 60%); }
}

body.festival-theme-diwali .festival-home-hero__title {
    position: relative;
    z-index: 3;
    margin: 0;
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: diwaliTitleGlow 3.4s ease-in-out infinite;
}

body.festival-theme-diwali .diwali-title-line {
    display: flex;
    gap: 0.08em;
    color: #fff;
    font-size: 0.42em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 0 18px rgba(255,255,255,.35), 0 0 30px rgba(254,0,0,.25);
}

body.festival-theme-diwali .diwali-title-main {
    display: flex;
    gap: 0.04em;
    filter: drop-shadow(0 0 20px rgba(254, 0, 0, 0.65)) drop-shadow(0 8px 24px rgba(0,0,0,.5));
}

body.festival-theme-diwali .diwali-letter {
    display: inline-block;
    animation: diwaliLetterFloat 3.4s ease-in-out infinite;
    animation-delay: calc(var(--li) * 0.08s);
}

body.festival-theme-diwali .diwali-letter--main {
    background: linear-gradient(180deg, #fff8d6 0%, #f6c945 28%, #ff6b1a 62%, #fe0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    animation-name: diwaliLetterGlow;
    animation-duration: 3.4s;
    animation-delay: calc(0.12s + var(--li) * 0.09s);
}

@keyframes diwaliTitleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}
@keyframes diwaliLetterFloat {
    0%, 100% { transform: translateY(0); opacity: 1; text-shadow: 0 0 12px rgba(255,255,255,.25); }
    50% { transform: translateY(-5px); text-shadow: 0 0 18px rgba(255,255,255,.45), 0 0 28px rgba(254,0,0,.3); }
}
@keyframes diwaliLetterGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 12px rgba(254,0,0,.45));
    }
    50% {
        transform: translateY(-6px) scale(1.04);
        filter: drop-shadow(0 0 24px rgba(254,0,0,.85)) drop-shadow(0 0 30px rgba(246,201,69,.45));
    }
}

.diwali-cta-motion {
    animation: diwaliCtaPulse 2.2s ease-in-out infinite;
}
@keyframes diwaliCtaPulse {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 8px 28px rgba(230, 126, 34, 0.5); }
    50% { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 34px rgba(254, 0, 0, 0.45), 0 0 24px rgba(246,201,69,.35); }
}

body.festival-theme-diwali .festival-home-hero__sub {
    margin: 0 auto 22px;
    max-width: 560px;
    color: rgba(255, 240, 220, 0.82);
    font-size: clamp(0.95rem, 1.6vw, 1.12rem);
    line-height: 1.6;
}

body.festival-theme-diwali .festival-home-hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    gap: 8px;
    overflow: hidden;
    padding: 13px 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff1b0 0%, #f6c945 38%, #e67e22 100%);
    color: #2b0707 !important;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 28px rgba(230, 126, 34, 0.5),
        0 0 22px rgba(246, 201, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}
body.festival-theme-diwali .festival-home-hero__cta:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.07);
    color: #2b0707 !important;
    animation: none;
    box-shadow:
        0 12px 34px rgba(254, 0, 0, 0.35),
        0 0 28px rgba(246, 201, 69, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.diwali-cta__label {
    position: relative;
    z-index: 1;
}
.diwali-cta__shine {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: diwaliCtaShine 2.8s ease-in-out infinite;
}
@keyframes diwaliCtaShine {
    0%, 35% { left: -45%; }
    65%, 100% { left: 120%; }
}

/* Modern diya / lamp row — in-flow so shop overlap can't crop them */
body.festival-theme-diwali .festival-diyas {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 8;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(14px, 3.2vw, 36px);
    pointer-events: none;
    margin: 8px auto 6px;
    padding: 8px 12px 4px;
    flex-shrink: 0;
}

body.festival-theme-diwali .festival-diya {
    position: relative;
    width: 46px;
    height: 62px;
    animation: diwaliDiyaBob 3s ease-in-out infinite;
    animation-delay: calc(var(--d) * 0.16s);
    filter: drop-shadow(0 0 10px rgba(254, 0, 0, 0.18));
}

body.festival-theme-diwali .festival-diya__pool {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 52px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 180, 60, 0.45) 0%, transparent 70%);
    filter: blur(3px);
}

body.festival-theme-diwali .festival-diya__base {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 22px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 3px 3px 6px 6px;
    background: linear-gradient(180deg, #ffe08a 0%, #d4a017 45%, #8b5a12 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.festival-theme-diwali .festival-diya__bowl {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 34px;
    height: 16px;
    transform: translateX(-50%);
    border-radius: 40% 40% 48% 48% / 30% 30% 70% 70%;
    background: linear-gradient(165deg, #fff6c8 0%, #f6c945 28%, #e67e22 62%, #9a3412 100%);
    box-shadow:
        0 0 16px rgba(246, 201, 69, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.35),
        inset 0 -4px 8px rgba(80, 20, 0, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.35);
}

body.festival-theme-diwali .festival-diya__rim {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 36px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(90deg, #b8860b, #fff6c8 30%, #ffe08a 50%, #fff6c8 70%, #b8860b);
    box-shadow: 0 0 10px rgba(255, 224, 138, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.festival-theme-diwali .festival-diya__oil {
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 26px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 248, 220, 0.85), rgba(255, 159, 67, 0.55));
    box-shadow: 0 0 8px rgba(255, 200, 80, 0.55);
}

body.festival-theme-diwali .festival-diya__wick {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 2px;
    height: 7px;
    transform: translateX(-50%);
    border-radius: 1px;
    background: linear-gradient(180deg, #3a2a18, #1a1208);
}

body.festival-theme-diwali .festival-diya__flame {
    position: absolute;
    bottom: 24px;
    left: 50%;
    width: 12px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background:
        radial-gradient(ellipse at 50% 78%, #fff 0%, #ffe08a 28%, #ff9f43 58%, #fe0000 88%, transparent 100%);
    box-shadow:
        0 0 18px 5px rgba(255, 159, 67, 0.85),
        0 0 32px 8px rgba(254, 0, 0, 0.35);
    animation: diwaliFlame 1.05s ease-in-out infinite alternate;
    animation-delay: calc(var(--d) * 0.11s);
}

body.festival-theme-diwali .festival-diya__flame-core {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 5px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 70%, #fff 0%, #fff6c8 55%, transparent 100%);
    opacity: 0.95;
}

body.festival-theme-diwali .festival-diya__halo {
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 60, 0.55) 0%, rgba(254, 0, 0, 0.18) 45%, transparent 70%);
    filter: blur(5px);
    animation: diwaliDiyaHalo 2.2s ease-in-out infinite alternate;
    animation-delay: calc(var(--d) * 0.14s);
}

body.festival-theme-diwali .festival-diya--2 {
    width: 52px;
    height: 72px;
}
body.festival-theme-diwali .festival-diya--2 .festival-diya__bowl {
    width: 40px;
    height: 18px;
    background: linear-gradient(165deg, #fff 0%, #ffe08a 25%, #fe0000 70%, #7a1212 100%);
}
body.festival-theme-diwali .festival-diya--2 .festival-diya__rim { width: 42px; bottom: 22px; }
body.festival-theme-diwali .festival-diya--2 .festival-diya__oil { bottom: 20px; width: 30px; }
body.festival-theme-diwali .festival-diya--2 .festival-diya__flame { width: 14px; height: 28px; bottom: 28px; }
body.festival-theme-diwali .festival-diya--2 .festival-diya__base { width: 26px; height: 9px; }
body.festival-theme-diwali .festival-diya--2 .festival-diya__halo { width: 56px; height: 56px; }

body.festival-theme-diwali .festival-diya--3 .festival-diya__bowl {
    background: linear-gradient(165deg, #fff6c8 0%, #f6c945 30%, #ff6b1a 65%, #c0392b 100%);
}
body.festival-theme-diwali .festival-diya--3 .festival-diya__flame {
    box-shadow:
        0 0 20px 6px rgba(254, 0, 0, 0.75),
        0 0 34px 10px rgba(246, 201, 69, 0.35);
}

@keyframes diwaliDiyaBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes diwaliDiyaHalo {
    from { opacity: 0.55; transform: translateX(-50%) scale(0.92); }
    to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* Shop by category — soft fade without covering the diya row */
body.festival-theme-diwali #fb-shop-categories.fb-shop-categories {
    background:
        linear-gradient(
            180deg,
            #1a0c0a 0%,
            #120808 14%,
            #0c0505 32%,
            #080303 55%,
            #040101 78%,
            #000 100%
        ) !important;
    margin-top: -24px;
    padding-top: 36px;
    position: relative;
    z-index: 4;
    border-top: none !important;
    box-shadow: none !important;
}

body.festival-theme-diwali #fb-shop-categories.fb-shop-categories::before {
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 120, 50, 0.18) 0%, transparent 55%),
        linear-gradient(
            180deg,
            rgba(40, 14, 10, 0.55) 0%,
            rgba(20, 8, 6, 0.25) 40%,
            transparent 75%
        );
}

/* Soften the shop head so it doesn't read as a black slab */
body.festival-theme-diwali .fb-shop-categories__head {
    position: relative;
    padding-top: 4px;
    margin-bottom: 16px;
}
body.festival-theme-diwali .fb-shop-categories__head::before {
    content: '';
    position: absolute;
    left: -8%;
    right: -8%;
    top: -60px;
    height: 140px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 75% 70% at 50% 30%, rgba(254, 80, 40, 0.16) 0%, transparent 68%);
}
body.festival-theme-diwali .fb-shop-categories__intro,
body.festival-theme-diwali .fb-shop-categories__request-btn {
    position: relative;
    z-index: 1;
}

body.festival-theme-diwali .festival-diyas {
    z-index: 8;
}

body.festival-theme-diwali .fb-shop-categories__title {
    position: relative;
    display: inline-block;
    text-shadow: 0 0 22px rgba(246, 201, 69, 0.28);
}

body.festival-theme-diwali .fb-shop-categories__title::after {
    content: '';
    display: block;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f6c945, #ff9f43, transparent 90%);
    box-shadow: 0 0 12px rgba(246, 201, 69, 0.45);
}

/* Shop categories gold accents + festive hover UX */
body.festival-theme-diwali .fb-shop-section,
body.festival-theme-diwali .fb-shop-rail-card,
body.festival-theme-diwali .fb-l1-tab__poster {
    border-color: rgba(246, 201, 69, 0.18) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
body.festival-theme-diwali .fb-shop-section:hover,
body.festival-theme-diwali .fb-shop-rail-card:hover {
    border-color: rgba(246, 201, 69, 0.45) !important;
    box-shadow: 0 0 28px rgba(246, 201, 69, 0.16), 0 10px 28px rgba(0, 0, 0, 0.25);
}
body.festival-theme-diwali .fb-l1-tab.is-active .fb-l1-tab__poster,
body.festival-theme-diwali .fb-l1-tab:hover .fb-l1-tab__poster {
    box-shadow: 0 0 0 2px rgba(246, 201, 69, 0.5), 0 0 22px rgba(255, 159, 67, 0.35);
}
body.festival-theme-diwali .fb-shop-categories__request-btn {
    box-shadow: 0 0 18px rgba(254, 0, 0, 0.35);
}

/* Footer */
body.festival-theme-diwali footer,
body.festival-theme-diwali .footer,
body.festival-theme-diwali .site-footer {
    border-top: 1px solid rgba(246, 201, 69, 0.28) !important;
    box-shadow: 0 -10px 40px rgba(122, 18, 18, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    body.festival-theme-diwali *,
    body.festival-theme-diwali *::before,
    body.festival-theme-diwali *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 991px) {
    body.festival-theme-diwali .festival-home-hero__inner {
        padding: 32px 16px 80px;
    }
    body.festival-theme-diwali .diwali-hero-stage {
        padding: 32px 14px 16px;
        gap: 12px;
    }
    .diwali-pixel-lamp--lg {
        width: clamp(58px, 12vw, 84px);
    }
    .diwali-pixel-motif {
        width: 20px;
        height: 20px;
    }
    .diwali-rangoli--sm { display: none; }
    .diwali-side-jhalar { width: 64px; }
    body.festival-theme-diwali .festival-lantern--mid-left,
    body.festival-theme-diwali .festival-lantern--mid-right {
        display: none;
    }
    body.festival-theme-diwali .festival-home-hero--diwali {
        min-height: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    /* Keep soft blend on mobile */
    body.festival-theme-diwali .festival-home-hero--diwali::before {
        height: clamp(140px, 36vw, 200px);
    }
    body.festival-theme-diwali #fb-shop-categories.fb-shop-categories {
        margin-top: -16px;
        padding-top: 28px;
    }

    /* One light row only — hide jhalar so it doesn't overlap bulbs */
    .diwali-jhalar--hero {
        display: none !important;
    }
    body.festival-theme-diwali .festival-lights {
        top: 10px;
        height: 26px;
        padding: 0 8%;
        z-index: 5;
    }
    body.festival-theme-diwali .festival-lights__bulb {
        width: 8px;
        height: 11px;
    }
    body.festival-theme-diwali .festival-lights__bulb:nth-child(n+12) {
        display: none;
    }
    body.festival-theme-diwali .festival-header-lights {
        height: 22px;
    }
    body.festival-theme-diwali .festival-header-lights__bulb:nth-child(n+16) {
        display: none;
    }

    /* Desktop-only side lights */
    body.festival-theme-diwali .festival-lantern,
    .diwali-side-jhalar {
        display: none !important;
    }
    .diwali-side-glow {
        display: none;
    }
    .diwali-motes,
    .diwali-stars,
    .diwali-rays {
        display: none !important;
    }

    /* Old sunburst motion circle on phone — hide side little circles */
    .diwali-rangolis {
        display: block !important;
        opacity: 0.95;
    }
    .diwali-rangoli--lg {
        display: block !important;
        width: min(340px, 92vw);
        top: 48%;
        opacity: 1;
    }
    .diwali-rangoli--sm,
    .diwali-rangoli--left,
    .diwali-rangoli--right {
        display: none !important;
    }

    /* Soft floating orbs under the sunburst */
    .diwali-orbs {
        display: block;
    }
    .diwali-orbs__glow {
        opacity: 0.4 !important;
        filter: blur(20px);
    }
    .diwali-orbs__glow--1,
    .diwali-orbs__glow--2 {
        width: 100px;
        height: 100px;
        top: 30%;
    }
    .diwali-orbs__glow--3,
    .diwali-orbs__glow--4 {
        width: 80px;
        height: 80px;
        bottom: 18%;
    }
    .diwali-orbs__glow--5 {
        width: 180px;
        height: 120px;
        top: 40%;
        filter: blur(24px);
    }

    /* Hero: copy first, lamps beside title — no stacked light pile */
    body.festival-theme-diwali .festival-home-hero--diwali {
        min-height: 0;
        height: auto;
        justify-content: flex-start;
        padding: 0 0 10px;
    }

    body.festival-theme-diwali .diwali-hero-stage {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 8px;
        padding: 56px 14px 14px;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        background: none;
    }

    body.festival-theme-diwali .diwali-pixel-lamps {
        display: contents;
    }
    body.festival-theme-diwali .diwali-pixel-lamp-wrap {
        justify-content: center;
        gap: 0;
        animation: none;
        margin: 0;
    }
    body.festival-theme-diwali .diwali-pixel-lamp-wrap--left {
        grid-column: 1;
        grid-row: 1;
    }
    body.festival-theme-diwali .diwali-pixel-lamp-wrap--right {
        grid-column: 3;
        grid-row: 1;
    }
    .diwali-pixel-lamp--lg {
        width: 40px;
    }
    .diwali-pixel-motif {
        display: none;
    }

    body.festival-theme-diwali .diwali-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
        gap: 0;
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }

    body.festival-theme-diwali .festival-home-hero__eyebrow {
        margin: 0 0 10px;
        padding: 4px 10px;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }
    .diwali-title-stage {
        position: relative;
        min-height: 108px;
        margin: 0 0 12px;
        overflow: visible;
    }
    body.festival-theme-diwali .festival-home-hero__title {
        position: relative;
        z-index: 2;
        font-size: clamp(1.85rem, 8.5vw, 2.5rem);
        line-height: 1.05;
        gap: 4px;
    }
    body.festival-theme-diwali .diwali-title-line {
        font-size: 0.34em;
        letter-spacing: 0.16em;
    }
    body.festival-theme-diwali .festival-home-hero__sub {
        margin: 0 auto 16px;
        font-size: 0.86rem;
        line-height: 1.5;
        max-width: 260px;
        padding: 0;
    }

    /* Keep Shop deals centered on mobile too */
    body.festival-theme-diwali .festival-home-hero__cta {
        display: inline-flex !important;
        align-self: center;
        margin: 0 auto 4px;
        padding: 11px 24px;
        font-size: 0.88rem;
    }

    .diwali-floor-glow {
        height: 48px;
        opacity: 0.7;
    }
    .diwali-title-underline {
        margin-top: 6px;
        position: relative;
        z-index: 2;
    }

    body.festival-theme-diwali .festival-strip__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px 12px;
        text-align: center;
    }
    body.festival-theme-diwali .festival-strip__lamp .diwali-pixel-lamp {
        width: 28px;
    }
    body.festival-theme-diwali .festival-strip__text {
        font-size: 12.5px;
        flex: 0 1 auto;
        width: 100%;
        line-height: 1.4;
        text-align: center;
    }
    /* Only one Shop deals on mobile — keep hero CTA, hide strip CTA */
    body.festival-theme-diwali .festival-strip__cta {
        display: none !important;
    }

    /* Compact even diya row — no size jump, no glow merge */
    body.festival-theme-diwali .festival-diyas {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 14px auto 10px;
        padding: 6px 10px 4px;
        gap: 18px;
        z-index: 7;
        max-width: 280px;
    }
    body.festival-theme-diwali .festival-diya,
    body.festival-theme-diwali .festival-diya--1,
    body.festival-theme-diwali .festival-diya--2,
    body.festival-theme-diwali .festival-diya--3 {
        width: 26px !important;
        height: 36px !important;
        filter: none;
        animation: none;
    }
    /* Center lamp only slightly taller */
    body.festival-theme-diwali .festival-diya:nth-child(3) {
        width: 28px !important;
        height: 40px !important;
    }
    body.festival-theme-diwali .festival-diya__bowl,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__bowl {
        width: 20px !important;
        height: 9px !important;
        bottom: 5px !important;
        box-shadow: 0 0 6px rgba(246, 201, 69, 0.35);
    }
    body.festival-theme-diwali .festival-diya:nth-child(3) .festival-diya__bowl {
        width: 22px !important;
        height: 10px !important;
    }
    body.festival-theme-diwali .festival-diya__rim,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__rim {
        width: 22px !important;
        height: 3px !important;
        bottom: 12px !important;
        box-shadow: none;
    }
    body.festival-theme-diwali .festival-diya:nth-child(3) .festival-diya__rim {
        width: 24px !important;
        bottom: 13px !important;
    }
    body.festival-theme-diwali .festival-diya__oil,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__oil {
        bottom: 11px !important;
        width: 12px !important;
        height: 3px !important;
        box-shadow: none;
    }
    body.festival-theme-diwali .festival-diya__wick,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__wick {
        bottom: 12px !important;
        height: 5px !important;
    }
    body.festival-theme-diwali .festival-diya__flame,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__flame,
    body.festival-theme-diwali .festival-diya--3 .festival-diya__flame {
        width: 7px !important;
        height: 12px !important;
        bottom: 14px !important;
        box-shadow: 0 0 8px 2px rgba(255, 159, 67, 0.55) !important;
        animation: diwaliFlame 1.2s ease-in-out infinite alternate;
    }
    body.festival-theme-diwali .festival-diya:nth-child(3) .festival-diya__flame {
        width: 8px !important;
        height: 14px !important;
        bottom: 15px !important;
    }
    body.festival-theme-diwali .festival-diya__flame-core {
        width: 3px;
        height: 7px;
    }
    body.festival-theme-diwali .festival-diya__base,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__base {
        width: 12px !important;
        height: 4px !important;
        bottom: 1px !important;
    }
    /* Kill merged glow blobs on mobile */
    body.festival-theme-diwali .festival-diya__halo,
    body.festival-theme-diwali .festival-diya--2 .festival-diya__halo,
    body.festival-theme-diwali .festival-diya__pool {
        display: none !important;
    }
    body.festival-theme-diwali .festival-diya:nth-child(n+6) {
        display: none;
    }
    .diwali-floor-glow {
        height: 36px;
        opacity: 0.45;
        filter: blur(14px);
    }
}

@media (max-width: 420px) {
    body.festival-theme-diwali .diwali-hero-stage {
        grid-template-columns: 36px 1fr 36px;
        padding: 52px 10px 12px;
        gap: 6px;
    }
    .diwali-pixel-lamp--lg {
        width: 34px;
    }
    body.festival-theme-diwali .festival-strip__lamp {
        display: none;
    }
    body.festival-theme-diwali .festival-home-hero__sub {
        font-size: 0.82rem;
        max-width: 230px;
    }
    body.festival-theme-diwali .festival-home-hero__title {
        font-size: clamp(1.7rem, 9vw, 2.2rem);
    }
    body.festival-theme-diwali .festival-home-hero__eyebrow {
        margin-bottom: 8px;
        font-size: 0.58rem;
    }
    .diwali-title-stage {
        min-height: 96px;
        margin-bottom: 10px;
    }
    .diwali-rangoli--lg {
        width: min(300px, 94vw);
    }
    body.festival-theme-diwali .festival-lights {
        top: 8px;
    }
    body.festival-theme-diwali .festival-diyas {
        gap: 14px;
        margin-top: 10px;
        max-width: 240px;
    }
    body.festival-theme-diwali .festival-diya,
    body.festival-theme-diwali .festival-diya--1,
    body.festival-theme-diwali .festival-diya--2,
    body.festival-theme-diwali .festival-diya--3 {
        width: 22px !important;
        height: 32px !important;
    }
    body.festival-theme-diwali .festival-diya:nth-child(3) {
        width: 24px !important;
        height: 34px !important;
    }
}
