/* CSS Variables (from globals.css) */
:root {
  --font-size: 16px;
  --background: #0a0a0a;
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #ffffff;
  --popover: #1a1a1a;
  --popover-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #000000;
  --secondary: #2a2a2a;
  --secondary-foreground: #ffffff;
  --muted: #1e1e1e;
  --muted-foreground: #b4b4b4;
  --accent: #1f1f1f;
  --accent-foreground: #ffffff;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
}

/* Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Configure Tailwind colors to use CSS variables */
@layer base {
  * {
    border-color: hsl(var(--border));
  }
  body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: system-ui, -apple-system, sans-serif;
  }
}

/* Custom color classes */
.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-card { background-color: var(--card); }
.bg-card-foreground { background-color: var(--card-foreground); }
.bg-primary { background-color: var(--primary); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-foreground { background-color: var(--secondary-foreground); }
.bg-muted { background-color: var(--muted); }
.bg-muted-foreground { background-color: var(--muted-foreground); }
.bg-accent { background-color: var(--accent); }
.bg-accent-foreground { background-color: var(--accent-foreground); }
.bg-destructive { background-color: var(--destructive); }
.bg-destructive-foreground { background-color: var(--destructive-foreground); }
.bg-input { background-color: var(--input); }

.text-background { color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-card { color: var(--card); }
.text-card-foreground { color: var(--card-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary { color: var(--secondary); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted { color: var(--muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-accent-foreground { color: var(--accent-foreground); }
.text-destructive { color: var(--destructive); }
.text-destructive-foreground { color: var(--destructive-foreground); }

.border-border { border-color: var(--border); }
.ring-ring { --tw-ring-color: var(--ring); }

/* Animation Keyframes */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes expand-width {
  from {
    width: 0;
  }
  to {
    width: 5rem;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cash-animation {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(5deg);
  }
}

@keyframes present-animation {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
}

@keyframes search-animation {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-6px) translateX(2px);
  }
  75% {
    transform: translateY(-6px) translateX(-2px);
  }
}

@keyframes bag-animation {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-6px) translateX(2px);
  }
}

@keyframes glow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

@keyframes cart-hover {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.02) rotate(0.5deg);
  }
}

@keyframes cart-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes cart-fill {
  0%, 100% {
    height: 0px;
    opacity: 0;
  }
  30% {
    height: 16px;
    opacity: 0.8;
  }
  50% {
    height: 20px;
    opacity: 1;
  }
  70% {
    height: 16px;
    opacity: 0.8;
  }
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(0);
    opacity: 0;
  }
  25% {
    transform: translateY(-15px) translateX(-8px) scale(1);
    opacity: 1;
  }
  75% {
    transform: translateY(-15px) translateX(-8px) scale(0.8);
    opacity: 0.8;
  }
}

@keyframes burst {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }
}

@keyframes progress-fill {
  0%, 100% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
}

@keyframes progress-glow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Animation Classes */
.animate-slide-up {
  animation: slide-up 0.6s ease-out;
}

.animate-slide-left {
  animation: slide-left 0.8s ease-out 0.2s both;
}

.animate-slide-right {
  animation: slide-right 0.6s ease-out 0.8s both;
}

.animate-scale-y {
  animation: scale-y 0.4s ease-out 0.3s both;
}

.animate-fade-in-delayed {
  animation: fade-in 0.4s ease-out 0.5s both;
}

.animate-expand-width {
  animation: expand-width 0.6s ease-out 0.5s both;
}

.animate-scale-in {
  animation: scale-in 0.6s ease-out 0.4s both;
}

.animate-slide-up-delayed {
  animation: slide-up 0.6s ease-out 0.6s both;
}

.animate-cart-container {
  animation: scale-in 0.8s ease-out both;
}

.animate-cash {
  animation: cash-animation 2s ease-in-out infinite;
}

.animate-present {
  animation: present-animation 3s ease-in-out infinite 0.5s;
}

.animate-search {
  animation: search-animation 4s linear infinite;
}

.animate-bag {
  animation: bag-animation 2.5s ease-in-out infinite reverse 1s;
}

.animate-glow {
  animation: glow 3.5s ease-in-out infinite;
}

.animate-cart-hover {
  animation: cart-hover 4s ease-in-out infinite;
}

.animate-cart-bounce {
  animation: cart-bounce 2.5s ease-in-out infinite;
}

.animate-cart-fill {
  animation: cart-fill 5s ease-in-out infinite;
}

.animate-particle-1 {
  animation: particle-float 3s ease-out infinite 0.4s;
}

.animate-particle-2 {
  animation: particle-float 3.3s ease-out infinite 0.8s;
}

.animate-particle-3 {
  animation: particle-float 3.6s ease-out infinite 1.2s;
}

.animate-particle-4 {
  animation: particle-float 3.9s ease-out infinite 1.6s;
}

.animate-particle-5 {
  animation: particle-float 4.2s ease-out infinite 2s;
}

.animate-particle-6 {
  animation: particle-float 4.5s ease-out infinite 2.4s;
}

.animate-burst {
  animation: burst 3s ease-in-out infinite 1s;
}

.animate-progress-appear {
  animation: fade-in 0.6s ease-out 0.6s both;
}

.animate-progress-fill {
  animation: progress-fill 5s ease-in-out infinite;
}

.animate-progress-glow {
  animation: progress-glow 2s linear infinite;
}

.animate-pulse-text {
  animation: pulse-text 2.5s ease-in-out infinite;
}

/* Toast Styles */
.toast {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: toast-slide-in 0.3s ease-out;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid var(--destructive);
}

.toast.removing {
  animation: toast-slide-out 0.3s ease-in forwards;
}

/* Form Styles */
input[type="email"], 
input[type="text"], 
input[type="tel"] {
  background-color: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
}

input[type="email"]:focus, 
input[type="text"]:focus, 
input[type="tel"]:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--ring);
  border-color: var(--ring);
}

input[type="checkbox"] {
  accent-color: var(--primary);
}

/* Button Hover Effects */
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .animate-slide-left {
    animation: slide-up 0.8s ease-out 0.2s both;
  }
  
  .animate-slide-right {
    animation: slide-up 0.6s ease-out 0.4s both;
  }
}

/* Background Gradient Enhancement */
body {
  background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 15%, var(--muted) 85%, var(--background) 100%);
  min-height: 100vh;
}