/* ZenManage — animated neon product labels, in the ZenPharma mock-up style. */
@font-face{font-family:ZenNeon;src:url(fonts/zen-neon.woff) format('woff');font-weight:900;font-style:italic;font-display:swap}

/* ================================================================
   Placement
   ================================================================ */
.zm-pic{position:relative;display:block}
.zm-pic>img{display:block}
.zm-badges{display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none;line-height:0}
/* Cards: full image width (with a little breathing room), centred at the top. */
.zm-badges--card{position:absolute;z-index:5;top:3.5%;left:4%;right:4%}
li.product{position:relative}
li.product>.zm-badges--card{top:12px;left:12px;right:12px}
.zm-badges--card .zm-badge{width:100%}
.zm-badges--single{width:min(100%,430px);margin:6px 0 18px;align-items:stretch}
.zm-badge{display:block;--c:#9dff3c;--t:#f6fff0;color:var(--c)}
.zm-badge svg{display:block;width:100%;height:auto;overflow:visible;
  filter:drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 10px var(--g));
  animation:zm-on 1.1s steps(1,end) both}

/* ================================================================
   Colours  (--c tube, --t text fill, --g outer glow)
   ================================================================ */
.zm-sale{--c:#ff2a4f;--t:#fff3f5;--g:rgba(255,42,79,.55)}
.zm-low {--c:#f4ff2a;--t:#fbffcf;--g:rgba(244,255,42,.45)}
.zm-new {--c:#9dff3c;--t:#eaffd6;--g:rgba(157,255,60,.5)}
.zm-fire{--c:#ff9d19;--t:#fff6e6;--g:rgba(255,120,20,.6)}
.zm-last{--c:#2bdfff;--t:#e6fbff;--g:rgba(43,223,255,.5)}
.zm-bundle{--c:#b45cff;--t:#f6ecff;--g:rgba(180,92,255,.55)}

/* ================================================================
   Neon tube + type
   ================================================================ */
.zm-badge .zm-wall{fill:#04080a;fill-opacity:.93;stroke:none}
.zm-badge .zm-halo{fill:none;stroke:var(--c);stroke-width:10;stroke-linejoin:round;filter:blur(6px);opacity:.75;animation:zm-breathe 2.4s ease-in-out infinite}
.zm-badge .zm-gas{fill:none;stroke:var(--c);stroke-width:3.8;stroke-linejoin:round}
.zm-badge .zm-core{fill:none;stroke:#fff;stroke-width:1.1;stroke-linejoin:round;opacity:.9}
.zm-badge .zm-run{fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-dasharray:40 920;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px var(--c));animation:zm-run 3.4s linear infinite}
.zm-low .zm-run{animation-duration:2.6s}
.zm-badge .zm-t{font-family:ZenNeon,Impact,'Arial Black',Arial,sans-serif;font-weight:900;font-style:italic;letter-spacing:.6px;
  fill:var(--t);stroke:var(--c);stroke-width:.9;paint-order:stroke;
  filter:drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 7px var(--c));animation:zm-flick 6s linear infinite}
.zm-badge .zm-t--xl{font-size:58px}
.zm-badge .zm-t--lg{font-size:42px}
.zm-badge .zm-t--md{font-size:31px}
.zm-badge .zm-t--sm{font-size:27px}
.zm-badge .zm-t--xs{font-size:17px;letter-spacing:1.4px}
.zm-badge .zm-t--num,.zm-badge .zm-t--pct{fill:#fff}
.zm-badge .zm-divider{fill:none;stroke:var(--c);stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 3px var(--c))}
.zm-badge .zm-run{stroke-dasharray:40 830;animation-name:zm-run-s;animation-duration:2.8s}
.zm-badge .zm-icon{color:var(--c);filter:drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 8px var(--c))}
.zm-badge .zm-slashes path{fill:var(--c);filter:drop-shadow(0 0 4px var(--c));animation:zm-chase 1.5s linear infinite}
.zm-badge .zm-slashes path:nth-child(2){animation-delay:.25s}
.zm-badge .zm-slashes path:nth-child(3){animation-delay:.5s}

/* ================================================================
   Per-type motion
   ================================================================ */
/* Sale + low stock: surging glow. */
.zm-pulse .zm-gas{animation:zm-surge 2.4s ease-in-out infinite}
.zm-low .zm-gas,.zm-low .zm-halo{animation-duration:1.9s}
.zm-sale .zm-count,.zm-low .zm-count,.zm-bundle .zm-count{transform-box:fill-box;transform-origin:center;animation:zm-count 1.2s ease-in-out infinite}
.zm-low .zm-warn{animation:zm-blink 1.2s steps(1,end) infinite}
/* New + last: occasional glitch with a sliced echo. */
.zm-glitch .zm-face{animation:zm-glitch 6.7s linear infinite}
.zm-last .zm-face{animation-duration:8.1s;animation-delay:-3.6s}
.zm-badge .zm-echo{opacity:0;pointer-events:none;animation:zm-slice 6.7s linear infinite;clip-path:inset(36% 0 40% 0)}
.zm-last .zm-echo{animation-duration:8.1s;animation-delay:-3.6s}
.zm-new .zm-spark{transform-box:fill-box;transform-origin:center;animation:zm-twinkle 2.2s ease-in-out infinite}
/* Selling fast: corona, flame, arcs, embers. */
.zm-hot .zm-gas{animation:zm-heat 2.1s ease-in-out infinite}
.zm-badge .zm-corona{fill:none;stroke:#ff7318;stroke-width:9;filter:url(#zm-corona-filter);opacity:.75;transform-origin:50% 50%;transform-box:fill-box;animation:zm-corona 1.5s ease-in-out infinite alternate}
.zm-badge .zm-corona.outer{stroke:#ffb623;stroke-width:5;animation-delay:-.7s;animation-duration:1.05s;opacity:.85}
.zm-badge .zm-flame{transform-box:fill-box;transform-origin:50% 95%;filter:drop-shadow(0 0 6px #ff8a19);animation:zm-flame .6s ease-in-out infinite alternate}
.zm-badge .zm-bolt{fill:none;stroke:#fff8c5;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #ffcb65) drop-shadow(0 0 7px #ff6a10);animation:zm-bolt 2.4s linear infinite;opacity:.3}
.zm-badge .zm-bolt.alt{animation-delay:-1.2s}
.zm-badge .zm-ember{fill:#fff0a6;filter:drop-shadow(0 0 3px #ffb333) drop-shadow(0 0 6px #ff5e12);animation:zm-ember 1.8s ease-out infinite;transform-box:fill-box;transform-origin:center}

/* Off-screen badges are paused by labels.js to keep long product grids smooth. */
.zm-badge.is-paused,.zm-badge.is-paused *{animation-play-state:paused!important}

/* ================================================================
   Sale price: full-width row — red price + struck original on the left,
   neon save tag on the right. Animated: price glow breathes, the tag pulses
   and a light sweep crosses it.
   ================================================================ */
.price:has(>.zm-pricing),p.price:has(.zm-pricing),span.price:has(.zm-pricing){display:block!important;width:100%}
.zm-pricing{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;width:100%;box-sizing:border-box;
  padding:.35em .5em .35em .6em;border:1px solid rgba(255,42,79,.35);background:linear-gradient(90deg,rgba(255,42,79,.10),rgba(255,42,79,.02) 60%,rgba(255,42,79,.10));
  animation:zm-row 3s ease-in-out infinite}
.zm-pricing__amt{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1.05}
.zm-pricing__now,.zm-pricing__now .amount,.zm-pricing__now bdi{color:#ff3a5a!important;text-decoration:none!important}
.zm-pricing__now{animation:zm-price 2.4s ease-in-out infinite}
.zm-pricing__was{color:#8ea089!important;font-size:.62em;opacity:1!important;text-decoration:line-through;text-decoration-color:#ff3a5a;text-decoration-thickness:2px;margin-top:3px}
.zm-pricing__was .amount,.zm-pricing__was bdi{color:inherit!important;text-shadow:none!important}
.zm-pricing--range .zm-pricing__amt{color:#ff3a5a;animation:zm-price 2.4s ease-in-out infinite}
.zm-save{position:relative;overflow:hidden;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;margin-left:auto;padding:.28em .85em .3em;line-height:1;
  background:rgba(22,3,8,.92);border:2px solid #ff2a4f;transform:skewX(-14deg);
  animation:zm-tag 1.8s ease-in-out infinite}
.zm-save::before{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);animation:zm-sweep 3.2s ease-in-out infinite;pointer-events:none}
.zm-save b,.zm-save small{position:relative;display:block;transform:skewX(14deg);font-family:ZenNeon,Impact,'Arial Black',Arial,sans-serif;font-style:italic;font-weight:900;color:#fff;letter-spacing:.5px;text-shadow:0 0 4px #ff2a4f,0 0 10px #ff2a4f}
.zm-save b{font-size:.95em}
.zm-save small{font-size:.55em;margin-top:.2em}

/* ================================================================
   Keyframes
   ================================================================ */
@keyframes zm-on{0%{opacity:0}8%{opacity:1}12%{opacity:.15}18%{opacity:1}26%{opacity:.35}30%{opacity:1}100%{opacity:1}}
@keyframes zm-breathe{0%,100%{opacity:.6;stroke-width:9}50%{opacity:1;stroke-width:15}}
@keyframes zm-surge{0%,100%{stroke-width:3.6}50%{stroke-width:4.6}}
@keyframes zm-run{from{stroke-dashoffset:0}to{stroke-dashoffset:-960}}
@keyframes zm-run-s{from{stroke-dashoffset:0}to{stroke-dashoffset:-870}}
@keyframes zm-flick{0%,91%,93.5%,96%,100%{opacity:1}92%{opacity:.35}95%{opacity:.6}}
@keyframes zm-chase{0%,100%{opacity:.25}20%,45%{opacity:1}}
@keyframes zm-count{0%,100%{transform:scale(1)}50%{transform:scale(1.09)}}
@keyframes zm-blink{0%,70%{opacity:1}71%,85%{opacity:.35}86%{opacity:1}}
@keyframes zm-twinkle{0%,100%{transform:scale(1) rotate(0);opacity:1}50%{transform:scale(.82) rotate(45deg);opacity:.75}}
@keyframes zm-glitch{0%,82%,84%,86%,89%,100%{opacity:1;transform:translate(0)}82.3%{opacity:.65;transform:translate(-2px,0)}82.8%{opacity:.95;transform:translate(3px,0)}83.4%{opacity:.45;transform:translate(0,1px)}84.3%{transform:translate(-1px,0)}85.2%{opacity:.8;transform:translate(2px,-1px)}87%{opacity:.7;transform:translate(-2px,0)}88%{opacity:1;transform:translate(0)}}
@keyframes zm-slice{0%,81.9%,84%,85%,88%,100%{opacity:0;transform:translate(0)}82%,83%{opacity:.85;transform:translate(6px,0)}85.3%,86%{opacity:.65;transform:translate(-5px,1px)}}
@keyframes zm-heat{0%,100%{stroke-width:3.8}25%{stroke-width:5}50%{stroke-width:4}75%{stroke-width:4.8}}
@keyframes zm-corona{0%{transform:translateY(0) scaleY(1.02);opacity:.6}45%{transform:translateY(-2px) scaleY(1.12);opacity:.9}100%{transform:translateY(1px) scaleY(1.05);opacity:.7}}
@keyframes zm-flame{from{transform:scale(1.02,1.1) skewX(-4deg)}to{transform:scale(1.1,1) skewX(4deg)}}
@keyframes zm-bolt{0%,42%,62%,100%{opacity:.25}47%,53%{opacity:1}50%{opacity:.6}57%{opacity:.85}}
@keyframes zm-ember{0%{opacity:0;transform:translate(0,6px) scale(.65)}15%{opacity:1}65%{opacity:.8}100%{opacity:0;transform:translate(14px,-26px) scale(.15)}}
@keyframes zm-price{0%,100%{text-shadow:0 0 4px rgba(255,42,79,.6),0 0 10px rgba(255,42,79,.25)}50%{text-shadow:0 0 8px rgba(255,42,79,1),0 0 22px rgba(255,42,79,.6)}}
@keyframes zm-row{0%,100%{border-color:rgba(255,42,79,.25)}50%{border-color:rgba(255,42,79,.7)}}
@keyframes zm-sweep{0%,55%{left:-60%}85%,100%{left:130%}}
@keyframes zm-tag{0%,100%{transform:skewX(-14deg) scale(1);box-shadow:0 0 5px rgba(255,42,79,.8),0 0 12px rgba(255,42,79,.35),inset 0 0 6px rgba(255,42,79,.3)}50%{transform:skewX(-14deg) scale(1.06);box-shadow:0 0 10px rgba(255,42,79,1),0 0 26px rgba(255,42,79,.7),inset 0 0 12px rgba(255,42,79,.5)}}

@media (max-width:600px){
  .zm-badges--card{top:3%;left:3%;right:3%}
  .zm-badge svg{filter:drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 6px var(--g))}
}
@media (prefers-reduced-motion:reduce){
  .zm-badge,.zm-badge *,.zm-save,.zm-save::before,.zm-pricing,.zm-pricing *{animation:none!important}
  .zm-badge .zm-echo,.zm-badge .zm-bolt,.zm-badge .zm-ember,.zm-badge .zm-corona,.zm-badge .zm-run{opacity:0!important}
}
