/**
 * IRANYekan for Dokan (Lite + Pro) — admin, vendor dashboard, storefront.
 * Font files live in wp-content/mu-plugins/*.woff
 *
 * IMPORTANT: do NOT force font-family on every descendant with !important —
 * that breaks Dashicons / Font Awesome icon fonts.
 */

@font-face {
	font-family: "IRANYekan";
	src: url("../IRANYekanWebRegular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IRANYekan";
	src: url("../IRANYekanWebMedium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IRANYekan";
	src: url("../IRANYekanWebExtraBold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IRANYekan";
	src: url("../IRANYekanWebExtraBold.woff") format("woff");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--dokan-fa-font: "IRANYekan", Tahoma, "Segoe UI", sans-serif;
}

/*
 * Apply on containers only so children inherit,
 * while icon fonts keep their own font-family.
 */
body.wp-admin .dokan-layout,
body.wp-admin #dokan-admin-dashboard,
body.wp-admin .dokan-admin-page-body,
body.wp-admin .dokan-admin-dashboard-layout,
body.wp-admin .dokan-dashboard-datatable,
body.wp-admin .pui-root,
body.wp-admin .dokan-admin-announcement-edit,
body.wp-admin #toplevel_page_dokan .wp-menu-name,
body.wp-admin .toplevel_page_dokan #wpbody-content,
body.wp-admin .dokan_page_dokan-dashboard #wpbody-content,
body.wp-admin [class*="dokan-admin"],
body.wp-admin .dokan-settings-wrap,
body.wp-admin .dokan-panel,
.dokan-dashboard,
.dokan-dashboard-wrap,
.dokan-dash-sidebar,
.dokan-dashboard-content,
.dokan-settings-content,
.dokan-product-listing,
.dokan-orders-content,
.dokan-withdraw-content,
.dokan-table,
.dokan-btn,
.dokan-form-control,
.dokan-form-group,
.dokan-store,
.dokan-store-sidebar,
.dokan-single-store,
.dokan-seller-listing,
.dokan-widget,
#dokan-seller-listing-wrap,
.dokan-category-menu,
.dokan-store-products-filter-area,
.profile-info-summery-wrapper,
.dokan-store-tabs,
.dokan-message,
.dokan-alert,
.dokan-info,
.dokan-error,
.dokan-success,
.dokan-layout .ql-editor,
.dokan-dashboard .ql-editor {
	font-family: var(--dokan-fa-font);
}

/* Text nodes that often set their own stack — keep IRANYekan without touching icons */
body.wp-admin .dokan-layout button:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="fa-"]):not([class*=" fa-"]),
body.wp-admin .dokan-layout input,
body.wp-admin .dokan-layout select,
body.wp-admin .dokan-layout textarea,
body.wp-admin .dokan-layout label,
body.wp-admin .dokan-layout p,
body.wp-admin .dokan-layout span:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="fa-"]):not([class*=" fa-"]):not(.ql-stroke):not(.ql-fill),
body.wp-admin .dokan-layout a,
body.wp-admin .dokan-layout li,
body.wp-admin .dokan-layout td,
body.wp-admin .dokan-layout th,
body.wp-admin .dokan-layout h1,
body.wp-admin .dokan-layout h2,
body.wp-admin .dokan-layout h3,
body.wp-admin .dokan-layout h4,
body.wp-admin .dokan-layout h5,
body.wp-admin .dokan-layout h6,
.dokan-dashboard button:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="fa-"]):not([class*=" fa-"]),
.dokan-dashboard input,
.dokan-dashboard select,
.dokan-dashboard textarea,
.dokan-dashboard label,
.dokan-dashboard p,
.dokan-dashboard span:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="fa-"]):not([class*=" fa-"]):not(.ql-stroke):not(.ql-fill),
.dokan-dashboard a,
.dokan-dashboard li,
.dokan-dashboard td,
.dokan-dashboard th,
.dokan-dashboard h1,
.dokan-dashboard h2,
.dokan-dashboard h3,
.dokan-dashboard h4,
.dokan-dashboard h5,
.dokan-dashboard h6,
.dokan-store button:not(.dashicons):not([class*="dashicons"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="fa-"]):not([class*=" fa-"]),
.dokan-store input,
.dokan-store select,
.dokan-store textarea,
.dokan-store label,
.dokan-store p,
.dokan-store a,
.dokan-store li,
.dokan-store h1,
.dokan-store h2,
.dokan-store h3,
.dokan-store h4 {
	font-family: var(--dokan-fa-font);
}

/*
 * Restore icon fonts (in case a parent rule or theme still overrides).
 * Higher specificity + !important only here, for icons.
 */
body.wp-admin .dokan-layout .dashicons,
body.wp-admin .dokan-layout .dashicons-before::before,
body.wp-admin #dokan-admin-dashboard .dashicons,
body.wp-admin #dokan-admin-dashboard .dashicons-before::before,
body.wp-admin .pui-root .dashicons,
body.wp-admin .pui-root .dashicons-before::before,
body.wp-admin .toplevel_page_dokan .dashicons,
body.wp-admin .dokan_page_dokan-dashboard .dashicons,
.dokan-dashboard .dashicons,
.dokan-dashboard .dashicons-before::before,
.dokan-dashboard-wrap .dashicons,
.dokan-dashboard-wrap .dashicons-before::before,
.dokan-store .dashicons,
.dokan-store .dashicons-before::before,
.dokan-btn .dashicons,
.dokan-widget .dashicons {
	font-family: dashicons !important;
	font-weight: normal !important;
	font-style: normal !important;
}

body.wp-admin .dokan-layout .fa,
body.wp-admin .dokan-layout .fas,
body.wp-admin .dokan-layout .far,
body.wp-admin .dokan-layout .fab,
body.wp-admin .dokan-layout .fal,
body.wp-admin .dokan-layout .fad,
body.wp-admin .dokan-layout [class^="fa-"],
body.wp-admin .dokan-layout [class*=" fa-"],
body.wp-admin #dokan-admin-dashboard .fa,
body.wp-admin #dokan-admin-dashboard .fas,
body.wp-admin #dokan-admin-dashboard .far,
body.wp-admin #dokan-admin-dashboard .fab,
body.wp-admin .pui-root .fa,
body.wp-admin .pui-root .fas,
body.wp-admin .pui-root .far,
body.wp-admin .pui-root .fab,
.dokan-dashboard .fa,
.dokan-dashboard .fas,
.dokan-dashboard .far,
.dokan-dashboard .fab,
.dokan-dashboard .fal,
.dokan-dashboard .fad,
.dokan-dashboard [class^="fa-"],
.dokan-dashboard [class*=" fa-"],
.dokan-dashboard-wrap .fa,
.dokan-dashboard-wrap .fas,
.dokan-dashboard-wrap .far,
.dokan-dashboard-wrap .fab,
.dokan-dashboard-wrap [class^="fa-"],
.dokan-dashboard-wrap [class*=" fa-"],
.dokan-store .fa,
.dokan-store .fas,
.dokan-store .far,
.dokan-store .fab,
.dokan-store [class^="fa-"],
.dokan-store [class*=" fa-"],
.dokan-btn .fa,
.dokan-btn .fas,
.dokan-btn .far,
.dokan-widget .fa,
.dokan-widget .fas {
	font-family: "Font Awesome 5 Free" !important;
	font-weight: 900 !important;
	font-style: normal !important;
}

body.wp-admin .dokan-layout .far,
body.wp-admin #dokan-admin-dashboard .far,
.dokan-dashboard .far,
.dokan-dashboard-wrap .far,
.dokan-store .far {
	font-weight: 400 !important;
}

body.wp-admin .dokan-layout .fab,
body.wp-admin #dokan-admin-dashboard .fab,
.dokan-dashboard .fab,
.dokan-dashboard-wrap .fab,
.dokan-store .fab {
	font-family: "Font Awesome 5 Brands" !important;
	font-weight: 400 !important;
}

/* Quill toolbar uses SVG — never force text font on its stroke/fill helpers */
.dokan-layout .ql-toolbar,
.dokan-dashboard .ql-toolbar {
	font-family: var(--dokan-fa-font);
}

.dokan-layout .ql-toolbar svg,
.dokan-dashboard .ql-toolbar svg,
.dokan-layout .ql-stroke,
.dokan-layout .ql-fill,
.dokan-dashboard .ql-stroke,
.dokan-dashboard .ql-fill {
	font-family: initial !important;
}

/* Soft weight hints — avoid !important so icon ::before weights stay intact */
.dokan-layout .font-medium,
.dokan-dashboard .font-medium,
.dokan-layout .font-semibold,
.dokan-dashboard .font-semibold {
	font-weight: 500;
}

.dokan-layout .font-bold,
.dokan-dashboard .font-bold,
.dokan-layout .font-extrabold,
.dokan-dashboard .font-extrabold,
.dokan-layout > h1,
.dokan-layout > h2,
.dokan-layout > h3,
.dokan-dashboard-content > h1,
.dokan-dashboard-content > h2,
.dokan-dashboard-content > h3 {
	font-weight: 800;
}
