/* only show the markup matching the chosen style */
body:not([data-card-style="lightning"]) .sf-lightning{display:none!important}
body:not([data-card-style="glitch"]) .sf-glitch{display:none!important}
body:not([data-card-style="fire"]) .sf-fire{display:none!important}

/* ---------- Lightning: two electric-blue bolts flicker across the image ---------- */
.sf-lightning{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;border-radius:inherit}
.sf-lightning svg{position:absolute;width:38%;height:85%;filter:drop-shadow(0 0 6px #7dd3ff) drop-shadow(0 0 14px #3aa8ff);opacity:0}
.sf-lightning svg path{fill:#eaf7ff}
.sf-lightning svg:first-child{left:14%;top:4%;animation:sf-bolt-flash 3.6s ease-in-out infinite}
.sf-lightning-bolt2{right:10%;bottom:2%;left:auto!important;top:auto!important;transform:scaleX(-1);animation:sf-bolt-flash 3.6s ease-in-out infinite .22s}
@keyframes sf-bolt-flash{
  0%,100%{opacity:0;transform:scaleY(.9)}
  2%{opacity:1;transform:scaleY(1.04)}
  4%{opacity:.2}
  6%{opacity:1}
  9%{opacity:0}
  48%{opacity:0}
  50%{opacity:1}
  53%{opacity:0}
}
.sf-lightning-bolt2{transform:scaleX(-1) scaleY(.9)}
@keyframes sf-bolt-flash2{0%,100%{opacity:0}2%{opacity:1}4%{opacity:.15}6%{opacity:1}9%{opacity:0}48%{opacity:0}50%{opacity:1}53%{opacity:0}}
.sf-lightning-bolt2{animation-name:sf-bolt-flash2}
.sf-product-card:has(.sf-lightning)::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(125,211,255,.35);opacity:0;animation:sf-bolt-rim 3.6s ease-in-out infinite}
@keyframes sf-bolt-rim{0%,100%{opacity:0}3%{opacity:1}7%{opacity:0}50%{opacity:0}52%{opacity:.8}56%{opacity:0}}
@media (hover:hover) and (pointer:fine){.sf-product-card:hover .sf-lightning svg{animation-duration:1.4s}}

/* ---------- Glitch: RGB-split scan strips flicker over the image ---------- */
.sf-glitch{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden;border-radius:inherit;mix-blend-mode:screen}
.sf-glitch i{position:absolute;left:0;right:0;height:14%;background-size:cover;opacity:0}
.sf-glitch i:nth-child(1){top:18%;background:linear-gradient(90deg,#ff2a6d,transparent 40%,transparent 60%,#05d9e8);animation:sf-glitch-slice 4.2s steps(1) infinite}
.sf-glitch i:nth-child(2){top:48%;height:10%;background:linear-gradient(90deg,#05d9e8,transparent 35%,transparent 65%,#ff2a6d);animation:sf-glitch-slice 4.2s steps(1) infinite .9s}
.sf-glitch i:nth-child(3){top:70%;height:8%;background:linear-gradient(90deg,#ff2a6d,transparent 50%,#05d9e8);animation:sf-glitch-slice 4.2s steps(1) infinite 2.1s}
@keyframes sf-glitch-slice{
  0%,92%{opacity:0;transform:translateX(0)}
  93%{opacity:.85;transform:translateX(-4%)}
  94%{opacity:.85;transform:translateX(3%)}
  95%{opacity:.7;transform:translateX(-2%)}
  96%{opacity:0;transform:translateX(0)}
}
.sf-product-card:has(.sf-glitch) .sf-product-image{animation:sf-glitch-rgb 4.2s steps(1) infinite}
@keyframes sf-glitch-rgb{
  0%,92%{filter:none}
  93%{filter:drop-shadow(2px 0 0 #ff2a6d) drop-shadow(-2px 0 0 #05d9e8)}
  95%{filter:drop-shadow(-1px 0 0 #ff2a6d) drop-shadow(1px 0 0 #05d9e8)}
  96%,100%{filter:none}
}
@media (hover:hover) and (pointer:fine){.sf-product-card:hover .sf-glitch i,.sf-product-card:hover .sf-product-image{animation-duration:1.1s}}

/* ---------- Fire: flickering flame glow licks up from the bottom edge ---------- */
.sf-fire{position:absolute;inset:auto 0 0 0;height:46%;z-index:3;pointer-events:none;overflow:hidden;border-radius:0 0 inherit inherit}
.sf-fire i{position:absolute;bottom:-10%;width:26%;height:85%;border-radius:50% 50% 42% 42%/60% 60% 40% 40%;
  background:radial-gradient(circle at 50% 85%,#fff6c8 0%,#ffcf5e 22%,#ff8a1e 48%,#ff4b1f 68%,transparent 78%);
  opacity:.85;filter:blur(.5px);transform-origin:50% 100%;mix-blend-mode:screen;animation:sf-flame-flicker 1.6s ease-in-out infinite}
.sf-fire i:nth-child(1){left:2%;animation-duration:1.5s}
.sf-fire i:nth-child(2){left:22%;height:100%;animation-duration:1.9s;animation-delay:.15s}
.sf-fire i:nth-child(3){left:42%;width:30%;height:112%;animation-duration:1.7s;animation-delay:.3s;background:radial-gradient(circle at 50% 85%,#fff9d8 0%,#ffd873 20%,#ff9a2e 46%,#ff5522 66%,transparent 78%)}
.sf-fire i:nth-child(4){left:66%;height:96%;animation-duration:2.1s;animation-delay:.1s}
.sf-fire i:nth-child(5){left:84%;width:24%;animation-duration:1.6s;animation-delay:.25s}
@keyframes sf-flame-flicker{
  0%,100%{transform:scaleY(1) scaleX(1) translateX(0) rotate(0deg);opacity:.75}
  25%{transform:scaleY(1.12) scaleX(.92) translateX(-2%) rotate(-3deg);opacity:.95}
  50%{transform:scaleY(.94) scaleX(1.05) translateX(1%) rotate(2deg);opacity:.7}
  75%{transform:scaleY(1.08) scaleX(.96) translateX(-1%) rotate(-1deg);opacity:.9}
}
.sf-product-card:has(.sf-fire)::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;
  box-shadow:0 0 18px 2px rgba(255,120,30,.35),inset 0 -14px 20px -8px rgba(255,120,30,.3);animation:sf-fire-pulse 1.8s ease-in-out infinite}
@keyframes sf-fire-pulse{0%,100%{opacity:.6}50%{opacity:1}}
@media (hover:hover) and (pointer:fine){.sf-product-card:hover .sf-fire i{animation-duration:.8s}}

body[data-motion="off"] :is(.sf-lightning,.sf-glitch,.sf-fire){display:none}
@media (prefers-reduced-motion:reduce){:is(.sf-lightning,.sf-glitch,.sf-fire){display:none}}
