/* ==========================================================================
   LUSTRA — Micro-Animations & Motion Design System
   Respects prefers-reduced-motion
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #D8C5B5 25%, #E9DDCD 50%, #D8C5B5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Smooth Interactive Elements */
.product-card, .btn, .category-card, .action-btn, .nav-link {
  will-change: transform, opacity;
}

/* Focus Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-burgundy);
  outline-offset: 3px;
}

/* Prefers Reduced Motion Query */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cart-drawer, .search-modal, .cart-drawer-overlay {
    transition: none !important;
  }
}
