/**
 * Theme Variables - Mobile Accessories E-commerce
 * COLOR HUNT PALETTE: #222831 · #393E46 · #00ADB5 · #EEEEEE
 * Applied with 60-30-10 rule
 *
 * ⚡ BACKUPS AVAILABLE:
 *   - theme-variables-blue-backup.css  (original blue)
 *   - theme-variables-gold-backup.css  (gold/orange)
 *
 * 60% = Light gray #EEEEEE (backgrounds, whitespace, cards)
 * 30% = Dark charcoal #222831 + #393E46 (nav, footer, text)
 * 10% = Teal #00ADB5 (CTAs, accents, links, badges)
 *
 * Load this FIRST before other custom CSS
 */

:root {
  /* ── Color Hunt Palette ── */
  --ch-dark: #222831;
  /* Charcoal navy */
  --ch-gray: #393E46;
  /* Slate gray */
  --ch-teal: #00ADB5;
  /* Vibrant teal */
  --ch-light: #EEEEEE;
  /* Soft light gray */

  /* ── 10% ACCENT — Teal ── */
  --primary: #00ADB5;
  --primary-hover: #009DA5;
  --primary-light: #E0F7FA;
  --primary-dark: #008B92;

  /* Accent aliases */
  --accent: #00ADB5;
  --accent-hover: #009DA5;
  --accent-light: #E0F7FA;

  /* Text accent (same as primary — teal is readable on light backgrounds) */
  --text-accent: #00ADB5;
  --text-accent-hover: #008B92;

  /* Legacy aliases (used by custom-nav / custom-footer) */
  --primary-yellow: #00ADB5;
  /* Teal replaces yellow in nav */
  --primary-black: #222831;
  --accent-yellow: #00ADB5;
  --hover-yellow: #009DA5;

  /* ── 60% DOMINANT — Light gray scale ── */
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray-50: #EEEEEE;
  /* Color Hunt light */
  --gray-100: #E8E8E8;
  --gray-200: #D5D5D5;
  --gray-300: #BDBDBD;
  --gray-400: #9E9E9E;
  --gray-500: #757575;
  --gray-600: #616161;

  /* ── 30% SECONDARY — Dark charcoals ── */
  --gray-700: #393E46;
  /* Color Hunt gray */
  --gray-800: #222831;
  /* Color Hunt dark */
  --gray-900: #1A1E25;
  /* Deeper dark */

  /* Legacy neutral aliases */
  --light-gray: var(--gray-200);
  --medium-gray: var(--gray-500);
  --dark-gray: var(--gray-700);

  /* ── Semantic Colors ── */
  --success: #16A34A;
  --success-light: #DCFCE7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #00ADB5;
  --info-light: #E0F7FA;

  /* ── Typography ── */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-primary);

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

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;

  /* ── Spacing Scale ── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* ── Border Radius ── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(34, 40, 49, 0.05);
  --shadow-sm: 0 1px 3px rgba(34, 40, 49, 0.08), 0 1px 2px rgba(34, 40, 49, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(34, 40, 49, 0.1), 0 2px 4px -2px rgba(34, 40, 49, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(34, 40, 49, 0.1), 0 4px 6px -4px rgba(34, 40, 49, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(34, 40, 49, 0.12), 0 8px 10px -6px rgba(34, 40, 49, 0.05);

  /* ── Z-index Layers ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* ── Transitions ── */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* ── Touch Targets ── */
  --touch-target: 44px;
  --touch-target-lg: 56px;

  /* ── Container Max Widths ── */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1200px;

  /* ── Header Heights ── */
  --header-height-mobile: 56px;
  --header-height-desktop: 70px;
  --bottom-nav-height: 60px;

  /* ── Skeleton / Loading ── */
  --skeleton-bg: #e0e0e0;
  --skeleton-shine: #f5f5f5;
  --skeleton-radius: var(--radius-md);
  --skeleton-duration: 1.5s;

  /* ── Mobile Input Heights ── */
  --input-height-mobile: 48px;
  --input-height-desktop: 42px;

  /* ── Safe Area ── */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);

  /* ── Scroll-to-Top ── */
  --z-scroll-top: 900;
}

/* ── Desktop Spacing Adjustments ── */
@media (min-width: 768px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
  }
}