/*
Theme Name: نهالستان استوایی
Theme URI: https://example.com/nahalestan-estevaei
Author: تیم نهالستان استوایی
Description: پوسته اختصاصی و راست‌چین فروشگاه «نهالستان استوایی» بر پایه ووکامرس. منطق فروشگاه در افزونه‌های nahalestan-* است و این پوسته فقط لایه نمایش را می‌سازد.
Version: 7.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 11.2
License: GPL v2 or later
Text Domain: nahalestan-estevaei
Tags: rtl-language-support, e-commerce, woocommerce, custom-menu, featured-images
*/

/* ==========================================================================
   فونت (میزبانی روی خود سایت؛ نسخه ارقام فارسی)
   ========================================================================== */
@font-face {
	font-family: "Shabnam";
	src: url("assets/fonts/Shabnam-FD.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Shabnam";
	src: url("assets/fonts/Shabnam-Bold-FD.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   توکن‌ها
   ========================================================================== */
:root {
	--ne-forest: #234B36;
	--ne-forest-dark: #16301F;
	--ne-forest-soft: #35664A;
	--ne-sage: #E3ECDF;
	--ne-cream: #FAF8F1;
	--ne-paper: #FFFFFF;
	--ne-earth: #A97E4F;
	--ne-earth-dark: #8C6740;
	--ne-text: #1E2E24;
	--ne-muted: #55665B;
	--ne-border: rgba(35, 75, 54, 0.14);
	--ne-border-strong: rgba(35, 75, 54, 0.28);
	--ne-danger: #B42318;
	--ne-success: #1F6B43;

	--ne-radius-lg: 12px;
	--ne-radius: 8px;
	--ne-radius-sm: 6px;
	--ne-shadow: 0 1px 2px rgba(22, 48, 31, 0.06), 0 8px 24px rgba(22, 48, 31, 0.08);
	--ne-shadow-lg: 0 24px 60px rgba(22, 48, 31, 0.22);

	--ne-font: "Shabnam", "Vazirmatn", Tahoma, system-ui, sans-serif;
	--ne-gutter: 1rem;
	--ne-header-h: 60px;
	--ne-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--ne-z-header: 50;
	--ne-z-hotspot: 20;
	--ne-z-drawer: 90;
	--ne-z-modal: 100;
}

@media (min-width: 768px) {
	:root {
		--ne-gutter: 1.5rem;
		--ne-header-h: 72px;
	}
}

/* ==========================================================================
   پایه
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ne-header-h) + 1rem);
}
html.ne-lock { overflow: hidden; }

body {
	margin: 0;
	font-family: var(--ne-font);
	font-size: 1rem;
	line-height: 1.8;
	color: var(--ne-text);
	background: var(--ne-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	line-height: 1.4;
	color: var(--ne-forest);
	font-weight: 700;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { padding: 0; }

:focus-visible {
	outline: 2px solid var(--ne-forest);
	outline-offset: 2px;
	border-radius: var(--ne-radius-sm);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ne-skip-link {
	position: absolute;
	top: -100px;
	right: 1rem;
	z-index: 200;
	background: var(--ne-forest);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: var(--ne-radius);
	font-weight: 700;
}
.ne-skip-link:focus { top: 0.5rem; }

.ne-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--ne-gutter);
}
.ne-container--narrow { max-width: 820px; }

.ne-main { padding-block: 1rem 3.5rem; min-height: 50vh; }
@media (min-width: 768px) { .ne-main { padding-block: 1.5rem 4.5rem; } }

.ne-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   دکمه‌ها و لینک‌ها
   ========================================================================== */
.ne-btn,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.6rem 1.15rem;
	border-radius: var(--ne-radius);
	border: 1px solid transparent;
	font-family: var(--ne-font);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
	white-space: nowrap;
	transition: background-color 180ms var(--ne-ease), border-color 180ms var(--ne-ease), color 180ms var(--ne-ease), transform 120ms var(--ne-ease);
}
.ne-btn:active,
.woocommerce .button:active { transform: translateY(1px); }

.ne-btn--primary,
.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce #payment #place_order,
.woocommerce .single_add_to_cart_button.button {
	background: var(--ne-forest);
	color: #fff;
}
.ne-btn--primary:hover,
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce #payment #place_order:hover,
.woocommerce .single_add_to_cart_button.button:hover {
	background: var(--ne-forest-soft);
	color: #fff;
}

.ne-btn--accent { background: var(--ne-earth); color: #fff; }
.ne-btn--accent:hover { background: var(--ne-earth-dark); }

.ne-btn--ghost,
.woocommerce .button:not(.alt) {
	background: var(--ne-paper);
	color: var(--ne-forest);
	border-color: var(--ne-border-strong);
}
.ne-btn--ghost:hover,
.woocommerce .button:not(.alt):hover {
	background: var(--ne-sage);
	color: var(--ne-forest);
}

.ne-btn--on-dark {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.28);
}
.ne-btn--on-dark:hover { background: rgba(255, 255, 255, 0.18); }

.ne-btn--sm { min-height: 38px; padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.ne-btn--block { width: 100%; }
.ne-btn[disabled], .ne-btn:disabled { opacity: 0.6; cursor: wait; }
.ne-btn .ne-icon { width: 18px; height: 18px; }

.ne-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--ne-forest);
	font-weight: 700;
	font-size: 0.9rem;
	border-bottom: 1px solid transparent;
	transition: border-color 160ms var(--ne-ease);
}
.ne-link:hover { border-bottom-color: currentColor; }
.ne-link .ne-icon { width: 16px; height: 16px; }

.ne-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.6rem;
	border: 0;
	border-radius: var(--ne-radius);
	background: transparent;
	color: var(--ne-forest);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms var(--ne-ease);
}
.ne-iconbtn:hover { background: var(--ne-sage); }
.ne-iconbtn--on-dark { color: #fff; }
.ne-iconbtn--on-dark:hover { background: rgba(255, 255, 255, 0.14); }
.ne-iconbtn .ne-icon { width: 22px; height: 22px; }
.ne-iconbtn__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
@media (min-width: 1440px) {
	.ne-iconbtn__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ==========================================================================
   نوار بالا و هدر
   ========================================================================== */
.ne-topbar {
	background: var(--ne-forest-dark);
	color: #E3ECDF;
	font-size: 0.78rem;
	line-height: 1.6;
}
.ne-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	min-height: 34px;
	padding-block: 0.3rem;
}
.ne-topbar__text { display: none; }
.ne-topbar__ship { display: inline-flex; align-items: center; gap: 0.4rem; }
.ne-topbar__ship .ne-icon { width: 16px; height: 16px; }

.ne-header {
	position: sticky;
	top: 0;
	z-index: var(--ne-z-header);
	background: rgba(250, 248, 241, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ne-border);
	transition: box-shadow 200ms var(--ne-ease);
}
.ne-header.is-scrolled { box-shadow: 0 6px 18px rgba(22, 48, 31, 0.08); }
.admin-bar .ne-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ne-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .ne-header { top: 0; } }

.ne-header__bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--ne-header-h);
}

.ne-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
	margin-inline-end: auto;
}
.ne-brand__logo {
	display: block;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	object-fit: contain;
}
.ne-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ne-brand__title {
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ne-forest);
	line-height: 1.3;
	white-space: nowrap;
}
.ne-brand__subtitle { display: none; }

.ne-nav { display: none; }

.ne-header__actions { display: flex; align-items: center; gap: 0.15rem; }

.ne-cartbtn { position: relative; }
.ne-cartbtn__count {
	position: absolute;
	top: 4px;
	left: 2px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ne-earth);
	color: #fff;
	font-size: 0.7rem;
	line-height: 19px;
	text-align: center;
}
.ne-cartbtn__count.is-empty { display: none; }

.ne-subbar { display: none; }

@media (min-width: 1024px) and (max-width: 1279px) { .ne-brand__subtitle { display: none !important; } }
@media (min-width: 640px) {
	.ne-topbar__inner { justify-content: space-between; }
	.ne-topbar__text { display: inline; }
	.ne-brand__subtitle {
		display: block;
		font-size: 0.72rem;
		color: var(--ne-muted);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 34ch;
	}
}

@media (min-width: 1024px) {
	.ne-header__menu-btn { display: none; }
	.ne-header__bar { gap: 1.5rem; }
	.ne-brand { margin-inline-end: 0; }
	.ne-brand__logo { width: 44px; height: 44px; }
	.ne-brand__title { font-size: 1.12rem; }
	.ne-nav { display: block; margin-inline-end: auto; }
	.ne-nav__list {
		display: flex;
		align-items: center;
		gap: 0.25rem;
		list-style: none;
		margin: 0;
	}
	.ne-nav__list a {
		display: block;
		white-space: nowrap;
		padding: 0.45rem 0.7rem;
		border-radius: var(--ne-radius);
		font-size: 0.92rem;
		color: var(--ne-text);
		transition: background-color 160ms var(--ne-ease), color 160ms var(--ne-ease);
	}
	.ne-nav__list a:hover { background: var(--ne-sage); color: var(--ne-forest); }
	.ne-nav__list .current-menu-item > a { color: var(--ne-forest); font-weight: 700; background: var(--ne-sage); }
	.ne-subbar {
		display: block;
		border-top: 1px solid var(--ne-border);
	}
	.ne-cat-links {
		display: flex;
		gap: 0.25rem;
		list-style: none;
		margin: 0;
		padding-block: 0.35rem;
		overflow-x: auto;
	}
	.ne-cat-links a {
		display: block;
		padding: 0.3rem 0.75rem;
		border-radius: 999px;
		font-size: 0.85rem;
		color: var(--ne-muted);
		white-space: nowrap;
		transition: color 160ms var(--ne-ease), background-color 160ms var(--ne-ease);
	}
	.ne-cat-links a:hover,
	.ne-cat-links a.is-active { color: var(--ne-forest); background: var(--ne-sage); }
}

/* جست‌وجو */
.ne-search {
	display: flex;
	align-items: center;
	background: var(--ne-paper);
	border: 1px solid var(--ne-border-strong);
	border-radius: var(--ne-radius);
	overflow: hidden;
	transition: border-color 160ms var(--ne-ease), box-shadow 160ms var(--ne-ease);
}
.ne-search:focus-within { border-color: var(--ne-forest); box-shadow: 0 0 0 3px rgba(35, 75, 54, 0.12); }
.ne-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 42px;
	padding: 0.4rem 0.8rem;
	border: 0;
	background: transparent;
	font-size: 0.9rem;
	outline: none;
}
.ne-search__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 42px;
	border: 0;
	background: transparent;
	color: var(--ne-forest);
	cursor: pointer;
}
.ne-header .ne-search--header { display: none; }
.ne-header .ne-search--subbar { display: none; }
@media (min-width: 1024px) and (max-width: 1199px) {
	.ne-subbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
	.ne-header .ne-search--subbar { display: flex; width: 240px; }
	.ne-header .ne-search--subbar input[type="search"] { min-height: 36px; }
	.ne-header .ne-search--subbar .ne-search__btn { height: 36px; }
}
@media (min-width: 1200px) { .ne-header .ne-search--header { display: flex; width: 240px; } }
@media (min-width: 1360px) { .ne-header .ne-search--header { width: 280px; } }

/* ==========================================================================
   منوی کشویی موبایل و مودال‌ها
   ========================================================================== */
.ne-drawer,
.ne-modal {
	position: fixed;
	inset: 0;
	z-index: var(--ne-z-drawer);
}
.ne-modal { z-index: var(--ne-z-modal); display: grid; place-items: center; padding: 1rem; }
.ne-drawer[hidden], .ne-modal[hidden] { display: none; }

.ne-drawer__backdrop,
.ne-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 32, 22, 0.55);
	opacity: 0;
	transition: opacity 220ms var(--ne-ease);
}
.is-open > .ne-drawer__backdrop,
.is-open > .ne-modal__backdrop { opacity: 1; }

.ne-drawer__panel {
	position: absolute;
	inset-block: 0;
	right: 0;
	width: min(86vw, 360px);
	background: var(--ne-cream);
	padding: 0.75rem 1rem 2rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-shadow: var(--ne-shadow-lg);
	transform: translateX(100%);
	transition: transform 240ms var(--ne-ease);
}
.ne-drawer.is-open .ne-drawer__panel { transform: none; }
.ne-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}
.ne-drawer__title { font-weight: 700; color: var(--ne-forest); }
.ne-drawer .ne-search { margin-bottom: 1rem; }
.ne-drawer__list { list-style: none; margin: 0 0 1rem; }
.ne-drawer__list a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 0.75rem;
	border-radius: var(--ne-radius);
	font-size: 1rem;
	color: var(--ne-text);
}
.ne-drawer__list a:hover,
.ne-drawer__list .current-menu-item > a { background: var(--ne-sage); color: var(--ne-forest); font-weight: 700; }
.ne-drawer__list--sub a { min-height: 44px; font-size: 0.92rem; color: var(--ne-muted); }
.ne-drawer__label {
	margin: 0.5rem 0.75rem 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ne-muted);
}
.ne-drawer__contact {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0.75rem 0;
	padding-top: 1rem;
	border-top: 1px solid var(--ne-border);
	font-size: 0.9rem;
	color: var(--ne-muted);
}

.ne-modal__panel {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;
	background: var(--ne-paper);
	border-radius: var(--ne-radius-lg);
	padding: 1.5rem 1.25rem 1.25rem;
	box-shadow: var(--ne-shadow-lg);
	transform: translateY(12px);
	opacity: 0;
	transition: transform 220ms var(--ne-ease), opacity 220ms var(--ne-ease);
}
.ne-modal.is-open .ne-modal__panel { transform: none; opacity: 1; }
.ne-modal__panel--narrow { max-width: 440px; }
.ne-modal__close { position: absolute; top: 0.5rem; left: 0.5rem; }
.ne-modal__title { font-size: 1.2rem; margin: 0 0 0.75rem; padding-left: 2.5rem; }
@media (min-width: 768px) { .ne-modal__panel { padding: 2rem; } }

/* مودال شناسنامه */
.ne-pm { display: grid; gap: 1.25rem; }
.ne-pm__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ne-radius);
	background: var(--ne-sage);
}
.ne-pm__meta { font-size: 0.8rem; color: var(--ne-muted); margin-bottom: 0.25rem; }
.ne-pm__price { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 1.1rem; color: var(--ne-forest); }
.ne-pm__desc { font-size: 0.9rem; color: var(--ne-muted); }
.ne-pm__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ne-pm__actions .ne-btn { flex: 1 1 auto; }
@media (min-width: 700px) { .ne-pm { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* ==========================================================================
   فرم‌ها
   ========================================================================== */
.ne-form { display: grid; gap: 0.9rem; }
.ne-form[hidden] { display: none; }
.ne-form__note { font-size: 0.88rem; color: var(--ne-muted); margin: 0; }
.ne-form__hint { font-size: 0.78rem; color: var(--ne-muted); margin: -0.4rem 0 0; }
.ne-form__msg { margin: 0.75rem 0 0; font-size: 0.88rem; font-weight: 700; color: var(--ne-success); min-height: 1.5em; }
.ne-form__msg.is-error { color: var(--ne-danger); }

.ne-field { display: grid; gap: 0.35rem; min-width: 0; }
.ne-field label,
.woocommerce form .form-row label {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ne-forest);
}
.ne-field-row { display: grid; gap: 0.9rem; }
@media (min-width: 560px) { .ne-field-row { grid-template-columns: 1fr 1fr; } }

.ne-field input,
.ne-field select,
.ne-field textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty,
.select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 46px;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--ne-border-strong);
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	font-size: 1rem;
	transition: border-color 160ms var(--ne-ease), box-shadow 160ms var(--ne-ease);
}
.ne-field input:focus,
.ne-field select:focus,
.ne-field textarea:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: none;
	border-color: var(--ne-forest);
	box-shadow: 0 0 0 3px rgba(35, 75, 54, 0.12);
}
#ne-sms-otp { text-align: center; letter-spacing: 0.4em; font-size: 1.2rem; }

.ne-alert {
	padding: 0.75rem 1rem;
	border-radius: var(--ne-radius);
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0;
}
.ne-alert--success { background: var(--ne-sage); color: var(--ne-success); }
.ne-alert--error { background: #FDECEA; color: var(--ne-danger); }

/* ==========================================================================
   اجزای مشترک
   ========================================================================== */
.ne-section { margin-block: 2.5rem; }
.ne-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1.25rem;
}
.ne-section__title { font-size: 1.3rem; margin-bottom: 0.25rem; }
.ne-section__lead { color: var(--ne-muted); font-size: 0.9rem; margin: 0; max-width: 60ch; }
@media (min-width: 768px) { .ne-section { margin-block: 3.5rem; } .ne-section__title { font-size: 1.5rem; } }

.ne-page-head { margin-block: 0.5rem 1.5rem; }
.ne-page-head__title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.ne-page-head__lead { color: var(--ne-muted); max-width: 70ch; margin: 0; }
@media (min-width: 768px) { .ne-page-head__title { font-size: 1.9rem; } }

.ne-crumbs,
.woocommerce .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 1rem;
	font-size: 0.8rem;
	color: var(--ne-muted);
}
.ne-crumbs a:hover { color: var(--ne-forest); }
.ne-crumbs__sep { opacity: 0.5; }

.ne-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--ne-sage);
	color: var(--ne-forest);
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0;
}
.ne-chip[hidden] { display: none; }
.ne-chips {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding-bottom: 0.25rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.ne-chips::-webkit-scrollbar { display: none; }
.ne-chip--link {
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
	color: var(--ne-text);
	font-weight: 400;
	white-space: nowrap;
	min-height: 38px;
	transition: background-color 160ms var(--ne-ease), border-color 160ms var(--ne-ease);
}
.ne-chip--link:hover { border-color: var(--ne-border-strong); }
.ne-chip--link.is-active { background: var(--ne-forest); border-color: var(--ne-forest); color: #fff; font-weight: 700; }

.ne-panel {
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg);
	padding: 1.25rem;
}
.ne-panel__title { font-size: 1.1rem; margin-bottom: 0.25rem; }
@media (min-width: 768px) { .ne-panel { padding: 1.75rem; } }

.ne-split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .ne-split { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.ne-prose { max-width: 70ch; font-size: 1rem; }
.ne-prose h2 { font-size: 1.25rem; margin-top: 1.5em; }
.ne-prose h3 { font-size: 1.1rem; margin-top: 1.25em; }
.ne-prose ul, .ne-prose ol { padding-inline-start: 1.25rem; margin: 0 0 1em; }
.ne-prose li { margin-bottom: 0.35em; }
.ne-prose a { color: var(--ne-forest); text-decoration: underline; text-underline-offset: 3px; }

.ne-empty {
	text-align: center;
	padding: 2.5rem 1.25rem;
	background: var(--ne-paper);
	border: 1px dashed var(--ne-border-strong);
	border-radius: var(--ne-radius-lg);
}
.ne-empty__title { font-size: 1.1rem; font-weight: 700; color: var(--ne-forest); }
.ne-search--page { max-width: 420px; margin: 1.5rem auto; }

/* صفحه ۴۰۴ */
.ne-404 {
	position: relative;
	text-align: center;
	padding: 2.5rem 1.25rem 2rem;
	margin-top: 1rem;
	border-radius: var(--ne-radius-lg);
	background:
		radial-gradient(circle at 50% 0%, rgba(169, 126, 79, 0.12), transparent 60%),
		linear-gradient(180deg, var(--ne-sage), var(--ne-cream));
	overflow: hidden;
}
.ne-404__code {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	font-size: clamp(5rem, 22vw, 9rem);
	font-weight: 700;
	line-height: 1;
	color: var(--ne-forest);
	margin-bottom: 1rem;
	direction: rtl;
}
.ne-404__mark {
	width: 0.95em;
	height: 0.95em;
	object-fit: contain;
	animation: ne-404-sway 5s ease-in-out infinite;
	transform-origin: 50% 85%;
}
@keyframes ne-404-sway {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(4deg); }
}
.ne-404__title { font-size: 1.35rem; color: var(--ne-forest); margin-bottom: 0.5rem; }
.ne-404__lead { color: var(--ne-muted); max-width: 46ch; margin: 0 auto; }
.ne-404__search { max-width: 460px; margin: 1.5rem auto 1rem; box-shadow: var(--ne-shadow); }
.ne-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.ne-404__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
@media (min-width: 768px) {
	.ne-404 { padding: 3.5rem 2rem 3rem; }
	.ne-404__title { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ne-404__mark { animation: none; }
}

.ne-price { margin: 0; font-weight: 700; color: var(--ne-forest); font-variant-numeric: tabular-nums; }
.ne-price--lg { font-size: 1.4rem; }
.ne-price del { color: var(--ne-muted); font-weight: 400; font-size: 0.85em; }
.ne-price ins { text-decoration: none; }

.ne-admin-edit {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	z-index: var(--ne-z-hotspot);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	border-radius: var(--ne-radius);
	background: rgba(15, 32, 22, 0.72);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}
.ne-admin-edit .ne-icon { width: 16px; height: 16px; }

/* ==========================================================================
   بنر صفحه اصلی
   ========================================================================== */
.ne-hero {
	position: relative;
	margin-block: 0.5rem 1rem;
	background: var(--ne-forest-dark);
	color: #fff;
	border-radius: var(--ne-radius-lg);
	overflow: hidden;
}
.ne-hero__slide { display: grid; }
.ne-hero__slide[hidden] { display: none; }
.ne-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem 1.25rem 4.25rem;
	order: 2;
}
.ne-hero__kicker { font-size: 0.82rem; color: #C9D9C3; margin-bottom: 0.5rem; }
.ne-hero__title { color: #fff; font-size: 1.45rem; line-height: 1.45; margin-bottom: 0.75rem; }
.ne-hero__subtitle { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; max-width: 52ch; margin-bottom: 1.25rem; }
.ne-hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ne-hero__visual {
	position: relative;
	order: 1;
	aspect-ratio: 16 / 10;
	background: #1D3B2A;
}
.ne-hero__visual > img { width: 100%; height: 100%; object-fit: cover; }
.ne-hero__controls {
	position: absolute;
	bottom: 0.75rem;
	right: 1rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.ne-hero__dots { display: flex; gap: 0.4rem; }
.ne-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: width 200ms var(--ne-ease), background-color 200ms var(--ne-ease);
}
.ne-hero__dot.is-active { width: 28px; background: var(--ne-earth); }

@media (min-width: 900px) {
	.ne-hero { margin-block: 1rem 1.5rem; }
	.ne-hero__slide { grid-template-columns: 1fr 1fr; min-height: 460px; }
	.ne-hero__content { order: 1; padding: 2.75rem 2.75rem 5rem; }
	.ne-hero__visual { order: 2; aspect-ratio: auto; }
	.ne-hero__title { font-size: 2.1rem; }
	.ne-hero__controls { right: 2.75rem; bottom: 1.5rem; }
}

/* نقاط (+) روی تصویر بنر */
.ne-hotspot { position: absolute; z-index: var(--ne-z-hotspot); }
.ne-hotspot__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	min-height: 36px;
	padding: 0.3rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(15, 32, 22, 0.7);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms var(--ne-ease);
}
.ne-hotspot__btn .ne-icon { width: 16px; height: 16px; }
.ne-hotspot__btn:hover,
.ne-hotspot__btn[aria-expanded="true"] { background: var(--ne-earth); }
.ne-hotspot__card {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	width: min(240px, 70vw);
	padding: 0.85rem;
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	color: var(--ne-text);
	box-shadow: var(--ne-shadow-lg);
}
.ne-hotspot__title { font-weight: 700; color: var(--ne-forest); font-size: 0.88rem; margin-bottom: 0.25rem; }
.ne-hotspot__text { font-size: 0.8rem; color: var(--ne-muted); line-height: 1.7; margin-bottom: 0.5rem; }
@media (max-width: 599px) {
	.ne-hotspot__btn span { display: none; }
	.ne-hotspot__btn { width: 36px; padding: 0; justify-content: center; }
}

/* ==========================================================================
   دسته‌ها، کارت محصول و شبکه
   ========================================================================== */
.ne-cat-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 0;
}
@media (min-width: 768px) { .ne-cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.ne-cat-tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 96px;
	height: 100%;
	padding: 1rem;
	border-radius: var(--ne-radius-lg);
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
	transition: border-color 180ms var(--ne-ease), background-color 180ms var(--ne-ease);
}
.ne-cat-tile:hover { border-color: var(--ne-forest); background: var(--ne-sage); }
.ne-cat-tile__name { font-weight: 700; color: var(--ne-forest); line-height: 1.5; }
.ne-cat-tile__count { font-size: 0.78rem; color: var(--ne-muted); }

.ne-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}
@media (min-width: 768px) { .ne-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .ne-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ne-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg);
	overflow: hidden;
	transition: border-color 180ms var(--ne-ease), box-shadow 180ms var(--ne-ease);
}
.ne-card:hover { border-color: var(--ne-border-strong); box-shadow: var(--ne-shadow); }
.ne-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--ne-sage);
	overflow: hidden;
}
.ne-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ne-ease); }
.ne-card:hover .ne-card__media img { transform: scale(1.03); }
.ne-card__flag {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	padding: 0.15rem 0.55rem;
	border-radius: var(--ne-radius-sm);
	background: rgba(15, 32, 22, 0.78);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
}
.ne-card__body { display: flex; flex-direction: column; flex: 1; padding: 0.75rem; }
.ne-card__meta {
	font-size: 0.72rem;
	color: var(--ne-muted);
	margin: 0 0 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ne-card__title {
	font-size: 0.92rem;
	line-height: 1.6;
	margin: 0 0 0.5rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ne-card__title a:hover { color: var(--ne-forest-soft); }
.ne-card__care {
	display: none;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	font-size: 0.75rem;
	color: var(--ne-forest-soft);
	margin: 0 0 0.6rem;
}
.ne-card__footer { margin-top: auto; display: grid; gap: 0.5rem; }
.ne-card__footer .ne-price { font-size: 0.95rem; }
.ne-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.ne-card__actions .ne-btn { padding-inline: 0.4rem; }
@media (min-width: 768px) {
	.ne-card__body { padding: 1rem; }
	.ne-card__title { font-size: 1rem; }
	.ne-card__care { display: flex; }
}

/* ==========================================================================
   فروشگاه
   ========================================================================== */
.ne-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}
.ne-toolbar .woocommerce-result-count { margin: 0; font-size: 0.85rem; color: var(--ne-muted); }
.ne-toolbar__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ne-toolbar .woocommerce-ordering { margin: 0; }
.ne-toolbar .woocommerce-ordering select {
	min-height: 42px;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--ne-border-strong);
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	font-size: 0.85rem;
}
.ne-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 42px;
	padding: 0 0.85rem;
	border: 1px solid var(--ne-border-strong);
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	font-size: 0.85rem;
}
.ne-toggle::before {
	content: "";
	width: 30px;
	height: 18px;
	border-radius: 999px;
	background: #CBD5CC;
	box-shadow: inset -12px 0 0 2px #CBD5CC, inset -12px 0 0 9px #fff;
	transition: box-shadow 180ms var(--ne-ease), background-color 180ms var(--ne-ease);
}
.ne-toggle.is-on::before { background: var(--ne-forest); box-shadow: inset 12px 0 0 2px var(--ne-forest), inset 12px 0 0 9px #fff; }

.woocommerce nav.woocommerce-pagination,
.page-numbers:not(li) { margin-top: 2rem; }
.woocommerce nav.woocommerce-pagination ul,
ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	list-style: none;
	border: 0;
	margin: 2rem 0 0;
}
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
ul.page-numbers a,
ul.page-numbers span {
	display: grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 0.6rem;
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	color: var(--ne-text);
	font-size: 0.9rem;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
ul.page-numbers .current { background: var(--ne-forest); border-color: var(--ne-forest); color: #fff; }

/* ==========================================================================
   صفحه محصول
   ========================================================================== */
.ne-product { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ne-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }

.ne-product__stage {
	aspect-ratio: 1 / 1;
	border-radius: var(--ne-radius-lg);
	overflow: hidden;
	background: var(--ne-sage);
}
.ne-product__image { width: 100%; height: 100%; object-fit: cover; }
.ne-product__thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; }
.ne-product__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--ne-radius);
	overflow: hidden;
	background: var(--ne-sage);
	cursor: pointer;
	transition: border-color 160ms var(--ne-ease);
}
.ne-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ne-product__thumb.is-active { border-color: var(--ne-forest); }
@media (min-width: 900px) { .ne-product__gallery { position: sticky; top: calc(var(--ne-header-h) + 3.5rem); } }

.ne-product__meta { font-size: 0.85rem; color: var(--ne-muted); margin-bottom: 0.25rem; }
.ne-product__title { font-size: 1.45rem; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .ne-product__title { font-size: 1.85rem; } }
.ne-product__price { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.ne-product__excerpt { color: var(--ne-muted); }

.ne-product__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.6rem;
	margin-block: 1.25rem 1.75rem;
}
.ne-product__buy form.cart { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 !important; }
.ne-product__buy .quantity .qty { width: 80px; text-align: center; }
.ne-product__buy .stock { width: 100%; margin: 0 0 0.25rem; font-size: 0.85rem; font-weight: 700; }
.ne-product__buy .stock.in-stock { color: var(--ne-success); }
.ne-product__buy .stock.out-of-stock { color: var(--ne-danger); }
@media (max-width: 559px) {
	.ne-product__buy, .ne-product__buy form.cart { width: 100%; }
	.ne-product__buy .single_add_to_cart_button { flex: 1; }
	.ne-product__buy > .ne-btn { width: 100%; }
}

.ne-passport {
	padding: 1.25rem;
	border-radius: var(--ne-radius-lg);
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
}
.ne-passport__title { font-size: 1.05rem; margin-bottom: 0.75rem; }

.ne-specs { display: grid; gap: 0; margin: 0; }
.ne-specs__row {
	display: grid;
	gap: 0.1rem;
	padding-block: 0.6rem;
	border-top: 1px solid var(--ne-border);
	font-size: 0.9rem;
}
.ne-specs__row:first-child { border-top: 0; }
.ne-specs dt { color: var(--ne-muted); font-size: 0.82rem; }
.ne-specs dd { margin: 0; font-weight: 700; color: var(--ne-text); }
.ne-specs--compact .ne-specs__row { font-size: 0.85rem; padding-block: 0.45rem; }
@media (min-width: 560px) {
	.ne-specs__row { grid-template-columns: 9rem 1fr; gap: 0.75rem; }
	.ne-specs--compact .ne-specs__row { grid-template-columns: 7rem 1fr; }
}

/* ==========================================================================
   مقاله‌ها و تماس
   ========================================================================== */
.ne-articles { display: grid; gap: 1rem; }
@media (min-width: 700px) { .ne-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ne-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.ne-article-card {
	padding: 1.25rem;
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg);
	transition: border-color 180ms var(--ne-ease);
}
.ne-article-card:hover { border-color: var(--ne-border-strong); }
.ne-article-card__media { display: block; margin: -1.25rem -1.25rem 1rem; aspect-ratio: 16 / 9; overflow: hidden; }
.ne-article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ne-article-card__title { font-size: 1.05rem; line-height: 1.6; }
.ne-article-card__title a:hover { color: var(--ne-forest-soft); }
.ne-article-card__excerpt { font-size: 0.9rem; color: var(--ne-muted); margin: 0; }
.ne-page__figure { margin: 0 0 1.5rem; border-radius: var(--ne-radius-lg); overflow: hidden; }

.ne-contact { margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.ne-contact__row { display: grid; gap: 0.15rem; }
.ne-contact dt { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--ne-muted); }
.ne-contact dt .ne-icon { width: 16px; height: 16px; }
.ne-contact dd { margin: 0; font-weight: 700; }

/* ==========================================================================
   پابرگ
   ========================================================================== */
.ne-footer {
	margin-top: 2rem;
	background: var(--ne-forest-dark);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
}
.ne-footer__grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 700px) { .ne-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ne-footer__grid { grid-template-columns: 1.3fr 1fr 1.3fr auto; padding-block: 3.5rem; } }
.ne-footer__title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.ne-footer__text { max-width: 40ch; }
.ne-footer__note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.ne-footer__heading { font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.ne-footer__list { list-style: none; margin: 0; display: grid; gap: 0.35rem; }
.ne-footer__list a { display: inline-block; padding-block: 0.2rem; transition: color 160ms var(--ne-ease); }
.ne-footer__list a:hover { color: #fff; }
.ne-footer__list--icons li { display: flex; gap: 0.5rem; align-items: flex-start; }
.ne-footer__list--icons .ne-icon { width: 18px; height: 18px; margin-top: 0.3rem; opacity: 0.7; }
.ne-footer__badges { display: flex; gap: 0.75rem; align-items: flex-start; }
.ne-footer__badge { background: #fff; border-radius: var(--ne-radius); padding: 0.4rem; }
.ne-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }
.ne-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding-block: 1rem;
	color: rgba(255, 255, 255, 0.6);
}
.ne-footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   صفحات ووکامرس: پیام‌ها، سبد خرید، تسویه‌حساب، حساب کاربری
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	padding: 0.9rem 1.1rem;
	border: 0;
	border-inline-start: 4px solid var(--ne-forest);
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	box-shadow: var(--ne-shadow);
	font-size: 0.92rem;
	list-style: none;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before { display: none; }
.woocommerce .woocommerce-error { border-inline-start-color: var(--ne-danger); }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button { order: 2; }

.ne-wc-content { min-width: 0; }

.woocommerce table.shop_table {
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg);
	border-collapse: separate;
	background: var(--ne-paper);
	margin-bottom: 1.5rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 0.85rem; border-top-color: var(--ne-border); text-align: right; }
.woocommerce table.shop_table th { font-weight: 700; color: var(--ne-forest); }
.woocommerce table.cart img { width: 64px; border-radius: var(--ne-radius); }
.woocommerce table.cart td.actions .coupon .input-text { min-height: 44px; width: 150px; border-radius: var(--ne-radius); border: 1px solid var(--ne-border-strong); padding: 0.4rem 0.7rem; }
.woocommerce a.remove { color: var(--ne-danger) !important; }
.woocommerce a.remove:hover { background: var(--ne-danger); color: #fff !important; }

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals { width: 100%; float: none; }
@media (min-width: 900px) {
	.woocommerce .cart-collaterals .cart_totals { max-width: 460px; margin-inline-start: auto; }
}
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { font-size: 1.15rem; }
.woocommerce ul#shipping_method li { margin-bottom: 0.5rem; }
.woocommerce ul#shipping_method li label { font-size: 0.9rem; }

.woocommerce-checkout .col2-set,
.woocommerce-page .col2-set { width: 100%; }
@media (min-width: 900px) {
	.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
	.woocommerce-checkout form.checkout > .col2-set { grid-column: 1; }
	.woocommerce-checkout form.checkout > #order_review_heading,
	.woocommerce-checkout form.checkout > #order_review { grid-column: 2; }
	.woocommerce-checkout form.checkout > #order_review_heading { grid-row: 1; }
	.woocommerce-checkout form.checkout > #order_review { grid-row: 2 / span 3; }
	.woocommerce-checkout .col2-set .col-1,
	.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
}
.woocommerce-checkout #payment {
	background: var(--ne-paper) !important;
	border: 1px solid var(--ne-border);
	border-radius: var(--ne-radius-lg) !important;
}
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--ne-border); padding: 1rem; }
.woocommerce-checkout #payment div.payment_box { background: var(--ne-sage); color: var(--ne-text); border-radius: var(--ne-radius); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--ne-sage); }
.woocommerce #payment #place_order { width: 100%; min-height: 52px; font-size: 1rem; float: none; }
.woocommerce form .form-row { padding: 0; margin: 0 0 1rem; }
.woocommerce form .form-row .required { color: var(--ne-danger); text-decoration: none; }

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.5rem 0.9rem;
	border-radius: var(--ne-radius);
	background: var(--ne-paper);
	border: 1px solid var(--ne-border);
	font-size: 0.9rem;
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--ne-forest); color: #fff; border-color: var(--ne-forest); }
@media (min-width: 900px) {
	.woocommerce-account .woocommerce-MyAccount-navigation { width: 24%; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { flex-direction: column; }
	.woocommerce-account .woocommerce-MyAccount-content { width: 72%; }
}

/* جدول سبد خرید روی موبایل (حالت responsive خود ووکامرس) */
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 700; color: var(--ne-muted); }
	.woocommerce table.cart td.actions .coupon { display: flex; gap: 0.5rem; }
	.woocommerce table.shop_table_responsive { width: 100%; table-layout: fixed; }
	.woocommerce table.shop_table_responsive td { overflow-wrap: anywhere; }
	.woocommerce table.cart td.actions .coupon .input-text { flex: 1; width: auto; min-width: 0; }
	.woocommerce table.cart td.actions .coupon .button { flex-shrink: 0; }
	.woocommerce .quantity .qty { max-width: 96px; }
	.woocommerce table.cart td.actions > .button { width: 100%; margin-top: 0.5rem; }
}

/* ==========================================================================
   کاهش حرکت برای کاربرانی که در سیستم‌عامل آن را خواسته‌اند
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   ورود/عضویت فقط پیامکی: لینک «فراموشی گذرواژه» و پیام «لینک تعیین رمز به ایمیل» ووکامرس معنا ندارند
   ========================================================================== */
.woocommerce-account:not(.logged-in) .woocommerce-LostPassword,
.woocommerce-account:not(.logged-in) .lost_password,
.woocommerce-form-register > p:not([class]) {
	display: none;
}
