/*
Theme Name: Nivpas Commerce
Theme URI: https://nivpas.ir/themes/commerce
Author: Nivpas
Author URI: https://nivpas.ir
Description: Commercial e-commerce theme for medical equipment, digital devices, apparel, supplements, and home appliances. Built for performance, accessibility, Light/Dark/Auto modes, and bilingual Persian/English stores.
Version: 0.1.0
Requires at least: 6.9
Tested up to: 7.1.5
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nivpas-commerce
Domain Path: /languages
Tags: e-commerce, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, rtl-language-support, translation-ready
*/

/*
 * Base print & screen stylesheet. Modern CSS variables are loaded
 * from Nivpas Core's Design Tokens when active, or local fallbacks below.
 */

:root {
	--np-bg: #F8FAFC;
	--np-surface: #FFFFFF;
	--np-text: #0F172A;
	--np-heading: #020617;
	--np-primary: #2563EB;
	--np-on-primary: #FFFFFF;
	--np-border: #E2E8F0;
	--np-font-fa: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--np-font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

[data-np-mode="dark"] {
	--np-bg: #090D16;
	--np-surface: #131B2E;
	--np-text: #E2E8F0;
	--np-heading: #F8FAFC;
	--np-primary: #3B82F6;
	--np-on-primary: #020617;
	--np-border: #1E293B;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--np-bg);
	color: var(--np-text);
	font-family: var(--np-font-fa);
	line-height: 1.7;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

[dir="ltr"] body {
	font-family: var(--np-font-en);
}

.np-shell {
	width: min(100% - 32px, 1280px);
	margin-inline: auto;
}

.np-site-main {
	flex: 1 0 auto;
	padding-block: 32px;
}

.np-skip-link {
	position: absolute;
	top: -9999px;
	inset-inline-start: 16px;
	padding: 8px 16px;
	background: var(--np-primary);
	color: var(--np-on-primary);
	text-decoration: none;
	border-radius: 4px;
	z-index: 10000;
}

.np-skip-link:focus {
	top: 16px;
}

/* Fallback notice shown when Nivpas Core plugin is inactive */
.np-core-fallback-notice {
	background: var(--np-surface);
	border: 1px solid var(--np-border);
	border-inline-start: 4px solid var(--np-primary);
	padding: 16px 20px;
	margin-block-end: 24px;
	border-radius: 8px;
}
