/* Gatito de los códigos (ver js/cat.js). Mismo archivo en public/,
   public-store/ y public-wholesale/. Solo transform y opacidad. */
.ld-cat {
  display: inline-block; flex: none; line-height: 0;
  width: var(--ld-cat-size, 108px); height: var(--ld-cat-size, 108px);
  animation: ldCatIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ld-cat svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes ldCatIn { from { opacity: 0; transform: translateY(6px) scale(0.92); } to { opacity: 1; transform: none; } }

.ld-cat .cat-blink { transform-box: fill-box; transform-origin: center; animation: ldCatBlink 4.2s ease-in-out infinite; }
@keyframes ldCatBlink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.12); } }

.ld-cat--idle .cat-tail { transform-box: fill-box; transform-origin: 0% 100%; animation: ldCatTail 2.6s ease-in-out infinite alternate; }
@keyframes ldCatTail { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }

.ld-cat--searching .cat-lens { transform-box: fill-box; transform-origin: 100% 100%; animation: ldCatLens 1.1s ease-in-out infinite alternate; }
@keyframes ldCatLens { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-2px, -3px) rotate(-5deg); } }

.ld-cat--found .cat-sparkle { transform-box: fill-box; transform-origin: center; animation: ldCatTwinkle 1.6s ease-in-out infinite; }
.ld-cat--found .cat-sparkle.s2 { animation-delay: 0.5s; }
@keyframes ldCatTwinkle { 0%, 100% { opacity: 0.35; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }

.ld-cat--sad .cat-tear { animation: ldCatTear 2.2s ease-in infinite; }
@keyframes ldCatTear { 0% { opacity: 0; transform: translateY(-2px); } 20%, 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .ld-cat, .ld-cat * { animation: none !important; transition: none !important; }
}
