/* ==========================================================================
   SB-XMAS — kalėdinis sluoksnis (2026-12)
   Veikia tik kai <body> turi klasę "sb-xmas" (header.twig).
   KILL SWITCH: header.twig'e <body class="... sb-xmas"> ištrinkite žodį
   "sb-xmas" — dingsta viskas: sniegas, žaisliukas, sniego kepurėlės.
   Logotipo šratukas tada vėl rodomas kaip anksčiau.
   ========================================================================== */

/* --- žaisliukas vietoj šratuko logotipe (SVG grupė gyvena header.twig) --- */
.sb-xmas-bauble { display: none; }
body.sb-xmas .sb-logo-anim .sb-xmas-bauble { display: inline; }
/* slepiame originalų raudoną šratuką (tiesioginiai <circle> vaikai) */
body.sb-xmas .sb-logo-anim > circle { display: none; }

/* --- sniego drobė (kuria sb-xmas.js) --- */
#sb-snow {
  position: fixed; left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 990;          /* virš logotipo, paieškos ir turinio; žemiau iškrentančių meniu, prilipusio meniu ir krepšelio (≥ 1000) */
}
@media print { #sb-snow { display: none; } }

/* --- sniego kepurėlės ant krepšelio mygtuko ir AKCIJOS --- */
body.sb-xmas #cart > .btn,
body.sb-xmas #cart > button.btn,
body.sb-xmas #menu .nav > li.sb-menu-akcijos > a { position: relative; }
body.sb-xmas #cart > .btn::before,
body.sb-xmas #cart > button.btn::before,
body.sb-xmas #menu .nav > li.sb-menu-akcijos > a::before {
  content: "";
  position: absolute; left: -3px; right: -3px; top: -9px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 16' preserveAspectRatio='none'%3E%3Cpath fill='%23fbfdff' d='M4 12C10 4 20 3 30 6s18-3 28-2 16 5 26 3 20-4 30-1 18 2 22 6c2 2 0 4-3 4H6c-3 0-4-2-2-4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
/* prekių skaičius krepšelyje šiek tiek išlenda virš pusnies (ne po ja) */
@media (min-width: 1200px) {
  body.sb-xmas.sb-tactical-header #l-nav #cart .sb-cart-count { z-index: 3; top: -11px; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
}
@media (max-width: 991px) {
  body.sb-xmas #menu .nav > li.sb-menu-akcijos > a::before { display: none; }   /* telefone sniego kupstelio nereikia */
}
@media (max-width: 1199px) {
  body.sb-xmas #cart > .btn::before,
  body.sb-xmas #cart > button.btn::before { display: none; }   /* mažuose ekranuose kepurėlė netelpa */
}

/* ---- Sniego jungiklis (kompiuteryje – viršutinėje juostoje prieš LT | EN; telefone jis kategorijų skydelyje) ---- */
.sb-snow-tg { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 8px; border: 0; border-radius: 999px; background: none; color: rgba(244, 241, 234, .72); font: 500 12px Poppins, sans-serif; letter-spacing: .02em; cursor: pointer; transition: color .15s, background .15s; }
.sb-snow-tg:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sb-snow-tg:focus-visible { outline: 2px solid #74825c; outline-offset: 2px; }
.sb-snow-tg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sb-snow-tg i { position: relative; width: 26px; height: 15px; border-radius: 8px; background: rgba(255, 255, 255, .18); transition: background .2s; }
.sb-snow-tg i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sb-snow-tg[aria-pressed="true"] i { background: #74825c; }
.sb-snow-tg[aria-pressed="true"] i::after { transform: translateX(11px); }
@media (max-width: 767px) { .sb-snow-tg { display: none !important; } }
body.sb-snow-off #sb-snow { display: none; }
/* snaigę galima pagriebti pele */
html.sb-snow-hover, html.sb-snow-hover * { cursor: grab !important; }
html.sb-snow-grabbing, html.sb-snow-grabbing * { cursor: grabbing !important; user-select: none !important; }
