/* CINTA STORE — V5 additive revision
   1) Cat animation is scoped ONLY to the main Login/Register submit buttons.
   2) Product catalog becomes two columns on small/mobile screens.
   No backend/config/database/auth logic is changed here.
*/

/* --- Login / Register button cat animation --- */
.auth-cat-btn{position:relative!important;overflow:hidden!important}
.auth-cat-btn::before{
  content:"🐱";
  position:absolute;
  left:-34px;
  top:50%;
  z-index:8;
  pointer-events:none;
  font-size:20px;
  line-height:1;
  opacity:0;
  transform:translateY(-50%) scale(.82) rotate(-8deg);
  filter:drop-shadow(1px 2px 0 rgba(0,0,0,.18));
}
.auth-cat-btn:hover::before,
.auth-cat-btn:focus-visible::before{
  opacity:1;
  animation:authCatButtonRun 1.5s cubic-bezier(.45,.05,.55,.95) infinite;
}
.auth-cat-btn.is-sending::before{
  opacity:1;
  animation:authCatButtonRun 1.05s linear infinite;
}
.auth-cat-btn.is-sending .auth-motion-train-track{display:none!important}
.auth-cat-btn.is-sending .auth-motion-loading-text{opacity:1}

@keyframes authCatButtonRun{
  0%{left:-34px;transform:translateY(-50%) translateX(0) scale(.82) rotate(-8deg)}
  12%{transform:translateY(-53%) scale(.9) rotate(5deg)}
  25%{transform:translateY(-47%) scale(1) rotate(-3deg)}
  50%{left:50%;transform:translateY(-50%) translateX(-50%) scale(.96) rotate(4deg)}
  72%{transform:translateY(-47%) scale(1) rotate(-3deg)}
  88%{transform:translateY(-53%) scale(.9) rotate(5deg)}
  100%{left:calc(100% + 12px);transform:translateY(-50%) translateX(0) scale(.82) rotate(-8deg)}
}

/* --- Mobile product catalog: 2 cards per row --- */
@media(max-width:699px){
  .all-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px;
  }
  .all-product-grid .product-body{padding:10px;gap:7px}
  .all-product-grid .compact-name{font-size:14px;line-height:1.08}
  .all-product-grid .compact-desc{font-size:10px;line-height:1.38;min-height:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .all-product-grid .product-meta{font-size:7px;gap:5px}
  .all-product-grid .product-price{font-size:12px}
  .all-product-grid .product-foot{gap:6px;align-items:flex-end}
  .all-product-grid .btn.small{font-size:9px;padding:7px 8px}
}

@media(prefers-reduced-motion:reduce){
  .auth-cat-btn::before{animation:none!important;opacity:0!important}
}
