/* Custom animations and styles */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wavy background pattern */
.wavy-bg {
  background-color: #FDF0EB;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 80 Q 50 60 100 80 Q 150 100 200 80 Q 250 60 300 80 Q 350 100 400 80 L 400 0 L 0 0 Z' fill='%23F8E8E0' opacity='0.5'/%3E%3Cpath d='M 0 180 Q 60 150 120 180 Q 180 210 240 180 Q 300 150 360 180 Q 390 195 400 180 L 400 100 Q 350 120 300 100 Q 250 80 200 100 Q 150 120 100 100 Q 50 80 0 100 Z' fill='%23F2D5C8' opacity='0.2'/%3E%3Cpath d='M 0 300 Q 80 270 160 300 Q 240 330 320 300 Q 370 280 400 300 L 400 200 Q 340 230 280 200 Q 220 170 160 200 Q 100 230 40 200 Q 20 190 0 200 Z' fill='%23F8E8E0' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

.wavy-stripes {
  position: relative;
  overflow: hidden;
}

.wavy-stripes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 40px,
      rgba(242, 213, 200, 0.3) 40px,
      rgba(242, 213, 200, 0.3) 80px
    );
  pointer-events: none;
  z-index: 0;
}

/* Floating animation for ingredient badges */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(-5px) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(4deg); }
}

@keyframes float-4 {
  0%, 100% { transform: translateY(-3px) rotate(3deg); }
  50% { transform: translateY(-14px) rotate(-3deg); }
}

.float-1 { animation: float-1 3s ease-in-out infinite; }
.float-2 { animation: float-2 3.5s ease-in-out infinite 0.5s; }
.float-3 { animation: float-3 4s ease-in-out infinite 1s; }
.float-4 { animation: float-4 3.2s ease-in-out infinite 0.3s; }

/* Pulse animation for CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 91, 40, 0.4); }
  50% { box-shadow: 0 0 20px 8px rgba(196, 91, 40, 0.15); }
}

.pulse-cta {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Cart bounce */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}

.cart-bounce {
  animation: cart-bounce 0.5s ease-in-out;
}

/* Logo entrance */
@keyframes logo-entrance {
  0% { opacity: 0; transform: translateY(-20px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.logo-animate {
  animation: logo-entrance 0.8s ease-out forwards;
}

/* Fade in up for sections */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Confetti */
@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  animation: confetti-fall 3s ease-in forwards;
}

/* Liquid drops */
@keyframes drop-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-15px) scale(1.1); opacity: 0.9; }
}

.liquid-drop {
  animation: drop-float 4s ease-in-out infinite;
}

/* Wave divider */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* Star rating */
.star-gold {
  color: #D4A830;
}

/* Testimonial carousel */
@keyframes slide-testimonial {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F8E8E0;
}

::-webkit-scrollbar-thumb {
  background: #C45B28;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3B1A0A;
}

/* Product image placeholder gradient */
.product-placeholder {
  background: linear-gradient(135deg, #F8E8E0 0%, #F2D5C8 30%, #E8C547 60%, #C45B28 100%);
}

/* Ingredient card hover */
.ingredient-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 26, 10, 0.15);
}

/* Nav transition */
.nav-solid {
  background: rgba(253, 240, 235, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(59, 26, 10, 0.08);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  backdrop-filter: blur(4px);
}

/* Order success modal */
@keyframes modal-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.modal-pop {
  animation: modal-pop 0.4s ease-out forwards;
}

/* Quantity button styles */
.qty-btn {
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.qty-btn:active {
  transform: scale(0.9);
}

/* Coming soon blur */
.coming-soon-overlay {
  backdrop-filter: blur(3px);
}