﻿/* ========== IRANSans — فونت فارسی ========== */

@font-face {
    font-family: 'IRANSans';
    src: url('/assets/fonts/IRANSans.woff2') format('woff2'), url('/assets/fonts/IRANSans.woff') format('woff'), url('/assets/fonts/IRANSans.eot') format('eot');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========== Figtree — فونت لاتین ========== */

@font-face {
    font-family: 'Figtree';
    src: url('/assets/fonts/figtree-v9-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('/assets/fonts/figtree-v9-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('/assets/fonts/figtree-v9-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Figtree';
    src: url('/assets/fonts/figtree-v9-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   اعمال ترکیب فونت‌ها به کل سایت
   
   ترتیب مهم است:
   1. IRANSans → اول امتحان می‌شود (فارسی)
   2. Figtree  → اگر کاراکتر در IRANSans نبود (لاتین/عدد) از این استفاده می‌شود
   3. Tahoma   → در نهایت اگر هیچ‌کدام نبود
   ============================================================ */

html,
body {
    font-family: 'IRANSans', 'Figtree', Tahoma, sans-serif;
}

button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, ul, ol, table, th, td {
    font-family: 'IRANSans', 'Figtree', Tahoma, sans-serif;
}

/* 
   ⚠️ نکته مهم درباره اعداد:
   خط font-feature-settings حذف شد چون سایت شما پر از اعداد لاتین هست
   (تلفن، قیمت، تاریخ) و با ss01 همه اون‌ها فارسی می‌شن که ناخوانا می‌شه.
   
   اگر می‌خواهید فقط در بخش‌های خاصی اعداد فارسی نمایش داده بشن،
   از کلاس اختصاصی استفاده کنید:
*/
.font-fa-numbers {
    font-feature-settings: "ss01";
}
