/* ==========================================================================
   Vegarix v3 Design Tokens & CSS Variables
   Mobile-First Architecture for Bangladesh E-Commerce
   ========================================================================== */

:root {
  /* Dynamic Brand & Accent Colors */
  --primary: var(--theme-primary, #0F172A);
  --primary-hover: #1E293B;
  --primary-light: #F8FAFC;
  --primary-subtle: #F1F5F9;

  --accent: var(--theme-accent, #D97706);
  --accent-hover: #B45309;
  --accent-light: #FEF3C7;

  /* Semantic Feedback Colors */
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --whatsapp: #25D366;

  /* Typography & Neutral Colors */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B; /* High contrast: 4.5:1 on light backgrounds */
  --text-subtle: #94A3B8;

  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --border-focus: #CBD5E1;

  /* Border Radius System: Exactly 3 Steps */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 9999px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Elevation & Shadows: Unified cleanly without blue tint */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

  /* Fonts */
  --font-main: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --line-height-bn: 1.65;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: var(--line-height-bn);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* For mobile sticky bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* 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;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
