/*
Theme Name: Silk Threads
Theme URI: https://silkthreads.com
Author: Silk Threads Development
Author URI: https://silkthreads.com
Description: A premium, fully custom WordPress & WooCommerce theme for Silk Threads — a luxury South Asian fashion eCommerce brand inspired by Pernia's Pop-Up Shop. Features custom mega menus, AJAX filtering, side-cart drawer, editorial layouts, and a Redux options dashboard.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: silk-threads
Tags: e-commerce, custom-colors, custom-menu, featured-images, translation-ready, two-columns, responsive-layout
*/

/* ==========================================================================
   DESIGN SYSTEM – CSS CUSTOM PROPERTIES
   Matched to all template and main.css references
   ========================================================================== */
:root {
  /* ── Brand Color Palette ── */
  --st-color-primary: #8b2c2c;
  --st-color-primary-hover: #6e1f1f;
  --st-color-gold: #b5860d;
  --st-bg-surface: #fdfcf9;
  --st-color-white: #ffffff;
  --st-color-black: #000000;
  --st-color-text-main: #1a1208;
  --st-color-text-muted: #7a6e60;
  --st-color-border-light: rgba(30, 15, 5, 0.08);
  --st-color-border: rgba(30, 15, 5, 0.12);
  --st-color-error: #d93838;
  --st-color-success: #1b874b;

  /* ── Typography ── */
  --st-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --st-font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --st-font-accent: 'Jost', sans-serif;

  /* ── Type Scale (fluid) ── */
  --st-text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8125rem);
  --st-text-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --st-text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --st-text-lg: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  --st-text-xl: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  --st-text-2xl: clamp(1.875rem, 1.1rem + 2.25vw, 3.25rem);
  --st-text-hero: clamp(2.25rem, 0.9rem + 3.75vw, 4.75rem);

  /* ── Spacing ── */
  --st-space-1: 0.25rem;
  --st-space-2: 0.5rem;
  --st-space-3: 0.75rem;
  --st-space-4: 1rem;
  --st-space-6: 1.5rem;
  --st-space-8: 2rem;
  --st-space-10: 2.5rem;
  --st-space-12: 3rem;
  --st-space-16: 4rem;
  --st-space-20: 5rem;
  --st-space-24: 6rem;

  /* ── Radius ── */
  --st-radius-sm: 3px;
  --st-radius-md: 6px;
  --st-radius-lg: 10px;

  /* ── Shadows ── */
  --st-shadow-sm: 0 1px 3px rgba(26, 18, 8, 0.04);
  --st-shadow-md: 0 4px 12px rgba(26, 18, 8, 0.06);
  --st-shadow-lg: 0 10px 30px rgba(26, 18, 8, 0.1);

  /* ── Transitions ── */
  --st-transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --st-transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout Widths ── */
  --st-content-narrow: 640px;
  --st-content-default: 1100px;
  --st-content-wide: 1400px;

  /* ── Backward-compat aliases for Redux dynamic output ── */
  --color-primary: var(--st-color-primary);
  --color-gold: var(--st-color-gold);
  --color-bg: var(--st-bg-surface);
  --color-surface: var(--st-bg-surface);
  --color-text: var(--st-color-text-main);
  --color-text-muted: var(--st-color-text-muted);
  --color-border: var(--st-color-border);
  --color-border-light: var(--st-color-border-light);
  --color-white: var(--st-color-white);
  --color-black: var(--st-color-black);
  --font-display: var(--st-font-display);
  --font-body: var(--st-font-body);
  --font-accent: var(--st-font-accent);
}

/* ==========================================================================
   CRITICAL BODY RESET
   ========================================================================== */
body {
  background-color: var(--st-bg-surface);
  color: var(--st-color-text-main);
  font-family: var(--st-font-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
