:root {
    /* ============================================
       BASE COLOR TOKENS (Primitives)
       Don't use these directly in components
       ============================================ */
    

   
    /* Light theme base colors */
    --color-cream-50: hsl(48, 33%, 97%);
    --color-cream-100: hsl(48, 33%, 91%);
    --color-slate-900: rgb(31, 45, 61);
    --color-gray-500: #8E8E8E;
    --color-gray-400: #9398A0;
    --color-gray-100: #e8e8e8;
    
    /* Dark theme base colors */
    --color-dark-950: hsl(220, 1.27%, 2.47%);   /* Deep base - almost black */
    --color-dark-900: hsl(220, 2%, 8%);          /* Slightly lighter surface */
    --color-dark-800: hsl(220, 3%, 12%);         /* Elevated surface */
    --color-dark-700: hsl(220, 4%, 18%);         /* Borders & dividers */
    --color-dark-600: hsl(220, 5%, 25%);         /* Subtle emphasis */
    --color-dark-400: hsl(220, 6%, 45%);         /* Muted text */
    --color-dark-300: hsl(220, 6%, 65%);         /* Secondary text */
    --color-light-50: hsl(48, 33%, 95%);         /* Primary text (light) */

    /* ============================================
       SEMANTIC TOKENS (Use these in components)
       These change based on theme
       ============================================ */
    
    /* Background colors */
    --bg-primary: var(--color-cream-50);
    --bg-secondary: var(--color-cream-100);
    --bg-product-hover: #F3EDCF;
    --bg-inverse: var(--color-slate-900);
    
    /* Text colors */
    --text-primary: var(--color-slate-900);
    --text-secondary: var(--color-gray-500);
    --text-muted: var(--color-gray-400);
    --text-inverse: var(--color-cream-50);
    
    /* Border colors */
    --border-primary: var(--color-gray-100);
    --border-secondary: var(--color-slate-900);
    --border-divider: color-mix(in srgb, var(--border-primary) 75%, var(--border-secondary));
    
    /* Interactive states */
    --hover-opacity: 0.6;
    --image-opacity: 1;
   
    
    /* Badge colors - Semantic status colors */
    --badge-bg-neutral: var(--color-cream-100);
    --badge-text-neutral: var(--color-slate-900);
    --badge-bg-success: #E2F2E1;
    --badge-text-success: #1F8A19;
    --badge-bg-primary: var(--color-slate-900);
    --badge-text-primary: var(--color-cream-50);
    --badge-bg-muted: rgba(147, 152, 160, 0.1);
    --badge-text-muted: var(--color-gray-400);
    
    /* Notification colors - High contrast for visibility */
    --notification-success-bg: #10b981;
    --notification-success-text: #ffffff;
    --notification-error-bg: #ef4444;
    --notification-error-text: #ffffff;
    --notification-info-bg: var(--bg-inverse);
    --notification-info-text: var(--text-inverse);
    
    /* ============================================
       TYPOGRAPHY
       ============================================ */
    
    --font-serif: "Cardo", serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    
    --font-size-base: 2.4rem;
    --font-size-small: 1.6rem;
    --font-size-xs: 1.5rem;
    --font-size-md: 1.8rem;
    --font-size-lg: 3rem;
    --font-size-xl: 5.4rem;
    --font-size-2xl: 7rem;
    
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 800;
    
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    --line-height-snug: 1.4;

    /* ============================================
       SPACING SCALE
       ============================================ */
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-20: 80px;

    /* Grid gaps */
    --grid-gap-sm: 2%;
    --grid-gap-md: 7.2%;
    --grid-gap-lg: 14.4%;
    
    /* ============================================
       LAYOUT
       ============================================ */

    --breakpoint-nav: 1200px;
    
    --border-radius-sm: 0.4rem;
    --border-radius-md: 1.6rem;
    --border-radius-full: 9999px;
    
    /* ============================================
       TRANSITIONS
       ============================================ */
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   DARK THEME
   ============================================ */

[data-theme="dark"] {
    /* Background colors */
    --bg-primary: var(--color-dark-950);
    --bg-secondary: var(--color-dark-900);
    --bg-inverse: var(--color-light-50);
    
    /* Text colors */
    --text-primary: var(--color-light-50);
    --text-secondary: var(--color-dark-300);
    --text-muted: var(--color-dark-300);
    --text-inverse: var(--color-slate-900);
    
    /* Border colors */
    --border-primary: var(--color-dark-700);
    --border-secondary: var(--color-cream-100);
    
    /* Interactive states */
    --image-opacity: 0.9;
}

/* ============================================
   SYSTEM PREFERENCE SUPPORT
   Auto dark mode based on OS settings
   COMMENTED OUT - Manual theme selection only
   
   To re-enable automatic dark mode, uncomment below:
   
   @media (prefers-color-scheme: dark) {
       :root:not([data-theme="light"]) {
           --bg-primary: var(--color-dark-950);
           --bg-secondary: var(--color-dark-900);
           --bg-inverse: var(--color-light-50);
           --text-primary: var(--color-light-50);
           --text-secondary: var(--color-dark-300);
           --text-muted: var(--color-dark-300);
           --text-inverse: var(--color-slate-900);
           --border-primary: var(--color-dark-700);
           --border-secondary: var(--color-cream-100);
           --image-opacity: 0.9;
       }
   }
   ============================================ */

/* ============================================
   ACCESSIBILITY - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
