@font-face {
  font-family: 'AnjomanMax'; /* --- یک نام برای فونت خود انتخاب کنید --- */
  src: url('fonts/AnjomanMax-Regular.woff2') format('woff2'),
       url('fonts/AnjomanMax-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AnjomanMax'; /* --- دقیقاً همان نام بالا را استفاده کنید --- */
  src: url('fonts/AnjomanMax-Bold.woff2') format('woff2'),
       url('fonts/AnjomanMax-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/*
 * مرحله ۲: اعمال فونت جدید فقط به نسخه فارسی (نسخه نهایی و اصلاح‌شده)
 * این کد فونت را فقط به تگ‌های متنی اصلی اعمال می‌کند و از تداخل با فونت آیکون‌ها جلوگیری می‌کند.
*/

html[lang="fa-IR"] body,
html[lang="fa-IR"] div,
html[lang="fa-IR"] h1,
html[lang="fa-IR"] h2,
html[lang="fa-IR"] h3,
html[lang="fa-IR"] h4,
html[lang="fa-IR"] h5,
html[lang="fa-IR"] h6,
html[lang="fa-IR"] p,
html[lang="fa-IR"] a,
html[lang="fa-IR"] span:not([class*="icon-"]):not([class*="fa-"]):not(.ab-icon):not(.search-trigger-icon),
html[lang="fa-IR"] li,
html[lang="fa-IR"] button,
html[lang="fa-IR"] input,
html[lang="fa-IR"] textarea {
    font-family: 'AnjomanMax', sans-serif !important;
}

/*
 * یک استثنای اضافی برای اطمینان از عدم تغییر آیکون‌ها در تگ <i>
*/
html[lang="fa-IR"] i[class*="icon-"],
html[lang="fa-IR"] i[class*="fa-"] {
    font-family: inherit !important;
}


/*
 * مرحله ۳: تراز کردن (Justify) متون در کل سایت
 * این کد برای بهبود خوانایی، متون پاراگراف‌ها را در هر دو زبان فارسی و انگلیسی جاستیفای می‌کند.
*/
body, p, li, div {
    text-align: justify;
}

