/* ============================================================
   PALETTE v3 — "warm retail" reskin (2026-09-18).
   Replaced the rose/gold/plum editorial palette with a warm
   sand/near-black/terracotta one, modeled on a set of reference
   screenshots the user provided (a "Shopio"-style fashion-retail
   homepage + a dark-footer promo panel): beige/cream surfaces,
   near-black ink and CTAs, terracotta used sparingly for accents/
   badges/highlighted words — matching how little color those
   references actually use outside of photography. Old rose/gold/
   plum/lavender tokens are kept below (renamed with a v2- prefix)
   only because a few older, not-yet-touched stylesheets still
   reference the literal hex values inline; new work should never
   reach for them — use --color-primary/--color-accent etc.
   Montserrat (self-hosted, already ships 300-700) becomes the
   default --font-display too, at heavier weight, replacing
   Cormorant as the everyday headline voice; Cormorant survives
   only as --font-accent for occasional big statement moments
   (applied per-component, not globally), mirroring how the
   references themselves mix a display serif into an otherwise
   sans-driven layout.

   GOLD + SAGE + GLASS retone (2026-09-23). The --terracotta-* values
   (still the name every component reaches for) move from burnt orange
   to an antique/champagne gold — a more premium accent than the retail
   terracotta, and the one lever that recolors every component already
   reading the terracotta/rose/gold alias tokens. A net-new --sage-*
   scale is added alongside it (also aliased into --color-success so it
   shows up sitewide for free) and a --glass-panel utility (components.css)
   puts the --glass-* tokens below to actual use. This same gold now also
   replaces the blue "software" retone that admin.css/pos.css/login.html
   had locally overridden themselves to — one identity across the whole
   site instead of two.
   ============================================================ */

:root {
  --sand-50: #FBF8F3;
  --sand-100: #F7F1E8;
  --sand-200: #EFE3D2;
  --sand-300: #E4D3B8;
  --ink-900: #1A1613;
  --ink-700: #3D362E;
  --ink-500: #756B60;
  --ink-faint: #A79C8E;
  --terracotta-100: #F3E8D0;
  --terracotta-300: #D9BE84;
  --terracotta-600: #B8933F;
  --terracotta-700: #9C7A2E;

  /* Sage green, introduced 2026-09-23 alongside the gold retone above as a
     second premium accent (glassmorphism + gold + sage direction) — net-new,
     nothing to repoint. Doubles as the --color-success family below so it
     gets sitewide use (toasts, badges, checkmarks) with no extra edits. */
  --sage-100: #E7ECE1;
  --sage-300: #B9C7A9;
  --sage-500: #7E9468;
  --sage-700: #566B45;

  /* v2- = the retired rose/gold/plum/lavender palette. Only kept for the
     handful of older stylesheets (see comment above) that still hardcode
     these as literal hex rather than a var() — do not use in new CSS. */
  --v2-pearl-50: #FDFBFA;
  --v2-pearl-100: #FBF8F6;
  --v2-pearl-200: #F5EDE9;
  --v2-blush-50: #FDF4F4;
  --v2-blush-100: #FAEDED;
  --v2-blush-200: #F3DCDC;
  --v2-rose-100: #F6E2E4;
  --v2-rose-300: #DCA6AD;
  --v2-rose-500: #C46A76;
  --v2-rose-600: #96394E;
  --v2-rose-700: #7C2E3F;
  --v2-rose-800: #5F2331;
  --v2-rose-550: #A54A5C;
  --v2-plum-900: #1D1216;
  --v2-plum-850: #351C24;
  --v2-plum-800: #2C1B21;
  --v2-plum-600: #6E4A53;
  --v2-plum-500: #7D5F66;
  --v2-gold-600: #A16207;
  --v2-gold-500: #B98A2F;
  --v2-champagne-200: #EBDCC3;
  --v2-champagne-300: #D9BC8C;
  /* Old names kept as aliases too, since a large amount of CSS across the
     site (homepage-v2.css especially) reaches for var(--rose-600) etc.
     directly rather than through the semantic --color-* tokens. Pointing
     these at the new palette (rather than deleting them) recolors that
     CSS automatically without having to hunt down every call site. */
  --pearl-50: var(--sand-50);
  --pearl-100: var(--sand-100);
  --pearl-200: var(--sand-200);
  --blush-50: var(--sand-50);
  --blush-100: var(--sand-100);
  --blush-200: var(--sand-200);
  --rose-100: var(--terracotta-100);
  --rose-300: var(--terracotta-300);
  --rose-500: var(--terracotta-600);
  --rose-550: var(--terracotta-600);
  --rose-600: var(--terracotta-600);
  --rose-700: var(--terracotta-700);
  --rose-800: var(--terracotta-700);
  --plum-900: var(--ink-900);
  --plum-850: var(--ink-900);
  --plum-800: var(--ink-700);
  --plum-600: var(--ink-700);
  --plum-500: var(--ink-500);
  --gold-600: var(--terracotta-600);
  --gold-500: var(--terracotta-600);
  --champagne-200: var(--terracotta-100);
  --champagne-300: var(--terracotta-300);
  --lavender-50: #F3F1F7;
  --lavender-100: #EAE7F2;
  --lavender-600: #6B5D80;
  --lavender-700: #574A69;

  --color-bg: var(--sand-100);
  --color-bg-alt: var(--sand-50);
  --color-card: #FFFFFF;
  --color-ink: var(--ink-900);
  --color-ink-soft: var(--ink-500);
  --color-ink-faint: var(--ink-faint);
  --color-primary: var(--ink-900);
  --color-primary-hover: var(--ink-700);
  --color-on-primary: #FFFFFF;
  --color-accent: var(--terracotta-600);
  --color-accent-soft: var(--terracotta-100);
  --color-border: var(--sand-200);
  --color-border-strong: var(--sand-300);
  --color-muted-surface: var(--sand-200);
  --color-success: var(--sage-700);
  --color-success-surface: var(--sage-100);
  --color-warning: #9A6700;
  --color-warning-surface: #FCF3DD;
  --color-danger: #C03434;
  --color-danger-surface: #FBEAEA;
  /* Was a stock UI blue, then lavender - both a 4th hue competing with the
     gold+sage+ink identity (showed up as an odd-one-out badge color on
     stat cards and info banners). Reuses the same ink/gold tokens already
     everywhere else instead of a dedicated "info" hue. */
  --color-info: var(--ink-700);
  --color-info-surface: var(--terracotta-100);
  --color-ring: var(--terracotta-600);
  --focus-light: var(--terracotta-300);

  /* Migrated 2026-09-22 onto the v3 palette above (was a leftover v2
     plum-adjacent set, independent of --color-*). Values chosen to stay
     visually close to the old ones so this reads as a re-tone, not a
     redesign - --admin-ink-soft/--admin-border were already near-identical
     to their v3 equivalents. */
  --admin-bg: var(--sand-50);
  --admin-card: #FFFFFF;
  --admin-ink: var(--ink-900);
  --admin-ink-soft: var(--ink-500);
  --admin-border: var(--sand-200);
  --admin-sidebar: var(--ink-900);
  --admin-sidebar-ink: var(--sand-100);
  --admin-sidebar-active: rgba(255,255,255,0.10);

  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-accent: 'Cormorant', 'Times New Roman', serif;
  --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  --fs-display-xl: clamp(2.3rem, 5vw, 3.8rem);
  --fs-display: clamp(1.75rem, 3.5vw, 2.7rem);
  --fs-page-title: 1.5rem;
  --fs-section-title: 1.25rem;
  --fs-h3: 1.05rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-2xs: 0.6875rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Raised from a near-flat 2-6px scale: cards and media were built against
     an 18px assumption (see the var(--radius-lg, 18px) fallback already in
     customer.css) that the tokens never actually shipped, leaving buttons
     (pill/10px) and cards (2-6px) fighting each other. One coherent soft
     scale, still restrained - nothing past 24px outside the intentional pill. */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-full: 999px;
  --radius-btn: 14px;

  --shadow-xs: 0 1px 2px rgba(26, 15, 19, 0.06);
  --shadow-sm: 0 2px 8px rgba(26, 15, 19, 0.07), 0 1px 3px rgba(26, 15, 19, 0.05);
  --shadow-md: 0 8px 24px rgba(26, 15, 19, 0.11), 0 2px 6px rgba(26, 15, 19, 0.06);
  --shadow-lg: 0 20px 48px rgba(26, 15, 19, 0.16), 0 4px 12px rgba(26, 15, 19, 0.08);
  --shadow-glow: 0 0 0 1px rgba(184, 147, 63, 0.35), 0 8px 32px rgba(184, 147, 63, 0.16);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.8);
  --glass-bg-deep: rgba(250, 237, 238, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-edge: rgba(150, 57, 78, 0.08);
  --glass-blur: saturate(170%) blur(20px);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* One shared grade for card photography (treatments + products). Source
     images arrive from different shoots at different color temperatures;
     this nudges all of them toward one warm, slightly desaturated,
     editorial look instead of each card reading like a different brand.
     Same technique already used on the full-bleed video bands (see
     `.v2-band,.v2-final { filter: saturate(.72) contrast(1.04) }` in
     homepage-v2.css) - this just extends it to card imagery. */
  --photo-grade: saturate(0.86) contrast(1.05) sepia(0.1) hue-rotate(-8deg) brightness(1.015);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;

  --z-nav: 100;
  --z-sheet: 200;
  --z-modal: 300;
  --z-toast: 400;

  --container-max: 1200px;
  --container-wide: 1360px;
  --nav-height: 72px;
}

[data-theme="dark"] {
  --color-bg: #211519;
  --color-bg-alt: #291B20;
  --color-card: #2E1F25;
  --color-ink: #F5E9EC;
  --color-ink-soft: #C9AFb5;
  --color-ink-faint: #9A7E85;
  --color-border: #453037;
  --color-border-strong: #573E46;
  --color-muted-surface: #3A282E;
  --glass-bg: rgba(46, 31, 37, 0.62);
  --glass-bg-strong: rgba(46, 31, 37, 0.82);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
