/* میرزا پلاگین: لایه طراحی سراسری (هدر، فوتر و صفحه‌های داخلی).
   فقط روی body.mzx اعمال می‌شود؛ با خاموش کردن گزینه، سایت به ظاهر قبلی برمی‌گردد.
   سیستم شکل: کارت ۲۰px، دکمه و فیلد ۱۴px، برچسب‌ها کاملاً گرد. حاشیه ۲px مشکی + سایه تخت مشکی = امضای میرزا. */

body.mzx {
	--ink: #20211f;
	--muted: #5c5650;
	--cream: #f4efe7;
	--sand: #ebe3d6;
	--paper: #fffdf9;
	--coral: #fa604e;
	--coral-ink: #9f3a2b;
	--coral-soft: #fbdcd4;
	--green: #2f6b3a;
	--green-soft: #dcebd9;
	--blue-soft: #dfe6f7;
	--line: rgba(32, 33, 31, .14);
	--line-strong: rgba(32, 33, 31, .28);
	--shadow-soft: 0 18px 40px -20px rgba(98, 62, 40, .45);
	--r-card: 20px;
	--r-ctl: 14px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--font: "Mirza Vazir", Vazirmatn, Tahoma, sans-serif;
	--font-display: "Mirza Vazir Display", "Mirza Vazir", Vazirmatn, Tahoma, sans-serif;
	background: var(--cream) !important;
	color: var(--ink);
	font-family: var(--font);
	-webkit-tap-highlight-color: rgba(250, 96, 78, .18);
	text-rendering: optimizeLegibility;
}
body.mzx .mzh-icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; }
body.mzx .mzh-sr, body.mzx .mzx-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.mzx :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body.mzx a, body.mzx button, body.mzx summary, body.mzx input, body.mzx select { touch-action: manipulation; }

/* =========================================================
   ۱. هدر
   ========================================================= */
body.mzx .mz-header {
	position: sticky !important;
	z-index: 80 !important;
	padding: 12px 0 !important;
	background: transparent !important;
	border: 0 !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	pointer-events: none; /* فقط خود نوار کلیک‌پذیر است، نه فاصله اطرافش */
}
body.mzx .mz-header .mz-nav-shell {
	pointer-events: auto;
	position: relative;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 16px !important;
	width: min(1200px, 100% - 32px) !important;
	max-width: none !important;
	min-height: 72px;
	margin-inline: auto !important;
	padding: 10px 12px 10px 10px !important;
	background: var(--paper) !important;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-card) !important;
	box-shadow: 0 4px 0 var(--ink) !important;
	transition: box-shadow .3s var(--ease);
}
body.mzx .mz-header.is-scrolled .mz-nav-shell { box-shadow: 0 4px 0 var(--ink), var(--shadow-soft) !important; }

/* لوگو */
body.mzx .mz-header .mz-brand,
body.mzx .mz-footer .mz-brand {
	display: inline-flex !important;
	align-items: center;
	gap: 10px !important;
	font: 900 19px/1.2 var(--font-display) !important;
	color: var(--ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
	flex: none;
}
body.mzx .mz-brand-mark {
	width: 44px !important; height: 44px !important;
	display: grid !important; place-items: center;
	border: 2px solid var(--ink) !important;
	border-radius: 12px !important;
	background: var(--coral) !important;
	color: var(--ink) !important;
	font: 900 22px/1 var(--font-display) !important;
	box-shadow: 0 2px 0 var(--ink) !important;
	transition: transform .3s var(--ease);
}
body.mzx .mz-brand:hover .mz-brand-mark { transform: rotate(-6deg); }
/* لوگوی قلم میرزا به جای حرف «م» (حرف برای صفحه‌خوان‌ها نیست؛ نام برند کنارش نوشته شده) */
body.mzx .mz-brand-mark {
	border-radius: 50% !important;
	background: var(--coral) url(brand/android-chrome-192x192.png) center / 112% no-repeat !important;
	font-size: 0 !important;
	color: transparent !important;
	overflow: hidden;
}

/* منوی دسکتاپ */
body.mzx .mz-header .mz-nav {
	display: flex !important;
	align-items: center;
	gap: 2px !important;
	margin-inline: auto !important;
}
body.mzx .mz-header .mz-nav a {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px !important;
	border-radius: 12px !important;
	font: 700 15px/1.4 var(--font) !important;
	color: var(--ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
body.mzx .mz-header .mz-nav a:hover { background: var(--cream) !important; }
body.mzx .mz-header .mz-nav a[aria-current="page"] { background: var(--coral-soft) !important; font-weight: 800 !important; }
body.mzx .mz-header .mz-nav a[aria-current="page"]::after {
	content: ""; position: absolute; bottom: 5px; right: 50%; width: 5px; height: 5px; margin-right: -2.5px;
	border-radius: 50%; background: var(--coral-ink);
}

/* دکمه حساب کاربری: ثانویه */
body.mzx .mz-header .mz-nav-shell > .mz-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	min-height: 48px !important;
	padding: 8px 18px !important;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-ctl) !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
	font: 800 15px/1.2 var(--font) !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 3px 0 var(--ink) !important;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
	flex: none;
}
body.mzx .mz-header .mz-nav-shell > .mz-btn:hover { background: var(--coral-soft) !important; transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink) !important; }
body.mzx .mz-header .mz-nav-shell > .mz-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink) !important; }
body.mzx .mz-header .mz-btn .mzh-icon { width: 22px; height: 22px; }

/* منوی موبایل (details) */
body.mzx .mz-header .mz-mobile-menu { display: none !important; }

@media (min-width: 1024px) {
	body.mzx .mz-header .mz-mobile-menu { display: none !important; }
}

@media (max-width: 1023px) {
	body.mzx .mz-header { padding: 8px 0 !important; }
	body.mzx .mz-header .mz-nav-shell {
		gap: 8px !important;
		width: calc(100% - 24px) !important;
		min-height: 64px;
		padding: 8px 8px 8px 8px !important;
		border-radius: 18px !important;
	}
	body.mzx .mz-header .mz-nav { display: none !important; }
	body.mzx .mz-header .mz-brand { margin-inline-end: auto; font-size: 17px !important; gap: 8px !important; }
	body.mzx .mz-header .mz-brand-mark { width: 42px !important; height: 42px !important; }
	body.mzx .mz-header .mz-nav-shell > .mz-btn { min-height: 44px !important; padding: 6px 12px !important; font-size: 14px !important; box-shadow: none !important; }

	body.mzx .mz-header .mz-mobile-menu {
		display: block !important;
		position: static !important;
		margin: 0 !important; padding: 0 !important; border: 0 !important;
		width: auto !important; background: none !important; box-shadow: none !important;
		flex: none;
	}
	body.mzx .mz-header .mz-mobile-menu > summary {
		list-style: none;
		position: relative;
		width: 44px; height: 44px;
		display: block;
		padding: 0 !important; margin: 0 !important;
		border: 2px solid var(--ink) !important;
		border-radius: 12px !important;
		background: var(--ink) !important;
		font-size: 0 !important; color: transparent !important;
		cursor: pointer;
	}
	body.mzx .mz-header .mz-mobile-menu > summary::-webkit-details-marker { display: none; }
	body.mzx .mz-header .mz-mobile-menu > summary::marker { content: ""; }
	body.mzx .mz-header .mz-mobile-menu > summary::before,
	body.mzx .mz-header .mz-mobile-menu > summary::after {
		content: "";
		position: absolute; top: 50%; left: 50%;
		width: 18px; height: 2px; margin: -1px 0 0 -9px;
		border-radius: 2px;
		background: var(--paper);
		transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .2s;
	}
	body.mzx .mz-header .mz-mobile-menu > summary::before { box-shadow: 0 -6px 0 var(--paper), 0 6px 0 var(--paper); }
	body.mzx .mz-header .mz-mobile-menu > summary::after { opacity: 0; transform: rotate(-45deg); }
	body.mzx .mz-header .mz-mobile-menu[open] > summary { background: var(--coral) !important; }
	body.mzx .mz-header .mz-mobile-menu[open] > summary::before { box-shadow: none; transform: rotate(45deg); background: var(--ink); }
	body.mzx .mz-header .mz-mobile-menu[open] > summary::after { opacity: 1; background: var(--ink); }

	body.mzx .mz-header .mz-mobile-menu > nav {
		position: absolute !important;
		top: calc(100% + 10px); right: 0; left: 0;
		display: grid !important;
		gap: 2px;
		max-height: calc(100dvh - 140px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 8px !important; margin: 0 !important;
		background: var(--paper) !important;
		border: 2px solid var(--ink) !important;
		border-radius: 18px !important;
		box-shadow: 0 4px 0 var(--ink), var(--shadow-soft) !important;
		z-index: 90;
	}
	@media (prefers-reduced-motion: no-preference) {
		body.mzx .mz-header .mz-mobile-menu[open] > nav { animation: mzx-drop .28s var(--ease); }
	}
	body.mzx .mz-header .mz-mobile-menu > nav a {
		display: flex !important;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		padding: 10px 14px !important;
		border: 0 !important;
		border-radius: 12px !important;
		font: 700 16px/1.4 var(--font) !important;
		color: var(--ink) !important;
		text-decoration: none !important;
	}
	body.mzx .mz-header .mz-mobile-menu > nav a::after {
		content: ""; margin-inline-start: auto; width: 8px; height: 8px;
		border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); opacity: .45;
	}
	body.mzx .mz-header .mz-mobile-menu > nav a:hover,
	body.mzx .mz-header .mz-mobile-menu > nav a:focus-visible { background: var(--coral-soft) !important; outline: none; }
	body.mzx .mz-header .mz-mobile-menu > nav a[aria-current="page"] { background: var(--cream) !important; font-weight: 800 !important; }
	body.mzx .mzx-menu-extra { display: grid; gap: 2px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
	body.mzx .mzx-menu-extra a { font-size: 15px !important; color: var(--muted) !important; }
	body.mzx .mzx-menu-extra a::after { display: none; }
	body.mzx .mzx-menu-extra .mzh-icon { width: 22px; height: 22px; color: var(--ink); }
}

@keyframes mzx-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* گوشی‌های کوچک: متن دکمه حساب فقط برای صفحه‌خوان، آیکون نمایان */
@media (max-width: 419px) {
	body.mzx .mz-header .mz-nav-shell > .mz-btn { width: 44px; padding: 0 !important; justify-content: center; }
	body.mzx .mz-header .mz-nav-shell > .mz-btn .mzx-label {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
}
@media (max-width: 340px) {
	body.mzx .mz-header .mz-brand { font-size: 15px !important; }
}

/* =========================================================
   ۲. فوتر
   ========================================================= */
body.mzx .mz-footer {
	margin-top: 0 !important;
	padding: 64px 0 28px !important;
	background: var(--ink) !important;
	color: #d9d2c6 !important;
	border: 0 !important;
}
body.mzx .mz-footer .mz-wrap { width: min(1200px, 100% - 32px) !important; margin-inline: auto !important; }
body.mzx .mz-footer-grid {
	display: grid !important;
	grid-template-columns: 1.5fr 1fr 1fr 1.1fr !important;
	gap: 40px !important;
	align-items: start;
}
body.mzx .mz-footer .mz-brand { color: var(--paper) !important; font-size: 21px !important; }
body.mzx .mz-footer .mz-brand-mark { box-shadow: 0 3px 0 #000 !important; border-color: #000 !important; }
body.mzx .mz-footer p {
	margin: 16px 0 0 !important;
	max-width: 38ch;
	color: #bfb8ad !important;
	font-size: 15px !important;
	line-height: 2 !important;
}
body.mzx .mz-footer h3 {
	margin: 4px 0 14px !important;
	font: 800 16px/1.4 var(--font-display) !important;
	color: var(--paper) !important;
}
body.mzx .mz-footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 0; }
body.mzx .mz-footer ul a {
	display: inline-flex !important;
	align-items: center;
	min-height: 40px;
	padding: 6px 0;
	color: #d9d2c6 !important;
	font: 500 15px/1.6 var(--font) !important;
	text-decoration: none !important;
	transition: color .2s;
}
body.mzx .mz-footer a:hover { color: var(--coral) !important; text-decoration: underline !important; text-underline-offset: 5px; }
body.mzx .mz-footer :focus-visible { outline-color: var(--coral); }

/* ستون پشتیبانی (از site.js) */
body.mzx .mzx-footer-support p { margin: 0 0 14px !important; }
body.mzx .mzx-footer-support a {
	display: flex !important; align-items: center; gap: 10px;
	min-height: 48px; margin-bottom: 10px; padding: 8px 14px;
	border-radius: var(--r-ctl);
	font: 800 15px/1.3 var(--font) !important;
	text-decoration: none !important;
	width: fit-content; max-width: 100%;
	overflow-wrap: anywhere;
}
body.mzx .mzx-footer-support .mzx-footer-tg { background: var(--coral) !important; color: var(--ink) !important; border: 2px solid #000; box-shadow: 0 3px 0 #000; }
body.mzx .mzx-footer-support .mzx-footer-tg:hover { color: var(--ink) !important; text-decoration: none !important; transform: translateY(-1px); }
body.mzx .mzx-footer-support .mzx-footer-mail { color: #d9d2c6 !important; padding-inline: 0; font-weight: 600 !important; }
body.mzx .mzx-footer-support .mzh-icon { width: 22px; height: 22px; }

/* نمادهای اعتماد */
body.mzx .mz-trust-seals {
	margin-top: 40px !important;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 253, 249, .12);
	gap: 12px !important;
}
body.mzx .mz-trust-seals > span { color: #bfb8ad !important; font-size: 14px !important; margin-inline-end: 8px; }
body.mzx .mz-seal { border: 0 !important; border-radius: 16px !important; box-shadow: 0 3px 0 #000; }

body.mzx .mz-footer-bottom {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 28px !important;
	padding-top: 20px !important;
	border-top: 1px solid rgba(255, 253, 249, .12) !important;
	color: #a59e93 !important;
	font-size: 13px !important;
}

@media (max-width: 900px) {
	body.mzx .mz-footer { padding: 48px 0 24px !important; }
	body.mzx .mz-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px 20px !important; }
	body.mzx .mz-footer-grid > div:first-child,
	body.mzx .mz-footer-grid > .mzx-footer-support { grid-column: 1 / -1; }
	body.mzx .mz-footer-bottom { flex-direction: column; }
	/* فاصله برای دکمه شناور پشتیبانی پایین صفحه */
	body.mzx .mz-footer-bottom { padding-bottom: 72px !important; }
}

/* =========================================================
   ۳. اجزای مشترک همه صفحه‌ها
   ========================================================= */
body.mzx main h1, body.mzx main h2, body.mzx main h3 { text-wrap: balance; }
body.mzx .mz-eyebrow, body.mzx .eyebrow { color: var(--coral-ink) !important; font-weight: 800 !important; letter-spacing: 0 !important; }

/* دکمه‌ها: اصلی مرجانی، ثانویه کاغذی؛ گوشه ۱۴px همه جا */
body.mzx main .button,
body.mzx main button.button,
body.mzx main input.button,
body.mzx main .mz-btn,
body.mzx main .dark-button,
body.mzx main .mirza-demo-button,
body.mzx main .wp-element-button,
body.mzx main .woocommerce-Button,
body.mzx main #place_order {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px !important;
	padding: 10px 22px !important;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-ctl) !important;
	background: var(--coral) !important;
	color: var(--ink) !important;
	font: 800 16px/1.3 var(--font) !important;
	text-decoration: none !important;
	text-align: center;
	box-shadow: 0 3px 0 var(--ink) !important;
	cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s !important;
	max-width: 100%;
	white-space: normal;
}
body.mzx main .button:hover, body.mzx main .mz-btn:hover, body.mzx main .dark-button:hover,
body.mzx main .mirza-demo-button:hover, body.mzx main .wp-element-button:hover, body.mzx main .woocommerce-Button:hover, body.mzx main #place_order:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 0 var(--ink) !important;
}
body.mzx main .button:active, body.mzx main .mz-btn:active, body.mzx main .dark-button:active,
body.mzx main .mirza-demo-button:active, body.mzx main .wp-element-button:active, body.mzx main .woocommerce-Button:active, body.mzx main #place_order:active {
	transform: translateY(2px);
	box-shadow: 0 1px 0 var(--ink) !important;
}
body.mzx main .mz-btn.mz-secondary,
body.mzx main .mirza-demo-button,
body.mzx main .woocommerce-cart-form .actions .button,
body.mzx main .coupon .button,
body.mzx main .woocommerce-orders-table .button,
body.mzx main .woocommerce-MyAccount-downloads .button { background: var(--paper) !important; }
body.mzx main .button:disabled, body.mzx main .button.disabled, body.mzx main button[disabled] { opacity: .5 !important; cursor: not-allowed; transform: none !important; }
body.mzx main .button.loading { opacity: .7 !important; }

/* لینک‌های متنی محتوا */
body.mzx .entry-content a:not([class]),
body.mzx .woocommerce-Tabs-panel a:not([class]) { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* قیمت */
body.mzx main .price,
body.mzx main .price .amount,
body.mzx main .woocommerce-Price-amount { color: var(--ink) !important; font-weight: 800 !important; }
body.mzx main .price del, body.mzx main .price del .amount { color: var(--muted) !important; font-weight: 500 !important; opacity: .8; }
body.mzx main .price ins { text-decoration: none !important; }

/* فیلدها: ارتفاع ۴۸، فونت ۱۶ (جلوگیری از زوم iOS)، فوکوس روشن */
body.mzx main input[type="text"], body.mzx main input[type="email"], body.mzx main input[type="tel"],
body.mzx main input[type="password"], body.mzx main input[type="number"], body.mzx main input[type="search"],
body.mzx main input[type="url"], body.mzx main select, body.mzx main textarea,
body.mzx main .select2-container .select2-selection--single {
	min-height: 48px !important;
	padding: 10px 14px !important;
	border: 2px solid var(--line-strong) !important;
	border-radius: var(--r-ctl) !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
	font: 500 16px/1.5 var(--font) !important;
	box-shadow: none !important;
	transition: border-color .2s, box-shadow .2s !important;
	max-width: 100%;
}
body.mzx main textarea { min-height: 110px !important; }
body.mzx main .select2-container .select2-selection--single .select2-selection__rendered { line-height: 24px !important; padding: 0 !important; color: var(--ink) !important; }
body.mzx main .select2-container .select2-selection--single .select2-selection__arrow { height: 44px !important; }
body.mzx main input:focus, body.mzx main select:focus, body.mzx main textarea:focus,
body.mzx main .select2-container--focus .select2-selection--single {
	border-color: var(--ink) !important;
	box-shadow: 0 0 0 4px var(--coral-soft) !important;
	outline: none !important;
}
body.mzx main label { font-weight: 700; color: var(--ink); }
body.mzx main .required { color: var(--coral-ink) !important; text-decoration: none !important; }
body.mzx main input[type="checkbox"], body.mzx main input[type="radio"] { width: 20px; height: 20px; accent-color: var(--coral-ink); vertical-align: middle; }

/* پیام‌های ووکامرس */
body.mzx main .woocommerce-message,
body.mzx main .woocommerce-info,
body.mzx main .woocommerce-error,
body.mzx main .woocommerce-notice {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
	margin: 0 0 20px !important;
	padding: 14px 18px !important;
	list-style: none;
	border: 2px solid var(--ink) !important;
	border-inline-start-width: 8px !important;
	border-radius: var(--r-ctl) !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
	font-weight: 600;
}
body.mzx main .woocommerce-message { border-inline-start-color: var(--green) !important; }
body.mzx main .woocommerce-info { border-inline-start-color: var(--coral) !important; }
body.mzx main .woocommerce-error { border-inline-start-color: #b42318 !important; }
body.mzx main .woocommerce-message::before, body.mzx main .woocommerce-info::before, body.mzx main .woocommerce-error::before { display: none !important; }
body.mzx main .woocommerce-message .button, body.mzx main .woocommerce-info .button { order: 2; margin-inline-start: auto; min-height: 44px !important; padding: 6px 16px !important; font-size: 14px !important; background: var(--paper) !important; }

/* جدول‌ها (سبد، تسویه، سفارش‌ها) */
body.mzx main table.shop_table {
	width: 100%;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-card) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	overflow: hidden;
	background: var(--paper) !important;
	font-variant-numeric: tabular-nums;
}
body.mzx main table.shop_table th,
body.mzx main table.shop_table td { padding: 14px 16px !important; border-top: 1px solid var(--line) !important; border-inline: 0 !important; vertical-align: middle; text-align: start; }
body.mzx main table.shop_table tr { background: transparent !important; }
/* محصول تک‌عددی: ردیف «تعداد» خالی است */
body.mzx main table.shop_table td.product-quantity:has(input.qty[type="hidden"]) { display: none !important; }
body.mzx main table.shop_table td.actions { background: var(--cream) !important; }
body.mzx main table.shop_table thead th { border-top: 0 !important; background: var(--sand); font-weight: 800; font-size: 14px; }
body.mzx main table.shop_table tr:first-child > * { border-top: 0 !important; }
body.mzx main table.shop_table .order-total th, body.mzx main table.shop_table .order-total td { font-size: 18px; font-weight: 900; background: var(--coral-soft); }
body.mzx main table.shop_table img { width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); }
body.mzx main table.shop_table a.remove {
	display: grid !important; place-items: center; width: 36px !important; height: 36px !important;
	border-radius: 10px !important; border: 2px solid var(--line-strong);
	color: var(--muted) !important; font-size: 22px !important; line-height: 1 !important;
}
body.mzx main table.shop_table a.remove:hover { background: #b42318 !important; border-color: #b42318; color: #fff !important; }

/* =========================================================
   ۴. کارت‌های محتوا و قاب صفحه‌ها
   ========================================================= */
body.mzx .entry-content-card {
	padding: clamp(18px, 4vw, 44px) !important;
	background: var(--paper) !important;
	border: 2px solid var(--ink) !important;
	border-radius: 24px !important;
	box-shadow: 0 4px 0 var(--ink) !important;
}
/* صفحه‌های ووکامرس و لندینگ‌ها قاب خودشان را دارند؛ قاب بیرونی برداشته می‌شود تا جعبه در جعبه نشود */
body.mzx .entry-content-card:has(.mz-product-page),
body.mzx .entry-content-card:has(.mirza-buy),
body.mzx.woocommerce-cart .entry-content-card,
body.mzx.woocommerce-checkout .entry-content-card,
body.mzx.woocommerce-account .entry-content-card {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.mzx.woocommerce-cart .entry-header, body.mzx.woocommerce-checkout .entry-header, body.mzx.woocommerce-account .entry-header { margin-bottom: 20px; }
body.mzx .entry-content-card > .entry-header h1,
body.mzx .archive-heading h1 { font-family: var(--font-display) !important; font-weight: 900 !important; line-height: 1.35 !important; color: var(--ink) !important; }
body.mzx .entry-content { line-height: 2; }
body.mzx .entry-content h2 { margin-top: 1.8em; line-height: 1.5; }
body.mzx .entry-content h3 { margin-top: 1.4em; line-height: 1.6; }
body.mzx .entry-content img { border-radius: 16px; height: auto; }
body.mzx .entry-content blockquote { margin: 1.5em 0; padding: 16px 20px; border-inline-start: 6px solid var(--coral); background: var(--cream); border-radius: var(--r-ctl) 0 0 var(--r-ctl); }

/* لندینگ‌های محصول (میرزابنویس، میرزا ورود) و فروشگاه */
body.mzx .mz-card, body.mzx .mz-feature, body.mzx .mz-band, body.mzx .mz-style {
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-card) !important;
	box-shadow: 0 4px 0 var(--ink) !important;
}
body.mzx .mz-card { background: var(--paper) !important; overflow: hidden; }
body.mzx .mz-feature { background: var(--paper) !important; }
body.mzx .mz-band { background: var(--coral-soft) !important; }
body.mzx .mz-number { color: var(--coral-ink) !important; font-weight: 900 !important; }
body.mzx .mz-note { border-radius: var(--r-ctl) !important; border: 2px dashed var(--line-strong) !important; background: var(--cream) !important; }
body.mzx .mz-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
	body.mzx main .mz-actions > .mz-btn { flex: 1 1 100%; }
}

/* آکاردئون‌ها (لندینگ‌ها) */
body.mzx details.mz-faq {
	margin: 0 0 12px !important;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-ctl) !important;
	background: var(--paper) !important;
	overflow: hidden;
}
body.mzx details.mz-faq > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 14px 18px !important; font-weight: 800 !important;
}
body.mzx details.mz-faq > summary::-webkit-details-marker { display: none; }
body.mzx details.mz-faq > summary::after { content: "+"; font: 400 26px/1 var(--font); transition: transform .3s var(--ease); }
body.mzx details.mz-faq[open] > summary::after { transform: rotate(45deg); }
body.mzx details.mz-faq > :not(summary) { padding: 0 18px 16px !important; color: var(--muted); }

/* خرید اشتراک میرزابنویس */
body.mzx .mirza-buy-plan {
	border: 2px solid var(--line-strong) !important;
	border-radius: var(--r-ctl) !important;
	background: var(--paper) !important;
	min-height: 56px;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
body.mzx .mirza-buy-plan.is-on, body.mzx .mirza-buy-plan:has(input:checked) { border-color: var(--ink) !important; box-shadow: 0 3px 0 var(--ink) !important; background: var(--coral-soft) !important; }

/* =========================================================
   ۵. فروشگاه و صفحه محصول
   ========================================================= */
body.mzx ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px !important; margin: 0 !important; padding: 0 !important; }
body.mzx ul.products::before, body.mzx ul.products::after { display: none !important; }
body.mzx ul.products li.product {
	display: flex !important; flex-direction: column;
	float: none !important; width: auto !important; margin: 0 !important;
	min-width: 0;
	padding: 14px !important;
	background: var(--paper) !important;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-card) !important;
	box-shadow: 0 4px 0 var(--ink) !important;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
body.mzx ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink) !important; }
body.mzx ul.products li.product img { width: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 12px !important; border-radius: 14px !important; border: 2px solid var(--ink); }
body.mzx ul.products li.product .woocommerce-loop-product__title { font: 900 18px/1.5 var(--font-display) !important; color: var(--ink) !important; padding: 0 !important; margin: 0 0 6px !important; }
body.mzx ul.products li.product .price { display: block; margin: 0 0 14px !important; font-size: 16px !important; }
body.mzx ul.products li.product .button { width: 100% !important; margin-top: auto !important; }
body.mzx ul.products li.product .woocommerce-LoopProduct-link { text-decoration: none !important; color: inherit !important; }

body.mzx.single-product div.product .woocommerce-product-gallery img { border-radius: 24px !important; border: 2px solid var(--ink); }
body.mzx.single-product div.product .summary {
	background: var(--paper) !important;
	border: 2px solid var(--ink) !important;
	border-radius: 24px !important;
	box-shadow: 0 4px 0 var(--ink) !important;
	padding: clamp(20px, 3vw, 32px) !important;
}
body.mzx.single-product .product_title { font: 900 clamp(26px, 3.4vw, 38px)/1.35 var(--font-display) !important; color: var(--ink) !important; margin-bottom: 10px !important; }
body.mzx.single-product .summary .price { font-size: 26px !important; margin: 4px 0 16px !important; }
body.mzx.single-product .woocommerce-product-details__short-description { color: var(--muted); line-height: 2; }
/* ترتیب: عنوان، قیمت، توضیح، خرید، دمو، جعبه اعتماد، مشخصات */
body.mzx.single-product div.product .summary { display: flex !important; flex-direction: column; }
body.mzx.single-product .summary > * { order: 0; }
/* جعبه اعتماد و دکمه دمو داخل توضیح کوتاه‌اند؛ با contents مستقیم در ستون خلاصه چیده می‌شوند */
body.mzx.single-product .summary > .woocommerce-product-details__short-description { display: contents; }
body.mzx.single-product .summary > form.cart { order: 1; }
body.mzx.single-product .summary p:has(> .mirza-demo-button) { order: 2; margin: 0 !important; }
body.mzx.single-product .summary .mirza-trust-box { order: 3; margin-top: 16px !important; }
body.mzx.single-product .summary > .product_meta { order: 4; margin-top: 16px; }
body.mzx.single-product form.cart { display: flex !important; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px !important; }
body.mzx.single-product form.cart .single_add_to_cart_button { flex: 1 1 100%; width: 100%; min-height: 56px !important; font-size: 17px !important; margin: 0 !important; }
body.mzx.single-product .mirza-demo-button { width: 100%; min-height: 52px !important; margin: 0 !important; }
body.mzx .mirza-trust-box {
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-ctl) !important;
	background: var(--cream) !important;
	box-shadow: none !important;
}
body.mzx.single-product .product_meta { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
body.mzx.single-product .product_meta a { color: var(--ink); }

/* تب‌ها: برچسب‌های قرصی */
body.mzx .woocommerce-tabs ul.tabs {
	display: flex !important; flex-wrap: wrap; gap: 8px;
	margin: 32px 0 16px !important; padding: 0 !important;
	border: 0 !important;
}
body.mzx .woocommerce-tabs ul.tabs::before, body.mzx .woocommerce-tabs ul.tabs::after { display: none !important; }
body.mzx .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.mzx .woocommerce-tabs ul.tabs li::before, body.mzx .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.mzx .woocommerce-tabs ul.tabs li a {
	display: inline-flex !important; align-items: center; min-height: 44px;
	padding: 8px 18px !important;
	border: 2px solid var(--line-strong) !important;
	border-radius: 999px !important;
	color: var(--ink) !important; font-weight: 700 !important; text-decoration: none !important;
}
body.mzx .woocommerce-tabs ul.tabs li.active a { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--paper) !important; }
body.mzx .woocommerce-tabs .panel {
	padding: clamp(20px, 3vw, 36px) !important;
	background: var(--paper) !important;
	border: 2px solid var(--ink) !important;
	border-radius: 24px !important;
	line-height: 2;
}
body.mzx .woocommerce-tabs .panel > h2:first-child { font: 900 24px/1.5 var(--font-display); margin-top: 0; }
body.mzx section.related > h2, body.mzx section.upsells > h2 { font: 900 clamp(22px, 3vw, 30px)/1.4 var(--font-display) !important; margin: 40px 0 18px !important; }

/* =========================================================
   ۶. سبد خرید و تسویه حساب
   ========================================================= */
body.mzx .cart-collaterals .cart_totals,
body.mzx .woocommerce-checkout-review-order,
body.mzx .woocommerce-billing-fields,
body.mzx .woocommerce-additional-fields {
	padding: clamp(18px, 3vw, 28px);
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 24px;
	box-shadow: 0 4px 0 var(--ink);
}
body.mzx .woocommerce-additional-fields { margin-top: 20px; }
body.mzx .woocommerce-form-coupon-toggle, body.mzx .woocommerce-notices-wrapper { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
body.mzx .woocommerce-info a.showcoupon { color: var(--coral-ink) !important; font-weight: 800; }
body.mzx .cart_totals > h2, body.mzx #order_review_heading, body.mzx .woocommerce-billing-fields > h3, body.mzx .woocommerce-additional-fields > h3 { font: 900 22px/1.4 var(--font-display) !important; margin: 0 0 16px !important; }
body.mzx .cart_totals table.shop_table, body.mzx .woocommerce-checkout-review-order table.shop_table { border: 0 !important; box-shadow: none !important; }
body.mzx .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px !important; font-size: 17px !important; }
body.mzx .woocommerce-cart-form .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
body.mzx .woocommerce form .form-row { margin: 0 0 16px !important; padding: 0 !important; }
body.mzx .woocommerce form .form-row label { display: block; margin-bottom: 6px; font-size: 15px; }
body.mzx #payment { background: var(--cream) !important; border-radius: var(--r-ctl) !important; border: 2px solid var(--line-strong); }
body.mzx #payment ul.payment_methods { border-bottom: 1px solid var(--line) !important; padding: 16px !important; }
body.mzx #payment ul.payment_methods li { list-style: none; padding: 6px 0; font-weight: 700; }
body.mzx #payment div.payment_box { background: var(--paper) !important; border-radius: 12px !important; color: var(--muted) !important; }
body.mzx #payment div.payment_box::before { display: none !important; }
body.mzx #payment .place-order { padding: 16px !important; }
body.mzx #place_order { width: 100%; min-height: 56px !important; font-size: 17px !important; }

/* =========================================================
   ۷. حساب کاربری
   ========================================================= */
body.mzx .woocommerce-MyAccount-navigation ul {
	list-style: none !important; margin: 0 !important; padding: 8px !important;
	display: grid; gap: 2px;
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: var(--r-card);
	box-shadow: 0 4px 0 var(--ink);
}
body.mzx .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.mzx .woocommerce-MyAccount-navigation li a {
	display: flex !important; align-items: center; min-height: 46px;
	padding: 8px 14px !important;
	border-radius: 12px !important;
	color: var(--ink) !important; font-weight: 700 !important; text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .2s;
}
body.mzx .woocommerce-MyAccount-navigation li a:hover { background: var(--cream) !important; }
body.mzx .woocommerce-MyAccount-navigation li.is-active a { background: var(--ink) !important; color: var(--paper) !important; }
body.mzx .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid var(--line) !important; }
body.mzx .woocommerce-MyAccount-navigation-link--customer-logout a { color: #b42318 !important; }
body.mzx .woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fde8e6 !important; }
body.mzx .mirza-stat-card {
	border: 2px solid var(--ink) !important; border-radius: var(--r-card) !important;
	background: var(--paper) !important; box-shadow: 0 4px 0 var(--ink) !important;
	text-decoration: none !important; color: var(--ink) !important;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
body.mzx .mirza-stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink) !important; }
/* فرم ورود/ثبت‌نام */
body.mzx .woocommerce-form-login, body.mzx .woocommerce-form-register, body.mzx .woocommerce-ResetPassword {
	padding: clamp(18px, 3vw, 28px) !important;
	background: var(--paper);
	border: 2px solid var(--ink) !important;
	border-radius: 24px !important;
	box-shadow: 0 4px 0 var(--ink);
}
body.mzx .woocommerce-account #customer_login h2 { font: 900 22px/1.4 var(--font-display); }

@media (max-width: 768px) {
	/* منوی حساب در موبایل: ردیف افقی قابل اسکرول */
	body.mzx .woocommerce-MyAccount-navigation { float: none !important; width: 100% !important; margin-bottom: 20px; }
	body.mzx .woocommerce-MyAccount-navigation ul {
		display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
		overscroll-behavior-x: contain; scroll-snap-type: x proximity;
	}
	body.mzx .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.mzx .woocommerce-MyAccount-navigation li { scroll-snap-align: start; flex: none; }
	body.mzx .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0 !important; border: 0 !important; border-inline-start: 1px solid var(--line) !important; padding-inline-start: 6px !important; }
	body.mzx .woocommerce-MyAccount-content { float: none !important; width: 100% !important; }

	/* جدول سبد در موبایل: ردیف‌ها به کارت تبدیل می‌شوند و هیچ‌چیز از عرض صفحه بیرون نمی‌زند */
	body.mzx main table.shop_table_responsive,
	body.mzx main table.shop_table_responsive tbody,
	body.mzx main table.shop_table_responsive tr { display: block !important; width: 100% !important; }
	body.mzx main table.shop_table_responsive thead { display: none !important; }
	body.mzx main table.shop_table_responsive tr td { text-align: start !important; justify-content: space-between; gap: 12px; min-width: 0; }
	body.mzx main table.shop_table_responsive tr td::before { font-weight: 800; color: var(--muted); }
	body.mzx main table.shop_table td.actions { flex-wrap: wrap !important; }
	body.mzx main table.shop_table td.actions::before { display: none !important; }
	body.mzx main .woocommerce-cart-form .coupon { flex: 1 1 100%; flex-wrap: wrap !important; }
	body.mzx main .woocommerce-cart-form .coupon .input-text,
	body.mzx main .woocommerce-cart-form .coupon .button { flex: 1 1 100%; min-width: 0; width: 100% !important; margin: 0 !important; }
	body.mzx main table.shop_table td.actions > .button { flex: 1 1 100%; }
}

/* =========================================================
   ۸. مجله و نوشته‌ها
   ========================================================= */
body.mzx .archive-heading { margin-bottom: 28px; }
body.mzx .posts-grid { gap: 20px !important; }
body.mzx .post-card {
	background: var(--paper) !important;
	border: 2px solid var(--ink) !important;
	border-radius: var(--r-card) !important;
	box-shadow: 0 4px 0 var(--ink) !important;
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
body.mzx .post-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink) !important; }
body.mzx .post-card .post-thumb { border-bottom: 2px solid var(--ink); }
body.mzx .post-card h3 { font-family: var(--font-display) !important; line-height: 1.6 !important; }
body.mzx .post-card h3 a { color: var(--ink) !important; text-decoration: none !important; }
body.mzx .post-card .post-meta { color: var(--muted) !important; font-size: 13px; }
body.mzx .post-card .text-link { color: var(--coral-ink) !important; font-weight: 800; }
body.mzx .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
body.mzx .pagination .page-numbers {
	display: inline-grid !important; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 2px solid var(--ink); border-radius: 12px;
	background: var(--paper); color: var(--ink); font-weight: 800; text-decoration: none;
}
body.mzx .pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
body.mzx .pagination .page-numbers.dots { border: 0; background: none; }

/* =========================================================
   ۹. صفحه ۴۰۴
   ========================================================= */
body.mzx .not-found { text-align: center; padding: clamp(56px, 10vw, 120px) 0 !important; }
body.mzx .not-found .error-code {
	display: block;
	font: 900 clamp(88px, 18vw, 180px)/1 var(--font-display) !important;
	color: var(--coral) !important;
	-webkit-text-stroke: 2px var(--ink);
	text-shadow: 0 6px 0 var(--ink);
	margin-bottom: 16px;
}
body.mzx .not-found h1 { font: 900 clamp(24px, 4vw, 36px)/1.4 var(--font-display) !important; }
body.mzx .not-found p { color: var(--muted); max-width: 46ch; margin: 12px auto 24px !important; }

/* =========================================================
   کاهش حرکت
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	body.mzx *, body.mzx *::before, body.mzx *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
