/* IRANSansXFaNum – 9 weights, WOFF2 + WOFF only (global-device friendly) */

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-100-Thin.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-100-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-200-UltraLight.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-200-UltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-300-Light.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-300-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-400-Regular.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-400-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-500-Medium.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-500-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-600-DemiBold.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-600-DemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-700-Bold.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-700-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-800-ExtraBold.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-800-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('fonts/IRANSansXFaNum-900-Black.woff2') format('woff2'),
       url('fonts/IRANSansXFaNum-900-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Apply only on Persian pages (fa / fa-IR) */
html[lang="fa"], html[lang="fa-IR"] { direction: rtl; }

html[lang="fa"] body, html[lang="fa-IR"] body {
  font-family: 'IRANSansXFaNum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  text-align: right;
}

/* Typography defaults */
html[lang="fa"], html[lang="fa-IR"] h1 { font-weight: 800; }
html[lang="fa"], html[lang="fa-IR"] h2 { font-weight: 700; }
html[lang="fa"], html[lang="fa-IR"] h3 { font-weight: 600; }
html[lang="fa"], html[lang="fa-IR"] h4 { font-weight: 600; }
html[lang="fa"], html[lang="fa-IR"] h5 { font-weight: 500; }
html[lang="fa"], html[lang="fa-IR"] h6 { font-weight: 500; }
html[lang="fa"], html[lang="fa-IR"] p,
html[lang="fa"], html[lang="fa-IR"] a,
html[lang="fa"], html[lang="fa-IR"] span { font-weight: 400; }

/* UI + WooCommerce coverage */
html[lang="fa"], html[lang="fa-IR"] .mfn-menu,
html[lang="fa"], html[lang="fa-IR"] .button,
html[lang="fa"], html[lang="fa-IR"] .wp-block-button__link,
html[lang="fa"], html[lang="fa-IR"] .woocommerce,
html[lang="fa"], html[lang="fa-IR"] .woocommerce a,
html[lang="fa"], html[lang="fa-IR"] .woocommerce button,
html[lang="fa"], html[lang="fa-IR"] .woocommerce input,
html[lang="fa"], html[lang="fa-IR"] .woocommerce textarea {
  font-family: 'IRANSansXFaNum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Optional helper: keep Latin digits in specific blocks
html[lang="fa"] .keep-latin-digits, html[lang="fa-IR"] .keep-latin-digits {
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
*/
/* ——— Force IRANSansXFaNum on all headings (Persian pages) ——— */
html[lang="fa"] h1,
html[lang="fa-IR"] h1,
html[lang="fa"] h2,
html[lang="fa-IR"] h2,
html[lang="fa"] h3,
html[lang="fa-IR"] h3,
html[lang="fa"] h4,
html[lang="fa-IR"] h4,
html[lang="fa"] h5,
html[lang="fa-IR"] h5,
html[lang="fa"] h6,
html[lang="fa-IR"] h6,
html[lang="fa"] .title .title_wrapper h1,                /* Page title (BeTheme) */
html[lang="fa-IR"] .title .title_wrapper h1,
html[lang="fa"] .entry-title,                             /* Post/product titles */
html[lang="fa-IR"] .entry-title,
html[lang="fa"] .post-title,
html[lang="fa-IR"] .post-title,
html[lang="fa"] .woocommerce-products-header__title,      /* Woo page title */
html[lang="fa-IR"] .woocommerce-products-header__title,
html[lang="fa"] .product_title.entry-title,               /* Single product title */
html[lang="fa-IR"] .product_title.entry-title,
html[lang="fa"] .mcb-wrap h1, html[lang="fa-IR"] .mcb-wrap h1, /* Muffin Builder blocks */
html[lang="fa"] .mcb-wrap h2, html[lang="fa-IR"] .mcb-wrap h2,
html[lang="fa"] .mcb-wrap h3, html[lang="fa-IR"] .mcb-wrap h3,
html[lang="fa"] .mcb-wrap h4, html[lang="fa-IR"] .mcb-wrap h4,
html[lang="fa"] .mcb-wrap h5, html[lang="fa-IR"] .mcb-wrap h5,
html[lang="fa"] .mcb-wrap h6, html[lang="fa-IR"] .mcb-wrap h6,
html[lang="fa"] .mfn-heading,                             /* BeTheme Heading element */
html[lang="fa-IR"] .mfn-heading,
html[lang="fa"] .elementor-heading-title,                 /* Elementor Heading */
html[lang="fa-IR"] .elementor-heading-title {
  font-family: 'IRANSansXFaNum', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

