/* DeMi Store — новогоднее оформление. Включается в админке: Настройки → «Новогоднее оформление». */
.ny{--ny-red:#d93a35;--ny-gold:#e9b949;--ny-pine:#0e2416}

/* верхняя полоса — хвойная, с гирляндой и отсчётом до Нового года */
.ny .topbar{background:linear-gradient(90deg,#0b1f12,#14341d 50%,#0b1f12);position:relative;padding-bottom:14px}
.ny .topbar::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;pointer-events:none;
  background:
    radial-gradient(circle at 12px 9px,#ff5a4e 0 4px,transparent 5px),
    radial-gradient(circle at 44px 11px,#e9b949 0 4px,transparent 5px),
    radial-gradient(circle at 76px 9px,#6fd36b 0 4px,transparent 5px),
    radial-gradient(circle at 108px 11px,#fff 0 4px,transparent 5px),
    radial-gradient(circle at 140px 9px,#5cc8ff 0 4px,transparent 5px);
  background-size:160px 16px;animation:ny-twinkle 2.4s steps(2) infinite;filter:drop-shadow(0 0 4px rgba(255,220,150,.7))}
.ny .topbar::before{content:"";position:absolute;left:0;right:0;bottom:9px;height:1px;background:rgba(255,255,255,.18)}
@keyframes ny-twinkle{50%{opacity:.6}}
.ny .ny-count{color:var(--ny-gold);font-weight:700;white-space:nowrap}
.ny .ny-count svg{vertical-align:-3px;margin-right:6px}

/* логотип со снежинкой */
.ny .header .logo{position:relative}
.ny .header .logo::after{content:"";display:inline-block;width:.7em;height:.7em;margin-left:.2em;vertical-align:.28em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9b949' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M20.7 7 3.3 17M12 2 9.8 4.2M12 2l2.2 2.2M12 22l-2.2-2.2M12 22l2.2-2.2M3.3 7l.9 3M3.3 7l3-.8M20.7 17l-.9-3M20.7 17l-3 .8M20.7 7l-3-.8M20.7 7l-.9 3M3.3 17l3 .8M3.3 17l.9-3'/%3E%3C/svg%3E") center/contain no-repeat;
  animation:ny-spin 12s linear infinite}
@keyframes ny-spin{to{transform:rotate(360deg)}}

/* кнопка «Каталог» и зелёные кнопки — с золотой искрой */
.ny .btn-green{background:linear-gradient(180deg,#24862a,#1a6b1f)}

/* плитки категорий — со снежной «шапкой» */
.ny .cat-tile{position:relative;overflow:hidden;background:linear-gradient(180deg,#f4f8f3,#eef4ed)}
.ny .cat-tile::before{content:"";position:absolute;left:0;right:0;top:0;height:14px;pointer-events:none;
  background:radial-gradient(circle at 10px 0,#fff 0 12px,transparent 13px) 0 0/34px 14px repeat-x,
             radial-gradient(circle at 27px 0,#fff 0 9px,transparent 10px) 0 0/34px 14px repeat-x;
  filter:drop-shadow(0 2px 2px rgba(20,40,20,.08))}
.ny .cat-tile:hover{background:linear-gradient(180deg,#edf5ec,#e4efe3)}

/* заголовки разделов — веточка */
.ny .section-head h2::after{content:"";display:inline-block;width:26px;height:26px;margin-left:10px;vertical-align:-2px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 6 11h3l-4 5h4l-3 4h12l-3-4h4l-4-5h3z' fill='%232f8f34'/%3E%3Ccircle cx='10' cy='13' r='1.3' fill='%23d93a35'/%3E%3Ccircle cx='14.5' cy='16.5' r='1.3' fill='%23e9b949'/%3E%3Ccircle cx='12.5' cy='9.5' r='1.1' fill='%23e9b949'/%3E%3C/svg%3E") center/contain no-repeat}

/* карточки товаров — праздничный бейдж «Хит подарков» у популярных */
.ny .card .ny-gift{position:absolute;top:10px;left:10px;z-index:2;background:var(--ny-red);color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}

/* подвал — сугроб сверху */
.ny .footer{position:relative;background:linear-gradient(180deg,#0e2416,#0a1a10)}
.ny .footer::before{content:"";position:absolute;left:0;right:0;top:-1px;height:22px;pointer-events:none;
  background:radial-gradient(ellipse 34px 16px at 50% 0,#fff 96%,transparent 100%) 0 0/62px 22px repeat-x,
             radial-gradient(ellipse 22px 12px at 0 0,#fff 96%,transparent 100%) 31px 0/62px 22px repeat-x;
  filter:drop-shadow(0 3px 2px rgba(0,0,0,.25))}

/* снег — холст поверх страницы, не мешает кликам */
.ny-snow{position:fixed;inset:0;pointer-events:none;z-index:40}
@media (prefers-reduced-motion:reduce){.ny-snow{display:none}.ny .topbar::after,.ny .header .logo::after{animation:none}}
.ny .topbar .tb-hrs{display:none}
@media (max-width:760px){.ny .ny-count .ny-long{display:none}.ny .topbar .tb-addr{display:none}}
