/**
 * Design System - CSS Custom Properties
 * Mobile-first responsive design foundation
 */

:root {
  /* ===== BREAKPOINTS ===== */
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 992px;
  --breakpoint-desktop: 1200px;
  
  /* ===== SPACING SCALE ===== */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-xxl: 3rem;      /* 48px */
  
  /* ===== TYPOGRAPHY SCALE ===== */
  --font-size-display: 2.5rem;   /* 40px - Page titles */
  --font-size-h1: 2rem;          /* 32px - Section headings */
  --font-size-h2: 1.5rem;        /* 24px - Subsection headings */
  --font-size-h3: 1.25rem;       /* 20px - Card titles */
  --font-size-body: 1rem;        /* 16px - Regular text */
  --font-size-small: 0.875rem;   /* 14px - Secondary text */
  --font-size-tiny: 0.75rem;     /* 12px - Labels, badges */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ===== TOUCH TARGET SIZES ===== */
  --touch-target-min: 44px;      /* Minimum touch target (iOS/Android) */
  --button-height: 48px;         /* Standard button height */
  --button-height-sm: 36px;      /* Small button height */
  --button-height-lg: 56px;      /* Large button height */
  --icon-button-size: 44px;      /* Icon button size */
  
  /* ===== PRODUCT CARD ===== */
  --product-card-radius: 1rem;
  --product-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --product-card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --product-card-padding: var(--spacing-md);
  
  /* Product Image Heights (Responsive) */
  --product-image-mobile: 200px;
  --product-image-tablet: 220px;
  --product-image-desktop: 240px;
  
  /* ===== COLORS (Existing) ===== */
  --primary-color: #04117a;
  --secondary-color: #0d41b2;
  --accent-color: #05E0FF;
  --accent-hover: #6deeff;
  --dark-blue: #020945;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  
  /* ===== BORDERS ===== */
  --border-radius-sm: 0.375rem;  /* 6px */
  --border-radius-md: 0.5rem;    /* 8px */
  --border-radius-lg: 0.75rem;   /* 12px */
  --border-radius-xl: 1rem;      /* 16px */
  --border-radius-full: 9999px;  /* Fully rounded */
  
  --border-width: 1px;
  --border-color: var(--color-gray-200);
  
  /* ===== SHADOWS ===== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* ===== Z-INDEX SCALE ===== */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* ===== CONTAINER WIDTHS ===== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-xxl: 1536px;
}

/* ===== MOBILE OVERRIDES (< 768px) ===== */
@media (max-width: 767px) {
  :root {
    /* Adjust typography for mobile */
    --font-size-display: 2rem;     /* 32px */
    --font-size-h1: 1.75rem;       /* 28px */
    --font-size-h2: 1.375rem;      /* 22px */
    --font-size-h3: 1.125rem;      /* 18px */
    
    /* Adjust spacing for mobile */
    --spacing-lg: 1.25rem;         /* 20px */
    --spacing-xl: 1.5rem;          /* 24px */
    --spacing-xxl: 2rem;           /* 32px */
    
    /* Product card adjustments */
    --product-card-padding: var(--spacing-sm);
  }
}

/* ===== UTILITY CLASSES ===== */

/* Spacing Utilities */
.p-xs { padding: var(--spacing-xs) !important; }
.p-sm { padding: var(--spacing-sm) !important; }
.p-md { padding: var(--spacing-md) !important; }
.p-lg { padding: var(--spacing-lg) !important; }
.p-xl { padding: var(--spacing-xl) !important; }
.p-xxl { padding: var(--spacing-xxl) !important; }

.m-xs { margin: var(--spacing-xs) !important; }
.m-sm { margin: var(--spacing-sm) !important; }
.m-md { margin: var(--spacing-md) !important; }
.m-lg { margin: var(--spacing-lg) !important; }
.m-xl { margin: var(--spacing-xl) !important; }
.m-xxl { margin: var(--spacing-xxl) !important; }

/* Gap Utilities */
.gap-xs { gap: var(--spacing-xs) !important; }
.gap-sm { gap: var(--spacing-sm) !important; }
.gap-md { gap: var(--spacing-md) !important; }
.gap-lg { gap: var(--spacing-lg) !important; }
.gap-xl { gap: var(--spacing-xl) !important; }

/* Typography Utilities */
.text-display { font-size: var(--font-size-display) !important; }
.text-h1 { font-size: var(--font-size-h1) !important; }
.text-h2 { font-size: var(--font-size-h2) !important; }
.text-h3 { font-size: var(--font-size-h3) !important; }
.text-body { font-size: var(--font-size-body) !important; }
.text-small { font-size: var(--font-size-small) !important; }
.text-tiny { font-size: var(--font-size-tiny) !important; }

/* Touch Target Utilities */
.touch-target {
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
}

.btn-touch {
  min-height: var(--button-height);
  padding: var(--spacing-sm) var(--spacing-lg);
}

/* Border Radius Utilities */
.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }
.rounded-full { border-radius: var(--border-radius-full) !important; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Transition Utilities */
.transition-fast { transition: all var(--transition-fast) !important; }
.transition-base { transition: all var(--transition-base) !important; }
.transition-slow { transition: all var(--transition-slow) !important; }
