/* =====================================================================
   „Снежни цени“ – коледна тема върху reset_theme.css
   Зарежда се от includes_libs/snezhni_skin.php само по време на кампанията.
   Снегът, снежинките, гирляндът, лентата и страничните панели се добавят от js/snezhni.js.
   ===================================================================== */

/* ---------- страница: нощно небе отстрани, светла колона ---------- */
html {
    background:
        radial-gradient(ellipse 900px 520px at 85% 0, rgba(120,170,255,.20), rgba(120,170,255,0) 70%),
        linear-gradient(180deg, #0b1a38 0%, #14305f 45%, #0b1a38 85%, #071226 100%) fixed !important;
}
body { background: transparent !important; padding-top: 40px; position: static; }

/* ---------- горна част: прозрачна, за да се вижда снегът ---------- */
.header_out {
    position: relative;
    background:
        linear-gradient(to bottom, rgba(5,13,31,.70) 0, rgba(5,13,31,.70) 30px, rgba(190,215,255,.18) 30px, rgba(255,255,255,0) 31px),
        linear-gradient(to bottom, rgba(0,0,0,0) 124px, #c51015 124px, #990c10 170px),
        radial-gradient(ellipse 760px 150px at 50% 124px, rgba(246,196,83,.18), rgba(246,196,83,0) 70%)
        !important;
}
.header { background: none !important; }
.header_top, .header_top a { color: #c3d0ea !important; }
.header_top a:hover { color: #fff !important; }
.header_top a.feedback { color: #ffd27a !important; }

/* полетата за вход, кошница и търсене */
#header_login, #header_basket, .header_basket, #header_search, .header_search {
    background: rgba(255,255,255,.97) !important;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
}

/* ---------- съдържание ---------- */
.content_out { background: none !important; }
.content {
    background: #f7f8fa;
    box-shadow: 0 0 0 12px #f7f8fa, 0 0 70px 14px rgba(140,190,255,.28);
}

/* лентата с бутони: златна линия отдолу вместо червена */
.catalog_menu { box-shadow: inset 0 -2px 0 #e0a526 !important; }

/* ---------- долна част: снежна покривка отгоре ---------- */
.footer_out { position: relative; background: #071226 !important; border-top: 3px solid #c51015; }
.footer_out::before {
    content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 12px;
    background: radial-gradient(circle at 9px 12px, #eef4ff 9px, rgba(238,244,255,0) 10px) 0 0 / 18px 12px repeat-x;
}

/* ---------- гирлянд над менюто (в горната част, над червената лента) ---------- */
.sn-garland { position: absolute; left: 0; right: 0; top: 112px; height: 30px; pointer-events: none; z-index: 1; }
.sn-garland svg { display: block; width: 100%; height: 30px; overflow: visible; }
.sn-bulb { animation: sn-twinkle var(--t, 2.4s) ease-in-out infinite alternate; animation-delay: var(--td, 0s); }
@keyframes sn-twinkle { from { opacity: .35; } to { opacity: 1; } }

/* ---------- лента най-горе ---------- */
.sn-ribbon {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    height: 40px; display: flex; align-items: center; justify-content: center; gap: 18px;
    background: linear-gradient(90deg, #071226 0%, #12295a 35%, #183a78 50%, #12295a 65%, #071226 100%);
    border-bottom: 2px solid #f6c453;
    font-family: "Segoe UI", Roboto, Arial, sans-serif; color: #fff !important; text-decoration: none !important;
    white-space: nowrap; overflow: hidden;
}
.sn-ribbon .sn-t { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.sn-ribbon .sn-t i { font-style: normal; color: #ff3443; }
.sn-ribbon .sn-f { font-size: 18px; color: #cfe2ff; line-height: 1; }
.sn-ribbon .sn-s { font-size: 15px; font-weight: 600; color: #e9f0ff; }
.sn-ribbon .sn-s em { font-style: normal; color: #f6c453; font-weight: 400; }
.sn-ribbon .sn-c {
    font-size: 14px; font-weight: 800; color: #3a2300; background: #f6c453;
    border-radius: 999px; padding: 6px 16px; line-height: 1;
}
.sn-ribbon:hover .sn-c { background: #e01b2c; color: #fff; }

/* ---------- сняг и снежинки с проценти (само фон, зад съдържанието) ---------- */
#sn-snow { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
#sn-flakes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: -1; }
#sn-flakes .flk { position: absolute; top: 0; width: var(--s); height: var(--s); animation: sn-fall var(--d) linear infinite; animation-delay: var(--dl); will-change: transform; }
#sn-flakes .sw { position: relative; width: 100%; height: 100%; animation: sn-sway var(--w) ease-in-out infinite alternate; }
#sn-flakes svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; color: #e4efff; animation: sn-spin var(--sp) linear infinite; }
#sn-flakes b {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
    font-family: "Segoe UI", Roboto, Arial, sans-serif; font-weight: 900; font-size: calc(var(--s) * .19); letter-spacing: -.03em;
    color: #fff; white-space: nowrap;
}
#sn-flakes .g svg, #sn-flakes .g b { color: #f6c453; }
#sn-flakes .r b { color: #ff4d5b; }
@keyframes sn-fall { from { transform: translateY(-30vh); } to { transform: translateY(130vh); } }
@keyframes sn-sway { from { transform: translateX(calc(var(--a) * -1)) rotate(-8deg); } to { transform: translateX(var(--a)) rotate(8deg); } }
@keyframes sn-spin { to { transform: rotate(360deg); } }

/* ---------- странични панели (само на широки екрани) ---------- */
.sn-side {
    position: fixed; top: 50%; z-index: 40; transform: translateY(-50%);
    font-family: "Segoe UI", Roboto, Arial, sans-serif; color: #fff !important; text-decoration: none !important;
    text-align: center; display: none;
}
.sn-side b { display: block; font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-weight: 800; line-height: 1; letter-spacing: .01em; }
.sn-side b.w { color: #fff; text-shadow: 0 3px 0 #6f93c9; }
.sn-side b.r { color: #ff3443; text-shadow: 0 3px 0 #7d0912; }
.sn-side span { display: block; color: #dbe5f8; font-weight: 600; }
.sn-side .sn-c {
    display: inline-block; margin-top: 14px; background: #f6c453; color: #3a2300; font-weight: 800;
    border-radius: 999px; padding: 10px 18px; box-shadow: 0 10px 26px rgba(246,196,83,.30);
}
.sn-side:hover .sn-c { background: #e01b2c; color: #fff; }
.sn-side svg { display: block; width: 100%; height: auto; overflow: visible; }
.sn-left b { font-size: .45em; margin-top: 6px; }
.sn-right .sn-sl { margin-top: 14px; font-size: 18px; color: #fff; }
.sn-right .sn-un { margin-top: 2px; font-size: 14px; color: #f6c453; font-weight: 400; }
.sn-right .sn-c { font-size: 15px; }
.sn-star { transform-origin: 160px 38px; animation: sn-glow 2.6s ease-in-out infinite alternate; }
@keyframes sn-glow { from { opacity: .8; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { #sn-flakes .flk, #sn-flakes .sw, #sn-flakes svg, .sn-bulb, .sn-star { animation: none; } }
@media print { .sn-ribbon, #sn-snow, #sn-flakes, .sn-side, .sn-garland { display: none !important; } body { padding-top: 0; } }
