/* =============================================================================
   Site-Wide Theme Configuration
   Crimson Red Brand Color Palette
   ============================================================================= */

:root {
    /* ==========================================================================
       Primary Brand Colors
       ========================================================================== */
    --theme-primary: #e43131;           /* Crimson Red - Main brand color */
    --theme-primary-dark: #c52a2a;      /* Darker crimson for hover states */
    --theme-primary-darker: #7f1d1d;    /* Even darker for active states */
    --theme-primary-light: #fecaca;     /* Light red for backgrounds */
    --theme-primary-lighter: #fee2e2;   /* Very light red for subtle highlights */

    /* ==========================================================================
       Accent Colors
       ========================================================================== */
    --theme-accent: #dc2626;            /* Bright red accent */
    --theme-accent-gold: #d4af37;       /* Gold accent for premium feel */
    --theme-accent-success: #059669;    /* Green for success states */
    --theme-accent-warning: #d97706;    /* Orange for warnings */
    --theme-accent-info: #0284c7;       /* Blue for informational */

    /* ==========================================================================
       Neutral Colors - Text
       ========================================================================== */
    --theme-text-primary: #1f2937;      /* Main text - Dark gray */
    --theme-text-secondary: #4b5563;    /* Secondary text */
    --theme-text-muted: #6b7280;        /* Muted/helper text */
    --theme-text-light: #9ca3af;        /* Light text for placeholders */
    --theme-text-inverse: #ffffff;      /* Text on dark backgrounds */

    /* ==========================================================================
       Neutral Colors - Backgrounds
       ========================================================================== */
    --theme-bg-primary: #ffffff;        /* Main background */
    --theme-bg-secondary: #fafafa;      /* Secondary/page background */
    --theme-bg-tertiary: #f3f4f6;       /* Tertiary background */
    --theme-bg-muted: #e5e7eb;          /* Muted background */
    --theme-bg-dark: #1f2937;           /* Dark background */

    /* ==========================================================================
       Border Colors
       ========================================================================== */
    --theme-border-light: #e5e7eb;      /* Light borders */
    --theme-border-default: #d1d5db;    /* Default borders */
    --theme-border-dark: #9ca3af;       /* Darker borders */

    /* ==========================================================================
       Shadow Colors
       ========================================================================== */
    --theme-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --theme-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --theme-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --theme-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --theme-shadow-primary: 0 4px 14px 0 rgba(185, 28, 28, 0.25);

    /* ==========================================================================
       Typography
       ========================================================================== */
    --font-family-base: 'Google Sans', 'Google Sans Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Jost', Georgia, 'Times New Roman', serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Font Sizes - Using perfect fourth scale (1.333) */
    --font-size-xs: 0.75rem;            /* 12px */
    --font-size-sm: 0.875rem;           /* 14px */
    --font-size-base: 1rem;             /* 16px */
    --font-size-lg: 1.125rem;           /* 18px */
    --font-size-xl: 1.25rem;            /* 20px */
    --font-size-2xl: 1.5rem;            /* 24px */
    --font-size-3xl: 1.875rem;          /* 30px */
    --font-size-4xl: 2.25rem;           /* 36px */
    --font-size-5xl: 3rem;              /* 48px */

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;

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

    /* ==========================================================================
       Border Radius
       ========================================================================== */
    --radius-none: 0;
    --radius-sm: 0.125rem;              /* 2px */
    --radius-default: 0.25rem;          /* 4px */
    --radius-md: 0.375rem;              /* 6px */
    --radius-lg: 0.5rem;                /* 8px */
    --radius-xl: 0.75rem;               /* 12px */
    --radius-2xl: 1rem;                 /* 16px */
    --radius-full: 9999px;

    /* ==========================================================================
       Transitions
       ========================================================================== */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    /* ==========================================================================
       Z-Index Scale
       ========================================================================== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* ==========================================================================
       Container Widths
       ========================================================================== */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;

    /* ==========================================================================
       Header & Navigation
       ========================================================================== */
    --topbar-bg: #e43131;           /* Crimson red topbar background */
    --header-bg: #ffffff;           /* Main navigation header background */
    --nav-accent: #DC143C;          /* Navigation hover/active accent color */

    /* ==========================================================================
       Breadcrumb
       ========================================================================== */
    --breadcrumb-font-size: 0.8125rem;        /* 13px desktop */
    --breadcrumb-font-size-mobile: 0.75rem;   /* 12px mobile */
}

/* =============================================================================
   Header / Topbar
   ============================================================================= */

.site-topbar {
    background-color: var(--topbar-bg);
}

.site-header {
    background-color: var(--header-bg);
}

/* =============================================================================
   Base Styles
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--theme-text-primary);
    background-color: var(--theme-bg-secondary);
}

/* =============================================================================
   Typography Utilities
   ============================================================================= */

.heading-1 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--theme-text-primary);
    letter-spacing: var(--letter-spacing-tight);
}

.heading-2 {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--theme-text-primary);
}

.heading-3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    color: var(--theme-text-primary);
}

.heading-4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    color: var(--theme-text-primary);
}

.text-muted {
    color: var(--theme-text-muted);
}

.text-primary {
    color: var(--theme-primary);
}

/* =============================================================================
   Button Styles
   ============================================================================= */

.btn-theme-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    background-color: var(--theme-primary);
    color: var(--theme-text-inverse);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-theme-primary:hover {
    background-color: var(--theme-primary-dark);
    box-shadow: var(--theme-shadow-primary);
    transform: translateY(-1px);
}

.btn-theme-primary:active {
    background-color: var(--theme-primary-darker);
    transform: translateY(0);
}

.btn-theme-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    background-color: transparent;
    color: var(--theme-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border: 2px solid var(--theme-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-theme-secondary:hover {
    background-color: var(--theme-primary);
    color: var(--theme-text-inverse);
}

/* =============================================================================
   Button Size Tokens — SINGLE SOURCE OF TRUTH
   ─────────────────────────────────────────────
   To resize ALL buttons site-wide, change these variables only.
   They are used by every .btn--sm / --md / --lg class below,
   and also by any page-specific button (e.g. .load-more-btn) via
   var(--btn-sm-*) references, so a single edit here affects everything.

   The STANDARD size used across the site is --sm.
   Reference: "Browse Collection" button on the About Us page.
   ============================================================================= */

:root {
    /* sm — site standard (About Us "Browse Collection" reference) */
    --btn-sm-padding-y   : 0.5rem;
    --btn-sm-padding-x   : 0.875rem;
    --btn-sm-font-size   : 0.875rem;
    --btn-sm-icon-size   : 14px;

    /* md */
    --btn-md-padding-y   : 0.625rem;
    --btn-md-padding-x   : 1.125rem;
    --btn-md-font-size   : 0.9375rem;
    --btn-md-icon-size   : 16px;

    /* lg */
    --btn-lg-padding-y   : 0.75rem;
    --btn-lg-padding-x   : 1.5rem;
    --btn-lg-font-size   : 1rem;
    --btn-lg-icon-size   : 18px;
}

/* =============================================================================
   Reusable Button Component (.btn)
   Standard button sizes used across all pages
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn__icon svg {
    width: 1em;
    height: 1em;
}

/* Button Sizes — driven by tokens above */
.btn--sm {
    padding: var(--btn-sm-padding-y) var(--btn-sm-padding-x);
    font-size: var(--btn-sm-font-size);
}

.btn--sm .btn__icon svg {
    width: var(--btn-sm-icon-size);
    height: var(--btn-sm-icon-size);
}

.btn--md {
    padding: var(--btn-md-padding-y) var(--btn-md-padding-x);
    font-size: var(--btn-md-font-size);
}

.btn--md .btn__icon svg {
    width: var(--btn-md-icon-size);
    height: var(--btn-md-icon-size);
}

.btn--lg {
    padding: var(--btn-lg-padding-y) var(--btn-lg-padding-x);
    font-size: var(--btn-lg-font-size);
}

.btn--lg .btn__icon svg {
    width: var(--btn-lg-icon-size);
    height: var(--btn-lg-icon-size);
}

/* Button Variants */
.btn--primary {
    color: #ffffff;
    background: var(--theme-primary, #e43131);
}

.btn--primary:hover {
    background: var(--theme-primary-dark, #c52a2a);
    transform: translateY(-1px);
}

.btn--secondary {
    color: var(--theme-text-primary, #1f2937);
    background: var(--theme-bg-secondary, #f3f4f6);
}

.btn--secondary:hover {
    background: var(--theme-border-light, #e5e7eb);
}

.btn--outline {
    color: var(--theme-primary, #e43131);
    background: transparent;
    border: 1px solid var(--theme-primary, #e43131);
}

.btn--outline:hover {
    background: var(--theme-primary, #e43131);
    color: #ffffff;
}

.btn--ghost {
    color: var(--theme-text-secondary, #4b5563);
    background: transparent;
}

.btn--ghost:hover {
    background: var(--theme-bg-tertiary, #f3f4f6);
}

.btn--whatsapp {
    color: #ffffff;
    background: #25D366;
}

.btn--whatsapp:hover {
    background: #128C7E;
}

.btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* =============================================================================
   Card Styles
   ============================================================================= */

.card-theme {
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--theme-shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-theme:hover {
    box-shadow: var(--theme-shadow-md);
    border-color: var(--theme-primary-light);
}

/* =============================================================================
   Price Display
   ============================================================================= */

.price-current {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--theme-primary);
}

.price-compare {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--theme-text-muted);
    text-decoration: line-through;
}

.price-savings {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--theme-accent-success);
}

/* =============================================================================
   Badge Styles
   ============================================================================= */

.badge-theme {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-2);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    border-radius: var(--radius-default);
}

.badge-theme-primary {
    background-color: var(--theme-primary);
    color: var(--theme-text-inverse);
}

.badge-theme-success {
    background-color: var(--theme-accent-success);
    color: var(--theme-text-inverse);
}

.badge-theme-warning {
    background-color: var(--theme-accent-warning);
    color: var(--theme-text-inverse);
}

/* =============================================================================
   Form Elements
   ============================================================================= */

.input-theme {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    color: var(--theme-text-primary);
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.input-theme:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-lighter);
}

.input-theme::placeholder {
    color: var(--theme-text-light);
}

/* =============================================================================
   Section Headings
   ============================================================================= */

.section-heading {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    color: var(--theme-text-muted);
    margin-bottom: var(--spacing-3);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--theme-text-primary);
    margin-bottom: var(--spacing-4);
}
