@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --background: 222 47% 8%;
  --foreground: 210 40% 98%;
  --card: 222 47% 11%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 11%;
  --popover-foreground: 210 40% 98%;
  --primary: 222 47% 14%;
  --primary-foreground: 210 40% 98%;
  --secondary: 24 95% 53%;
  --secondary-foreground: 0 0% 100%;
  --muted: 217 33% 18%;
  --muted-foreground: 215 20% 65%;
  --accent: 217 33% 17%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 217 33% 18%;
  --input: 217 33% 18%;
  --ring: 24 95% 53%;
  --radius: 0.75rem;
  --success: 142 71% 45%;
  --success-foreground: 0 0% 100%;
  --discount: 0 84% 60%;
  --discount-foreground: 0 0% 100%;
}

html.light {
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 222 47% 14%;
  --primary-foreground: 210 40% 98%;
  --secondary: 24 95% 50%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 40% 94%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 94%;
  --accent-foreground: 222 47% 11%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 24 95% 50%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.font-display {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--secondary) / 0.7);
}

/* Floating paw animation on click */
@keyframes pawFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-24px) scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-44px) scale(1.5);
    opacity: 0;
  }
}

.paw-floating-icon {
  position: absolute;
  pointer-events: none;
  animation: pawFloat 0.75s ease-out forwards;
  z-index: 50;
  font-size: 1.25rem;
}

/* Smooth modal transitions */
.hidden {
  display: none !important;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease-out;
}

.modal-backdrop[style*="display: none"] {
  display: none !important;
  pointer-events: none !important;
}

.modal-content {
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

/* Slider transitions */
.banner-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Toaster Sonner Custom Styling */
.toast-notification {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Shimmer placeholder */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

/* Line clamp support */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
