/*
 * Selina Butik — tasarım değişkenleri. Renkler yalnızca buradan yönetilir.
 * Marka paleti teknik dokümandan birebir alınmıştır; türetilmiş tonlar kontrast için eklenmiştir.
 *
 * Kontrast kuralları (WCAG AA, #F8F6F2 zemin üzerinde):
 *  - --color-primary (3.5:1) ve --color-gold (2.3:1) küçük metinde KULLANILMAZ: çizgi, ikon, vurgu içindir.
 *  - Buton zemini ve bağlantılar --color-primary-dark (beyazla 6.3:1).
 *  - Küçük yardımcı metin --color-text-muted (5.2:1); --color-text-secondary yalnızca büyük metinde.
 */
:root {
    /* --- Marka paleti (doküman) --- */
    --color-primary: #A47B52;
    --color-primary-dark: #795A3D;
    --color-gold: #C6A15B;
    --color-gold-light: #E3D1A6;
    --color-background: #F8F6F2;
    --color-surface: #FFFFFF;
    --color-surface-soft: #F1EDE6;
    --color-text: #29251F;
    --color-text-secondary: #81786D;
    --color-border: #E8E1D7;
    --color-success: #627A60;
    --color-danger: #A64B43;

    /* --- Türetilmiş tonlar --- */
    --color-text-muted: #6F665C;
    --color-primary-deep: #5E4530;      /* buton hover/aktif */
    --color-primary-tint: #F4ECE3;      /* seçili satır, rozet zemini */
    --color-border-strong: #D8CDBE;     /* form alanı kenarı */
    --color-success-text: #4F664D;
    --color-success-tint: #EEF2EC;
    --color-danger-tint: #F7ECEA;
    --color-warning: #8A6A1F;
    --color-warning-tint: #F8F0DC;
    --color-info: #5D6B73;
    --color-info-tint: #EDF0F1;
    --color-overlay: rgba(41, 37, 31, .45);
    --color-glass: rgba(248, 246, 242, .82);
    --color-glass-surface: rgba(255, 255, 255, .78);

    /* --- Tipografi --- */
    --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Ölçek: 1.25 (major third), taban 16px */
    --text-xs: .75rem;      /* 12 */
    --text-sm: .875rem;     /* 14 */
    --text-base: 1rem;      /* 16 */
    --text-md: 1.125rem;    /* 18 */
    --text-lg: 1.25rem;     /* 20 */
    --text-xl: 1.5625rem;   /* 25 */
    --text-2xl: 1.953rem;   /* 31 */
    --text-3xl: 2.441rem;   /* 39 */
    --text-4xl: 3.052rem;   /* 49 */
    --text-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);

    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-body: 1.6;

    /* --- Boşluk (4px tabanlı) --- */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --section-gap: clamp(3rem, 2rem + 4vw, 6rem);

    /* --- Şekil ---
       Köşeler hiyerarşiye göre: kontroller neredeyse keskin, paneller yumuşak,
       vitrin (arch) yalnızca hero ve öne çıkan kategorilerde. */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --radius-arch: 999px 999px var(--radius-sm) var(--radius-sm);

    --border-hairline: 1px solid var(--color-border);

    /* Çok hafif, sıcak tonlu gölgeler */
    --shadow-xs: 0 1px 2px rgba(64, 45, 26, .05);
    --shadow-sm: 0 2px 8px rgba(64, 45, 26, .06);
    --shadow-md: 0 10px 30px -12px rgba(64, 45, 26, .18);
    --shadow-lg: 0 24px 60px -20px rgba(64, 45, 26, .28);

    --focus-ring: 0 0 0 3px rgba(121, 90, 61, .35);

    /* --- Hareket --- */
    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --duration-fast: 140ms;
    --duration: 220ms;
    --duration-slow: 600ms;

    /* --- Yerleşim --- */
    --container-max: 1320px;
    --container-narrow: 760px;
    --header-height: 72px;
    --admin-sidebar-width: 256px;
    --admin-topbar-height: 60px;
    --z-header: 1020;
}

@media (max-width: 991.98px) {
    :root { --header-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration: 0ms;
        --duration-slow: 0ms;
    }
}
