s/* ==========================================================================
   Flex Stores — Dekorasyon Nwèl (aktif 1 desanm → 6 janvye)
   Chaje sèlman lè partials/site-header.php mete klas "fs-xmas" sou <body>.
   ========================================================================== */

:root {
    --xmas-red: #ef4444;
    --xmas-green: #22c55e;
    --xmas-gold: #fbbf24;
    --xmas-ice: #e0f2fe;
}

/* ---------- Nèj (canvas JS) ---------- */
.fs-xmas-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ---------- Ti limyè anba header a ---------- */
.fs-xmas .site-header {
    position: sticky;
}

.fs-xmas-lights {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 18px;
    margin: 0;
    padding: 0 6px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

/* fil la */
.fs-xmas-lights::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, .18);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.fs-xmas-lights li {
    position: relative;
    width: 8px;
    height: 12px;
    margin-top: 5px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--xmas-red);
    box-shadow: 0 2px 10px 2px var(--xmas-red);
    animation: fs-xmas-blink 1.6s ease-in-out infinite;
}

.fs-xmas-lights li::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 1px;
    width: 6px;
    height: 4px;
    border-radius: 2px;
    background: #374151;
}

.fs-xmas-lights li:nth-child(4n+2) {
    background: var(--xmas-green);
    box-shadow: 0 2px 10px 2px var(--xmas-green);
    animation-delay: .4s;
}

.fs-xmas-lights li:nth-child(4n+3) {
    background: var(--xmas-gold);
    box-shadow: 0 2px 10px 2px var(--xmas-gold);
    animation-delay: .8s;
}

.fs-xmas-lights li:nth-child(4n+4) {
    background: #a78bfa;
    box-shadow: 0 2px 10px 2px #a78bfa;
    animation-delay: 1.2s;
}

@keyframes fs-xmas-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: .25; box-shadow: none; }
}

/* ---------- Chapo Papa Nwèl sou logo a ---------- */
.fs-xmas .site-logo-area {
    position: relative;
}

.fs-xmas-hat {
    position: absolute;
    top: -9px;
    left: -7px;
    width: 30px;
    height: 26px;
    transform: rotate(-22deg);
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}

/* ---------- Riban "Jwaye Nwèl" ---------- */
.fs-xmas-ribbon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 38px 14px 4px;
    padding: 11px 44px 11px 16px;
    border: 1px solid rgba(239, 68, 68, .3);
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 50%, rgba(34, 197, 94, .18), transparent 45%),
        radial-gradient(circle at 88% 50%, rgba(239, 68, 68, .2), transparent 45%),
        linear-gradient(90deg, rgba(127, 29, 29, .45), rgba(20, 83, 45, .45));
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.fs-xmas-ribbon strong {
    color: var(--xmas-gold);
}

.fs-xmas-ribbon .fs-xmas-ribbon-icon {
    font-size: 20px;
    line-height: 1;
}

.fs-xmas-ribbon-close {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
    font-size: 16px;
    cursor: pointer;
}

.fs-xmas-ribbon-close:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.fs-xmas-ribbon[hidden] {
    display: none;
}

/* ---------- Sapen, kado, sik (pataje) ---------- */
.fs-xmas-tree,
.fs-xmas-gift,
.fs-xmas-cane {
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45));
}

.fs-t-sm { width: 20px; height: 27px; }
.fs-t-md { width: 26px; height: 35px; }
.fs-t-lg { width: 40px; height: 54px; }
.fs-g-xs { width: 13px; height: 13px; }
.fs-g-sm { width: 18px; height: 18px; }
.fs-xmas-cane { width: 10px; height: 20px; }

.fs-xmas-tree .fs-o {
    animation: fs-xmas-twinkle 2.2s ease-in-out infinite;
}

.fs-xmas-tree .fs-o2 { animation-delay: .7s; }
.fs-xmas-tree .fs-o3 { animation-delay: 1.4s; }

.fs-xmas-star {
    transform-origin: 20px 5px;
    animation: fs-xmas-star 2.6s ease-in-out infinite;
}

@keyframes fs-xmas-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

@keyframes fs-xmas-star {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 1px #fde047); }
    50%      { transform: scale(1.18); filter: drop-shadow(0 0 4px #fde047); }
}

/* ---------- Boul ki pandye anba header a ---------- */
.fs-xmas-baubles {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0;
    pointer-events: none;
    z-index: 2;
}

.fs-xmas-baubles span {
    position: absolute;
    top: 2px;
    width: 14px;
    margin-left: -7px;
    padding-top: var(--len, 10px);
    transform-origin: 50% 0;
    animation: fs-xmas-swing 3.2s ease-in-out infinite;
}

/* fisèl la */
.fs-xmas-baubles span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: var(--len, 10px);
    background: rgba(255, 255, 255, .45);
}

.fs-xmas-baubles svg {
    display: block;
    width: 14px;
    height: 17px;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}

@keyframes fs-xmas-swing {
    0%, 100% { transform: rotate(6deg); }
    50%      { transform: rotate(-6deg); }
}

/* ---------- Riban: sapen agoch, kado adwat ---------- */
.fs-xmas-ribbon-side {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

/* ---------- Sapen ak kado chita sou meni anba a (mobil) ---------- */
.fs-xmas-nav-deco {
    position: absolute;
    bottom: calc(100% - 4px);
    display: flex;
    align-items: flex-end;
    gap: 1px;
    pointer-events: none;
}

.fs-xmas-nav-left  { left: 14px; }
.fs-xmas-nav-right { right: 14px; }

.fs-xmas-sidebar-scene {
    display: none;
}

/* ---------- Nèj sou tèt kat pwodwi yo ---------- */
.fs-xmas .product::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9px;
    pointer-events: none;
    background:
        radial-gradient(circle at 10px -2px, #f8fafc 7px, transparent 7.5px) 0 0 / 22px 9px repeat-x,
        linear-gradient(#f8fafc, #f8fafc) 0 0 / 100% 2px no-repeat;
    opacity: .9;
    z-index: 3;
}

/* ---------- Ti sapen devan tit kategori yo ---------- */
.fs-xmas .category-title::before {
    content: "";
    display: inline-block;
    width: .8em;
    height: 1.05em;
    margin-right: .35em;
    vertical-align: -.12em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 54'%3E%3Crect x='17' y='45' width='6' height='8' fill='%237c4a1e'/%3E%3Cpath d='M20 20 L2 47 H38 Z' fill='%23166534'/%3E%3Cpath d='M20 12 L5 35 H35 Z' fill='%2315803d'/%3E%3Cpath d='M20 5 L8 24 H32 Z' fill='%2316a34a'/%3E%3Ccircle cx='14' cy='29' r='2' fill='%23ef4444'/%3E%3Ccircle cx='25' cy='32' r='2' fill='%23fbbf24'/%3E%3Ccircle cx='21' cy='41' r='2' fill='%23ef4444'/%3E%3Ccircle cx='11' cy='41' r='2' fill='%23a78bfa'/%3E%3Cpath d='M20 0 L22 4 L26 4 L23 7 L24 11 L20 9 L16 11 L17 7 L14 4 L18 4 Z' fill='%23fde047'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Ti touch sou nav anba a ---------- */
.fs-xmas .bottom-nav {
    box-shadow:
        0 -1px 0 rgba(239, 68, 68, .35),
        0 -10px 28px -14px rgba(34, 197, 94, .55);
}

.fs-xmas .nav-item.active {
    color: var(--xmas-gold);
}

/* ---------- Òdinatè: meni an se yon bar sou kote, mete yon ti forè anba l ---------- */
@media (min-width: 769px) {
    .fs-xmas-nav-deco {
        display: none;
    }

    .fs-xmas-sidebar-scene {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 18px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 3px;
        padding-bottom: 6px;
        pointer-events: none;
    }

    .fs-xmas-ground {
        position: absolute;
        left: -4px;
        right: -4px;
        bottom: 0;
        height: 9px;
        border-radius: 50% 50% 4px 4px / 100% 100% 4px 4px;
        background: linear-gradient(#f8fafc, #cbd5e1);
        opacity: .85;
        z-index: -1;
    }

    .fs-xmas-ribbon {
        margin: 40px 25px 6px;
    }
}

/* ---------- Mobil ---------- */
@media (max-width: 420px) {
    .fs-xmas-lights li:nth-child(n+19) {
        display: none;
    }

    .fs-xmas-ribbon {
        margin: 36px 10px 2px;
        font-size: 12.5px;
    }
}

/* ---------- Respekte moun ki pa vle animasyon ---------- */
@media (prefers-reduced-motion: reduce) {
    .fs-xmas-lights li,
    .fs-xmas-baubles span,
    .fs-xmas-tree .fs-o,
    .fs-xmas-star {
        animation: none;
    }

    .fs-xmas-snow {
        display: none;
    }
}
