/* ============================================
   DESIGN TOKENS & CSS VARIABLES
   Best Buy-Inspired Retail Theme for JERTS CART
   ============================================ */

:root {
  /* Primary Brand Color - Best Buy Blue */
  --primary: #0046be; /* Best Buy signature blue */
  --primary-hover: #003399; /* Darker blue for hover */
  --primary-light: #e8f0fe; /* Very light blue for backgrounds */
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-primary-light: var(--primary-light);

  /* Secondary Color - Best Buy Yellow */
  --secondary: #ffce00; /* Best Buy yellow for accents/deals */
  --secondary-hover: #e6b800;
  --secondary-light: #fff8e1; /* Light yellow for deal badges */
  --color-secondary: var(--secondary);
  --color-secondary-hover: var(--secondary-hover);
  --color-secondary-light: var(--secondary-light);

  /* Accent Color - Best Buy Blue (used for CTAs) */
  --accent: #0046be; /* Same as primary for consistency */
  --accent-hover: #003399;
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);

  /* Neutral Colors - Clean grays */
  --neutral-900: #1a1a1a; /* Near black - primary text */
  --neutral-800: #2e2e2e; /* Dark gray - headings */
  --neutral-700: #4a4a4a; /* Medium gray - body text */
  --neutral-600: #666666; /* Gray - secondary text */
  --neutral-500: #6b6b6b; /* Medium gray - secondary text, accessible */
  --neutral-400: #b0b0b0; /* Border color */
  --neutral-300: #d4d4d4; /* Light borders */
  --neutral-200: #e5e5e5; /* Very light borders */
  --neutral-100: #f4f4f4; /* Background gray */
  --neutral-50: #fafafa; /* Off-white */

  /* Background Colors */
  --bg-primary: #ffffff; /* Main content background */
  --bg-secondary: #f4f4f4; /* Page background - Best Buy light gray */
  --bg-tertiary: #e8e8e8; /* Section backgrounds */
  --color-white: var(--bg-primary);
  --color-text: var(--neutral-700);

  /* Status Colors */
  --success: #1a8917; /* Best Buy green */
  --success-light: #e8f5e8;
  --warning: #d27500; /* Best Buy orange */
  --warning-light: #fff3e0;
  --danger: #c00; /* Best Buy red */
  --danger-light: #ffe8e8;
  --info: #0046be; /* Best Buy blue */
  --info-light: #e8f0fe;
  --color-success: var(--success);
  --color-success-light: var(--success-light);
  --color-warning: var(--warning);
  --color-warning-light: var(--warning-light);
  --color-danger: var(--danger);
  --color-danger-light: var(--danger-light);
  --color-info: var(--info);
  --color-info-light: var(--info-light);

  /* Product Condition Colors - Blue/Yellow theme */
  --condition-new: #0046be; /* Blue */
  --condition-like-new: #003399; /* Dark Blue */
  --condition-fair: #d27500; /* Amber */
  --condition-good: #1a8917; /* Green */
  --condition-excellent: #ffce00; /* Yellow */

  /* Price Color - Best Buy blue for prices */
  --price-color: #0046be; /* Blue for prices */
  --price-deal: #c00; /* Red for deals */

  /* Spacing Scale (8px base system) */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 2.5rem; /* 40px */
  --space-3xl: 3rem; /* 48px */
  --space-4xl: 4rem; /* 64px */
  --spacing-xs: var(--space-xs);
  --spacing-sm: var(--space-sm);
  --spacing-md: var(--space-md);
  --spacing-lg: var(--space-lg);
  --spacing-xl: var(--space-xl);
  --spacing-2xl: var(--space-2xl);
  --spacing-3xl: var(--space-3xl);
  --spacing-4xl: var(--space-4xl);

  /* Border Radius - Slightly rounded like Best Buy */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 0.75rem; /* 12px */
  --radius-full: 9999px;

  /* Typography - Clean, bold system fonts */
  --font-family-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', 'Consolas', 'Monaco', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --font-size-xs: var(--text-xs);
  --font-size-sm: var(--text-sm);
  --font-size-md: var(--text-base);
  --font-size-lg: var(--text-lg);
  --font-size-xl: var(--text-xl);
  --font-size-2xl: var(--text-2xl);
  --font-size-3xl: var(--text-3xl);
  --font-size-4xl: var(--text-4xl);

  /* Font Weights - Bold headings like Best Buy */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-weight-light: var(--font-light);
  --font-weight-normal: var(--font-normal);
  --font-weight-medium: var(--font-medium);
  --font-weight-semibold: var(--font-semibold);
  --font-weight-bold: var(--font-bold);

  /* Line Heights */
  --line-tight: 1.2;
  --line-normal: 1.5;
  --line-relaxed: 1.625;

  /* Shadows - Subtle, clean shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);

  /* Borders */
  --border-light: 1px solid var(--neutral-200);
  --border-medium: 1px solid var(--neutral-300);
  --border-dark: 1px solid var(--neutral-400);

  /* Transitions */
  --transition-fast: 100ms ease;
  --transition-base: 150ms ease;
  --transition-slow: 250ms ease;
  --transition-normal: var(--transition-base);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-notification: 500;
  --z-toast: var(--z-notification);
  --z-tooltip: 600;
  --z-sidebar: var(--z-sticky);

  /* Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Layout */
  --header-height: 64px; /* matches the actual .navbar height at every breakpoint
                          (navbar.css forces 64px at all sizes; the 56px rule in
                          responsive.css is overridden by source order). Sticky
                          offsets such as .browse-categories top inherit this. */
  --max-content-width: 1400px; /* Wide content area like Best Buy */
  --sidebar-width: 260px;
}

/* ============================================
DARK MODE THEME
============================================ */
[data-theme='dark'] {
  --primary: #6d9eff;
  --primary-hover: #4d7fdb;
  --primary-light: #1e2a3a;
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-primary-light: var(--primary-light);

  --secondary: #ffce00;
  --secondary-hover: #e6b800;
  --secondary-light: #2a2500;
  --color-secondary: var(--secondary);
  --color-secondary-hover: var(--secondary-hover);
  --color-secondary-light: var(--secondary-light);

  --accent: #6d9eff;
  --accent-hover: #4d7fdb;
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);

  --neutral-900: #f0f0f0;
  --neutral-800: #e0e0e0;
  --neutral-700: #c0c0c0;
  --neutral-600: #a0a0a0;
  --neutral-500: #808080;
  --neutral-400: #606060;
  --neutral-300: #444444;
  --neutral-200: #333333;
  --neutral-100: #1e1e1e;
  --neutral-50: #161616;

  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #242424;
  --color-white: #ffffff;
  --color-text: var(--neutral-700);

  --success: #4caf50;
  --success-light: #1a2e1a;
  --warning: #ffb74d;
  --warning-light: #2a2210;
  --danger: #ef5350;
  --danger-light: #2a1212;
  --info: #6d9eff;
  --info-light: #1e2a3a;
  --color-success: var(--success);
  --color-success-light: var(--success-light);
  --color-warning: var(--warning);
  --color-warning-light: var(--warning-light);
  --color-danger: var(--danger);
  --color-danger-light: var(--danger-light);
  --color-info: var(--info);
  --color-info-light: var(--info-light);

  --condition-new: #6d9eff;
  --condition-like-new: #4d7fdb;
  --condition-fair: #ffb74d;
  --condition-good: #66bb6a;
  --condition-excellent: #ffce00;

  --price-color: #6d9eff;
  --price-deal: #ef5350;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);

  --border-light: 1px solid var(--neutral-200);
  --border-medium: 1px solid var(--neutral-300);
  --border-dark: 1px solid var(--neutral-400);
}
