/* Separes Store design tokens. */
:root {
	/* 0.3.0: PLIRO palette (deep plum, plum, orange, cream, white, peach). */
	--sps-color-primary: #421536;
	--sps-color-background: #F6F5F8;
	--sps-color-accent: #F47735;
	--sps-color-border: #F5EAE3;
	--sps-color-surface: #FFFFFF;
	--sps-color-secondary: #63204F;
	--sps-color-text: #29232A;

	--sps-store-font: "Separes Yekan Bakh", "Yekan Bakh", "YekanBakh", "YekanBakhFaNum", "Yekan Bakh FaNum", "YekanBakh VF", "Yekan Bakh VF", "یکان بخ", Tahoma, sans-serif;

	/*
	 * Names used by the store's page designs (ported in later phases). They
	 * point at the palette above, so the «رنگ‌ها» tab changes them too, and
	 * every font name used there resolves to Yekan Bakh.
	 */
	--pl-plum: var(--sps-color-secondary);
	--pl-deep: var(--sps-color-primary);
	--pl-orange: var(--sps-color-accent);
	--pl-peach: #F7C8B6;
	--pl-white: #FFF9F5;
	--pl-cream: var(--sps-color-border);
	--pl-text: var(--sps-color-text);
	--pl-gray: #81777D;
	--pl-font: var(--sps-store-font);

	/* Layout. */
	/* 0.3.1: the store's site width (WoodMart «Site width» was 1420px). */
	--sps-container-width: 1420px;
	--sps-gutter: 16px;

	/* Shape and depth. */
	--sps-radius-sm: 4px;
	--sps-radius-md: 8px;
	--sps-radius-lg: 16px;
	--sps-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
	--sps-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.sps-has-header {
	background-color: var(--sps-color-background);
	font-family: var(--sps-store-font);
}

/*
 * Yekan Bakh across the whole storefront: Elementor global fonts, headings,
 * text, forms and WooCommerce. Icon fonts are left alone (no generic span/i
 * selectors, and anything with an icon class is skipped). A font chosen
 * explicitly on a single Elementor widget still takes precedence.
 */
body.sps-has-header {
	--e-global-typography-primary-font-family: var(--sps-store-font);
	--e-global-typography-secondary-font-family: var(--sps-store-font);
	--e-global-typography-text-font-family: var(--sps-store-font);
	--e-global-typography-accent-font-family: var(--sps-store-font);
}
body.sps-has-header :is(h1, h2, h3, h4, h5, h6, p, li, a, label, button, input, select, textarea, th, td, blockquote, figcaption, .elementor-heading-title, .elementor-button, .elementor-widget-text-editor, .woocommerce, .woocommerce-page, .wc-block-components-text-input):not([class*="icon"]):not([class*="fa-"]) {
	font-family: var(--sps-store-font);
}

/*
 * 0.3.1: Elementor boxed containers follow the site width, as they did under
 * WoodMart (otherwise Elementor's default 1140px would narrow every page).
 * A width set on a single container in Elementor still wins.
 */
body.sps-has-header .e-con {
	--container-max-width: var(--sps-container-width);
}
