/* ============================================
   SAKURA IMPORTS — Animations
   ============================================ */

/* ---- SAKURA PETALS FALL ---- */
@keyframes sakura-fall {
  0%   { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(100px); opacity: 0; }
}
@keyframes sakura-sway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25%      { transform: translateX(30px) rotate(10deg); }
  50%      { transform: translateX(-20px) rotate(-5deg); }
  75%      { transform: translateX(15px) rotate(8deg); }
}

/* ---- FADE IN ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- SCALE ---- */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- FLOAT / PULSE ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255,77,109,0.2); }
  50%      { box-shadow: 0 0 20px rgba(255,77,109,0.4); }
}

/* ---- SHIMMER (skeleton loading) ---- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- PROGRESS BAR ---- */
@keyframes progressFill {
  from { width: 0; }
  to   { width: var(--progress, 100%); }
}

/* ---- CART BOUNCE ---- */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.3); }
  60%      { transform: scale(0.9); }
}

/* ---- SLIDE IN ---- */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ---- ROTATE ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- UTILITY CLASSES ---- */
.animate-fadeIn      { animation: fadeIn 0.6s var(--ease-out) both; }
.animate-fadeInUp    { animation: fadeInUp 0.6s var(--ease-out) both; }
.animate-fadeInDown  { animation: fadeInDown 0.6s var(--ease-out) both; }
.animate-fadeInLeft  { animation: fadeInLeft 0.6s var(--ease-out) both; }
.animate-fadeInRight { animation: fadeInRight 0.6s var(--ease-out) both; }
.animate-scaleIn    { animation: scaleIn 0.4s var(--ease-out) both; }
.animate-popIn      { animation: popIn 0.5s var(--ease-bounce) both; }
.animate-float      { animation: float 3s ease-in-out infinite; }
.animate-pulse      { animation: pulse 2s ease-in-out infinite; }
.animate-glow       { animation: glow 2s ease-in-out infinite; }
.animate-spin       { animation: spin 1s linear infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- SAKURA CANVAS ---- */
#sakura-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  /* Fix #4: era 9999 (na frente de TUDO). Agora 1: pétalas sobre o conteúdo
     mas atrás de header(200), busca(100), carrinho(300) e toast(500). */
  z-index: 1;
}
