/* ==========================================================================
   Karácsonyi díszítés (inc/xmas.php): csak a body.ath-xmas alatt él,
   dec. 1. és dec. 26. között. Szándékosan visszafogott.
   ========================================================================== */

/* --- Mikulás-sapka a fejléc logójának „A" betűjén ------------------------ */

.ath-xmas .ath-header .ath-logo { position: relative; }
.ath-xmas .ath-header .ath-logo::before {
    content: '';
    position: absolute;
    left: -0.13em;
    top: -0.46em;
    width: 0.92em;
    height: 0.8em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M9 41C10 21 25 7 40 7c10 0 17 8 19 19-6-6-13-6-17-2 4 6 6 12 6 17z' fill='%23d62839'/%3E%3Cpath d='M40 7c10 0 17 8 19 19-6-6-13-6-17-2-1-6-5-12-10-15 2-1 5-2 8-2z' fill='%23b81e2e'/%3E%3Crect x='4' y='38' width='49' height='12' rx='6' fill='%23fff' stroke='%23d5dbe3' stroke-width='1.5'/%3E%3Ccircle cx='58' cy='28' r='6' fill='%23fff' stroke='%23d5dbe3' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(-13deg);
    transform-origin: 50% 90%;
    filter: drop-shadow(0 1px 1px rgba(15, 20, 25, 0.18));
    pointer-events: none;
}

/* --- Puha, felhőszerű hópára a fejléc alatt: nincs éles széle, lefelé elolvad ---------
   Színes háttér fölött (főoldali hero, mobil szállítás-sáv) látszik, fehér oldalon beleolvad. */

.ath-xmas .ath-header { border-bottom-color: transparent; }
.ath-xmas .ath-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
    background-image:
        radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.55) 45%, transparent 72%),
        radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.45) 40%, transparent 70%),
        radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.4) 45%, transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0, transparent 100%);
    background-size: 170px 18px, 260px 24px, 110px 12px, 100% 6px;
    background-position: 0 0, 90px 0, 40px 0, 0 0;
    background-repeat: repeat-x;
    pointer-events: none;
    /* görgetésre fokozatosan halványul: az értéket az assets/js/xmas.js állítja a hero magasságához mérve */
    opacity: var(--ath-xmas-cloud, 1);
}
/* Mobilon közvetlenül a fejléc alatt a szállítás-sáv szövege ül: ott alacsonyabb, hogy ne fátyolozza be */
@media (max-width: 720px) {
    .ath-xmas .ath-header::after {
        height: 12px;
        background-size: 120px 10px, 190px 12px, 80px 7px, 100% 4px;
    }
}

/* --- Halvány, lassú hóesés: a főoldali hero-ban, mobilon a kereső szürke paneljén is --- */

.ath-xmas .ath-hero::before,
.ath-xmas .ath-fitment--hero::after,
.ath-xmas .ath-gift__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.75;
    background-image:
        radial-gradient(circle at 20% 30%, #fff 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 70% 65%, #fff 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.85) 0 2.2px, transparent 3px),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px);
    background-size: 230px 230px, 170px 170px, 310px 310px, 130px 130px;
    animation: ath-xmas-snow 26s linear infinite;
}
/* A panelen a pelyhek a tartalom MÖGÖTT esnek (a mezők és gombok elé nem kerülnek); csak mobilon,
   ahol a panel a teljes szélességet kitölti és a hero háttere nem látszik mellette. */
.ath-xmas .ath-fitment--hero::after { display: none; z-index: -1; opacity: 0.6; }
@media (max-width: 720px) {
    .ath-xmas .ath-fitment--hero { isolation: isolate; }
    .ath-xmas .ath-fitment--hero::after { display: block; }
}
/* Az ajándék-oldal sötétkék hero-ja: a pelyhek a szöveg és a termékképek MÖGÖTT esnek */
.ath-xmas .ath-gift__hero { isolation: isolate; }
.ath-xmas .ath-gift__hero::after { z-index: -1; opacity: 0.55; }
@keyframes ath-xmas-snow {
    from { background-position: 0 0, 40px 0, 110px 0, 70px 0; }
    /* minden réteg a saját csempe-magasságának egész számú többszörösét teszi meg: varrat nélküli kör */
    to   { background-position: 0 460px, 40px 510px, 110px 310px, 70px 520px; }
}
@media (prefers-reduced-motion: reduce) {
    .ath-xmas .ath-hero::before,
    .ath-xmas .ath-fitment--hero::after,
    .ath-xmas .ath-gift__hero::after { animation: none; }
}
