/* ============================================================
   MUK Health - Winter / 12.12 / Holiday season layer
   Loaded only between the dates set in muk-winter.php.
   Everything here is decorative: pointer-events:none on all
   overlays, and motion is off under prefers-reduced-motion.
   ============================================================ */

:root{
  --mkw-ice:#CFE3EA;
  --mkw-ice-deep:#7FA3B1;
  --mkw-forest:#1F3D2C;
  --mkw-forest-deep:#0E1C13;
  --mkw-gold:#C9A86A;
  --mkw-cream:#F7F4EC;
}

/* ---------- 1. Falling snow canvas ---------- */
.mkw-snow{
  position:fixed; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:8000;
  opacity:0; transition:opacity .9s ease;
}
.mkw-snow.is-on{opacity:1}

/* ---------- 2. Season bar (replaces the announcement text) ---------- */
#muk-announce.mkw-bar{
  position:relative; overflow:hidden;
  background:linear-gradient(90deg,var(--mkw-forest-deep),var(--mkw-forest) 50%,var(--mkw-forest-deep)) !important;
}
#muk-announce.mkw-bar::before{
  /* faint drifting frost sparkle across the bar */
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 30%,rgba(255,255,255,.55),transparent 60%),
    radial-gradient(1px 1px at 28% 70%,rgba(255,255,255,.45),transparent 60%),
    radial-gradient(1.4px 1.4px at 47% 25%,rgba(255,255,255,.5),transparent 60%),
    radial-gradient(1px 1px at 63% 65%,rgba(255,255,255,.4),transparent 60%),
    radial-gradient(1.3px 1.3px at 81% 35%,rgba(255,255,255,.5),transparent 60%),
    radial-gradient(1px 1px at 93% 72%,rgba(255,255,255,.4),transparent 60%);
  background-size:420px 100%;
  animation:mkw-bar-drift 28s linear infinite;
}
@keyframes mkw-bar-drift{to{background-position:420px 0}}

.mkw-bar__in{
  position:relative; z-index:1;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:4px 14px;
  font-family:"Jost",sans-serif; font-size:13px; letter-spacing:.04em;
  color:var(--mkw-cream); line-height:1.4; text-align:center;
}
.mkw-bar__tag{
  font-family:"Cormorant Garamond",serif; font-weight:700; font-size:16px;
  letter-spacing:.02em; color:var(--mkw-gold);
}
.mkw-bar__flake{display:inline-block; color:var(--mkw-ice); margin-right:6px; animation:mkw-spin 9s linear infinite}
@keyframes mkw-spin{to{transform:rotate(360deg)}}
.mkw-bar__msg strong{color:#fff; font-weight:600}
.mkw-cd{
  display:inline-flex; gap:4px; align-items:center;
  font-variant-numeric:tabular-nums;
}
.mkw-cd__lbl{opacity:.8; margin-right:2px}
.mkw-cd__u{
  display:inline-flex; align-items:baseline; gap:1px;
  padding:2px 6px; border-radius:4px;
  background:rgba(207,227,234,.12); border:1px solid rgba(207,227,234,.22);
  color:#fff; font-weight:500;
}
.mkw-cd__u small{font-size:10px; opacity:.75; margin-left:1px}
.mkw-bar__cta{
  color:var(--mkw-forest-deep) !important; background:var(--mkw-gold);
  padding:3px 12px; border-radius:999px; font-weight:600; font-size:12px;
  letter-spacing:.06em; text-transform:uppercase; text-decoration:none !important;
  transition:background-color .25s ease, transform .25s ease;
}
.mkw-bar__cta:hover{background:#E3C98F; transform:translateY(-1px)}
@media (max-width:640px){
  .mkw-bar__in{font-size:12px; gap:4px 10px; padding:2px 0}
  .mkw-bar__tag{font-size:15px}
  .mkw-cd__u{padding:1px 5px}
}

/* ---------- 3. Frosted hero ---------- */
.muk .muk-hero.mkw-frosted{position:relative}
.mkw-frost{
  position:absolute; inset:0; pointer-events:none; z-index:6;
  opacity:0; transition:opacity 2.4s ease .4s;
  /* frost creeping in from the edges, clear in the middle */
  background:
    radial-gradient(ellipse 38% 30% at 0% 0%, rgba(255,255,255,.75), rgba(214,232,239,.35) 45%, transparent 72%),
    radial-gradient(ellipse 34% 28% at 100% 0%, rgba(255,255,255,.65), rgba(214,232,239,.3) 45%, transparent 72%),
    radial-gradient(ellipse 36% 30% at 0% 100%, rgba(255,255,255,.6), rgba(214,232,239,.28) 45%, transparent 72%),
    radial-gradient(ellipse 40% 32% at 100% 100%, rgba(255,255,255,.7), rgba(214,232,239,.32) 45%, transparent 72%);
  box-shadow:inset 0 0 60px rgba(207,227,234,.55), inset 0 0 2px rgba(255,255,255,.9);
}
.mkw-frost.is-on{opacity:1}
.mkw-frost svg{position:absolute; width:min(34vw,320px); height:auto; opacity:.55}
.mkw-frost .tl{top:-6px; left:-6px}
.mkw-frost .tr{top:-6px; right:-6px; transform:scaleX(-1)}
.mkw-frost .bl{bottom:-6px; left:-6px; transform:scaleY(-1)}
.mkw-frost .br{bottom:-6px; right:-6px; transform:scale(-1,-1)}
@media (max-width:767px){
  .mkw-frost svg{width:46vw; opacity:.45}
}

/* ---------- 4. Icy shimmer on the hero headline ---------- */
.muk .muk-hero h1.elementor-heading-title.mkw-ice-text{
  background:linear-gradient(100deg,
     var(--mkw-forest) 0%, var(--mkw-forest) 40%,
     #4F7C8C 48%, #9CC0CC 50%, #4F7C8C 52%,
     var(--mkw-forest) 60%, var(--mkw-forest) 100%);
  background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:var(--mkw-forest);
  animation:mkw-shine 7s ease-in-out infinite;
}
@keyframes mkw-shine{
  0%,20%{background-position:120% 0}
  60%,100%{background-position:-20% 0}
}

/* ---------- 5. Snow caps ---------- */
.mkw-capped{position:relative}
.mkw-cap{
  position:absolute; left:6px; right:6px; top:-7px; height:12px;
  pointer-events:none; z-index:5;
  filter:drop-shadow(0 2px 2px rgba(14,28,19,.18));
}
.mkw-cap svg{display:block; width:100%; height:100%}
ul.products li.product a.button.mkw-capped{overflow:visible}
ul.products li.product a.button.mkw-capped .mkw-cap{left:4px; right:4px; top:-6px; height:11px}

/* ---------- 6. Snow on/off toggle ---------- */
.mkw-toggle{
  position:fixed; left:18px; bottom:calc(18px + env(safe-area-inset-bottom,0px));
  z-index:8100; width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--mkw-forest); color:var(--mkw-ice);
  border:1px solid rgba(201,168,106,.55); cursor:pointer; padding:0;
  box-shadow:0 8px 22px -10px rgba(14,28,19,.6);
  transition:transform .25s ease, background-color .25s ease, opacity .25s ease;
}
.mkw-toggle:hover{transform:translateY(-2px)}
.mkw-toggle:focus-visible{outline:2px solid var(--mkw-gold); outline-offset:3px}
.mkw-toggle svg{width:22px; height:22px}
.mkw-toggle[aria-pressed="false"]{background:var(--mkw-cream); color:var(--mkw-forest); opacity:.85}
.mkw-toggle[aria-pressed="false"]::after{
  content:""; position:absolute; width:26px; height:2px; background:currentColor;
  transform:rotate(-45deg); border-radius:2px;
}

/* ---------- 7. 12.12 line in cart / checkout ---------- */
.mkw-cart-note{
  border-left:3px solid var(--mkw-gold); background:#F2F6F7;
  padding:10px 14px; margin:0 0 18px; font-family:"Jost",sans-serif;
  color:var(--mkw-forest);
}

/* ---------- Reduced motion: keep the look, drop the movement ---------- */
@media (prefers-reduced-motion:reduce){
  #muk-announce.mkw-bar::before,
  .mkw-bar__flake,
  .muk .muk-hero h1.elementor-heading-title.mkw-ice-text{animation:none}
}

/* ============================================================
   EXTREME WINTER - v2
   Everything below is scoped to body.mkw-on (added by JS) so it
   disappears with the season.
   ============================================================ */

/* ---------- A. Icy palette: cream becomes frost ---------- */
body.mkw-on{
  --cream:#F1F6F9; --cream-2:#E5EEF3; --cream-3:#D7E5EC;
  --line:rgba(40,80,95,.16);
  background-color:#F1F6F9;
}
body.mkw-on.elementor-kit-5{
  --e-global-color-cream:#F1F6F9;
  --e-global-color-cream2:#E5EEF3;
  --e-global-color-cream3:#D7E5EC;
}
/* homepage sections that hard-code cream */
body.mkw-on .elementor-element.elementor-element-mk950a310,
body.mkw-on .elementor-element.elementor-element-mkfaec043,
body.mkw-on .elementor-element.elementor-element-mk24010c2{background-color:#E5EEF3 !important}
body.mkw-on .elementor-element.elementor-element-mk66e6003{background-color:#F1F6F9 !important}
/* hero: frozen morning */
body.mkw-on .muk-hero{
  background-image:linear-gradient(160deg,#F4F9FB 0%,#E2EEF4 45%,#CFE2EB 100%) !important;
}
/* header: frosted ice glass */
body.mkw-on #mukHdr{background-color:#F1F6F9 !important}
body.mkw-on .muk .muk-hdr.mk-stuck,
body.mkw-on .muk-hdr.mk-stuck{background-color:rgba(236,244,248,.84) !important}

/* ---------- B. Dark sections: polar night with aurora ---------- */
body.mkw-on .elementor-element.elementor-element-mk7eb6b77,
body.mkw-on .elementor-element.elementor-element-mk092d219{
  background-color:#0D1F1C !important;
  background-image:
    radial-gradient(60% 55% at 18% 0%, rgba(70,200,160,.30), transparent 70%),
    radial-gradient(55% 50% at 62% 0%, rgba(80,170,210,.26), transparent 72%),
    radial-gradient(45% 45% at 92% 8%, rgba(140,120,220,.18), transparent 70%),
    linear-gradient(180deg,#0B1A1A 0%,#122A26 100%) !important;
  background-size:180% 100%,160% 100%,150% 100%,100% 100% !important;
  animation:mkw-aurora 26s ease-in-out infinite alternate;
}
@keyframes mkw-aurora{
  0%  {background-position:0% 0,100% 0,50% 0,0 0}
  50% {background-position:60% 0,30% 0,0% 0,0 0}
  100%{background-position:100% 0,0% 0,90% 0,0 0}
}
#muk-announce.mkw-bar{
  background:linear-gradient(90deg,#071513,#0F2A2E 50%,#071513) !important;
}

/* ---------- C. Icicles hanging from the header ---------- */
body.mkw-on #mukHdr{position:relative; overflow:visible}
.mkw-icicles{
  position:absolute; left:0; right:0; top:100%; height:46px;
  pointer-events:none; z-index:20; overflow:visible;
}
.mkw-icicles svg{display:block; width:100%; height:100%; overflow:visible}
.mkw-drip{
  fill:#D6EBF3; opacity:0;
  animation:mkw-drip 7s ease-in infinite;
}
@keyframes mkw-drip{
  0%,78%{opacity:0; transform:translateY(0)}
  80%{opacity:1; transform:translateY(0)}
  100%{opacity:0; transform:translateY(70px)}
}
.mkw-icicle-shine{animation:mkw-ice-glint 5s ease-in-out infinite}
@keyframes mkw-ice-glint{0%,100%{opacity:.25}50%{opacity:.9}}
@media (max-width:767px){ .mkw-icicles{height:30px} }

/* ---------- D. Snow drifts ---------- */
.mkw-drifted{position:relative}
.mkw-drift{
  position:absolute; left:0; right:0; pointer-events:none; z-index:7;
  height:64px; line-height:0;
}
.mkw-drift svg{display:block; width:100%; height:100%}
.mkw-drift--bottom{bottom:-1px}
.mkw-drift--top{top:-34px; height:58px}
@media (max-width:767px){
  .mkw-drift{height:38px}
  .mkw-drift--top{top:-22px; height:36px}
}

/* ---------- E. Frozen screen edges ---------- */
.mkw-glass{
  position:fixed; inset:0; pointer-events:none; z-index:7990;
  box-shadow:inset 0 0 90px 10px rgba(205,228,238,.55), inset 0 0 6px 1px rgba(255,255,255,.7);
  opacity:0; transition:opacity 2s ease;
}
.mkw-glass.is-on{opacity:1}
.mkw-glass svg{position:absolute; width:min(26vw,260px); height:auto; opacity:.6}
.mkw-glass .tl{top:0; left:0}
.mkw-glass .tr{top:0; right:0; transform:scaleX(-1)}
.mkw-glass .bl{bottom:0; left:0; transform:scaleY(-1)}
.mkw-glass .br{bottom:0; right:0; transform:scale(-1,-1)}
@media (max-width:767px){
  .mkw-glass{box-shadow:inset 0 0 40px 4px rgba(205,228,238,.5)}
  .mkw-glass svg{width:34vw; opacity:.45}
}

/* ---------- F. Frosty headings ---------- */
body.mkw-on .muk-sec-head h2,
body.mkw-on .muk-sec-head .elementor-heading-title{
  text-shadow:0 1px 0 rgba(255,255,255,.9), 0 0 22px rgba(150,200,220,.55);
}
body.mkw-on .muk-on-dark .elementor-heading-title,
body.mkw-on .elementor-element-mk7eb6b77 .elementor-heading-title{
  text-shadow:0 0 24px rgba(140,220,230,.35);
}

/* ---------- G. Product cards: ice blocks with snow on top ---------- */
body.mkw-on ul.products li.product{
  overflow:visible !important;
  box-shadow:0 0 0 1px #CFE2EA, 0 18px 34px -22px rgba(40,100,125,.55) !important;
  transition:box-shadow .35s ease, transform .35s ease;
}
body.mkw-on ul.products li.product:hover{
  box-shadow:0 0 0 1px #A9CCDA, 0 0 26px rgba(160,210,228,.65), 0 22px 40px -22px rgba(40,100,125,.6) !important;
}
.mkw-cardcap{
  position:absolute; left:-4px; right:-4px; top:-14px; height:22px;
  pointer-events:none; z-index:6;
  filter:drop-shadow(0 3px 3px rgba(40,95,120,.28));
}
.mkw-cardcap svg{display:block; width:100%; height:100%}

/* ---------- H. Buttons: frosty edge ---------- */
body.mkw-on .muk-btn-primary .elementor-button,
body.mkw-on ul.products li.product a.button{
  box-shadow:inset 0 1px 0 rgba(220,240,248,.35), 0 8px 18px -10px rgba(20,60,75,.6);
}

@media (prefers-reduced-motion:reduce){
  body.mkw-on .elementor-element.elementor-element-mk7eb6b77,
  body.mkw-on .elementor-element.elementor-element-mk092d219,
  .mkw-drip,.mkw-icicle-shine{animation:none}
}
/* ============================================================
   BREAK THE ICE - frozen cards and buttons (v3)
   ============================================================ */
.mkw-ice{
  position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  z-index:4; overflow:hidden;
}
/* buttons: a clear ice sheet over the green, frosted rim, diagonal sheen */
.mkw-ice--btn{
  background:
    linear-gradient(118deg, rgba(255,255,255,.42) 0%, rgba(220,240,248,.10) 22%, rgba(255,255,255,0) 40%,
                    rgba(255,255,255,.20) 52%, rgba(255,255,255,0) 60%, rgba(205,232,243,.30) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.85),
    inset 0 0 10px 1px rgba(200,232,245,.80),
    inset 0 2px 0 rgba(255,255,255,.9);
}
/* cards: thick frost round the edges, clear in the middle so the product shows */
.mkw-ice--card{
  z-index:4;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(255,255,255,0) 52%, rgba(225,242,249,.55) 82%, rgba(255,255,255,.85) 100%),
    linear-gradient(125deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 62%, rgba(214,238,247,.35) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.95),
    inset 0 0 28px 4px rgba(190,226,242,.75),
    inset 0 0 4px rgba(255,255,255,1);
}
.mkw-ice__cracks{position:absolute; inset:0; width:100%; height:100%; opacity:.75}
/* a glint that runs across the ice now and then */
.mkw-ice__glint{
  position:absolute; top:-20%; bottom:-20%; width:38%; left:-60%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-18deg);
  animation:mkw-glint 5.5s ease-in-out infinite;
}
.mkw-ice--card .mkw-ice__glint{animation-duration:7s; width:30%}
@keyframes mkw-glint{0%,62%{left:-60%}100%{left:130%}}

/* the frozen element itself looks cold */
.mkw-icehost--btn.mkw-frozen{filter:saturate(.75) brightness(1.04)}
.mkw-icehost--card.mkw-frozen img{filter:saturate(.85) brightness(1.02)}
.mkw-icehost--card.mkw-frozen:hover .mkw-ice{box-shadow:inset 0 0 0 1px #fff, inset 0 0 34px 6px rgba(175,220,240,.9), inset 0 0 4px #fff}

/* thaw flash after breaking */
.mkw-flash{animation:mkw-flash .7s ease-out}
@keyframes mkw-flash{
  0%{box-shadow:0 0 0 0 rgba(255,255,255,.95), 0 0 30px 6px rgba(190,230,245,.9)}
  100%{box-shadow:0 0 0 0 rgba(255,255,255,0), 0 0 0 0 rgba(190,230,245,0)}
}

/* flying shards (fixed layer laid exactly over the element) */
.mkw-shatter{position:fixed; z-index:8050; pointer-events:none; overflow:visible}
.mkw-shard{
  position:absolute; inset:0; will-change:transform,opacity;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(222,241,249,.75) 35%, rgba(185,222,238,.6) 70%, rgba(255,255,255,.85) 100%);
}
.mkw-shatter__cracks{position:absolute; inset:0; z-index:2; filter:drop-shadow(0 0 2px rgba(120,180,205,.9))}
.mkw-shatter__cracks svg{display:block; overflow:visible}

@media (prefers-reduced-motion:reduce){
  .mkw-ice__glint{animation:none; display:none}
}