/* =====================================================================
   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 {
    /* ---------- NOAH 2026 identity: red · white · black ----------
       Brand names (use these in new code):                          */
    --noah-red: #E52435;             /* NOAH Red — actions, highlights (4.53:1 on white) */
    --noah-red-rgb: 229, 36, 53;
    --noah-red-dark: #A91627;        /* hover, depth, small red text (7.4:1 on white) */
    --noah-red-tint: #FDECEE;
    --noah-black: #111111;           /* type, premium contrast */
    --noah-black-rgb: 17, 17, 17;
    --noah-gray: #F2F2F2;            /* soft gray — product stages, sections */
    --noah-gray-2: #DADADA;          /* neutral gray — rules, borders */

    /* Legacy role names kept so every existing component re-skins.
       "forest" = the primary action colour, now NOAH Red. */
    --noah-forest: var(--noah-red);
    --noah-forest-rgb: var(--noah-red-rgb);
    --noah-forest-700: var(--noah-red-dark);
    --noah-forest-900: var(--noah-black);   /* footer / deep surfaces */
    --noah-forest-50: var(--noah-red-tint);
    --noah-forest-100: #F9D0D4;
    /* "ivory" = page background, now white; "ivory-deep" = alternate section. */
    --noah-ivory: #FFFFFF;
    --noah-ivory-rgb: 255, 255, 255;
    --noah-ivory-deep: var(--noah-gray);
    /* "sand" = the small decorative accent, now neutral gray; sand-ink is
       accent text (eyebrows, labels) in dark red. */
    --noah-sand: var(--noah-gray-2);
    --noah-sand-rgb: 218, 218, 218;
    --noah-sand-soft: var(--noah-gray);
    --noah-sand-ink: var(--noah-red-dark);
    --noah-white: #FFFFFF;
    --noah-charcoal: var(--noah-black);
    --noah-charcoal-rgb: var(--noah-black-rgb);

    /* ---------- Neutral text scale ---------- */
    --noah-text: var(--noah-charcoal);
    --noah-text-muted: #555555;      /* 7.5:1 on white */
    --noah-text-subtle: #6E6E6E;     /* 5.1:1 on white, 4.6:1 on #F2F2F2 */
    --noah-text-inverse: #FFFFFF;

    /* ---------- Feedback ---------- */
    --noah-success: #1F7A4D;
    --noah-success-bg: #E6F4EC;
    --noah-warning: #9A6100;
    --noah-warning-bg: #FDF2DC;
    --noah-danger: #A91627;          /* errors use dark red so they differ from brand red actions */
    --noah-danger-rgb: 169, 22, 39;
    --noah-danger-bg: #FDECEE;
    --noah-info: #2D5B7A;
    --noah-info-bg: #E6EFF5;

    /* ---------- Borders ---------- */
    --noah-border: #E6E6E6;
    --noah-border-soft: #EFEFEF;
    --noah-border-strong: #CFCFCF;
    --noah-border-width: 1px;

    /* ---------- Typography: Alexandria for Arabic and Latin ---------- */
    --noah-font-latin: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --noah-font-arabic: 'Alexandria', system-ui, 'Segoe UI', Tahoma, Arial, sans-serif;
    --noah-font-display: 'Alexandria', system-ui, 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.5rem, 1.4rem + 4.6vw, 5.25rem);

    --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: 12px;
    --noah-radius-lg: 16px;
    --noah-radius-xl: 24px;
    --noah-radius-pill: 999px;
    --noah-radius-btn: 12px;         /* buttons: confident, not bubbly */

    /* ---------- Elevation (neutral studio shadows) ---------- */
    --noah-shadow-xs: 0 1px 2px rgba(17, 17, 17, 0.05);
    --noah-shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.06);
    --noah-shadow-md: 0 14px 34px -14px rgba(17, 17, 17, 0.22);
    --noah-shadow-lg: 0 30px 70px -28px rgba(17, 17, 17, 0.32);
    --noah-shadow-red: 0 14px 30px -12px rgba(229, 36, 53, 0.45);

    /* ---------- Interaction ---------- */
    --noah-focus-ring: 0 0 0 3px rgba(229, 36, 53, 0.30);
    --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;
    }
}
