/* =====================================================================
   NOAH — Design Tokens
   Shared by the storefront (noah-storefront.css) and the admin panel
   (noah-admin.css). Change brand values here only.
   ===================================================================== */

/* ---------- Typography: self-hosted variable fonts ---------- */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Alexandria';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/alexandria-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Alexandria';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/alexandria-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Zain — Arabic storefront font. Limited to Arabic code points so Latin text
   (prices, "NOAH", product codes) keeps Manrope. Only the weights NOAH uses
   are declared; the browser downloads a file only when a weight is rendered. */
@font-face { font-family: 'Zain'; font-style: normal; font-weight: 300; font-display: swap;
    src: url('../../front-end/fonts/Zain-Light.ttf') format('truetype'); size-adjust: 118%;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Zain'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../../front-end/fonts/Zain-Regular.ttf') format('truetype'); size-adjust: 118%;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Zain'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('../../front-end/fonts/Zain-Bold.ttf') format('truetype'); size-adjust: 118%;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Zain'; font-style: normal; font-weight: 800; font-display: swap;
    src: url('../../front-end/fonts/Zain-ExtraBold.ttf') format('truetype'); size-adjust: 118%;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Zain'; font-style: normal; font-weight: 900; font-display: swap;
    src: url('../../front-end/fonts/Zain-Black.ttf') format('truetype'); size-adjust: 118%;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
    /* ---------- Brand palette ---------- */
    --noah-forest: #263D35;          /* primary */
    --noah-forest-rgb: 38, 61, 53;
    --noah-forest-700: #1D2F29;      /* hover / pressed */
    --noah-forest-900: #15221D;
    --noah-forest-50: #EAEFEC;       /* tinted surfaces */
    --noah-forest-100: #D6DFDA;
    --noah-ivory: #F5F0E7;           /* page background (60%) */
    --noah-ivory-rgb: 245, 240, 231;
    --noah-ivory-deep: #EDE5D7;      /* alternate section */
    --noah-sand: #D5B99A;            /* accent (5%) */
    --noah-sand-rgb: 213, 185, 154;
    --noah-sand-soft: #EFE3D4;
    --noah-sand-ink: #7A5C3C;        /* accessible text on sand (AA on ivory) */
    --noah-white: #FFFFFF;           /* surfaces (25%) */
    --noah-charcoal: #252724;        /* text */
    --noah-charcoal-rgb: 37, 39, 36;

    /* ---------- Neutral text scale (derived from charcoal) ---------- */
    --noah-text: var(--noah-charcoal);
    --noah-text-muted: #5E615B;      /* 6.1:1 on ivory */
    --noah-text-subtle: #6B6E67;     /* 4.6:1 on ivory, 5.2:1 on white (AA) */
    --noah-text-inverse: #FFFFFF;

    /* ---------- Feedback (muted to suit the palette) ---------- */
    --noah-success: #2F7A55;
    --noah-success-bg: #E4F1EA;
    --noah-warning: #A86A12;
    --noah-warning-bg: #FBF0DC;
    --noah-danger: #B23A32;
    --noah-danger-rgb: 178, 58, 50;
    --noah-danger-bg: #F8E5E3;
    --noah-info: #33617A;
    --noah-info-bg: #E3EEF3;

    /* ---------- Borders ---------- */
    --noah-border: #E4DCCD;          /* on ivory */
    --noah-border-soft: #EFE9DE;
    --noah-border-strong: #CFC4B1;
    --noah-border-width: 1px;

    /* ---------- Typography ---------- */
    --noah-font-latin: 'Manrope', 'Alexandria', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --noah-font-arabic: 'Zain', 'Manrope', 'Alexandria', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
    --noah-font: var(--noah-font-latin);

    --noah-fs-xs: 0.75rem;     /* 12 */
    --noah-fs-sm: 0.8125rem;   /* 13 */
    --noah-fs-base: 0.9375rem; /* 15 */
    --noah-fs-md: 1rem;        /* 16 */
    --noah-fs-lg: 1.125rem;    /* 18 */
    --noah-fs-xl: 1.375rem;    /* 22 */
    --noah-fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --noah-fs-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
    --noah-fs-display: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

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

    --noah-lh-tight: 1.15;
    --noah-lh-snug: 1.35;
    --noah-lh-base: 1.6;
    --noah-tracking-caps: 0.12em;

    /* ---------- Spacing (4px base) ---------- */
    --noah-space-1: 0.25rem;
    --noah-space-2: 0.5rem;
    --noah-space-3: 0.75rem;
    --noah-space-4: 1rem;
    --noah-space-5: 1.25rem;
    --noah-space-6: 1.5rem;
    --noah-space-8: 2rem;
    --noah-space-10: 2.5rem;
    --noah-space-12: 3rem;
    --noah-space-16: 4rem;
    --noah-space-20: 5rem;
    --noah-section-y: clamp(3rem, 2rem + 4vw, 6rem);

    /* ---------- Layout ---------- */
    --noah-container: 1320px;
    --noah-container-wide: 1480px;
    --noah-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
    --noah-header-h: 76px;

    /* ---------- Radius ---------- */
    --noah-radius-xs: 6px;
    --noah-radius-sm: 10px;
    --noah-radius-md: 14px;
    --noah-radius-lg: 20px;
    --noah-radius-xl: 28px;
    --noah-radius-pill: 999px;

    /* ---------- Elevation (warm, low-contrast shadows) ---------- */
    --noah-shadow-xs: 0 1px 2px rgba(37, 39, 36, 0.05);
    --noah-shadow-sm: 0 2px 8px rgba(37, 39, 36, 0.06);
    --noah-shadow-md: 0 10px 30px -12px rgba(37, 39, 36, 0.18);
    --noah-shadow-lg: 0 24px 60px -24px rgba(37, 39, 36, 0.28);

    /* ---------- Interaction ---------- */
    --noah-focus-ring: 0 0 0 3px rgba(38, 61, 53, 0.28);
    --noah-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --noah-dur-fast: 140ms;
    --noah-dur: 220ms;
    --noah-dur-slow: 420ms;

    --noah-z-header: 1030;
    --noah-z-drawer: 1060;
}

html[dir="rtl"],
[dir="rtl"] {
    --noah-font: var(--noah-font-arabic);
    /* Arabic needs room above/below for dots, hamza and shadda, and loses
       letter joins with tracking, so RTL relaxes line-height and drops tracking. */
    --noah-lh-tight: 1.3;
    --noah-lh-snug: 1.5;
    --noah-lh-base: 1.75;
    --noah-tracking-caps: 0;
}

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