/*
Theme Name: 0912
Theme URI: https://www.09l2.ir
Author: محمد
Author URI: https://www.09l2.ir
Description: قالب اختصاصی ۰۹۱۲ — صفحه نخست مینیمال و شیک با شبکه محصولات، هاور اختصاصی و سازگاری کامل با المنتور. نمایش محصولات بدون فروشگاه‌سازی (بدون ووکامرس).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: 0912
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, elementor
*/

/* ------------------------------------------------------------------
   فونت‌ها
   به صورت پیش‌فرض «وزیرمتن» (رایگان و مجاز) لود می‌شود.
   برای استفاده از فونت «ایران‌سن‌س» اصلی:
   ۱) فایل‌های مجاز IRANSansWeb را با فرمت woff2 در پوشه assets/fonts
      با نام‌های IRANSans-Regular.woff2 / IRANSans-Bold.woff2 و ... قرار دهید.
   ۲) سه خط زیر را از حالت کامنت خارج کنید (کامنت‌ها را بردارید).
   ترتیب اولویت فونت: ابتدا ایران‌سن‌س، بعد وزیرمتن.
------------------------------------------------------------------- */
/* @font-face {
	font-family: 'IRANSans';
	src: url('assets/fonts/IRANSans-Regular.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'IRANSans';
	src: url('assets/fonts/IRANSans-Bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
} */

@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('assets/fonts/Vazirmatn-Black.woff2') format('woff2');
	font-weight: 900;
	font-display: swap;
}

/* ------------------------------------------------------------------
   متغیرهای رنگ — بنفش / زرد طلایی / سفید شیری / مشکی
------------------------------------------------------------------- */
:root {
	--purple: #6D28D9;
	--purple-deep: #4C1D95;
	--purple-dark: #2A1B4D;
	--gold: #FFC72C;
	--gold-deep: #E5A100;
	--gold-soft: #F5B301;
	--cream: #FBF7F0;
	--ink: #1C1437;
	--muted: #4A4463;
	--muted-soft: #6b6482;
	--line: rgba(76, 29, 149, .10);
	--shadow-card: 0 10px 26px rgba(28, 20, 55, .07);
	--shadow-hover: 0 24px 48px rgba(76, 29, 149, .18);
	--font: 'Vazirmatn', 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
}

/* ------------------------------------------------------------------
   پایه
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
::selection { background: var(--purple); color: #fff; }

.container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ------------------------------------------------------------------
   هدر — ساده و مینیمال
------------------------------------------------------------------- */
.site-header {
	background: var(--cream);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	flex-wrap: wrap;
}
.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.site-brand-icon { width: 42px; height: 42px; display: block; }
.site-brand-name {
	font-weight: 900;
	font-size: 22px;
	color: var(--ink);
	letter-spacing: .3px;
}
.main-nav ul.main-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-menu li { position: relative; }
.main-menu a {
	display: inline-block;
	color: var(--muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	transition: color .25s;
	padding: 6px 0;
}
.main-menu a:hover { color: var(--purple); }
.main-menu a::after {
	content: '';
	position: absolute;
	right: 0; bottom: 0; left: 0;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--purple), var(--gold-soft));
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s;
}
.main-menu a:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------------
   هیرو — صفحه نخست
------------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 56px 0 70px;
	text-align: center;
}
.hero::before {
	content: '';
	position: absolute;
	width: 540px; height: 540px;
	top: -220px; right: -170px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(124, 58, 237, .16), rgba(124, 58, 237, 0) 65%);
	pointer-events: none;
}
.hero::after {
	content: '';
	position: absolute;
	width: 470px; height: 470px;
	bottom: -230px; left: -150px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(229, 177, 58, .20), rgba(229, 177, 58, 0) 65%);
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-icon {
	width: 96px; height: 96px;
	margin: 0 auto 24px;
	background: #fff;
	border-radius: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 38px rgba(76, 29, 149, .16), inset 0 0 0 1px rgba(109, 40, 217, .08);
}
.hero-icon img { width: 62px; height: 62px; }
.hero-title {
	margin: 0 0 14px;
	font-size: clamp(52px, 8vw, 86px);
	font-weight: 900;
	line-height: 1.15;
	background: linear-gradient(115deg, var(--purple-deep) 5%, var(--purple) 45%, var(--gold-soft) 97%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-sub {
	margin: 0 auto 30px;
	max-width: 580px;
	font-size: 17.5px;
	line-height: 2;
	color: var(--muted);
}
.btn-gold {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
	color: var(--ink);
	font-weight: 800;
	font-size: 16px;
	padding: 13px 32px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(229, 161, 0, .35);
	transition: transform .3s, box-shadow .3s;
}
.btn-gold:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgba(229, 161, 0, .45);
	color: var(--ink);
}

/* ------------------------------------------------------------------
   بخش محصولات — شبکه با هاور
------------------------------------------------------------------- */
.products { padding: 10px 0 90px; }
.prod-head { text-align: center; margin-bottom: 46px; }
.prod-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--purple);
	background: rgba(124, 58, 237, .08);
	border: 1px solid rgba(124, 58, 237, .18);
	padding: 6px 18px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.prod-title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 900;
	color: var(--ink);
	margin: 0 0 10px;
}
.prod-sub { color: var(--muted-soft); font-size: 15.5px; margin: 0; }
.prod-divider {
	width: 68px; height: 4px;
	border-radius: 4px;
	margin: 20px auto 0;
	background: linear-gradient(90deg, var(--purple), var(--gold-soft));
}

.p-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
	gap: 26px;
}

.p-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-card);
	transition: transform .35s cubic-bezier(.2, .6, .2, 1), box-shadow .35s, border-color .35s;
}
a.p-card:hover {
	transform: translateY(-7px);
	box-shadow: var(--shadow-hover);
	border-color: rgba(229, 177, 58, .6);
}

.p-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #5B21B6, #7C3AED 70%, #9A6BFF);
}
.p-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
a.p-card:hover .p-thumb img { transform: scale(1.09); }
.p-thumb::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(23, 15, 44, .58), rgba(23, 15, 44, 0) 55%);
	opacity: 0;
	transition: opacity .35s;
	pointer-events: none;
}
a.p-card:hover .p-thumb::after { opacity: 1; }

.p-see {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -52%) scale(.92);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
	padding: 10px 22px;
	border-radius: 999px;
	opacity: 0;
	box-shadow: 0 12px 24px rgba(229, 161, 0, .4);
	transition: opacity .35s, transform .35s;
	z-index: 2;
	pointer-events: none;
}
a.p-card:hover .p-see { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.p-ph {
	position: absolute; inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #5B21B6, #7C3AED 70%, #9A6BFF);
}
.p-ph img { width: 58px; height: 58px; opacity: .9; }

.p-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
}
.p-title {
	font-size: 16.5px;
	font-weight: 800;
	color: var(--ink);
	margin: 0;
}
.p-arrow {
	color: var(--gold-deep);
	font-size: 20px;
	line-height: 1;
	transition: transform .3s;
}
a.p-card:hover .p-arrow { transform: translateX(-7px); }

.p-empty {
	background: #fff;
	border: 1.5px dashed rgba(76, 29, 149, .28);
	border-radius: 22px;
	padding: 56px 24px;
	text-align: center;
	color: var(--muted-soft);
}
.p-empty img { width: 66px; height: 66px; opacity: .85; margin-bottom: 14px; }
.p-empty strong { color: var(--ink); }

/* ------------------------------------------------------------------
   فوتر — ساده و مینیمال
------------------------------------------------------------------- */
.site-footer {
	background: #171226;
	color: #CFC7E6;
	padding: 28px 0;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	color: var(--cream);
	font-size: 15px;
}
.footer-brand img { width: 22px; height: 22px; }
.footer-credit { font-size: 13.5px; color: #9C92BD; }
.footer-credit b { color: var(--gold-soft); font-weight: 700; }

/* ------------------------------------------------------------------
   صفحات داخلی (برای برگه‌های المنتور و نوشته‌ها)
------------------------------------------------------------------- */
.entry { width: 100%; padding: 28px 0 80px; }
.entry--plain .entry-title {
	font-size: 30px;
	font-weight: 900;
	margin: 0 0 18px;
	text-align: right;
}
.entry-content,
.entry--plain > * {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}
.error-404 { text-align: center; padding: 90px 24px; }
.error-404 .btn-gold { margin-top: 10px; }

/* ------------------------------------------------------------------
   ریسپانسیو
------------------------------------------------------------------- */
@media (max-width: 680px) {
	.hero { padding: 44px 0 56px; }
	.hero-sub { font-size: 15.5px; }
	.header-inner { justify-content: center; min-height: 64px; }
	.p-grid { gap: 18px; }
	.footer-inner { justify-content: center; text-align: center; }
}