/* ─── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: .85; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes ripple {
  0%   { transform: scale(0); opacity: .5; }
  100% { transform: scale(4); opacity: 0; }
}
@keyframes courier-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,.5); }
  50%       { box-shadow: 0 0 0 12px rgba(0,0,0,0); }
}
@keyframes confetti-fall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

/* ─── Utility animation classes ─────────────────────────────────────────── */
.animate-fade-in-up { animation: fadeInUp .5s ease both; }
.animate-fade-in    { animation: fadeIn .4s ease both; }
.animate-slide-in-right { animation: slideInRight .4s ease both; }
.animate-pulse      { animation: pulse 2s ease-in-out infinite; }

/* ─── Product card entrance ─────────────────────────────────────────────── */
.product-card-enter {
  opacity: 0;
  transform: translateY(20px);
}

/* ─── Ripple effect ─────────────────────────────────────────────────────── */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transform: scale(0);
  animation: ripple .6s linear;
  pointer-events: none;
}

/* ─── Courier marker pulse (Leaflet) ────────────────────────────────────── */
.courier-marker-inner {
  width: 40px;
  height: 40px;
  background: var(--accent-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 3px solid rgba(255,255,255,.8);
  animation: courier-pulse 2s ease-in-out infinite;
}
.courier-marker-label {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent-black);
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.destination-marker {
  width: 36px;
  height: 36px;
  background: var(--accent-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid rgba(255,255,255,.8);
  box-shadow: 0 4px 16px rgba(255,107,157,.5);
}

/* ─── Page loader ────────────────────────────────────────────────────────── */
.page-loader .loader-logo {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ─── Stagger helper (used by GSAP) ────────────────────────────────────── */
.stagger-item { opacity: 0; }
