/**
 * Fitmeezo Design System - Tokens & Base Styles
 * Brand: Fitmeezo | Tagline: SHOP SMART • LIVE BETTER
 * Market: India (INR ₹)
 */

:root {
  /* ==========================================================================
     Brand Color Palette
     ========================================================================== */
  --fm-primary: #FF6B00;
  --fm-primary-hover: #E05E00;
  --fm-primary-active: #CC5500;
  --fm-primary-subtle: #FFF2E8;
  --fm-primary-rgb: 255, 107, 0;

  --fm-dark: #121212;
  --fm-dark-surface: #1E1E1E;
  --fm-dark-elevated: #282828;
  --fm-dark-rgb: 18, 18, 18;

  --fm-light: #F5F5F7;
  --fm-light-surface: #FFFFFF;
  --fm-light-elevated: #FAFAFB;

  --fm-white: #FFFFFF;
  --fm-black: #000000;

  /* Text & Content Tokens */
  --fm-text-primary: #222222;
  --fm-text-secondary: #555555;
  --fm-text-muted: #767676;
  --fm-text-inverse: #FFFFFF;

  /* Borders & Dividers */
  --fm-border-color: #E5E5EA;
  --fm-border-light: #F0F0F3;
  --fm-border-strong: #D1D1D6;

  /* Semantic Feedback Tokens */
  --fm-success: #059669;
  --fm-success-subtle: #ECFDF5;
  --fm-warning: #D97706;
  --fm-warning-subtle: #FFFBEB;
  --fm-danger: #DC2626;
  --fm-danger-subtle: #FEF2F2;
  --fm-info: #2563EB;
  --fm-info-subtle: #EFF6FF;

  /* Accessibility & Focus Tokens */
  --fm-focus-ring: 0 0 0 3px rgba(255, 107, 0, 0.45);
  --fm-focus-outline: 2px solid var(--fm-primary);

  /* ==========================================================================
     Typography Tokens
     ========================================================================== */
  --fm-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fm-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

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

  --fm-font-weight-regular: 400;
  --fm-font-weight-medium: 500;
  --fm-font-weight-semibold: 600;
  --fm-font-weight-bold: 700;
  --fm-font-weight-extrabold: 800;

  --fm-line-height-tight: 1.2;
  --fm-line-height-normal: 1.5;
  --fm-line-height-relaxed: 1.7;

  /* ==========================================================================
     Spacing Scale
     ========================================================================== */
  --fm-spacing-1: 0.25rem;   /* 4px */
  --fm-spacing-2: 0.5rem;    /* 8px */
  --fm-spacing-3: 0.75rem;   /* 12px */
  --fm-spacing-4: 1rem;      /* 16px */
  --fm-spacing-5: 1.25rem;   /* 20px */
  --fm-spacing-6: 1.5rem;    /* 24px */
  --fm-spacing-8: 2rem;      /* 32px */
  --fm-spacing-10: 2.5rem;   /* 40px */
  --fm-spacing-12: 3rem;     /* 48px */
  --fm-spacing-16: 4rem;     /* 64px */

  /* ==========================================================================
     Border Radius Tokens
     ========================================================================== */
  --fm-radius-sm: 6px;
  --fm-radius-md: 10px;
  --fm-radius-lg: 14px;
  --fm-radius-xl: 20px;
  --fm-radius-full: 9999px;

  /* ==========================================================================
     Elevation & Shadow Tokens
     ========================================================================== */
  --fm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --fm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --fm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --fm-shadow-lg: 0 10px 24px -3px rgba(0, 0, 0, 0.09);
  --fm-shadow-xl: 0 20px 32px -4px rgba(0, 0, 0, 0.12);
  --fm-shadow-orange: 0 8px 20px rgba(255, 107, 0, 0.25);

  /* ==========================================================================
     Container & Layout Dimensions
     ========================================================================== */
  --fm-container-max: 1560px;
  --fm-header-height: 80px;
  --fm-announcement-height: 38px;
  --fm-category-nav-height: 48px;

  /* ==========================================================================
     Motion & Transition Tokens
     ========================================================================== */
  --fm-transition-fast: 150ms ease-in-out;
  --fm-transition-normal: 250ms ease-in-out;
  --fm-transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global Reset & Baseline Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--fm-font-sans);
  font-size: var(--fm-font-size-base);
  font-weight: var(--fm-font-weight-regular);
  line-height: var(--fm-line-height-normal);
  color: var(--fm-text-primary);
  background-color: var(--fm-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fm-transition-fast);
}

a:hover {
  color: var(--fm-primary);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

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

/* Accessible focus styling for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--fm-focus-outline);
  outline-offset: 2px;
  box-shadow: var(--fm-focus-ring);
}

/* Custom selection highlight */
::selection {
  background-color: var(--fm-primary-subtle);
  color: var(--fm-primary-hover);
}
