/**
 * CornFoodBar.com - Smooth Micro-Interactions & Keyframe Animations
 */

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 196, 48, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(244, 196, 48, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 196, 48, 0);
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Flying item animation to cart */
.flying-cart-badge {
  position: fixed;
  z-index: 9999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--cfb-yellow);
  color: var(--cfb-charcoal);
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}
