/* Haco Core: calculator icon in the header (phrase, little hand), link on the products, availability badges. Loaded on every page. */
/* availability on the product cards */
.hstock{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-size:14px;font-weight:800;line-height:1.6;padding:2px 12px;border-radius:999px;border:1.5px solid currentColor}
.hstock i{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.hstock-yes{color:#25D366}.hstock-order{color:#F2B01B}.hstock-out{color:#ff6b6b}
.hstock-yes i{animation:hstockPulse 2s ease-in-out infinite}
@keyframes hstockPulse{0%,100%{opacity:1}50%{opacity:.35}}

/* header icon of the calculator, link on the products, home card */
.hcalc-ic{position:relative;display:flex;width:66px;height:66px;box-sizing:border-box;align-items:center;justify-content:center;border:3px solid #34373d;border-radius:20px;color:#fff;transition:border-color .25s}
.hcalc-ic:hover,.hcalc-ic.on{border-color:var(--haco-accent,#F26A1B)}
.hcalc-ic svg{transition:transform .3s ease}.hcalc-ic:hover svg{transform:translateY(-2px) rotate(-6deg)}
.hcalc-icl{position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:800;line-height:1.5;background:#0d0e10;color:#fff;padding:0 5px;border-radius:6px;white-space:nowrap}
@media (max-width:760px){.hcalc-ic{width:48px;height:48px;border-radius:15px}.hcalc-ic svg{width:24px;height:24px}.hcalc-icl{display:none}}

.hcalc-ic{overflow:visible}
.hcalc-say{position:absolute;top:calc(100% + 12px);left:0;z-index:40;display:inline-flex;align-items:stretch;white-space:nowrap;font-size:14px;font-weight:800;line-height:1.4;border-radius:12px;box-shadow:0 10px 24px rgba(0,0,0,.45);opacity:0;transform:translateY(-6px) scale(.96);transition:opacity .35s ease,transform .35s ease;pointer-events:none}
.hcalc-say b{display:block;padding:7px 11px;font-weight:800;color:#0d0e10}
.hcalc-say .hc-s1{background:var(--haco-accent,#F26A1B);border-radius:12px}
.hcalc-say .hc-s2{background:#fff;border-start-end-radius:12px;border-end-end-radius:12px}
.hcalc-say .hc-s1:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}
.hcalc-say::before{content:"";position:absolute;top:-6px;left:24px;border:6px solid transparent;border-top:0;border-bottom-color:var(--haco-accent,#F26A1B)}
.hcalc-ic.say{border-color:var(--haco-accent,#F26A1B)}
.hcalc-ic.say .hcalc-say{opacity:1;transform:none;pointer-events:auto}
.hcalc-ic.say:not([data-hand]) svg{animation:hcalcTap .9s ease-in-out}
@keyframes hcalcTap{0%,100%{transform:none}25%{transform:translateY(-3px) rotate(-8deg)}50%{transform:translateY(0) rotate(6deg)}75%{transform:translateY(-2px) rotate(-3deg)}}
html[lang=ku] .hcalc-say{left:auto;right:0}html[lang=ku] .hcalc-say::before{left:auto;right:24px}
@media (max-width:760px){.hcalc-say{font-size:13px;top:calc(100% + 10px)}.hcalc-say::before{left:14px}html[lang=ku] .hcalc-say::before{right:14px}}
@media (max-width:350px){.hcalc-say,html[lang=ku] .hcalc-say{left:50%;right:auto;transform:translate(-50%,-6px)}.hcalc-ic.say .hcalc-say,html[lang=ku] .hcalc-ic.say .hcalc-say{transform:translate(-50%,0)}.hcalc-say::before,html[lang=ku] .hcalc-say::before{left:50%;right:auto;margin-left:-6px}}
.hcalc-plink{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:12px;border:2px dashed #3a3d42;color:#fff;font-weight:800;font-size:16px;text-decoration:none;transition:border-color .2s,color .2s}
.hcalc-plink svg{color:var(--haco-accent,#F26A1B)}
.hcalc-plink:hover{border-color:var(--haco-accent,#F26A1B);color:var(--haco-accent,#F26A1B)}

/* the little hand on the calculator icon: it comes in, taps three keys (each key lights), the screen lights as if showing the result, then it goes.
   It is drawn inside the icon's drawing (sizes in the drawing's units, so it is right on every screen size).
   Hidden when the visitor asked for less motion (the theme turns all animations off then, and the hand stays invisible). */
.hcalc-ic svg{overflow:visible}
.hcalc-ic .hch{opacity:0;transform:translate(11px,18px) scale(.7);pointer-events:none}
.hcalc-ic.tap .hch{animation:hcalcHand 2.6s ease-in-out both}
.hcalc-ic.tap .hck0{animation:hcalcKey 2.6s linear both}
.hcalc-ic.tap .hck5{animation:hcalcKey5 2.6s linear both}
.hcalc-ic.tap .hck1{animation:hcalcKey1 2.6s linear both}
.hcalc-ic.tap .hcs{animation:hcalcScr 2.6s linear both}
@keyframes hcalcHand{
 0%{opacity:0;transform:translate(11px,19px) scale(.7)}
 10%{opacity:1;transform:translate(2.1px,12.7px) scale(.7)}
 16%{transform:translate(.6px,10.8px) scale(.66)}
 22%{transform:translate(2.1px,12.7px) scale(.7)}
 36%{transform:translate(10.1px,16.7px) scale(.7)}
 42%{transform:translate(8.6px,14.8px) scale(.66)}
 48%{transform:translate(10.1px,16.7px) scale(.7)}
 62%{transform:translate(6.1px,12.7px) scale(.7)}
 68%{transform:translate(4.6px,10.8px) scale(.66)}
 74%{transform:translate(6.1px,12.7px) scale(.7)}
 86%{opacity:1;transform:translate(11px,18px) scale(.7)}
 100%{opacity:0;transform:translate(11px,19px) scale(.7)}}
@keyframes hcalcKey{0%,15%,26%,100%{stroke:currentColor;stroke-width:2}16%,24%{stroke:var(--haco-accent,#F26A1B);stroke-width:3.4}}
@keyframes hcalcKey5{0%,41%,52%,100%{stroke:currentColor;stroke-width:2}42%,50%{stroke:var(--haco-accent,#F26A1B);stroke-width:3.4}}
@keyframes hcalcKey1{0%,67%,78%,100%{stroke:currentColor;stroke-width:2}68%,76%{stroke:var(--haco-accent,#F26A1B);stroke-width:3.4}}
@keyframes hcalcScr{0%,76%,100%{fill:transparent}80%,94%{fill:var(--haco-accent,#F26A1B)}}
