/* 
 * Antigravity OS - Design System Tokens (Швейный мир)
 * Typography: Cormorant Garamond
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* === Typography === */
    --ag-font-heading: 'Cormorant Garamond', serif;
    --ag-font-ui: 'Cormorant Garamond', Georgia, serif;
    --ag-font-primary: 'Cormorant Garamond', Georgia, serif;
    
    /* Font Sizes */
    --ag-text-xs: 0.75rem;   /* 12px */
    --ag-text-sm: 0.875rem;  /* 14px */
    --ag-text-base: 1rem;    /* 16px */
    --ag-text-lg: 1.125rem;  /* 18px */
    --ag-text-xl: 1.25rem;   /* 20px */
    --ag-text-2xl: 1.5rem;   /* 24px */
    --ag-text-3xl: 2rem;     /* 32px */
    --ag-text-4xl: 2.5rem;   /* 40px */
    --ag-text-5xl: 3.5rem;   /* 56px */

    /* === Colors (Boutique Palette) === */
    /* Primary (Graphite / Графит) */
    --ag-color-primary: #2B2D31;
    --ag-color-primary-light: #3F4248;
    
    /* Accents (Brand Orange / Фирменный оранжевый) */
    --ag-brand-orange: #D76314;
    --ag-color-accent: var(--ag-brand-orange);
    --ag-color-accent-hover: #B8500F;
    
    /* Neutral & Backgrounds */
    --ag-color-bg-body: #F8F9FA;
    --ag-color-bg-surface: #FFFFFF;
    --ag-color-bg-subtle: #F1F3F5;
    
    /* Text Colors */
    --ag-color-text-main: #1A1C29;
    --ag-color-text-muted: #6C757D;
    
    /* Status Colors */
    --ag-color-success: #2B8A3E;
    --ag-color-error: #C92A2A;
    --ag-color-warning: #E67700;

    /* === Spacing & Layout === */
    --ag-space-1: 0.25rem;
    --ag-space-2: 0.5rem;
    --ag-space-3: 0.75rem;
    --ag-space-4: 1rem;
    --ag-space-6: 1.5rem;
    --ag-space-8: 2rem;
    --ag-space-12: 3rem;
    
    --ag-radius-sm: 4px;
    --ag-radius-md: 8px;
    --ag-radius-lg: 12px;
    --ag-radius-full: 9999px;

    /* === Effects === */
    --ag-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ag-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ag-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --ag-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Global Typography Rules for AG Interfaces === */
.ag-b2b-dashboard, .ag-catalog-wrapper {
    font-family: var(--ag-font-ui);
    color: var(--ag-color-text-main);
    background-color: var(--ag-color-bg-body);
}

.ag-b2b-dashboard h1, .ag-b2b-dashboard h2, .ag-b2b-dashboard h3,
.ag-catalog-wrapper h1, .ag-catalog-wrapper h2, .ag-catalog-wrapper h3 {
    font-family: var(--ag-font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--ag-space-4);
}

.ag-b2b-dashboard h1 { font-size: var(--ag-text-4xl); }
.ag-b2b-dashboard h2 { font-size: var(--ag-text-3xl); }
.ag-b2b-dashboard h3 { font-size: var(--ag-text-2xl); }

/* === Base Components === */
.ag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ag-font-ui);
    font-weight: 500;
    font-size: var(--ag-text-sm);
    padding: var(--ag-space-2) var(--ag-space-4);
    border-radius: var(--ag-radius-md);
    transition: all var(--ag-transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.ag-btn-primary {
    background-color: var(--ag-color-primary);
    color: #ffffff;
}

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

.ag-card {
    background: var(--ag-color-bg-surface);
    border-radius: var(--ag-radius-lg);
    box-shadow: var(--ag-shadow-sm);
    padding: var(--ag-space-6);
    border: 1px solid rgba(0,0,0,0.05);
}

/* === Unified Brand Button Styles === */
.ag-btn-brand-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: var(--ag-text-sm);
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em !important;
    padding: 12px 24px;
    border-radius: var(--ag-radius-sm);
    background-color: var(--ag-brand-orange);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(215, 99, 20, 0.2);
    transition: all var(--ag-transition-fast);
    cursor: pointer;
    text-decoration: none !important;
}
.ag-btn-brand-v2:hover {
    background-color: var(--ag-color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 99, 20, 0.35);
}

.ag-btn-lead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ag-font-ui);
    font-size: var(--ag-text-sm);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--ag-radius-md);
    background-color: transparent;
    color: var(--ag-color-text-main) !important;
    border: 2px solid var(--ag-color-primary);
    transition: all var(--ag-transition-fast);
    cursor: pointer;
    text-decoration: none !important;
}
.ag-btn-lead:hover {
    background-color: var(--ag-color-primary);
    color: #ffffff !important;
    transform: translateY(-1px);
}
