/* IMTTA motion layer — loaded on every page that uses the shared layout.
   Pure enhancement: if this file is missing, every page still works. */
@keyframes imRise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes imFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes imShine{0%,70%{left:-75%}100%{left:130%}}
@keyframes imBounce{0%,100%{transform:scale(1)}30%{transform:scale(1.35) rotate(-8deg)}55%{transform:scale(.9) rotate(5deg)}75%{transform:scale(1.1)}}
@keyframes imBadge{0%{transform:scale(1)}40%{transform:scale(1.7)}100%{transform:scale(1)}}
@keyframes imSteam{0%{opacity:0;transform:translateY(20%) scaleX(.9)}25%{opacity:.95}65%{opacity:.5}100%{opacity:0;transform:translateY(-45%) scaleX(1.3) translateX(4px)}}
@keyframes imShake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-7px)}40%,60%{transform:translateX(7px)}}
@keyframes imBlob{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(30px,-40px) scale(1.12)}66%{transform:translate(-25px,25px) scale(.92)}}
@keyframes imCheck{to{stroke-dashoffset:0}}
@keyframes imPop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08);opacity:1}100%{transform:scale(1)}}

/* ---------- hero ---------- */
.im-ready .hero-copy>*{opacity:0;animation:imRise .8s cubic-bezier(.2,.7,.2,1) forwards}
.im-ready .hero-copy>:nth-child(2){animation-delay:.12s}.im-ready .hero-copy>:nth-child(3){animation-delay:.24s}.im-ready .hero-copy>:nth-child(4){animation-delay:.36s}
.im-ready .hero-art{opacity:0;animation:imRise 1s cubic-bezier(.2,.7,.2,1) .2s forwards,imFloat 6s ease-in-out 1.2s infinite}
.hero{position:relative}
.hero-art-wrap{position:relative}

/* ---------- product cards ---------- */
.im-ready .product-card{opacity:0;transform:translateY(34px) scale(.97)}
.im-ready .product-card.im-in{opacity:1;transform:none;transition:opacity .7s ease,transform .8s cubic-bezier(.2,.75,.2,1.05),box-shadow .35s ease}
.product-card{position:relative;transform-style:preserve-3d;will-change:transform}
.product-card.im-in:hover{box-shadow:0 22px 40px rgba(116,31,34,.16)}
.product-photo{overflow:hidden}
.product-photo img{transition:transform .6s cubic-bezier(.2,.75,.2,1)}
.product-card:hover .product-photo img{transform:scale(1.08) translateY(-4px) rotate(-1.5deg)}
.product-card .im-glare{position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity .3s;
  background:radial-gradient(circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.55),transparent 55%)}
.product-card:hover .im-glare{opacity:1}
.product-info .button,.button.im-shine{position:relative;overflow:hidden}
.product-info .button:not(:disabled)::after,.button.im-shine::after{content:'';position:absolute;top:0;left:-75%;width:45%;height:100%;
  background:linear-gradient(110deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:imShine 4.2s ease-in-out infinite}
.product-card:nth-child(4n+2) .product-info .button::after{animation-delay:.7s}
.product-card:nth-child(4n+3) .product-info .button::after{animation-delay:1.4s}
.product-card:nth-child(4n) .product-info .button::after{animation-delay:2.1s}
.product-info .button:active{transform:scale(.96)}
.tag{animation:imPop .6s cubic-bezier(.3,1.6,.5,1) .5s both}

/* fly-to-cart picture */
.im-fly{position:fixed;z-index:2147483001;pointer-events:none;border-radius:50%;object-fit:contain;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.25);
  transition:transform .85s cubic-bezier(.5,-.2,.6,1),opacity .85s ease,width .85s,height .85s}
.cart-link.im-bounce svg,#imtta-floating-cart.im-bounce{animation:imBounce .7s ease}
.cart-link.im-bounce span{animation:imBadge .6s ease}

/* ---------- kitchen steam ---------- */
.im-steam{position:absolute;left:28%;right:28%;top:2%;height:46%;pointer-events:none;filter:blur(4px);z-index:2}
.im-steam svg{position:absolute;bottom:0;width:30%;height:100%;opacity:0;animation:imSteam 4.3s ease-out infinite}
.im-steam path{fill:none;stroke:#fff;stroke-width:9;stroke-linecap:round}
.im-steam svg:nth-child(1){left:0}.im-steam svg:nth-child(2){left:35%;animation-delay:1.4s;animation-duration:5s}.im-steam svg:nth-child(3){left:68%;animation-delay:2.7s}
.hero .im-steam{left:30%;right:30%;top:-4%;height:55%}

/* ---------- sign in / register ---------- */
.auth-layout{position:relative;box-shadow:0 30px 60px rgba(85,23,25,.10)}
.im-ready .auth-layout{animation:imRise .8s cubic-bezier(.2,.7,.2,1) both}
.im-ready .auth-box>*{opacity:0;animation:imRise .7s cubic-bezier(.2,.7,.2,1) forwards}
.im-ready .auth-box>:nth-child(2){animation-delay:.08s}.im-ready .auth-box>:nth-child(3){animation-delay:.16s}.im-ready .auth-box>:nth-child(4){animation-delay:.24s}
.im-ready .auth-box>:nth-child(5){animation-delay:.32s}.im-ready .auth-box>:nth-child(n+6){animation-delay:.4s}
.auth-art{position:relative;overflow:hidden;isolation:isolate}
.auth-art .im-blob{position:absolute;border-radius:50%;filter:blur(40px);z-index:-1;animation:imBlob 14s ease-in-out infinite}
.auth-art .im-blob.b1{width:260px;height:260px;background:#e8b4a8;top:-60px;left:-60px;opacity:.55}
.auth-art .im-blob.b2{width:220px;height:220px;background:#741f22;bottom:-70px;right:-40px;opacity:.22;animation-delay:-5s}
.auth-art .im-blob.b3{width:160px;height:160px;background:#ffd7a8;top:40%;left:45%;opacity:.45;animation-delay:-9s}
.auth-art img{animation:imFloat 6s ease-in-out infinite}
.auth-form input{transition:border-color .25s,box-shadow .25s,transform .2s}
.auth-form input:focus{outline:none;border-color:#741f22;box-shadow:0 0 0 4px rgba(116,31,34,.12),0 6px 18px rgba(116,31,34,.10);transform:translateY(-1px)}
.auth-box.im-shake{animation:imShake .55s cubic-bezier(.36,.07,.19,.97) both}
.auth-form .button.im-busy{pointer-events:none;opacity:.85}
.auth-form .button.im-busy::before{content:'';width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* welcome check-mark toast after signing in */
.im-welcome{position:fixed;z-index:2147483002;left:50%;top:110px;transform:translateX(-50%);background:#fff;border-radius:14px;padding:14px 22px 14px 14px;
  display:flex;align-items:center;gap:14px;box-shadow:0 18px 45px rgba(0,0,0,.18);font:600 14px/1.4 Inter,Arial,sans-serif;color:#252323;animation:imPop .5s cubic-bezier(.3,1.5,.5,1) both}
.im-welcome small{display:block;font-weight:400;color:#716a66;font-size:12px}
.im-welcome svg{flex:none}
.im-welcome circle{fill:#3a8a4c}
.im-welcome path{fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30;animation:imCheck .45s ease .3s forwards}
.im-welcome.out{transition:opacity .4s,transform .4s;opacity:0;transform:translate(-50%,-12px)}

/* ---------- general page polish ---------- */
.im-ready .panel,.im-ready .summary,.im-ready .cart-item{animation:imRise .7s cubic-bezier(.2,.7,.2,1) both}
.im-ready .exchange-grid .panel:nth-child(2){animation-delay:.12s}.im-ready .exchange-grid .panel:nth-child(3){animation-delay:.24s}
.desktop-nav a{position:relative}
.desktop-nav a:not(.active)::after{content:'';position:absolute;left:0;right:0;bottom:12px;height:2px;background:var(--wine,#741f22);transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
.desktop-nav a:not(.active):hover::after{transform:scaleX(1)}
.site-header{position:sticky;top:0;z-index:50;transition:box-shadow .3s}
.site-header.im-scrolled{box-shadow:0 6px 20px rgba(60,20,20,.08)}

@media (hover:none){.product-card:hover .product-photo img{transform:none}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .im-ready .product-card,.im-ready .hero-copy>*,.im-ready .hero-art,.im-ready .auth-box>*{opacity:1!important;transform:none!important}
  .im-steam,.im-fly{display:none!important}
}

/* footer social + Nova link */
.im-social{display:flex;gap:8px;margin:16px 0 10px}
.footer-grid .im-social a{display:grid!important;place-items:center;width:32px;height:32px;margin:0!important;border-radius:50%;background:var(--wine,#741f22);color:#fff!important;font-size:10px!important;font-weight:700;letter-spacing:.3px;transition:transform .2s,background .2s}
.footer-grid .im-social a:hover{transform:translateY(-3px);background:var(--deep,#551719)}
.footer-grid a.im-nova-tg{color:var(--wine,#741f22)!important;font-weight:600}

/* ---------- moving advert banner (shop pages) ---------- */
.hero-show{position:relative;height:270px;perspective:1100px}
.hs-slide{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;
  transform:translateX(60px) rotateY(-28deg) scale(.86);transition:opacity .75s ease,transform .9s cubic-bezier(.2,.8,.2,1),visibility .9s}
.hs-slide.on{opacity:1;visibility:visible;transform:none}
.hs-slide.off{opacity:0;visibility:visible;transform:translateX(-60px) rotateY(28deg) scale(.86)}
.hs-slide img{max-height:240px;max-width:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(60,20,20,.22))}
.hs-slide .hero-art{height:260px;width:100%;padding:8px}
.im-ready .hs-slide .hero-art{animation:none;opacity:1}
.hs-slide.on img{animation:imFloat 5.5s ease-in-out .6s infinite}
.hs-link{display:flex;align-items:center;justify-content:center;height:100%;width:100%}
.hs-slide figcaption{position:absolute;right:6%;bottom:14px;background:#fff;border-radius:30px;padding:8px 16px 8px 14px;box-shadow:0 10px 26px rgba(60,20,20,.16);
  display:flex;flex-direction:column;line-height:1.25;opacity:0;transform:translateY(12px);transition:opacity .5s ease .45s,transform .6s cubic-bezier(.3,1.5,.5,1) .45s;max-width:70%}
.hs-slide.on figcaption{opacity:1;transform:none}
.hs-slide figcaption b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-slide figcaption span{color:var(--wine,#741f22);font-weight:800;font-size:15px}
.hs-dots{position:absolute;left:0;right:0;bottom:-2px;display:flex;justify-content:center;gap:7px;z-index:3}
.hs-dots button{width:8px;height:8px;border-radius:8px;border:0;padding:0;background:rgba(116,31,34,.25);transition:width .35s,background .35s}
.hs-dots button.on{width:24px;background:var(--wine,#741f22)}
.hs-slide .im-steam{left:32%;right:32%;top:0;height:50%}
@media(max-width:760px){.hero-show{height:200px}.hs-slide img{max-height:170px}.hs-slide .hero-art{height:190px}
  .hs-slide figcaption{right:0;bottom:10px;padding:5px 11px;max-width:92%}.hs-slide figcaption b{font-size:10.5px}.hs-slide figcaption span{font-size:12px}.hs-dots{bottom:-6px}}
@media (prefers-reduced-motion:reduce){.hs-slide{transition:none}}
