/**
 * IRANYekanX Variable Font Definitions & Theme Application
 * Hello Elementor Child Theme - Pure Font Definitions
 * NO automatic element styling - 100% controlled via Elementor
 */

@font-face {
    font-family: 'IRANYekanX';
    src: url('../fonts/IRANYekanXVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanX';
    src: url('../fonts/IRANYekanXVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('../fonts/IRANYekanXVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanXFaNum';
    src: url('../fonts/IRANYekanXVFaNumVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVFaNumVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekanXFaNum';
    src: url('../fonts/IRANYekanXVFaNumVF.woff2') format('woff2'),
         url('../fonts/IRANYekanXVFaNumVF.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   1. CRITICAL ICON FONT PRESERVATION (ELEMENTOR, FONTAWESOME, TABLER, DASHICONS)
   ========================================================================== */

.eicon,
[class*="eicon-"],
[class^="eicon-"],
i.eicon,
span.eicon,
.elementor-icon i,
.elementor-icon-box-icon i,
.e-font-icon-svg {
    font-family: eicons !important;
}

.fa,
.fas,
.far,
.fal,
.fad,
.fab,
[class*="fa-"],
[class^="fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands", "FontAwesome" !important;
}

.dashicons,
[class*="dashicons-"],
[class^="dashicons-"],
.dashicons:before,
[class*="dashicons-"]:before {
    font-family: dashicons !important;
}

.ti,
[class*="ti-"],
[class^="ti-"],
.ti:before,
[class*="ti-"]:before {
    font-family: 'tabler-icons' !important;
}


/* مصون‌سازی کامل فونت‌آیکون‌های نوار ابزار ادیتور وردپرس (TinyMCE & Dashicons) */
@font-face {
  font-family: 'tinymce';
  src: url('../../../../../wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff') format('woff'),
       url('../../../../../wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ۱. تمامی آیکون‌های ادیتور TinyMCE وردپرس */
@font-face {
  font-family: 'tinymce-small';
  src: url('../../../../../wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.woff') format('woff'),
       url('../../../../../wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body.wp-admin .mce-ico,
body.wp-admin i.mce-ico,
body.wp-admin [class^="mce-i-"],
body.wp-admin [class*=" mce-i-"],
body.wp-admin [class^="mce-i-"]:before,
body.wp-admin [class*=" mce-i-"]:before,
body.wp-admin .mce-btn button i,
body.wp-admin .mce-menu-item i {
  font-family: 'tinymce', Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: normal !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body.wp-admin .mce-btn-small .mce-ico,
body.wp-admin .mce-btn-small .mce-ico:before {
  font-family: 'tinymce-small', Arial, sans-serif !important;
}

/* ۲. آیکون‌های Dashicons برای دکمه مدیا و المان‌های عمومی مدیریت */
body.wp-admin .wp-media-buttons-icon:before,
body.wp-admin i.mce-i-dashicon:before,
body.wp-admin .dashicons,
body.wp-admin [class*="dashicons-"],
body.wp-admin [class^="dashicons-"],
body.wp-admin .dashicons:before,
body.wp-admin [class*="dashicons-"]:before {
  font: normal 20px/1 dashicons !important;
  font-family: dashicons !important;
  font-style: normal !important;
  font-weight: normal !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body.wp-admin .mce-caret {
  font-family: sans-serif !important;
}

/* ==========================================================================
   2. NUMERALS & WORDPRESS ADMIN SCOPING
   ========================================================================== */

/* FaNum for price numbers */
.iran-sans-num,
.fa-num,
.price,
.catalog-price,
.post-date,
.hec-badge-discount {
    font-family: 'IRANYekanXFaNum', 'IranYekanXFaNum', 'IRANYekanX', sans-serif !important;
}

/* WordPress Admin UI font (never touches Elementor Editor iframe/canvas) */
body.wp-admin:not(.elementor-editor-active) #wpwrap,
body.wp-admin:not(.elementor-editor-active) #wpcontent,
body.wp-admin:not(.elementor-editor-active) #wpbody,
body.wp-admin:not(.elementor-editor-active) #wpadminbar,
body.wp-admin:not(.elementor-editor-active) #adminmenu,
body.wp-admin:not(.elementor-editor-active) input,
body.wp-admin:not(.elementor-editor-active) select,
body.wp-admin:not(.elementor-editor-active) textarea,
body.wp-admin:not(.elementor-editor-active) button,
body.wp-admin:not(.elementor-editor-active) .button,
body.wp-admin:not(.elementor-editor-active) table,
body.wp-admin:not(.elementor-editor-active) .postbox,
body.wp-admin:not(.elementor-editor-active) .wrap h1,
body.wp-admin:not(.elementor-editor-active) .wrap h2,
body.wp-admin:not(.elementor-editor-active) .wrap h3,
body.wp-admin:not(.elementor-editor-active) .notice {
    font-family: 'IRANYekanX', 'IranYekanX', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif !important;
}
