/**
 * Праздничные микро-детали: гирлянда над лентой, логотип, адвент, карточки, Кэри.
 * Только body.sk-winter-magic
 */

/* ── Шрифты (только заголовки зимних блоков) ── */
html body.sk-winter-magic .sk-wm-title,
html body.sk-winter-magic .sk-wm-cal__title,
html body.sk-winter-magic .sk-hero--winter26 .sk-hero__title {
  font-family: "Cormorant Infant", "PT Serif", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html body.sk-winter-magic .sk-wm-kicker {
  font-family: "Marck Script", "Comic Sans MS", cursive;
  text-transform: none;
  font-size: 1.05rem;
  letter-spacing: 0;
}

/* ── Динамика фона: мерцание «гирлянды на ёлке» ── */
@keyframes sk-wm-tree-glow {
  0%,
  100% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.48;
    transform: translate3d(0, -0.6%, 0) scale(1.02);
  }
}

/* Мерцание огоньков — только золото и зелень (без розового/красного) */
html body.sk-winter-magic:not(.sk-winter-quiet):not(.sk-gems)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.26;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 120, 0.5) 0, transparent 8%),
    radial-gradient(circle at 22% 14%, rgba(127, 200, 169, 0.45) 0, transparent 7%),
    radial-gradient(circle at 88% 10%, rgba(255, 214, 120, 0.42) 0, transparent 9%),
    radial-gradient(circle at 78% 18%, rgba(27, 143, 86, 0.4) 0, transparent 7%),
    radial-gradient(circle at 92% 26%, rgba(255, 234, 160, 0.35) 0, transparent 6%);
  animation: sk-wm-tree-glow 5.6s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* ── Праздничный логотип: звезда на гребне ── */
html body.sk-winter-magic .sk-lux-logo__crest {
  position: relative;
}

html body.sk-winter-magic .sk-lux-logo__crest::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  pointer-events: none;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 78%, #e8c477 0 28%, transparent 30%),
    conic-gradient(from -24deg, #fff6d4 0 25%, #d4af37 25% 50%, #fff6d4 50% 75%, #d4af37 75% 100%);
  clip-path: polygon(50% 0%, 61% 38%, 100% 38%, 68% 58%, 79% 100%, 50% 76%, 21% 100%, 32% 58%, 0% 38%, 39% 38%);
  filter: drop-shadow(0 0 6px rgba(232, 196, 119, 0.75));
  animation: sk-wm-star-twist 6s ease-in-out infinite;
}

@keyframes sk-wm-star-twist {
  50% {
    transform: rotate(8deg) scale(1.06);
  }
}

/* ── Санта → каталог (десктоп) ── */
html body.sk-winter-magic .sk-wm-santa-hint {
  display: none;
}

@media (min-width: 921px) {
  html body.sk-winter-magic .sk-wm-santa-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.2;
    color: #fff9ed !important;
    -webkit-text-fill-color: #fff9ed !important;
    background: linear-gradient(135deg, rgba(45, 107, 79, 0.92), rgba(26, 74, 54, 0.95));
    border: 1px solid rgba(232, 196, 119, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  html body.sk-winter-magic .sk-wm-santa-hint:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
  }

  html body.sk-winter-magic .sk-wm-santa-hint__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 34px;
    background:
      radial-gradient(circle at 50% 28%, #fff 0 38%, transparent 40%),
      linear-gradient(180deg, #c62828 0 42%, #fff 42% 58%, #c62828 58% 100%);
    position: relative;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  }

  html body.sk-winter-magic .sk-wm-santa-hint__icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 13px 18px 13px;
    border-color: transparent transparent #c62828 transparent;
    transform: rotate(-18deg);
  }

  html body.sk-winter-magic .sk-wm-santa-hint__icon::after {
    content: "";
    position: absolute;
    right: 3px;
    top: 1px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  html body.sk-winter-magic .sk-wm-santa-hint__arrow {
    opacity: 0.85;
    font-size: 1rem;
  }
}

/* ── Гирлянда над нижней лентой ── */
html body.sk-winter-magic .sk-wm-garland--feed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 91;
  height: 14px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 74, 54, 0.35), transparent);
}

html body.sk-winter-magic .sk-wm-garland--feed i {
  width: 8px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: sk-wm-twinkle-feed 2.4s infinite ease-in-out;
  opacity: 0.45;
  box-shadow: none;
}

html body.sk-winter-magic .sk-wm-garland--feed i:nth-child(3n) {
  background: #e8c477;
  animation-delay: 0.3s;
}

html body.sk-winter-magic .sk-wm-garland--feed i:nth-child(3n + 1) {
  background: #e05a5a;
  animation-delay: 0.9s;
}

html body.sk-winter-magic .sk-wm-garland--feed i:nth-child(3n + 2) {
  background: #7fc8a9;
  animation-delay: 1.5s;
}

@keyframes sk-wm-twinkle-feed {
  0%,
  100% {
    opacity: 0.35;
    box-shadow: none;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 8px currentColor;
  }
}

html body.sk-winter-magic:not(.sk-has-live-feed) .sk-wm-garland--feed {
  display: none;
}

/* ── Адвент-окошки ── */
html body.sk-winter-magic .sk-wm-door {
  transition: transform 0.28s ease, box-shadow 0.35s ease;
}

html body.sk-winter-magic .sk-wm-door.is-locked {
  background: linear-gradient(165deg, #052318, #0f5a38) !important;
  color: #fff9ed !important;
  -webkit-text-fill-color: #fff9ed !important;
  box-shadow: inset 0 0 0 1px rgba(232, 196, 119, 0.45);
}

html body.sk-winter-magic .sk-wm-door.is-locked strong,
html body.sk-winter-magic .sk-wm-door.is-locked .sk-wm-door__date {
  color: #e8c477 !important;
  -webkit-text-fill-color: #e8c477 !important;
}

html body.sk-winter-magic .sk-wm-door.is-locked:hover {
  transform: rotate(-1.5deg);
}

html body.sk-winter-magic .sk-wm-door.is-open.sk-wm-advent--today {
  animation: sk-wm-advent-pulse 2.5s infinite;
  border: 1px solid #e8c477 !important;
}

@keyframes sk-wm-advent-pulse {
  50% {
    box-shadow: 0 0 14px rgba(232, 196, 119, 0.5);
  }
}

html body.sk-winter-magic .sk-wm-door.is-open.sk-wm-advent--today .sk-wm-door__date::after {
  content: " · сегодня";
  font-weight: 600;
}

/* Снежный разделитель под блоком чудес */
html body.sk-winter-magic .sk-wm-cal::after {
  content: "";
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 12px;
  opacity: 0.75;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.55' d='M0 8h8v4H0zm16 6h8v6h-8zm16 4h8v8h-8zm16 2h8v10h-8zm16 4h8v8h-8zm16 6h8v6h-8zm16 8h8v4h-8z'/%3E%3C/svg%3E")
    repeat-x;
}

/* ── Карточки товаров: мороз + свечение ── */
html body.sk-gems.sk-winter-magic:not(.woocommerce-checkout) ul.products li.product:not(.product-category) {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.sk-gems.sk-winter-magic:not(.woocommerce-checkout) ul.products li.product:not(.product-category):hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(232, 196, 119, 0.22) !important;
  }
}

html body.sk-winter-magic span.onsale,
html body.sk-winter-magic .woocommerce span.onsale {
  background: linear-gradient(165deg, #e8c477, #0f5a38) !important;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 10px rgba(232, 196, 119, 0.35) !important;
}

/* ── Колпачок на букве «и» в имени Кэри (док ассистента) ── */
html body.sk-winter-magic .sk-guide__dock-txt strong {
  position: relative;
}

html body.sk-winter-magic .sk-wm-santa-letter {
  position: relative;
  display: inline-block;
  z-index: 1;
}

html body.sk-winter-magic .sk-wm-santa-letter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  width: 17px;
  height: 11px;
  margin-left: -8px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, #d32f2f, #8e0000);
  clip-path: polygon(0 100%, 10% 8%, 50% 0, 90% 8%, 100% 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-6deg);
}

html body.sk-winter-magic .sk-wm-santa-letter::before {
  content: "";
  position: absolute;
  left: calc(50% + 7px);
  bottom: calc(100% + 5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 3;
  transform: rotate(-6deg);
}

@media (prefers-reduced-motion: reduce) {
  html body.sk-winter-magic:not(.sk-winter-quiet):not(.sk-gems)::after,
  html body.sk-winter-magic .sk-lux-logo__crest::before,
  html body.sk-winter-magic .sk-wm-garland--feed i,
  html body.sk-winter-magic .sk-wm-door.is-open.sk-wm-advent--today {
    animation: none !important;
  }
}