/* =========================================================
   Nexora — صفحة المنتجات (الأرشيف)
   لافتة + تصفية جانبية + شبكة + أقسام مكمّلة.
   نفس هوية الموقع: أخضر #0E7C57 · أسطح بيضاء · حواف مستديرة · IBM Plex Sans Arabic
   ========================================================= */

/* المسار (breadcrumb) يطبعه ووكومرس أعلى المحتوى */
.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 22px;
	font-size: 13px;
	color: var(--ink-soft);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--ink-soft); transition: color .16s; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--accent); }

/* =========================================================
   1. لافتة الصفحة
   ========================================================= */
.nx-shophero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	align-items: center;
	gap: 32px;
	background: linear-gradient(115deg, var(--sand) 0%, var(--surface) 62%);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 46px 48px;
	margin-bottom: 44px;
}
.nx-shophero::before {
	content: "";
	position: absolute;
	inset-block-start: -40%;
	inset-inline-start: -8%;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
	pointer-events: none;
}

.nx-shophero__text { position: relative; z-index: 1; }

.nx-shophero__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--accent-soft);
	color: var(--accent-deep);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: .01em;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: 16px;
}

.nx-shophero__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.25;
	color: var(--heading);
	margin: 0 0 14px;
}

.nx-shophero__desc {
	margin: 0;
	max-width: 46ch;
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.9;
}

.nx-shophero__perks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin: 24px 0 0;
}
.nx-shophero__perks li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--ink);
}
.nx-shophero__perks li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--good);
	flex: none;
}

.nx-shophero__media {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 220px;
}
.nx-shophero__ring {
	position: absolute;
	inset: 50% auto auto 50%;
	translate: -50% -50%;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--line);
}
.nx-shophero__media img,
.nx-shophero__media svg {
	position: relative;
	max-width: 78%;
	max-height: 230px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 22px 34px rgba(20, 19, 25, .2));
}

/* =========================================================
   2. تخطيط الصفحة — تصفية + شبكة
   ========================================================= */
.nx-shop {
	display: grid;
	grid-template-columns: 272px minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}
.nx-shop__main { min-width: 0; }

/* =========================================================
   3. لوح التصفية
   ========================================================= */
.nx-filters {
	position: sticky;
	top: 24px;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0 0 8px;
}

.nx-f__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0 14px;
	border-bottom: 1px solid var(--line);
}
.nx-f__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 16px;
	color: var(--ink);
	margin: 0;
	margin-inline-end: auto;
}
.nx-f__clear {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--accent);
	transition: opacity .16s;
}
.nx-f__clear:hover { opacity: .7; }

/* زر الإغلاق يظهر في وضع الدرج (الجوال) فقط */
.nx-f__close {
	display: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	place-items: center;
	flex: none;
}
.nx-f__close:hover { border-color: var(--accent); color: var(--accent); }

/* --- قسم قابل للطي --- */
.nx-f__sec { border-bottom: 1px solid var(--line); }
.nx-f__sec:last-of-type { border-bottom: 0; }

.nx-f__sum {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 17px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
	transition: color .16s;
}
.nx-f__sum::-webkit-details-marker { display: none; }
.nx-f__sum:hover { color: var(--accent); }

.nx-f__chev {
	display: grid;
	place-items: center;
	color: var(--ink-soft);
	transition: rotate .22s ease, color .16s;
}
.nx-f__chev svg { width: 16px; height: 16px; }
.nx-f__sec[open] .nx-f__chev { rotate: 180deg; color: var(--accent); }

.nx-f__body { padding-bottom: 20px; }

.nx-f__list { display: flex; flex-direction: column; gap: 3px; }

/* --- مربّع اختيار --- */
.nx-check {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 8px;
	margin-inline: -8px;
	border-radius: 10px;
	cursor: pointer;
	transition: background .16s;
}
.nx-check:hover { background: var(--surface); }
.nx-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
.nx-check__box {
	width: 18px;
	height: 18px;
	flex: none;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	display: grid;
	place-items: center;
	color: #fff;
	transition: background .16s, border-color .16s;
}
.nx-check__box svg { width: 11px; height: 11px; opacity: 0; transition: opacity .14s; }
.nx-check input:checked + .nx-check__box {
	background: var(--accent);
	border-color: var(--accent);
}
.nx-check input:checked + .nx-check__box svg { opacity: 1; }
.nx-check input:focus-visible + .nx-check__box {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.nx-check__label {
	font-size: 13.5px;
	color: var(--ink);
	line-height: 1.5;
	margin-inline-end: auto;
}
.nx-check input:checked ~ .nx-check__label { font-weight: 600; color: var(--accent-deep); }

.nx-check__count {
	font-size: 12px;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	flex: none;
}

/* --- شريط السعر --- */
/* الاتجاه LTR داخل الشريط: الأقل يسارًا والأعلى يمينًا (أوضح للأرقام). */
.nx-price { padding-top: 6px; }

.nx-price__track {
	position: relative;
	direction: ltr;
	height: 4px;
	margin: 10px 9px 0;
	border-radius: var(--radius-pill);
	background: var(--line);
}
.nx-price__fill {
	position: absolute;
	inset-block: 0;
	left: 0;
	right: 0;
	border-radius: inherit;
	background: var(--accent);
}

/* المدخلان متراكبان فوق المسار — الخلفية شفافة والإبهام فقط قابل للمس */
.nx-price__range {
	direction: ltr;
	position: relative;
	display: block;
	width: calc(100% - 4px);
	margin: -11px 2px 0;
	height: 18px;
	background: none;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}
.nx-price__range + .nx-price__range { margin-top: -18px; }
.nx-price__range::-webkit-slider-runnable-track { height: 18px; background: none; border: 0; }
.nx-price__range::-moz-range-track { height: 18px; background: none; border: 0; }

.nx-price__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--surface);
	border: 2px solid var(--accent);
	box-shadow: 0 2px 6px rgba(20, 20, 20, .18);
	cursor: grab;
	transition: transform .14s;
}
.nx-price__range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.nx-price__range::-moz-range-thumb {
	pointer-events: auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--surface);
	border: 2px solid var(--accent);
	box-shadow: 0 2px 6px rgba(20, 20, 20, .18);
	cursor: grab;
}
.nx-price__range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.nx-price__range:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.nx-price__fields {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}
.nx-price__field {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	padding: 9px 12px;
	transition: border-color .16s;
}
.nx-price__field:focus-within { border-color: var(--accent); }
.nx-price__cap { font-size: 11.5px; color: var(--ink-soft); flex: none; }
.nx-price__field input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: none;
	padding: 0;
	font: 600 13.5px/1.4 var(--font-head);
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}
.nx-price__field input:focus { outline: none; }
.nx-price__field input::-webkit-outer-spin-button,
.nx-price__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.nx-price__sep {
	width: 10px;
	height: 1px;
	background: var(--line);
	flex: none;
}

/* --- عيّنات الألوان --- */
.nx-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 12px 8px;
}
.nx-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.nx-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nx-swatch__dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sw, var(--surface-muted));
	border: 1px solid rgba(20, 20, 20, .12);
	box-shadow: 0 0 0 0 var(--accent);
	transition: box-shadow .16s, transform .16s;
}
.nx-swatch:hover .nx-swatch__dot { transform: scale(1.08); }
.nx-swatch input:checked + .nx-swatch__dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.nx-swatch input:focus-visible + .nx-swatch__dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.nx-swatch__name {
	font-size: 11.5px;
	color: var(--ink-soft);
	text-align: center;
	line-height: 1.4;
}
.nx-swatch input:checked ~ .nx-swatch__name { color: var(--accent-deep); font-weight: 600; }
.nx-swatch.is-plain .nx-swatch__dot {
	background: var(--surface-muted);
	position: relative;
}

/* --- شرائح الاختيار (مقاسات وغيرها) --- */
.nx-chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-pick { cursor: pointer; }
.nx-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nx-pick span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 8px 13px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--ink);
	transition: border-color .16s, background .16s, color .16s;
}
.nx-pick:hover span { border-color: var(--accent); color: var(--accent); }
.nx-pick input:checked + span {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	font-weight: 600;
}
.nx-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.nx-f__apply { width: 100%; margin-top: 18px; }

/* الحجاب خلف درج التصفية — الجوال فقط */
.nx-filters__scrim { display: none; }

/* =========================================================
   4. شريط الأدوات + شرائح التصفية المفعّلة
   ========================================================= */
.nx-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 24px;
}
.nx-toolbar__count {
	margin: 0;
	font-size: 13.5px;
	color: var(--ink-soft);
}
.nx-toolbar__count strong {
	color: var(--ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.nx-toolbar__tools { display: flex; align-items: center; gap: 10px; }

/* زر فتح التصفية — يظهر في الشاشات الصغيرة */
.nx-toolbar__filters {
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	padding: 10px 17px;
	font: 600 13px/1 var(--font-head);
	cursor: pointer;
	transition: border-color .16s, color .16s;
}
.nx-toolbar__filters:hover { border-color: var(--accent); color: var(--accent); }

/* نموذج الترتيب من ووكومرس */
.woocommerce .nx-toolbar .woocommerce-ordering { margin: 0; }
.woocommerce .nx-toolbar .woocommerce-ordering select {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: 10px 18px;
	padding-inline-end: 42px;
	font: 600 13px/1.3 var(--font-head);
	color: var(--ink);
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230E7C57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 15px center;
	background-size: 16px 16px;
	transition: border-color .16s;
}
.woocommerce .nx-toolbar .woocommerce-ordering select:hover { border-color: var(--accent); }

/* شرائح التصفية المفعّلة */
.nx-chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: -8px 0 26px;
}
.nx-chips__cap {
	font-size: 12.5px;
	color: var(--ink-soft);
	margin-inline-end: 2px;
}
.nx-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--accent-soft);
	color: var(--accent-deep);
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	padding: 7px 14px;
	font: 600 12.5px/1 var(--font-head);
	transition: background .16s, border-color .16s;
}
.nx-chip:hover { background: var(--surface); border-color: var(--accent); }
.nx-chip svg { opacity: .65; }
.nx-chip:hover svg { opacity: 1; }
.nx-chip--clear {
	background: none;
	color: var(--ink-soft);
	border-color: var(--line);
}
.nx-chip--clear:hover { color: var(--accent); border-color: var(--accent); background: none; }

/* =========================================================
   5. الشبكة والترقيم داخل عمود المحتوى
   ========================================================= */
.nx-shop__main ul.products,
.woocommerce .nx-shop__main ul.products {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px 22px;
	margin-bottom: 40px;
}

.woocommerce .nx-shop__main nav.woocommerce-pagination { margin-top: 8px; }

/* =========================================================
   6. لا نتائج
   ========================================================= */
.nx-noresults {
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 64px 32px;
}
.nx-noresults__mark {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
}
.nx-noresults__mark svg { width: 26px; height: 26px; }
.nx-noresults__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 10px;
}
.nx-noresults__text {
	margin: 0 auto 26px;
	max-width: 42ch;
	color: var(--ink-soft);
	font-size: 14.5px;
	line-height: 1.9;
}

/* =========================================================
   7. أقسام مكمّلة
   ========================================================= */
.nx-othercats { margin-top: 84px; }

.nx-othercats__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 26px;
}
.nx-othercats__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(22px, 2.6vw, 30px);
	color: var(--heading);
	margin: 0;
}
.nx-othercats .nx-shophero__label { margin-bottom: 12px; }

.nx-rail-nav { display: flex; gap: 8px; flex: none; }
.nx-rail-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: border-color .16s, color .16s, opacity .16s;
}
.nx-rail-btn:hover { border-color: var(--accent); color: var(--accent); }
.nx-rail-btn[disabled] { opacity: .35; cursor: default; }
.nx-rail-btn svg { width: 17px; height: 17px; }

/*
 * overflow-x: auto يجعل المحور الرأسي auto أيضًا (لا يمكن أن يبقى visible)،
 * فتُقصّ ظلال البطاقات من تحت ورفعة الهوفر من فوق. الحشو يفتح المساحة
 * داخل حاوية التمرير، والهامش السالب يعيد المسافات كما كانت.
 * ملاحظة: content-box يبقى بعرضه الأصلي فلا يتأثر حساب calc(50% - 11px).
 */
.nx-othercats__rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(50% - 11px);
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-block: 12px 34px;
	margin-block: -12px -34px;
	padding-inline: 18px;
	margin-inline: -18px;
}
.nx-othercats__rail::-webkit-scrollbar { display: none; }
.nx-othercats__rail > * { scroll-snap-align: start; }

.nx-catcard {
	display: grid;
	grid-template-columns: 1fr 42%;
	align-items: center;
	gap: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 26px 28px;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .28s cubic-bezier(.2, .7, .2, 1);
}
/*
 * ظل أخف من --shadow-lg: البطاقة هنا عريضة، والظل الثقيل يبدو ثقيلًا عليها
 * ويحتاج مساحة كبيرة داخل حاوية التمرير. الامتداد لتحت ~12px بدل ~32px.
 */
.nx-catcard:hover {
	border-color: var(--accent);
	box-shadow: 0 1px 3px rgba(20, 20, 20, .04), 0 12px 24px -12px rgba(20, 20, 20, .16);
	transform: translateY(-4px);
}

.nx-catcard__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nx-catcard__name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 19px;
	color: var(--ink);
	transition: color .18s;
}
.nx-catcard:hover .nx-catcard__name { color: var(--accent); }
.nx-catcard__count { font-size: 12.5px; color: var(--ink-soft); }
.nx-catcard__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font: 600 13px/1 var(--font-head);
	color: var(--accent);
}
.nx-catcard__cta svg { transition: translate .2s; }
.nx-catcard:hover .nx-catcard__cta svg { translate: -3px 0; }

.nx-catcard__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-plate);
	background: var(--surface-muted);
	overflow: hidden;
}
.nx-catcard__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 90% at 50% 100%, var(--accent-soft), transparent 65%);
}
.nx-catcard__media img,
.nx-catcard__media svg {
	position: relative;
	width: auto;
	height: auto;
	max-width: 72%;
	max-height: 72%;
	object-fit: contain;
	filter: drop-shadow(0 12px 20px rgba(20, 19, 25, .16));
	transition: transform .25s ease;
}
.nx-catcard:hover .nx-catcard__media img { transform: scale(1.05); }

/* =========================================================
   8. شريط ختامي
   ========================================================= */
.nx-shopcta {
	position: relative;
	overflow: hidden;
	text-align: center;
	margin-top: 84px;
	padding: 60px 32px;
	border-radius: var(--radius-card);
	background: var(--ink-deep);
	color: #fff;
}
.nx-shopcta::before {
	content: "";
	position: absolute;
	inset-block-start: -55%;
	inset-inline-start: 50%;
	translate: -50% 0;
	width: 720px;
	height: 720px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(14, 124, 87, .5) 0%, transparent 62%);
	pointer-events: none;
}
.nx-shopcta > * { position: relative; z-index: 1; }
.nx-shopcta__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(24px, 3vw, 34px);
	color: #fff;
	margin: 0 0 12px;
}
.nx-shopcta__text {
	margin: 0 auto 28px;
	max-width: 48ch;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
	line-height: 1.9;
}
.nx-shopcta__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}
.nx-shopcta__ghost {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: var(--radius-pill);
	padding: 14px 26px;
	font: 700 14px/1 var(--font-head);
	color: #fff;
	transition: border-color .18s, background .18s;
}
.nx-shopcta__ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* =========================================================
   9. الاستجابة
   ========================================================= */
@media (max-width: 1080px) {
	.nx-shop { grid-template-columns: 240px minmax(0, 1fr); gap: 26px; }
	.nx-shop__main ul.products,
	.woocommerce .nx-shop__main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nx-shophero { padding: 38px 34px; }
}

@media (max-width: 900px) {
	/* التصفية تصير درجًا منزلقًا */
	.nx-shop { grid-template-columns: minmax(0, 1fr); gap: 0; }

	/*
	 * الدرج يدخل من جهة البداية (يمين الشاشة في RTL) — نفس مكان الشريط
	 * الجانبي في سطح المكتب. translate ليس واعيًا بالاتجاه، و100% تزيح
	 * يمينًا أي خارج الشاشة تمامًا وهو المطلوب هنا.
	 */
	.nx-filters {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 120;
		width: min(340px, 88vw);
		max-height: 100vh;
		overflow-y: auto;
		background: var(--surface);
		padding: 0 22px 22px;
		border-start-end-radius: var(--radius-card);
		border-end-end-radius: var(--radius-card);
		box-shadow: var(--shadow-lg);
		translate: 100% 0;
		visibility: hidden;
		transition: translate .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
	}
	.nx-filters.is-open { translate: 0 0; visibility: visible; }

	.nx-filters__scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 110;
		background: rgba(11, 12, 14, .38);
		opacity: 0;
		transition: opacity .3s;
	}
	/* بدون هذا يتغلّب display:block على سمة hidden فيغطّي الحجاب الصفحة
	   ويمنع كل النقرات على الجوال. */
	.nx-filters__scrim[hidden] { display: none; }
	.nx-filters__scrim.is-open { opacity: 1; }

	.nx-f__close { display: grid; }
	.nx-toolbar__filters { display: inline-flex; }

	.nx-othercats__rail { grid-auto-columns: 82%; }
	.nx-othercats, .nx-shopcta { margin-top: 64px; }
}

@media (max-width: 780px) {
	.nx-shophero {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 32px 26px;
		margin-bottom: 32px;
	}
	.nx-shophero__media { order: -1; min-height: 180px; }
	.nx-shophero__ring { width: 178px; height: 178px; }
	.nx-shophero__media img,
	.nx-shophero__media svg { max-height: 178px; }
	.nx-shophero__desc { max-width: none; }

	.nx-catcard { grid-template-columns: 1fr 40%; padding: 20px; }
	.nx-catcard__name { font-size: 17px; }
	.nx-othercats__head { align-items: flex-start; }
	.nx-rail-nav { display: none; }
}

@media (max-width: 560px) {
	.nx-toolbar { gap: 12px; }
	.nx-toolbar__count { width: 100%; }
	.nx-toolbar__tools { width: 100%; justify-content: space-between; }
	.woocommerce .nx-toolbar .woocommerce-ordering select { width: 100%; }
	.woocommerce .nx-toolbar .woocommerce-ordering { flex: 1 1 auto; min-width: 0; }

	.nx-shop__main ul.products,
	.woocommerce .nx-shop__main ul.products { gap: 20px 14px; }

	.nx-shopcta { padding: 44px 22px; }
	.nx-noresults { padding: 46px 22px; }
}

/* حركات مخفّضة */
@media (prefers-reduced-motion: reduce) {
	.nx-catcard,
	.nx-catcard__media img,
	.nx-filters,
	.nx-filters__scrim,
	.nx-f__chev { transition: none; }
	.nx-catcard:hover { transform: none; }
}

/* =========================================================
   10. حالة الانتظار أثناء الانتقال بعد تغيير التصفية
   ========================================================= */
.nx-shop__main.is-loading {
	position: relative;
	pointer-events: none;
}
.nx-shop__main.is-loading ul.products {
	opacity: .45;
	transition: opacity .2s ease;
}
@media (prefers-reduced-motion: reduce) {
	.nx-shop__main.is-loading ul.products { transition: none; }
}

/* =========================================================
   11. فهرس الأقسام (/product-category/)
   ========================================================= */
.nx-shophero__actions { margin-top: 26px; }

/* صفحة فهرس الأقسام: ترويسة بلا صورة والنص في المنتصف */
.nx-shophero--centered {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
}
.nx-shophero--centered .nx-shophero__desc {
	max-width: 62ch;
	margin-inline: auto;
}
.nx-shophero--centered .nx-shophero__actions,
.nx-shophero--centered .nx-shophero__perks { justify-content: center; }

.nx-catsgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	/* البطاقات ترتفع عند المرور وظلّها يمتد تحتها — نفتح لهما مجالًا. */
	padding-block: 12px 34px;
	margin-block: -12px -34px;
}
.nx-catsgrid .nx-catcard { height: 100%; }

.nx-catcell { display: flex; flex-direction: column; gap: 12px; }

.nx-catsubs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-inline: 4px;
}
.nx-catsubs a {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: 7px 14px;
	font-size: 12.5px;
	color: var(--ink-soft);
	background: var(--surface);
	transition: border-color .16s, color .16s;
}
.nx-catsubs a:hover { border-color: var(--accent); color: var(--accent); }

body.nx-cats-index .nx-shopcta { margin-top: 76px; }

@media (max-width: 780px) {
	.nx-catsgrid { grid-template-columns: minmax(0, 1fr); }
}
