/* Torch Shop Theme - Purple/Violet */

:root {
  --brand-primary: #8B5CF6;
  --brand-primary-rgb: 139, 92, 246;
  --brand-50: #F3F0FF;
  --brand-100: #E9E2FF;
  --brand-200: #D6CCFF;
  --brand-300: #BBA8FF;
  --brand-400: #A855F7;
  --brand-500: #8B5CF6;
  --brand-600: #7C3AED;
  --brand-700: #6D28D9;
  --brand-800: #5B21B6;
  --brand-900: #4C1D95;

  --brand-secondary: #EC4899;
  --brand-accent: #F97316;
}
/* Torch Unified Design System - Core Variables */
/* Color-agnostic base variables that work with any theme */

:root {
  /* Each app defines these primary variables */
  --app-primary: var(--brand-primary);
  --app-primary-rgb: var(--brand-primary-rgb); /* For rgba() usage */

  /* Automatic color scale generation */
  --app-primary-50: var(--brand-50);
  --app-primary-100: var(--brand-100);
  --app-primary-200: var(--brand-200);
  --app-primary-300: var(--brand-300);
  --app-primary-400: var(--brand-400);
  --app-primary-500: var(--brand-500);
  --app-primary-600: var(--brand-600);
  --app-primary-700: var(--brand-700);
  --app-primary-800: var(--brand-800);
  --app-primary-900: var(--brand-900);

  /* Semantic colors (app-independent) */
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #17A2B8;

  /* Neutral scale (shared) */
  --gray-50: #F8F9FA;
  --gray-100: #E9ECEF;
  --gray-200: #DEE2E6;
  --gray-300: #CED4DA;
  --gray-400: #ADB5BD;
  --gray-500: #6C757D;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #212529;
  --gray-900: #0A0E27;

  /* Dynamic properties */
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: var(--app-primary);
  --radius: 0.5rem;
}

/* Dark mode base variables */
.dark {
  --background: 230 55% 8%;
  --foreground: 0 0% 95%;
  --card: 230 50% 12%;
  --card-foreground: 0 0% 95%;
  --border: 230 40% 20%;
  --input: 230 40% 20%;

  /* Invert neutral colors */
  --gray-50: #1F2937;
  --gray-100: #374151;
  --gray-200: #4B5563;
  --gray-300: #6B7280;
  --gray-400: #9CA3AF;
  --gray-500: #D1D5DB;
  --gray-600: #E5E7EB;
  --gray-700: #F3F4F6;
  --gray-800: #F9FAFB;
  --gray-900: #FFFFFF;
}
/* Torch Unified Design System - Typography */

:root {
  /* Primary font with fallbacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
               'Helvetica Neue', sans-serif;

  /* Monospace for code/technical */
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code',
               'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Display font for headings (optional) */
  --font-display: var(--font-sans);
}

/* Font loading strategy */
@font-face {
  font-family: 'Inter';
  font-display: swap; /* Fallback immediately, swap when loaded */
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
}

/* Typography Scale */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Font weights */
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Text transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Letter spacing */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
/* Torch Unified Design System - Animations */

/* Floating animation (universal) */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Enhanced float with rotation */
@keyframes floatRotate {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

/* Bubble floating for backgrounds */
@keyframes floatBubbles {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-20px, -10px) scale(1.02);
  }
  66% {
    transform: translate(20px, 10px) scale(0.98);
  }
}

/* Pulse glow (color-agnostic) */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(var(--app-primary-rgb), 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(var(--app-primary-rgb), 0.6),
                0 0 60px rgba(var(--app-primary-rgb), 0.3);
  }
}

/* Fade animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Shimmer for loading states */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Gradient shift */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Spin for loading */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* E-commerce specific animations */
@keyframes flyToCart {
  0% {
    transform: scale(1) translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: scale(0.8) translate(30px, -30px) rotate(45deg);
  }
  40% {
    transform: scale(0.6) translate(100px, -100px) rotate(90deg);
  }
  60% {
    transform: scale(0.4) translate(200px, -200px) rotate(180deg);
  }
  80% {
    transform: scale(0.2) translate(300px, -300px) rotate(270deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(0) translate(400px, -400px) rotate(360deg);
    opacity: 0;
  }
}

/* Cart bounce on item add */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2) rotate(-5deg); }
  50% { transform: scale(1.15) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-3deg); }
}

/* Advanced effects */
@keyframes liquidWave {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

@keyframes morphShape {
  0%, 100% {
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
  }
  50% {
    clip-path: polygon(50% 0%, 90% 20%, 100% 50%, 90% 80%, 50% 100%, 10% 80%, 0% 50%, 10% 20%, 30% 10%, 70% 10%);
  }
}
/* Torch Unified Design System - Utilities */

/* Layout Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Animation Utilities */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse { animation: pulseGlow 2s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out; }

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Animation durations */
.duration-200 { animation-duration: 200ms; }
.duration-300 { animation-duration: 300ms; }
.duration-500 { animation-duration: 500ms; }
.duration-700 { animation-duration: 700ms; }
.duration-1000 { animation-duration: 1000ms; }

/* Interaction Utilities */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-wait { cursor: wait; }

/* Selection */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Transitions */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color, background-color, border-color 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }

/* Special Effects */
.torch-glow {
  position: relative;
}

.torch-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--app-primary-400),
    var(--app-primary-600),
    var(--app-primary-400)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.torch-glow:hover::before {
  opacity: 1;
  animation: gradientShift 3s ease infinite;
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.dark .glass {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--app-primary-400),
    var(--app-primary-600)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Animated gradient text */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    var(--app-primary-400),
    var(--app-primary-600),
    var(--app-primary-400)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

/* Loading skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.dark .skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-800) 25%,
    var(--gray-700) 50%,
    var(--gray-800) 75%
  );
}

/* Skeleton variants */
.skeleton-text {
  height: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.skeleton-card {
  height: 200px;
  border-radius: 0.75rem;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(var(--app-primary-rgb), 0.2);
  border-top-color: var(--app-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
/* Torch Unified Design System - Background */

/* Main body should be WHITE */
html {
  min-height: 100vh;
  background: #ffffff;
}

body {
  background: #ffffff !important;
  position: relative;
  min-height: 100vh;
}

/* Universal background layer with color-agnostic bubbles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;

  /* Color-agnostic bubbles using CSS variables */
  background:
    /* Large bubble top-left */
    radial-gradient(circle 600px at 10% 15%,
      rgba(var(--app-primary-rgb), 0.12),
      transparent),
    /* Medium bubble top-right */
    radial-gradient(circle 400px at 85% 20%,
      rgba(var(--app-primary-rgb), 0.10),
      transparent),
    /* Large center bubble */
    radial-gradient(circle 700px at 50% 50%,
      rgba(var(--app-primary-rgb), 0.06),
      transparent),
    /* Small bubble bottom-left */
    radial-gradient(circle 350px at 20% 80%,
      rgba(var(--app-primary-rgb), 0.08),
      transparent),
    /* Medium bubble bottom-right */
    radial-gradient(circle 450px at 75% 85%,
      rgba(var(--app-primary-rgb), 0.07),
      transparent);

  /* Optimal blur for dreamy effect */
  filter: blur(40px);

  /* Smooth floating animation */
  animation: floatBubbles 30s ease-in-out infinite;
}

/* Performance mode (can be toggled) */
body.performance-mode::before {
  /* Reduced to 3 bubbles for better performance */
  background:
    radial-gradient(circle 500px at 20% 30%,
      rgba(var(--app-primary-rgb), 0.10),
      transparent),
    radial-gradient(circle 600px at 80% 70%,
      rgba(var(--app-primary-rgb), 0.08),
      transparent),
    radial-gradient(circle 400px at 50% 50%,
      rgba(var(--app-primary-rgb), 0.06),
      transparent);

  filter: blur(60px);
  animation-duration: 45s;
}

/* Dark mode background */
.dark body {
  background: #0a0612 !important;
}

.dark body::before {
  opacity: 0.5;
  filter: blur(50px);
}

/* Performance optimization for mobile */
@media (max-width: 768px) {
  body::before {
    background:
      radial-gradient(circle 500px at 20% 30%,
        rgba(var(--app-primary-rgb), 0.08),
        transparent),
      radial-gradient(circle 500px at 80% 70%,
        rgba(var(--app-primary-rgb), 0.06),
        transparent),
      radial-gradient(circle 400px at 50% 50%,
        rgba(var(--app-primary-rgb), 0.04),
        transparent);
    filter: blur(60px);
    animation-duration: 45s;
  }
}

/* Disable animation for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

/* Ensure content stays above background */
main, section, header, nav, footer,
.container, [class*="wrapper"], [class*="content"] {
  position: relative;
  z-index: 1;
}
/* Torch Unified Design System - Buttons */

.torch-button {
  /* Base structure */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  border: none;
  text-decoration: none;
}

.torch-button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--app-primary);
}

/* Primary button with dynamic theming */
.torch-button-primary {
  background: linear-gradient(135deg,
    var(--app-primary-600),
    var(--app-primary-500),
    var(--app-primary-400)
  );
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(var(--app-primary-rgb), 0.3);
}

.torch-button-primary:hover {
  background: linear-gradient(135deg,
    var(--app-primary-700),
    var(--app-primary-600),
    var(--app-primary-500)
  );
  box-shadow: 0 10px 15px -3px rgba(var(--app-primary-rgb), 0.4);
  transform: translateY(-1px);
}

.torch-button-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Secondary button */
.torch-button-secondary {
  background: transparent;
  color: var(--app-primary);
  border: 1.5px solid var(--app-primary);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.torch-button-secondary:hover {
  background: rgba(var(--app-primary-rgb), 0.05);
  border-color: var(--app-primary-600);
  box-shadow: 0 4px 6px -1px rgba(var(--app-primary-rgb), 0.2);
}

/* Ghost button */
.torch-button-ghost {
  background: transparent;
  color: var(--app-primary);
  border: none;
}

.torch-button-ghost:hover {
  background: rgba(var(--app-primary-rgb), 0.08);
}

/* Destructive button */
.torch-button-destructive {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
}

.torch-button-destructive:hover {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.4);
  transform: translateY(-1px);
}

/* Button sizes */
.torch-button-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.torch-button-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.torch-button-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button states */
.torch-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.torch-button-loading {
  color: transparent;
}

.torch-button-loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  color: white;
}

/* Ripple effect (universal) */
.torch-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.torch-button:active::after {
  width: 300px;
  height: 300px;
}

/* Icon buttons */
.torch-button-icon {
  padding: 0.625rem;
  width: 2.5rem;
  height: 2.5rem;
}

.torch-button-icon-sm {
  padding: 0.5rem;
  width: 2rem;
  height: 2rem;
}

.torch-button-icon-lg {
  padding: 0.75rem;
  width: 3rem;
  height: 3rem;
}

/* Button group */
.torch-button-group {
  display: inline-flex;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.torch-button-group .torch-button {
  border-radius: 0;
  margin: 0;
}

.torch-button-group .torch-button:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.torch-button-group .torch-button:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.torch-button-group .torch-button:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
/* Torch Unified Design System - Cards */

.torch-card {
  /* Base structure */
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;

  /* Glassmorphism with color theming */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Dynamic border using primary color */
  border: 1px solid rgba(var(--app-primary-rgb), 0.1);

  /* Smooth transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Consistent shadow */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.torch-card:hover {
  /* Enhanced hover state */
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(var(--app-primary-rgb), 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04),
              0 0 40px rgba(var(--app-primary-rgb), 0.1);
}

/* Card sizes */
.torch-card-sm {
  padding: 1rem;
}

.torch-card-md {
  padding: 1.5rem;
}

.torch-card-lg {
  padding: 2rem;
}

/* Card header */
.torch-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(var(--app-primary-rgb), 0.08);
  margin: -1.5rem -1.5rem 1.5rem;
}

/* Card body */
.torch-card-body {
  padding: 1.5rem;
}

/* Card footer */
.torch-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(var(--app-primary-rgb), 0.08);
  margin: 1.5rem -1.5rem -1.5rem;
}

/* Card title */
.torch-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

/* Card subtitle */
.torch-card-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

/* Card description */
.torch-card-description {
  color: var(--gray-700);
  line-height: 1.5;
}

/* Interactive card */
.torch-card-interactive {
  cursor: pointer;
}

.torch-card-interactive:active {
  transform: scale(0.98);
}

/* Featured card with glow */
.torch-card-featured {
  border: 2px solid var(--app-primary-400);
  position: relative;
}

.torch-card-featured::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    var(--app-primary-400),
    var(--app-primary-600));
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
}

/* Elevated card */
.torch-card-elevated {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.torch-card-elevated:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15),
              0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

/* Dark mode variant */
.dark .torch-card {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(var(--app-primary-rgb), 0.2);
}

.dark .torch-card:hover {
  border-color: rgba(var(--app-primary-rgb), 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
              0 10px 10px -5px rgba(0, 0, 0, 0.2),
              0 0 40px rgba(var(--app-primary-rgb), 0.2);
}

.dark .torch-card-header {
  border-bottom-color: rgba(var(--app-primary-rgb), 0.15);
}

.dark .torch-card-footer {
  border-top-color: rgba(var(--app-primary-rgb), 0.15);
}

/* Product card specific */
.torch-card-product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.torch-card-product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.torch-card-product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--app-primary-500);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.torch-card-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--app-primary-600);
  margin-top: auto;
}

/* Loading skeleton card */
.torch-card-skeleton {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 1000px 100%;
}

.dark .torch-card-skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-800) 25%,
    var(--gray-700) 50%,
    var(--gray-800) 75%
  );
}
/* Torch Unified Design System - Inputs */

.torch-input {
  /* Base structure */
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--gray-300);
  background: white;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-sans);
}

.torch-input::placeholder {
  color: var(--gray-400);
}

.torch-input:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), 0.1);
}

.torch-input:hover:not(:focus) {
  border-color: var(--gray-400);
}

/* Input sizes */
.torch-input-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

.torch-input-lg {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Input states */
.torch-input:disabled {
  background-color: var(--gray-100);
  cursor: not-allowed;
  opacity: 0.5;
}

.torch-input-error {
  border-color: var(--danger);
}

.torch-input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.torch-input-success {
  border-color: var(--success);
}

.torch-input-success:focus {
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Input group */
.torch-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.torch-input-group .torch-input {
  padding-left: 2.75rem;
}

.torch-input-group-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  transition: color 0.2s ease;
  width: 1.25rem;
  height: 1.25rem;
}

.torch-input-group:focus-within .torch-input-group-icon {
  color: var(--app-primary);
}

/* Input with prefix/suffix */
.torch-input-prefix,
.torch-input-suffix {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  font-size: 0.875rem;
}

.torch-input-prefix {
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
}

.torch-input-suffix {
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
}

.torch-input-group-inline {
  display: flex;
}

.torch-input-group-inline .torch-input {
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.torch-input-group-inline .torch-input:focus {
  z-index: 2;
}

.torch-input-group-inline .torch-input:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.torch-input-group-inline .torch-input:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Textarea */
.torch-textarea {
  min-height: 5rem;
  resize: vertical;
}

.torch-textarea-no-resize {
  resize: none;
}

/* Select */
.torch-select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 12px;
}

/* Checkbox */
.torch-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1.5px solid var(--gray-300);
  transition: all 0.2s ease;
  cursor: pointer;
}

.torch-checkbox:checked {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10 3L4.5 8.5 2 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.torch-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), 0.1);
}

/* Radio */
.torch-radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  transition: all 0.2s ease;
  cursor: pointer;
}

.torch-radio:checked {
  border-color: var(--app-primary);
  background: radial-gradient(circle, var(--app-primary) 40%, white 40%);
}

.torch-radio:focus {
  box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), 0.1);
}

/* Toggle switch */
.torch-toggle {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 1.5rem;
}

.torch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.torch-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 9999px;
}

.torch-toggle-slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0.25rem;
  bottom: 0.25rem;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.torch-toggle input:checked + .torch-toggle-slider {
  background-color: var(--app-primary);
}

.torch-toggle input:checked + .torch-toggle-slider:before {
  transform: translateX(1rem);
}

/* Dark mode adjustments */
.dark .torch-input {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(100, 116, 139, 0.3);
  color: var(--gray-100);
}

.dark .torch-input::placeholder {
  color: var(--gray-500);
}

.dark .torch-input:hover:not(:focus) {
  border-color: rgba(100, 116, 139, 0.5);
}

.dark .torch-input-prefix,
.dark .torch-input-suffix {
  background: rgba(30, 41, 59, 0.3);
  border-color: rgba(100, 116, 139, 0.3);
  color: var(--gray-400);
}

/* Form field wrapper */
.torch-field {
  margin-bottom: 1.5rem;
}

.torch-field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.torch-field-helper {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.torch-field-error {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--danger);
}

.dark .torch-field-label {
  color: var(--gray-300);
}

.dark .torch-field-helper {
  color: var(--gray-500);
}
/* Currency Switcher Custom Styles */

/* Ensure proper scrolling in the currency dropdown */
.currency-dropdown {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow: hidden;
}

.currency-dropdown-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 280px;
  /* Enable smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom overlay scrollbar for currency list */
.currency-dropdown-scroll::-webkit-scrollbar {
  width: 8px;
}

.currency-dropdown-scroll::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.currency-dropdown-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.3);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.currency-dropdown-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.6);
}

.currency-dropdown-scroll::-webkit-scrollbar-thumb:active {
  background-color: rgba(156, 163, 175, 0.8);
}

/* Dark mode scrollbar */
.dark .currency-dropdown-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.4);
}

.dark .currency-dropdown-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(156, 163, 175, 0.6);
}

.dark .currency-dropdown-scroll::-webkit-scrollbar-thumb:active {
  background-color: rgba(156, 163, 175, 0.8);
}

/* Firefox scrollbar */
.currency-dropdown-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
}

.dark .currency-dropdown-scroll {
  scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}
/* Torch Unified Design System - Main */

/* Load theme first for CSS variables */

/* Core system */

/* Components */

/* Currency switcher styles */

/* Optional modules */
/* @import './modules/ecommerce.css'; */
