/*
Theme Name: Nexora Store
Theme URI: https://example.com/nexora-store
Author: Nexora
Author URI: https://example.com
Description: متجر Nexora — قالب ووردبريس/ووكومرس عربي RTL منفّذ من معاينة تصميم Nexora (بأسلوب وألوان قالب Template Shop): هيدر عائم pill، هيرو بشارة "جديد"، شبكة أقسام على شكل قوس، ونظام ألوان بوضع فاتح على CSS custom properties. الخط: IBM Plex Sans Arabic في كامل الموقع. (قالب مخصّص — لا علاقة له بقالب Nexora من Effe Themes.)
Version: 1.22.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexora-store
Tags: e-commerce, rtl-language-support, custom-menu, custom-logo, featured-images, translation-ready, full-width-template
*/

/* =========================================================
   1. Design tokens  (مطابقة لمعاينة تصميم Nexora)
   ========================================================= */
:root {
	color-scheme: light;

	/* هوية Nexora الرسمية */
	--paper: #FAFAF8;
	--sand: #F1EFEA;
	--bg: #FAFAF8;
	--surface: #FFFFFF;
	--surface-muted: #EFEDE9;

	--ink: #23272C;          /* النصوص */
	--ink-deep: #0B0C0E;     /* الأسطح الداكنة */
	--ink-soft: #6B6F75;     /* نص ثانوي */
	--heading: #0E7C57;      /* العناوين */

	--accent: #0E7C57;
	--accent-deep: #0B5F43;
	--accent-soft: #E4F1EB;
	--accent-ink: #FFFFFF;
	--line: #E2E0DA;
	--good: #12A06B;

	--shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px -12px rgba(20, 20, 20, .14);
	--shadow-lg: 0 2px 4px rgba(20, 20, 20, .05), 0 24px 48px -16px rgba(20, 20, 20, .22);

	--radius-card: 28px;
	--radius-plate: 20px;
	--radius-pill: 999px;
	--container: 1120px;

	--font-head: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
	--font-body: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

/* الموقع بالوضع الفاتح فقط. */

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	direction: rtl;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--heading);
	margin: 0;
	text-wrap: balance;
	line-height: 1.3;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.site-main { flex: 1 0 auto; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

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

.skip-link {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	background: var(--ink);
	color: var(--bg);
	padding: 10px 16px;
	border-radius: 0 0 12px 12px;
	z-index: 1000;
}
.skip-link:focus { inset-inline-start: 0; }

/* =========================================================
   3. Header — شريط إعلان + شريط عائم
   ========================================================= */
.nx-announce {
	background: var(--ink);
	color: rgba(255, 255, 255, .9);
	text-align: center;
	font-size: 13.5px;
}
.nx-announce a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 20px;
	color: inherit;
	transition: color .18s;
}
.nx-announce a:hover { color: #fff; }
.nx-announce__dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--good);
	flex: none;
}

.site-header { padding: 20px 24px 0; }

/* أزرار الأيقونات في الهيدر */
.nx-icon-btn {
	position: relative;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	flex: none;
	transition: border-color .16s, color .16s;
}
.nx-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nx-icon-btn svg { width: 17px; height: 17px; }
.nx-icon-btn__count {
	position: absolute;
	top: -4px;
	inset-inline-start: -4px;
	min-width: 19px; height: 19px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 11px;
	line-height: 19px;
	text-align: center;
}
.nx-icon-btn__count.is-zero { display: none; }

/* طبقة البحث */
.nx-search[hidden] { display: none !important; }
.nx-search { position: fixed; inset: 0; z-index: 1200; }
.nx-search__overlay {
	position: absolute; inset: 0;
	background: rgba(20, 19, 25, .42);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .26s ease;
}
.nx-search.is-open .nx-search__overlay { opacity: 1; }
.nx-search__panel {
	position: relative;
	max-width: 720px;
	margin: 14vh auto 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-lg);
	padding: 20px 22px 22px;
	transform: translateY(-14px);
	opacity: 0;
	transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.nx-search.is-open .nx-search__panel { transform: none; opacity: 1; }

/* شريط الإدخال */
.nx-search__bar { display: flex; align-items: center; gap: 12px; }
.nx-search__bar > svg { width: 20px; height: 20px; color: var(--ink-soft); flex: none; }
.nx-search__panel input[type="search"] {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font: 400 17px/1.5 var(--font-body);
	color: var(--ink);
	min-width: 0;
}
.nx-search__panel input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.nx-search__close {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink-soft);
	display: grid; place-items: center;
	cursor: pointer;
	flex: none;
}
.nx-search__close:hover { border-color: var(--accent); color: var(--accent); }

/* مؤشّر التحميل */
.nx-search__spin { display: none; flex: none; width: 16px; height: 16px; }
.nx-search.is-busy .nx-search__spin {
	display: block;
	border: 2px solid var(--line);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: nx-spin .7s linear infinite;
}
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* النتائج الفورية */
.nx-search__results { display: none; }
.nx-search__results.has-items {
	display: block;
	margin-top: 16px;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	max-height: min(52vh, 420px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.nx-result {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 10px;
	border-radius: 16px;
	transition: background .15s;
}
.nx-result:hover,
.nx-result.is-active { background: var(--surface-muted); }
.nx-result__media {
	width: 52px; height: 52px;
	flex: none;
	border-radius: 12px;
	background: var(--surface-muted);
	display: grid; place-items: center;
	overflow: hidden;
}
.nx-result__media img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.nx-result__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nx-result__name {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--ink);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nx-result__cat { font-size: 12px; color: var(--ink-soft); }
.nx-result__price { flex: none; font-weight: 700; font-size: 14.5px; color: var(--heading); white-space: nowrap; }
.nx-result__price del { display: none; }
.nx-result__price ins { text-decoration: none; }

.nx-search__hint { margin: 14px 4px 0; font-size: 13.5px; color: var(--ink-soft); }
.nx-search__hint[hidden] { display: none; }

/* زر «تسوّق الآن» في الهيدر */
.nav-cta { padding: 10px 20px; font-size: 14px; }

@media (max-width: 760px) {
	.nx-hide-sm { display: none !important; }
	.nx-search__panel { margin: 10vh 16px 0; }
	.nx-result__price { font-size: 13.5px; }
}

.nav-pill {
	position: relative;
	max-width: var(--container);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow);
	padding: 10px 14px 10px 10px;
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { flex: none; display: block; }
.custom-logo { max-height: 34px; width: auto; }
.brand-name {
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--ink);
	direction: ltr;
	unicode-bidi: isolate;
}

.site-nav { display: flex; align-items: center; }

/* مجموعة أدوات الهيدر: بحث + مفضّلة + سلة */
.nav-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	font-size: 14.5px;
	color: var(--ink-soft);
}
.nav-menu a { transition: color .15s; }
.nav-menu a:hover { color: var(--ink); }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ink);
	color: var(--bg);
	border: 0;
	border-radius: var(--radius-pill);
	padding: 11px 20px;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .15s, filter .15s;
}
.btn-cta:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn-cta svg { stroke: currentColor; }

.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: 13px 25px;
	font-size: 15px;
	font-weight: 700;
	font-family: var(--font-head);
	transition: border-color .15s, color .15s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
	display: none;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	display: block;
	width: 16px; height: 2px;
	background: var(--ink);
	border-radius: 2px;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -5px; }
.nav-toggle-bar::after { position: absolute; top: 5px; }

/* =========================================================
   4. Hero
   ========================================================= */
.hero { padding: 96px 24px 88px; text-align: center; }

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	padding: 7px 8px 7px 16px;
	font-size: 13.5px;
	box-shadow: var(--shadow);
	margin-bottom: 36px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.hero-badge-tag { background: var(--surface-muted); border-radius: var(--radius-pill); padding: 3px 10px; font-weight: 700; }
.hero-badge-link { color: var(--accent); font-weight: 700; }

.hero-title {
	font-size: 56px;
	font-weight: 700;
	line-height: 1.28;
	max-width: 820px;
	margin: 0 auto 26px;
}
.hero-sub {
	max-width: 560px;
	margin: 0 auto 40px;
	color: var(--ink-soft);
	font-size: 17.5px;
}
.hero-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}
.hero-actions .btn-cta {
	padding: 14px 26px;
	font-size: 15px;
	font-weight: 700;
	gap: 10px;
	font-family: var(--font-head);
}

/* =========================================================
   5. Categories — قوس تحريري
   ========================================================= */
.categories { padding: 20px 24px 100px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
	display: inline-block;
	color: var(--accent);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: .3px;
	margin-bottom: 14px;
}
.section-title { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* بلاطات الأقسام — أربع حاويات مباشرة بلا حاوية بيضاء، الاسم أسفل كل حاوية */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: start;
	padding-top: 6px;
}

.cat-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
	transition: transform .32s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
	will-change: transform;
}

/* ترتيب البطاقات على شكل قوس (الأطراف للأسفل، الوسط للأعلى) */
.cat-tile:nth-child(1) { transform: translateY(46px) rotate(3deg); }
.cat-tile:nth-child(2) { transform: translateY(8px) rotate(1deg); }
.cat-tile:nth-child(3) { transform: translateY(8px) rotate(-1deg); }
.cat-tile:nth-child(4) { transform: translateY(46px) rotate(-3deg); }

/* هوفر: البطاقة تنتصب وتقفز خارج القوس، والبقية تخفت قليلًا */
.cat-tile:hover,
.cat-tile:focus-visible {
	transform: translateY(-12px) rotate(0deg) scale(1.045);
	z-index: 3;
}
.cat-grid:hover .cat-tile:not(:hover) { opacity: .5; }

.cat-tile-plate {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: 24px;
	aspect-ratio: 4 / 5;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-tile:hover .cat-tile-plate,
.cat-tile:focus-visible .cat-tile-plate {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent);
}

.cat-tile-ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(120% 90% at 50% 100%, var(--accent-soft), transparent 65%);
	opacity: .75;
	transition: opacity .2s ease;
}
.cat-tile:hover .cat-tile-ring { opacity: 1; }

.cat-tile-plate img,
.cat-tile-plate svg {
	position: relative;
	max-width: 58%;
	max-height: 50%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 16px 26px rgba(20, 19, 25, .18));
	transition: transform .2s ease;
}
.cat-tile:hover .cat-tile-plate img,
.cat-tile:hover .cat-tile-plate svg { transform: scale(1.05); }

.cat-tile-name {
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: .2px;
	transition: color .2s ease;
}
.cat-tile:hover .cat-tile-name,
.cat-tile:focus-visible .cat-tile-name { color: var(--accent); }

/* =========================================================
   5b. Products — بطاقات المنتجات (بنفس أسلوب بلاطات الأقسام)
   ========================================================= */
.products-section { padding: 0 24px 100px; }

.p-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	align-items: start;
}

.p-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.p-card:hover { transform: translateY(-6px); }

.p-card-plate {
	position: relative;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: var(--surface-muted);
	border: 1px solid var(--line);
	border-radius: 24px;
	aspect-ratio: 1 / 1;
	transition: border-color .2s ease, box-shadow .2s ease;
}
/* الرابط يملأ اللوح تمامًا ويوسّط الصورة — لا يعتمد على مقاس الصورة */
.p-card-plate > a {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	padding: 13%;
}
.p-card:hover .p-card-plate { border-color: var(--accent); box-shadow: var(--shadow-lg); }

.p-card-ring {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(120% 90% at 50% 100%, var(--accent-soft), transparent 65%);
	opacity: .75;
	transition: opacity .2s ease;
}
.p-card:hover .p-card-ring { opacity: 1; }

.p-card-plate img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	object-fit: contain;
	filter: drop-shadow(0 16px 26px rgba(20, 19, 25, .18));
	transition: transform .25s ease;
}
.p-card:hover .p-card-plate img { transform: scale(1.05); }

.p-badge {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	z-index: 2;
	background: var(--good);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 11.5px;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
}

.p-card-add {
	position: absolute;
	inset-inline: 14px;
	inset-block-end: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--ink);
	color: var(--bg);
	border: 0;
	border-radius: var(--radius-pill);
	padding: 12px 18px;
	font: 700 13.5px/1 var(--font-head);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .22s ease, transform .22s ease, background .18s ease;
}
.p-card:hover .p-card-add,
.p-card-add:focus-visible { opacity: 1; transform: translateY(0); }
.p-card-add:hover { background: var(--accent); }
.p-card-add.loading { opacity: 1; transform: none; pointer-events: none; }
.p-card-add svg { stroke: currentColor; }

@media (hover: none) {
	.p-card-add { opacity: 1; transform: none; }
}

.p-card-cat { font-size: 12px; color: var(--ink-soft); }
.p-card-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 16px;
	color: var(--ink);
	line-height: 1.4;
	transition: color .2s ease;
	/* سطران كحد أقصى ليتساوى ارتفاع البطاقات */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.8em;
}
.p-card:hover .p-card-title { color: var(--accent); }
.p-card-price {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 15px;
	color: var(--ink);
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.p-card-price del { color: var(--ink-soft); font-weight: 500; font-size: 13.5px; }
.p-card-price ins { text-decoration: none; color: var(--accent); }

/* =========================================================
   رمز العملة (إضافة الريال السعودي) — يبقى داخل السطر بحجم النص
   ملاحظة: القالب يضبط svg{display:block} عمومًا، فنستثني رمز السعر هنا.
   ========================================================= */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi { display: inline; white-space: nowrap; }

.woocommerce-Price-currencySymbol {
	display: inline-block;
	line-height: 1;
	vertical-align: baseline;
}
.woocommerce-Price-currencySymbol svg,
.woocommerce-Price-currencySymbol img,
svg#sa_curr {
	display: inline-block !important;
	width: auto !important;
	height: .9em !important;
	max-width: none;
	vertical-align: -.08em;
	margin-inline-end: .1em;
}
/* الرمز يأخذ لون السعر المحيط (أسود / أخضر للسعر بعد الخصم / رمادي للمشطوب) */
.woocommerce-Price-currencySymbol svg path,
svg#sa_curr path { fill: currentColor; }

/* رابط "شوف الكل" بجانب عنوان القسم */
.section-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--container);
	margin: 0 auto 36px;
}
.section-head-row .section-head { text-align: start; margin: 0; max-width: 640px; }
.link-more {
	flex: none;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 14px;
	color: var(--accent);
	white-space: nowrap;
}
.link-more:hover { color: var(--ink); }

/* =========================================================
   6. Generic content (blog / pages / 404)
   ========================================================= */
.page-head { max-width: var(--container); margin-inline: auto; padding: 44px 24px 6px; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.post-item-meta { color: var(--ink-soft); font-size: 13px; }

.post-list { max-width: var(--container); margin-inline: auto; display: grid; gap: 22px; padding: 24px 24px 80px; }
.post-item {
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 24px;
	background: var(--surface);
	box-shadow: var(--shadow);
}
.post-item-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.post-item-title a { color: var(--ink); }
.post-item-title a:hover { color: var(--accent); }

.entry-content {
	max-width: 74ch;
	margin-inline: auto;
	padding: 8px 24px 90px;
	font-size: 16px;
	line-height: 2;
	color: var(--ink-soft);
}
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-deep); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content strong { color: var(--ink); font-weight: 700; }

/* عناوين داخل صفحات المحتوى (السياسات) */
.entry-content h2 {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 21px;
	color: var(--heading);
	line-height: 1.5;
	margin: 2.2em 0 .8em;
	padding-top: 1.4em;
	border-top: 1px solid var(--line);
}
.entry-content > h2:first-child { margin-top: .4em; padding-top: 0; border-top: 0; }
.entry-content h3 {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 17px;
	color: var(--ink);
	margin: 1.8em 0 .6em;
}

/* قوائم بنقاط خضراء */
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding: 0; display: grid; gap: 12px; }
.entry-content ul li {
	position: relative;
	padding-inline-start: 24px;
	list-style: none;
}
.entry-content ul li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 13px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--good);
}
.entry-content ol { counter-reset: nx-ol; }
.entry-content ol li {
	position: relative;
	padding-inline-start: 30px;
	list-style: none;
	counter-increment: nx-ol;
}
.entry-content ol li::before {
	content: counter(nx-ol);
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 12px;
	display: grid;
	place-items: center;
}

/* ترويسة صفحة المحتوى */
.page-article > .page-head {
	text-align: center;
	max-width: 74ch;
	margin-inline: auto;
	padding: 56px 24px 4px;
}
.page-article > .page-head::after {
	content: "";
	display: block;
	width: 54px;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
	margin: 20px auto 0;
}

.single-thumb { margin: 0 0 24px; border-radius: 24px; overflow: hidden; }
.front-content { max-width: 72ch; margin-inline: auto; padding-bottom: 80px; }

.error-404 { max-width: 640px; margin: 0 auto; padding: 100px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }

.pagination { max-width: var(--container); margin-inline: auto; padding: 0 24px 80px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination .current {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 12px;
	border: 1px solid var(--line);
	font-family: var(--font-head);
	font-size: 13px;
	color: var(--ink);
}
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* =========================================================
   6b. نموذج التواصل
   ========================================================= */
.nx-contact {
	width: 100%;
	padding: 8px 0 20px;
	text-align: start;
}
.nx-contact__form { width: 100%; }

/* صفحة التواصل تأخذ عرضًا أوسع من صفحات المحتوى العادية */
body.nx-contact-page .entry-content { max-width: 880px; }

.nx-form { display: grid; gap: 18px; }
.nx-form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nx-field { display: grid; gap: 8px; }
.nx-field label {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 13.5px;
	color: var(--ink);
}
.nx-req { color: #E23D3D; }
.nx-field input,
.nx-field textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	padding: 14px 18px;
	font: 400 14.5px/1.6 var(--font-body);
	color: var(--ink);
	transition: border-color .16s, box-shadow .16s, background .16s;
}
.nx-field textarea { resize: vertical; min-height: 140px; }
.nx-field input:focus,
.nx-field textarea:focus {
	outline: 0;
	background: var(--surface);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.nx-form__submit {
	justify-self: start;
	padding: 15px 34px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 15px;
	border: 0;
}

/* مصيدة السبام */
.nx-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.nx-form-note {
	margin: 0 0 22px;
	padding: 14px 20px;
	border-radius: 12px;
	border: 1px solid var(--line);
	border-inline-start: 4px solid var(--good);
	background: var(--surface);
	font-size: 14.5px;
	color: var(--ink);
}
.nx-form-note--err { border-inline-start-color: #E23D3D; }

@media (max-width: 700px) {
	.nx-form__row--half { grid-template-columns: 1fr; }
	.nx-form__submit { justify-self: stretch; text-align: center; justify-content: center; }
}

/* =========================================================
   7. Footer
   ========================================================= */
.site-footer {
	margin-top: auto;
	background: var(--surface);
	color: var(--ink-soft);
	border-top: 1px solid var(--line);
	position: relative;
	overflow: hidden;
}
.site-footer::before {
	content: "";
	position: absolute;
	inset-inline-start: 50%;
	inset-block-start: -160px;
	width: 680px;
	height: 340px;
	transform: translateX(50%);
	background: radial-gradient(closest-side, rgba(14, 124, 87, .10), transparent);
	pointer-events: none;
}

.footer-inner {
	position: relative;
	max-width: var(--container);
	margin-inline: auto;
	padding: 64px 24px 44px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
}

.footer-brand .brand-name { color: var(--ink); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag { color: var(--ink-soft); margin: 0 0 20px; font-size: 14px; line-height: 1.85; max-width: 34ch; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--paper);
	display: grid;
	place-items: center;
	color: var(--ink-soft);
	transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.footer-social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	transform: translateY(-2px);
}
.footer-social svg { width: 17px; height: 17px; }
/* أيقونات الخط الخارجي تحتاج حجمًا أكبر لتتوازن بصريًا مع الأيقونات المصمتة. */
.footer-social .nx-ico.is-stroke { width: 22px; height: 22px; }

/* =========================================================
   الأسئلة الشائعة — تُستخدم في صفحة الأسئلة الشائعة
   ========================================================= */
.nx-faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.nx-faq__item { border-bottom: 1px solid var(--line); }
.nx-faq__item > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0;
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 700;
	color: var(--ink);
	transition: color .18s;
}
.nx-faq__item > summary::-webkit-details-marker { display: none; }
.nx-faq__item > summary:hover { color: var(--accent); }
.nx-faq__item[open] > summary { color: var(--heading); }
.nx-faq__sign { position: relative; width: 16px; height: 16px; flex: none; }
.nx-faq__sign::before,
.nx-faq__sign::after {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0;
	width: 16px; height: 2px;
	background: var(--accent);
	border-radius: 2px;
	transform: translateY(-50%);
	transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s;
}
.nx-faq__sign::after { transform: translateY(-50%) rotate(90deg); }
.nx-faq__item[open] .nx-faq__sign::after { transform: translateY(-50%) rotate(0); opacity: 0; }
.nx-faq__body { overflow: hidden; }
.nx-faq__body p { margin: 0; padding: 0 0 26px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.95; max-width: 70ch; }

/* صفحة الأسئلة الشائعة: عرض أوسع + مقدمة */
body.nx-faq-page .entry-content { max-width: 900px; }
.nx-faq-intro { margin: 0 auto 40px; max-width: 70ch; text-align: center; color: var(--ink-soft); font-size: 16px; line-height: 1.95; }
.nx-faq-help {
	max-width: 860px;
	margin: 56px auto 0;
	padding: 32px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
}
.nx-faq-help h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.nx-faq-help p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; }

.footer-col h4 {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 15px;
	color: var(--heading);
	margin: 0 0 18px;
}
.footer-col ul { display: grid; gap: 2px; }
.footer-col a {
	display: inline-block;
	padding: 6px 0;
	font-size: 14px;
	color: var(--ink-soft);
	transition: color .18s, transform .18s;
}
.footer-col a:hover { color: var(--accent); transform: translateX(-3px); }

.footer-bar {
	position: relative;
	max-width: var(--container);
	margin-inline: auto;
	padding: 22px 24px 34px;
	border-top: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--ink-soft);
}
.footer-legal { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-soft); font-size: 13px; }
.footer-legal a:hover { color: var(--accent); }
.footer-trust { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-trust li {
	border: 1px solid var(--line);
	background: var(--paper);
	border-radius: var(--radius-pill);
	padding: 6px 14px;
	font-size: 12.5px;
	color: var(--ink-soft);
}

/* =========================================================
   8. WooCommerce — لمسات خفيفة على التصميم الافتراضي
   ========================================================= */
.woocommerce .site-main, .woocommerce-page .site-main { padding-block: 40px 80px; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { border-radius: var(--radius-plate); }
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce .button {
	border-radius: var(--radius-pill);
	background: var(--ink);
	color: var(--bg);
}
.woocommerce a.button:hover, .woocommerce button.button:hover { filter: brightness(1.12); }

/* =========================================================
   9. Responsive
   ========================================================= */
@media (max-width: 1000px) {
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; padding-top: 0; }
	.cat-tile-plate { aspect-ratio: 4 / 3; }
	.cat-tile-plate img,
	.cat-tile-plate svg { max-height: 58%; }

	/* لا قوس على الشاشات الصغيرة — صفّان مستقيمان */
	.cat-tile:nth-child(1),
	.cat-tile:nth-child(2),
	.cat-tile:nth-child(3),
	.cat-tile:nth-child(4) { transform: none; }
	.cat-tile:hover,
	.cat-tile:focus-visible { transform: translateY(-8px) scale(1.03); }

	.p-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 760px) {
	.container { padding-inline: 20px; }
	.nav-toggle { display: inline-flex; }
	.nav-pill { padding: 9px 12px; gap: 8px; flex-wrap: nowrap; }
	.brand-name { font-size: 17px; letter-spacing: 1px; }
	.nav-tools { gap: 6px; }
	.nx-icon-btn { width: 36px; height: 36px; }
	.nx-icon-btn svg { width: 16px; height: 16px; }
	.nx-announce a { padding: 9px 16px; font-size: 12.5px; }
	.nav-menu {
		position: absolute;
		inset-inline: 8px;
		top: calc(100% + 10px);
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: 22px;
		padding: 12px;
		box-shadow: var(--shadow-lg);
		display: none;
		font-size: 15px;
	}
	.site-nav.is-open .nav-menu { display: flex; }
	.nav-menu a { padding: 12px 14px; }

	.hero { padding: 64px 20px 56px; }
	.hero-title { font-size: 36px; }
	.hero-sub { font-size: 16px; }

	/* شارة الهيرو على الموبايل: ثلاثة أسطر متراصّة */
	.hero-badge {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
		border-radius: 0;
		margin-bottom: 32px;
	}
	/* السطر الأول: خلفية خضراء ونص أبيض */
	.hero-badge-tag {
		order: 1;
		background: var(--accent);
		color: #fff;
		padding: 6px 16px;
		font-size: 13px;
	}
	/* السطر الثاني: جملة الشرح */
	.hero-badge-tag + span {
		order: 2;
		color: var(--ink-soft);
		font-size: 13.5px;
		text-align: center;
	}
	/* السطر الثالث: «تسوّق الآن ←» بحبّة الخلفية البيضاء والحدود نفسها + النقطة الخضراء */
	.hero-badge-dot { display: none; }
	.hero-badge-link {
		order: 3;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius-pill);
		padding: 7px 16px;
		box-shadow: var(--shadow);
	}
	.hero-badge-link::before {
		content: "";
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--good);
		flex: none;
	}

	.categories { padding-bottom: 72px; }
	.section-head { margin-bottom: 36px; }
	.section-title { font-size: 27px; }
	.cat-grid { gap: 16px; }
	.cat-tile { gap: 12px; }
	.cat-tile-name { font-size: 15px; }

	.footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
	.footer-brand { grid-column: 1 / -1; }
	/* موبايل: كل شيء في المنتصف، وحقوق النشر آخر سطر */
	.footer-bar {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-trust { order: 1; justify-content: center; }
	.footer-copy { order: 2; }

	.products-section { padding-bottom: 72px; }
	.p-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.p-card-title { font-size: 14.5px; }
	.p-card-add { inset-inline: 10px; inset-block-end: 10px; padding: 10px 14px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.cat-tile:nth-child(n) { transform: none; }
}
