/* ==========================================================================
   OPTICLES DESIGN SYSTEM - DESIGN TOKENS
   Aesthetic: Contemporary Luxury Haute Lunetterie & Eyewear Boutique
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* --- Brand Color Palette (Derived from KHANNA OPTICIANS Logo) --- */
  --color-brand-blue: #003665;
  --color-brand-blue-hover: #002E5A;
  --color-brand-blue-dark: #001E3C;
  --color-brand-teal: #14B8A6;
  --color-brand-teal-light: #CCFBF1;
  --color-brand-coral: #E73F3E;
  --color-brand-coral-light: #FEE2E2;

  --color-obsidian: #001E3C;
  --color-slate-900: #003665;
  --color-slate-800: #002E5A;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;

  /* Luxury Gold & Teal Brand Accents */
  --color-gold: #D4AF37;
  --color-gold-hover: #B8952F;
  --color-gold-light: #F7F3EC;
  --color-gold-pale: #FDFBF8;
  --color-gold-metallic: #F0C040;
  --color-gold-dark: #8F6E40;

  /* Surfaces & Backgrounds */
  --color-bg-body: #FBFBFD;
  --color-bg-surface: #FFFFFF;
  --color-bg-subtle: #F6F6FA;
  --color-bg-dark: #001E3C;
  --color-bg-dark-surface: #002E5A;
  --color-bg-dark-card: #003665;

  /* Text & Typography */
  --color-text-main: #18181B;
  --color-text-secondary: #52525B;
  --color-text-muted: #71717A;
  --color-text-light: #A1A1AA;
  --color-text-white: #FFFFFF;

  /* Borders & Dividers */
  --color-border: #E4E4E7;
  --color-border-light: #F4F4F5;
  --color-border-dark: #27272A;
  --color-border-gold: rgba(197, 168, 128, 0.4);

  /* Semantic Feedback */
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-danger: #EF4444;
  --color-danger-bg: #FEF2F2;
  --color-info: #3B82F6;
  --color-info-bg: #EFF6FF;

  /* Typography Stacks */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Luxury Ambient Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 30, 60, 0.04);
  --shadow-sm: 0 4px 10px rgba(0, 30, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 30, 60, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 30, 60, 0.1);
  --shadow-xl: 0 32px 64px rgba(0, 30, 60, 0.14);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.32);
  --shadow-glow: 0 0 30px rgba(240, 192, 64, 0.4);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Containers */
  --container-max: 1320px;
  --header-height: 80px;
  --announcement-height: 38px;
  --admin-sidebar-width: 270px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.text-gold {
  color: var(--color-gold) !important;
}

.font-serif {
  font-family: var(--font-serif) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-hover);
}
