@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #0052ff;
  --color-primary-hover: #0045d8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  transition: background-color 0.2s ease, color 0.2s ease;
  letter-spacing: -0.01em;
}

/* Refined Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

/* Subtle fade in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Cart Button Bounce Animation */
@keyframes cartBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.22);
  }
  50% {
    transform: scale(0.92);
  }
  75% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.animate-cart-bounce {
  animation: cartBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Fly-to-cart clone item styling */
.flying-cart-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 82, 255, 0.4);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  border: 2px solid #0052ff;
}

/* New item entry in cart drawer */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.item-slide-in {
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Form inputs & buttons focus state */
input:focus, select:focus, button:focus-visible {
  outline: none;
}

/* Hide scrollbar for category tabs */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Error Shake Animation */
@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-shake {
  animation: errorShake 0.4s ease-in-out;
}

