/**
 * IRANSansX (Farsi Numerals) — Web Font Declarations
 * فونت ایران‌سنس ایکس با اعداد فارسی
 *
 * مسیرها نسبی نسبت به همین فایل هستند (../../fonts/…)
 * ترتیب woff2 قبل از woff است تا مرورگرهای مدرن فایل سبک‌تر را بگیرند.
 *
 * Font: IRANSansX by Moslem Ebrahimi — fontiran.com
 * این فونت یک نرم‌افزار مالکیتی (Proprietary) است.
 * استفاده تجاری نیازمند خرید لایسنس از fontiran.com می‌باشد.
 */

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

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

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

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

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

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

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

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

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

/* ------------------------------------------------------------------
   وزن‌های فوق‌سنگین (ExtraBlack / Heavy)
   طبق استاندارد CSS، حداکثر مقدار مجاز font-weight عدد 1000 است اما
   بسیاری از مرورگرها بالای 900 را به 900 گرد می‌کنند. برای همین این دو
   وزن با نام خانواده‌ی جداگانه تعریف شده‌اند تا در صورت نیاز
   با font-family صدا زده شوند.
   ------------------------------------------------------------------ */

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

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


/* ==================================================================
   اعمال فونت روی کل سایت
   ================================================================== */

:root {
	--iransansx: 'iransans', 'Tahoma', 'Segoe UI', sans-serif;
}

html body,
body.woodmart-theme,
button,
input,
select,
optgroup,
textarea,
h1, h2, h3, h4, h5, h6,
.wd-entities-title,
.woodmart-title-container,
.title,
.widget-title,
.widgettitle,
.menu-item,
.wd-nav > li > a,
.wd-dropdown-menu,
.mega-menu-list,
.btn,
.button,
.wd-buy-now-btn,
.woocommerce-Price-amount,
.price,
.product-title,
.wd-product-cats,
.wd-tabs .wd-nav-tabs,
.woocommerce-tabs,
.wd-single-product-tabs,
.woocommerce-review__author,
.comment-reply-title,
.wd-page-title,
.breadcrumbs,
.woocommerce-breadcrumb,
.wd-form-row,
.select2-container,
.select2-results__option,
.wd-side-hidden,
.mfp-content,
.wd-popup,
.wd-notice,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.elementor-widget-container,
.elementor-heading-title,
.elementor-button,
.elementor-widget-text-editor,
.elementor-widget-heading {
	font-family: var(--iransansx) !important;
}

/* ادیتور بلوک و پیشخوان (اختیاری ولی مفید) */
.editor-styles-wrapper,
.block-editor-writing-flow {
	font-family: var(--iransansx) !important;
}

/* اعداد در ورودی‌ها و قیمت‌ها با ارقام فارسی درست رندر شوند */
input[type="number"],
input[type="tel"],
.woocommerce-Price-amount bdi {
	font-variant-numeric: normal;
	font-feature-settings: normal;
}

/* اصلاح فاصله‌ی حروف برای متن فارسی */
body {
	letter-spacing: 0 !important;
}

/* جهت‌دهی صحیح در حالت راست‌چین */
[dir="rtl"] body,
.rtl body {
	font-family: var(--iransansx) !important;
}
