/**
 * Icon Protection CSS - Ensure all icons display correctly
 * This file provides additional protection for icon fonts
 * to prevent Persian fonts from overriding them
 */

/* Protect Font Awesome icons without touching Elementor eicons */
[class*='fa-'],
[class*='fa-'] *,
[class*='fa-']::before,
[class*='fa-']::after,
.fa, .fab, .fal, .far, .fas,
.fa *, .fab *, .fal *, .far *, .fas *,
.fa::before, .fab::before, .fal::before, .far::before, .fas::before,
.fa::after, .fab::after, .fal::after, .far::after, .fas::after {
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Brands', 'Font Awesome 5 Pro', 'FontAwesome', sans-serif !important;
}

/* Ensure Elementor control icons keep their own font */
[class^='eicon'],
[class^='eicon'] *,
[class^='eicon']::before,
[class^='eicon']::after,
[class*=' eicon-'],
[class*=' eicon-'] *,
[class*=' eicon-']::before,
[class*=' eicon-']::after,
.elementor-icon,
.elementor-icon *,
.elementor-icon::before,
.elementor-icon::after {
    font-family: 'eicons' !important;
    font-style: normal;
    font-weight: normal;
}

/* Star Rating Protection */
.star-rating,
.star-rating *,
.star-rating::before,
.star-rating::after,
.woocommerce .star-rating,
.woocommerce .star-rating *,
.woocommerce .star-rating::before,
.woocommerce .star-rating::after {
    font-family: 'WooCommerce', sans-serif !important;
}

/* Product Page Icons */
.prod-opts,
.prod-opts *,
.prod-opts li,
.prod-opts li *,
.prod-opts i,
.prod-opts i::before,
.prod-opts i::after {
    font-family: 'Font Awesome 6 Pro', 'FontAwesome', sans-serif !important;
}

/* Action Buttons */
.action-btn,
.action-btn *,
.action-btn i,
.action-btn i::before,
.action-btn i::after,
.product-actions,
.product-actions *,
.product-actions i,
.product-actions i::before,
.product-actions i::after {
    font-family: 'Font Awesome 6 Pro', 'FontAwesome', sans-serif !important;
}

/* Breadcrumb Icons */
.woocommerce-breadcrumb i,
.woocommerce-breadcrumb i::before,
.woocommerce-breadcrumb i::after {
    font-family: 'Font Awesome 6 Pro', 'FontAwesome', sans-serif !important;
}

/* WordPress Dashicons */
[class*='dashicons'],
[class*='dashicons'] *,
[class*='dashicons']::before,
[class*='dashicons']::after,
.dashicons,
.dashicons *,
.dashicons::before,
.dashicons::after {
    font-family: 'dashicons', sans-serif !important;
}

/* WooCommerce Message Icons */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-notice::before {
    font-family: 'WooCommerce', sans-serif !important;
}

/* Currency Symbol */
.woocommerce-Price-currencySymbol {
    font-family: inherit !important;
}

/* Button Icons */
button i,
button i::before,
button i::after,
button [class*='icon']:not([class*='eicon']),
button [class*='fa'],
a i,
a i::before,
a i::after,
a [class*='icon']:not([class*='eicon']),
a [class*='fa'] {
    font-family: 'Font Awesome 6 Pro', 'FontAwesome', sans-serif !important;
}

/* Elementor Icons */
.elementor-icon,
.elementor-icon *,
.elementor-icon i,
.elementor-icon::before,
.elementor-icon::after {
    font-family: 'eicons' !important;
    font-style: normal;
}

