/**
 * Seasonal store overlays + font hooks. Colours/fonts are injected per store.
 */
.store-fx-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.store-fx-decor {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    overflow: hidden;
}

.store-fx-garland {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 18px;
    line-height: 1.2;
    opacity: 0.9;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.store-fx-corner {
    position: absolute;
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.store-fx-corner--0 { top: 46px; left: 12px; }
.store-fx-corner--1 { top: 46px; right: 16px; }
.store-fx-corner--2 { bottom: 18px; left: 16px; }

.store-fx-bit {
    position: absolute;
    top: -12%;
    animation-name: storeFxFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0.85;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

@keyframes storeFxFall {
    0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
    8% { opacity: 0.9; }
    100% { transform: translate3d(18px, 110vh, 0) rotate(220deg); opacity: 0; }
}

body.store-fx-halloween {
    background: radial-gradient(900px 480px at 12% -8%, rgba(249, 115, 22, 0.28), transparent 55%),
        radial-gradient(700px 400px at 100% 0%, rgba(88, 28, 135, 0.35), transparent 50%),
        #140801;
}
body.store-fx-halloween .store-fx-bit { filter: drop-shadow(0 0 6px #fb923c); }
body.store-fx-halloween .store-title,
body.store-fx-halloween .sc-filters__brand-name {
    text-shadow: 0 0 18px var(--holiday-glow, #fb923c), 0 2px 0 #431407;
}

body.store-fx-christmas {
    background: radial-gradient(800px 420px at 10% -10%, rgba(220, 38, 38, 0.22), transparent 50%),
        radial-gradient(700px 380px at 100% 0%, rgba(21, 128, 61, 0.28), transparent 52%),
        #082012;
}
body.store-fx-christmas .store-fx-bit {
    color: #fff;
    text-shadow: 0 0 8px #93c5fd;
}

body.store-fx-colorful .store-title,
body.store-fx-colorful .sc-filters__brand-name,
body.store-fx-colorful .sf-topnav__brand span {
    background: linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e, #38bdf8, #a855f7, #f43f5e);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    animation: storeFxRainbow 8s linear infinite;
}
body.store-fx-colorful .store-fx-bit:nth-child(3n) { color: #f43f5e; }
body.store-fx-colorful .store-fx-bit:nth-child(3n+1) { color: #22c55e; }
body.store-fx-colorful .store-fx-bit:nth-child(3n+2) { color: #38bdf8; }

@keyframes storeFxRainbow {
    to { background-position: 220% center; }
}

body.store-fx-valentine {
    background: radial-gradient(800px 400px at 50% -10%, rgba(244, 63, 94, 0.28), transparent 55%), #3f0b16;
}
body.store-fx-valentine .store-fx-bit { color: #fb7185; }

body.store-fx-newyear {
    background: radial-gradient(900px 480px at 50% -20%, rgba(250, 204, 21, 0.22), transparent 50%), #050816;
}
body.store-fx-newyear .store-title {
    text-shadow: 0 0 22px #facc15, 0 0 40px #a855f7;
}
body.store-fx-newyear .store-fx-bit { color: #fde047; }

body.store-fx-easter {
    background: radial-gradient(800px 420px at 20% -8%, rgba(125, 211, 252, 0.35), transparent 50%),
        radial-gradient(700px 380px at 90% 0%, rgba(249, 168, 212, 0.3), transparent 52%),
        #ecfeff;
}

body.store-catalog-page.has-custom-bg.store-fx-halloween,
body.store-catalog-page.has-custom-bg.store-fx-christmas,
body.store-catalog-page.has-custom-bg.store-fx-colorful,
body.store-catalog-page.has-custom-bg.store-fx-valentine,
body.store-catalog-page.has-custom-bg.store-fx-newyear,
body.store-catalog-page.has-custom-bg.store-fx-easter {
    background: transparent !important;
}
body.store-fx-easter .store-fx-bit { opacity: 0.7; }

body.store-font-spooky .store-title,
body.store-font-spooky .sc-filters__brand-name {
    font-size: clamp(2rem, 6vw, 3.4rem);
}

body.store-font-festive .store-title {
    font-size: clamp(2.1rem, 6vw, 3.6rem);
}

body.store-font-script .store-title {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
}

@media (prefers-reduced-motion: reduce) {
    .store-fx-layer,
    .store-fx-decor {
        display: none !important;
    }
    body.store-fx-colorful .store-title,
    body.store-fx-colorful .sc-filters__brand-name {
        animation: none;
        color: inherit !important;
        -webkit-text-fill-color: currentColor;
        background: none;
    }
}
