/* ==========================================================================
   Faranetwork — ONE FONT: Vazirmatn on every piece of text of the whole site
   --------------------------------------------------------------------------
   The shop's Elementor widgets carry their own fonts (iranyekanReg / Med / Bold), WoodMart buttons ship theirs, the Elementor
   Pro menu, ElementsKit lists, Digits login popup (Roboto) … so a body{font-family} alone never reaches them.
   This file forces Vazirmatn on text elements only; anything that draws an icon with a font (Font Awesome, Elementor eicons,
   WoodMart's icon font, ElementsKit, dashicons, WooCommerce stars) is left alone, and ::before/::after are never touched,
   so icon glyphs keep working. Loaded last.
   ========================================================================== */

html body.fn-theme,
html body.fn-theme :is(
	h1, h2, h3, h4, h5, h6, p, a, li, ul, ol, dl, dt, dd, label, legend, blockquote, pre, code,
	input, select, option, optgroup, textarea, button, table, thead, tbody, tfoot, tr, td, th, caption,
	small, strong, b, em, u, s, mark, cite, address, summary, details, figcaption,
	nav, section, article, aside, header, footer, main, form, fieldset, div, span
):not(
	i, svg, svg *, #wpadminbar, #wpadminbar *,
	.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, [class*="fa-"],
	[class^="eicon"], [class*=" eicon"], [class^="icon-"], [class*=" icon-"], [class*="ekit-icon"], [class*="ekit_icon"],
	[class*="wd-icon"], [class*="woodmart-font"], [class*="dashicons"], [class*="yith-icon"], [class*="xoo-"],
	.star-rating, .star-rating *, .elementor-star-rating, .elementor-star-rating *, .mfp-close, .select2-selection__arrow, .elementskit-submenu-indicator
) {
	font-family: var(--fn-font) !important;
}

/* class names that contain "icon-" but are plain text */
html body.fn-theme :is(.elementor-icon-list-text, .elementor-icon-list-item, .elementor-icon-box-title, .elementor-icon-box-description, .wd-icon-text) {
	font-family: var(--fn-font) !important;
}

/* Digits login/registration popup (Roboto by default) + other plugin modals */
html body.fn-theme :is([class*="dig_"], [class*="digits"], [class*="dig-"]):not([class*="icon"]),
html body.fn-theme :is([class*="dig_"], [class*="digits"], [class*="dig-"]) :is(div, span, a, p, label, input, button, h1, h2, h3, h4):not([class*="icon"]) {
	font-family: var(--fn-font) !important;
}

/* form controls inherit the page font instead of the browser's */
html body.fn-theme :is(input, select, textarea, button)::placeholder { font-family: var(--fn-font); }
