/* ========================================
   CSS Custom Properties & Reset
   Payel Bhunia — Fashion Brand
   ======================================== */

/* ---------- Color Palette ---------- */
:root {
  --clr-primary: #5E4B82;
  --clr-primary-light: #8473A6;
  --clr-primary-dark: #3E3057;
  --clr-secondary: #A2718F;
  --clr-secondary-light: #BD93AC;
  --clr-accent: #C0826B;
  --clr-accent-light: #D6A48F;
  --clr-gold: #BFA15E;
  --clr-gold-light: #CDB374;
  --clr-bg: #F8F5F1;
  --clr-bg-alt: #EEE9F0;
  --clr-surface: #FFFFFF;
  --clr-text: #221634;
  --clr-text-muted: #5E5270;
  --clr-text-light: #8B7F9C;
  --clr-border: #E6DEEE;
  --clr-border-gold: rgba(191, 161, 94, 0.3);
  --clr-price: var(--clr-primary-dark);

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #150B26 0%, #20143A 22%, #311F52 48%, #463469 72%, #574379 90%, #63507F 100%);
  --grad-button: linear-gradient(135deg, #5E4B82, #8473A6);
  --grad-button-hover: linear-gradient(135deg, #3E3057, #6B5896);
  --grad-overlay: linear-gradient(180deg, rgba(62, 48, 87, 0.6) 0%, rgba(132, 115, 166, 0.2) 100%);
  --grad-overlay-dark: linear-gradient(180deg, rgba(13,10,18,0.5) 0%, rgba(42,27,61,0.3) 100%);

  /* ---------- Typography ---------- */
  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
  --ls-widest: 0.2em;

  /* ---------- Spacing ---------- */
  --sp-2xs: 0.25rem;
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* ---------- Layout ---------- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-pad: 1.25rem;

  /* ---------- Borders & Radius ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 2px 10px rgba(34, 22, 52, 0.07);
  --shadow-md: 0 6px 24px rgba(34, 22, 52, 0.10);
  --shadow-lg: 0 10px 44px rgba(34, 22, 52, 0.14);
  --shadow-xl: 0 16px 60px rgba(34, 22, 52, 0.18);
  --shadow-gold: 0 4px 20px rgba(191, 161, 94, 0.18);

  /* ---------- Transitions ---------- */
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;

  /* ---------- Z-index ---------- */
  --z-behind: -1;
  --z-normal: 1;
  --z-above: 10;
  --z-nav: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-toast: 2000;

  /* ---------- Nav height ---------- */
  --nav-height: 72px;
  --nav-height-mobile: 60px;
  --nav-height-desktop: 72px;
  --bottom-nav-height: 64px;
}

/* ========== Dark Mode ========== */
[data-theme="dark"] {
  --clr-bg: #1A1125;
  --clr-bg-alt: #241735;
  --clr-surface: #2A1E3D;
  --clr-text: #E8E0F0;
  --clr-text-muted: #B0A3C0;
  --clr-text-light: #8B7FA0;
  --clr-border: #3D2E55;
  --clr-border-gold: rgba(212, 184, 122, 0.25);
  --clr-primary-light: #B89EDD;
  --clr-price: #C9B3EF;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.35);
}

/* ========================================
   Modern CSS Reset
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-text);
}

p {
  max-width: 65ch;
}

/* Remove animations for reduced-motion preference */
@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;
  }
}
