:root {
  --vira-global-font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
}

html,
body,
button,
input,
optgroup,
select,
textarea,
.elementor,
.elementor-kit,
.woocommerce,
.woocommerce-page,
.vira-category-showcase,
.vira-products-section,
.vira-shop-header,
.vira-shop-footer {
  font-family: var(--vira-global-font-family) !important;
}

body .elementor-heading-title,
body .elementor-button,
body .elementor-widget-text-editor,
body .elementor-widget-text-editor p,
body .elementor-widget-text-editor a,
body .elementor-widget-nav-menu a,
body .elementor-nav-menu a,
body .elementor-item,
body .elementor-icon-list-text,
body .elementor-tab-title,
body .elementor-tab-content,
body .elementor-accordion-title,
body .elementor-toggle-title,
body .elementor-field,
body .elementor-field-label,
body .elementor-search-form__input,
body .woocommerce h1,
body .woocommerce h2,
body .woocommerce h3,
body .woocommerce h4,
body .woocommerce h5,
body .woocommerce h6,
body .woocommerce p,
body .woocommerce a,
body .woocommerce button,
body .woocommerce input,
body .woocommerce select,
body .woocommerce textarea,
body .woocommerce table,
body .woocommerce .button,
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error,
body .select2-container,
body .select2-results__option,
body .wc-block-components-button,
body .wc-block-components-text-input input,
body .wc-block-components-formatted-money-amount,
body .wc-block-components-product-name,
body .wp-block-button__link,
body .wp-element-button {
  font-family: var(--vira-global-font-family) !important;
}

/* Keep icon fonts intact while forcing text inside the custom widgets. */
.vira-category-showcase *:not(i):not(svg):not(svg *),
.vira-products-section *:not(i):not(svg):not(svg *),
.vira-shop-header *:not(i):not(svg):not(svg *),
.vira-shop-footer *:not(i):not(svg):not(svg *) {
  font-family: var(--vira-global-font-family) !important;
}

/* Strong override for themes or Elementor kits that set a different font on individual text nodes. */
body *:not(i):not(svg):not(path):not(g):not(use):not(.dashicons):not(.ab-icon):not([class*="eicon"]):not([class*="fa-"]):not([class*="icon-"]):not([class^="icon"]):not(.material-icons) {
  font-family: var(--vira-global-font-family) !important;
}
