/**
 * سوق رؤية — أساس الثيم (7أ: القشرة)
 * الهوية: BRAND.md v1.1 — بوابة السوق التي ترى.
 * RTL أولًا — خصائص منطقية في كل الاتجاهات.
 */

/* ═══════════ 1) التوكنز ═══════════ */

:root {
	--night: #0E1B2C;
	--night-2: #16283E;   /* ليل أفتح درجة — أسطح فوق الداكن */
	--teal: #0CC0AE;
	--teal-ink: #06231F;  /* نص فوق التركواز */
	--coral: #FF6B57;
	--cloud: #F4F9F8;
	--mist: #8FA8B5;
	--stone: #5B6B74;
	--line: rgba(14, 27, 44, 0.08);
	--line-dark: rgba(255, 255, 255, 0.1);

	--font: "IBM Plex Sans Arabic", "Tahoma", sans-serif;

	--r-lg: 1.25rem;
	--r-pill: 999px;

	--shadow-soft: 0 18px 50px -22px rgba(14, 27, 44, 0.25);
	--shadow-float: 0 30px 70px -30px rgba(14, 27, 44, 0.35);

	--spring: cubic-bezier(0.32, 0.72, 0, 1);

	--wrap: 1240px;
}

/* ═══════════ 2) الأساس ═══════════ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--night);
	background: var(--cloud);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--teal); text-decoration: none; transition: color 0.35s var(--spring); }
a:hover { color: var(--night); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; margin: 0 0 0.6em; color: var(--night); }

p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.section { padding-block: clamp(48px, 8vw, 96px); }

.screen-reader-text {
	position: absolute !important;
	inset-inline-start: 0; /* بلا إحداثيات يبقى بموضعه الساكن خارج الحافة → تمرير أفقي زائد على الجوال */
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.skip-link:focus {
	clip-path: none;
	width: auto; height: auto;
	position: fixed !important;
	inset-inline-start: 16px; top: 16px;
	z-index: 200;
	background: var(--night); color: #fff;
	padding: 10px 20px; border-radius: var(--r-pill);
}

::selection { background: var(--teal); color: var(--teal-ink); }

/* ═══════════ 3) الأزرار — حبوب بأيقونة في جُزيرة ═══════════ */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	border: 0;
	border-radius: var(--r-pill);
	font: 700 14.5px/1 var(--font);
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.45s var(--spring), box-shadow 0.45s var(--spring), filter 0.45s var(--spring);
}
.btn:active { transform: scale(0.98); }

.btn-orb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px; height: 26px;
	border-radius: 50%;
	background: rgba(14, 27, 44, 0.12);
	margin-inline-end: -10px;
	transition: transform 0.45s var(--spring);
}
.btn-orb svg { width: 13px; height: 13px; }
.btn:hover .btn-orb { transform: translate(-2px, -1px) scale(1.08); }

.btn-teal { background: var(--teal); color: var(--teal-ink); }
.btn-teal:hover { color: var(--teal-ink); filter: brightness(1.07); box-shadow: 0 14px 34px -14px rgba(12, 192, 174, 0.55); }

.btn-coral { background: var(--coral); color: var(--night); }
.btn-coral:hover { color: var(--night); filter: brightness(1.06); box-shadow: 0 14px 34px -14px rgba(255, 107, 87, 0.6); }

.btn-ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1.5px var(--line-dark);
}
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }

.btn-ghost-dark {
	background: transparent;
	color: var(--night);
	box-shadow: inset 0 0 0 1.5px rgba(14, 27, 44, 0.2);
}
.btn-ghost-dark:hover { color: var(--night); box-shadow: inset 0 0 0 1.5px rgba(14, 27, 44, 0.45); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-lg .btn-orb { width: 30px; height: 30px; margin-inline-end: -12px; }

/* ═══════════ 4) عنصر «العين الصغيرة» (eyebrow) ═══════════ */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: var(--r-pill);
	background: rgba(12, 192, 174, 0.12);
	color: var(--teal);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* ═══════════ 5) نمط البوابات ═══════════ */

.gate {
	display: inline-block;
	width: 34px; height: 46px;
	border: 2.5px solid rgba(255, 255, 255, 0.07);
	border-bottom: 0;
	border-radius: 34px 34px 0 0;
}
.gate-lit { border-color: var(--coral); box-shadow: 0 0 24px -6px rgba(255, 107, 87, 0.65); }

/* ═══════════ 6) الشريط العلوي ═══════════ */

.site-topbar {
	background: var(--night);
	color: var(--mist);
	font-size: 12.5px;
	border-bottom: 1px solid var(--line-dark);
}
.site-topbar-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}
.site-topbar-line { display: flex; align-items: center; gap: 8px; margin: 0; }
.site-topbar-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 10px rgba(12, 192, 174, 0.8);
}
.site-topbar-links { display: flex; gap: 18px; }
.site-topbar-links a { color: var(--mist); }
.site-topbar-links a:hover { color: #fff; }

/* ═══════════ 7) الهيدر الرئيسي ═══════════ */

.site-masthead { background: var(--night); padding-block: 18px; }
.site-masthead-in {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 36px);
}

.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-brand-mark svg { width: 44px; height: 44px; display: block; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-brand-text strong { color: #fff; font-size: 20px; font-weight: 700; }
.site-brand-text small { color: var(--mist); font-size: 11px; }

/* البحث — الحقل البطل في الوسط */
.site-search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0; /* عنصر مرن: بلاها يفيض الحد الجوهري للحقل عن سطر الجوال */
	display: flex;
	background: #fff;
	border-radius: var(--r-pill);
	padding: 4px;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
	transition: box-shadow 0.45s var(--spring);
}

/* قائمة اقتراحات البحث الفوري (نمط أمازون) */
.search-suggest {
	position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow-float); overflow: hidden auto; max-height: 72vh;
	color: var(--night); padding: 6px;
}
.ss-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--night); font-size: 14px; }
.ss-row:hover, .ss-row.is-active { background: var(--cloud); }
.ss-row > svg { width: 18px; height: 18px; color: var(--mist); flex: none; }
.ss-search { font-weight: 700; }
.ss-search > svg { color: var(--teal); }
.ss-cat .ss-title { flex: 1 1 auto; }
.ss-count { color: var(--mist); font-size: 12px; font-weight: 600; }
.ss-sep { height: 1px; background: var(--line); margin: 5px 8px; }
.ss-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; background: var(--cloud); }
.ss-prod .ss-title { flex: 1 1 auto; line-height: 1.4; }
.ss-price { color: var(--coral); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.ss-empty { padding: 18px; text-align: center; color: var(--stone); font-size: 14px; }
.site-search:focus-within { box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.4), 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.site-search-field {
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	padding: 9px 20px;
	font: 400 14.5px/1.4 var(--font);
	color: var(--night);
	min-width: 0;
}
.site-search-field:focus { outline: none; }
.site-search-field::placeholder { color: var(--mist); }
.site-search-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: var(--teal);
	color: var(--teal-ink);
	font: 700 13.5px/1 var(--font);
	padding: 0 22px;
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: filter 0.35s var(--spring);
}
.site-search-btn:hover { filter: brightness(1.08); }
.site-search-btn svg { width: 16px; height: 16px; }

.site-actions { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); flex-shrink: 0; }

.site-action {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	color: var(--mist);
	font-size: 11.5px;
	font-weight: 500;
	position: relative;
	transition: color 0.35s var(--spring), transform 0.45s var(--spring);
}
.site-action:hover { color: #fff; transform: translateY(-2px); }
.site-action svg { width: 22px; height: 22px; }

.site-cart-badge {
	position: absolute;
	top: -6px;
	inset-inline-start: 12px;
	min-width: 18px; height: 18px;
	padding-inline: 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--coral);
	color: var(--night);
	border-radius: var(--r-pill);
	font: 700 11px/1 var(--font);
	font-style: normal;
}

.site-vendor-cta { flex-shrink: 0; }

/* البرغر — سطران يتحوّلان لـ X */
.site-burger {
	display: none;
	position: relative;
	width: 40px; height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--night-2);
	cursor: pointer;
}
.site-burger span {
	position: absolute;
	inset-inline-start: 11px;
	width: 18px; height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.5s var(--spring), top 0.5s var(--spring);
}
.site-burger span:first-child { top: 15px; }
.site-burger span:last-child { top: 22px; }
.site-burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.site-burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ═══════════ 8) صف التنقّل ═══════════ */

.site-navrow {
	background: var(--night);
	border-top: 1px solid var(--line-dark);
}
.site-navrow-in {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.5vw, 28px);
	min-height: 48px;
}

.site-allcats {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 7px 18px;
	border-radius: var(--r-pill);
	background: var(--night-2);
	box-shadow: inset 0 0 0 1px var(--line-dark);
	transition: box-shadow 0.4s var(--spring), color 0.4s var(--spring);
}
.site-allcats:hover { color: var(--teal); box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.5); }
.site-allcats-gate { width: 17px; height: 17px; }

.site-nav-list {
	display: flex;
	gap: clamp(14px, 2vw, 26px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav-list a {
	color: var(--mist);
	font-size: 13.5px;
	font-weight: 500;
	position: relative;
	padding-block: 12px;
}
.site-nav-list a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--teal);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.45s var(--spring);
}
.site-nav-list a:hover { color: #fff; }
.site-nav-list a:hover::after,
.site-nav-list .current-menu-item a::after { transform: scaleX(1); }
.site-nav-list .current-menu-item a { color: #fff; }

.site-navrow-hint {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--mist);
	font-size: 12px;
}
.site-navrow-hint svg { width: 15px; height: 15px; color: var(--teal); }

/* ═══════════ 9) درج الجوال ═══════════ */

.site-drawer { position: fixed; inset: 0; z-index: 120; }
.site-drawer[hidden] { display: none; }

/* إزاحة شريط أدمن ووردبريس (للمسجّلين فقط). */
.admin-bar .site-drawer { inset-block-start: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-drawer { inset-block-start: 46px; }
}

.site-drawer-scrim {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(14, 27, 44, 0.55);
	backdrop-filter: blur(6px);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.5s var(--spring);
}

.site-drawer-panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(320px, 86vw);
	background: #fff;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	transform: translateX(100%);
	transition: transform 0.55s var(--spring);
	box-shadow: var(--shadow-float);
}
[dir="ltr"] .site-drawer-panel { transform: translateX(-100%); }

.site-drawer.is-open .site-drawer-scrim { opacity: 1; }
.site-drawer.is-open .site-drawer-panel { transform: translateX(0); }

.site-drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.site-drawer-brand svg { width: 34px; height: 34px; }

.site-drawer-list { list-style: none; margin: 22px 0 0; padding: 0; }
.site-drawer-list li { border-bottom: 1px solid var(--line); }
.site-drawer-list a {
	display: block;
	padding: 14px 2px;
	color: var(--night);
	font-weight: 600;
	font-size: 15px;
}
.site-drawer-list a:hover { color: var(--teal); }

.site-drawer-cta { margin-top: auto; padding-top: 22px; }
.site-drawer-cta .btn { width: 100%; justify-content: center; }

/* ═══════════ 10) Hero (نسخة القشرة) ═══════════ */

.hero {
	position: relative;
	background:
		radial-gradient(900px 420px at 82% -10%, rgba(12, 192, 174, 0.16), transparent 65%),
		radial-gradient(700px 380px at 12% 110%, rgba(255, 107, 87, 0.1), transparent 60%),
		var(--night);
	color: #fff;
	overflow: hidden;
}

.hero-gates {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	gap: 22px;
	pointer-events: none;
}
.hero-gates .gate { width: clamp(44px, 6vw, 72px); height: clamp(60px, 8vw, 100px); }

.hero-in {
	position: relative;
	padding-block: clamp(72px, 11vw, 150px) clamp(110px, 14vw, 190px);
	max-width: 720px;
	text-align: center;
	margin-inline: auto;
}

.hero-title {
	color: #fff;
	font-size: clamp(38px, 6.4vw, 64px);
	line-height: 1.18;
	margin: 22px 0 18px;
	letter-spacing: -0.01em;
}
.hero-title em {
	font-style: normal;
	color: var(--teal);
	position: relative;
}

.hero-sub {
	color: var(--mist);
	font-size: clamp(15.5px, 1.8vw, 18px);
	max-width: 560px;
	margin-inline: auto;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 34px;
}

/* ═══════════ 11) الصفحات الداخلية و404 ═══════════ */

.page-hero {
	background: var(--night);
	color: #fff;
	padding-block: clamp(40px, 6vw, 64px);
}
.page-hero-title { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0; }

.page-body { max-width: 820px; }
.page-body a { text-decoration: underline; text-underline-offset: 3px; }
/* واجهات التطبيق (سلة/دفع/حسابي/لوحة تاجر/تسجيل) تأخذ عرض الحاوية بلا تخطيط روابط المقالات. */
.page-body--app { max-width: var(--wrap); }
.page-body--app a { text-decoration: none; }

.notfound-in { text-align: center; max-width: 560px; }
.notfound-gates { display: flex; justify-content: center; gap: 16px; margin-bottom: 34px; }
/* صفحة «كل الأقسام» — شجرة تصفّح: أعمدة أقسام برأس بوابة+أيقونة */
.cattree {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: clamp(16px, 2.4vw, 26px);
}
.cattree-col {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 22px 22px 18px;
	transition: border-color 0.4s var(--spring), box-shadow 0.4s var(--spring), transform 0.4s var(--spring);
}
.cattree-col:hover { border-color: rgba(12, 192, 174, 0.4); box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.cattree-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; color: var(--night); }
.cattree-ic {
	display: grid;
	place-items: center;
	width: 42px;
	height: 46px;
	flex: none;
	border: 2px solid rgba(12, 192, 174, 0.3);
	border-bottom: 0;
	border-radius: 42px 42px 7px 7px;
	background: linear-gradient(180deg, rgba(12, 192, 174, 0.08), rgba(12, 192, 174, 0));
	color: var(--teal);
	transition: border-color 0.4s var(--spring), color 0.4s var(--spring);
}
.cattree-ic svg { width: 22px; height: 22px; }
.cattree-col:hover .cattree-ic { border-color: var(--coral); color: var(--coral); }
.cattree-name { font-weight: 700; font-size: 16px; line-height: 1.4; }
.cattree-kids { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.cattree-kids a { display: block; padding: 5px 8px; margin-inline: -8px; border-radius: 8px; color: var(--stone); font-size: 14px; }
.cattree-kids a:hover { color: var(--night); background: var(--cloud); }
.cattree-all { font-size: 13px; font-weight: 700; color: var(--teal); }
.cattree-all:hover { color: var(--coral); }

/* بوابات على خلفية فاتحة — التخصيص الأعلى يُبقي المضيئة مرجانية. */
.notfound-gates .gate { width: 44px; height: 60px; border-color: rgba(14, 27, 44, 0.08); }
.notfound-gates .gate-lit { border-color: var(--coral); }
.notfound-title { font-size: clamp(28px, 4.4vw, 42px); }
.notfound-sub { color: var(--stone); }
.notfound .hero-actions { margin-top: 26px; }

.entries-empty { color: var(--stone); text-align: center; padding-block: 40px; }

/* ═══════════ 12) الفوتر ═══════════ */

.site-foot {
	background: var(--night);
	color: var(--mist);
	margin-top: clamp(56px, 9vw, 110px);
}

/* الرئيسية: الـHero الداكن يتدفق مباشرة للفوتر — بوابات الـHero هي الفاصل. */
.home .site-foot { margin-top: 0; }
.home .site-foot-gates { display: none; }

.site-foot-gates {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding-top: 54px;
	overflow: hidden;
}

.site-foot-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: clamp(28px, 4vw, 56px);
	padding-block: clamp(40px, 6vw, 70px);
}

.site-foot-mark svg { width: 52px; height: 52px; }
.site-foot-tagline { color: #fff; font-weight: 700; font-size: 17px; margin: 14px 0 8px; }
.site-foot-about { font-size: 13.5px; line-height: 1.9; max-width: 330px; }

.site-foot-col h3 {
	color: #fff;
	font-size: 14px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	position: relative;
}
.site-foot-col h3::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
	width: 26px; height: 2px;
	border-radius: 2px;
	background: var(--teal);
}

.site-foot-list { list-style: none; margin: 0; padding: 0; }
.site-foot-list a {
	display: inline-block;
	color: var(--mist);
	font-size: 13.5px;
	padding-block: 5px;
	transition: color 0.35s var(--spring), transform 0.35s var(--spring);
}
.site-foot-list a:hover { color: var(--teal); transform: translateX(-3px); }
[dir="ltr"] .site-foot-list a:hover { transform: translateX(3px); }

.site-foot-cta { margin-top: 18px; }

.site-foot-bottom { border-top: 1px solid var(--line-dark); }
.site-foot-bottom-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	min-height: 58px;
	font-size: 12.5px;
}
.site-foot-bottom p { margin: 0; }
.site-foot-sec { display: inline-flex; align-items: center; gap: 7px; }
.site-foot-sec svg { width: 15px; height: 15px; color: var(--teal); }

/* ═══════════ 12ب) أقسام الرئيسية (7ب) ═══════════ */

/* رأس قسم */
.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: clamp(24px, 4vw, 40px);
}
.sec-title { font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0 0; }
.sec-sub { color: var(--mist); margin: 8px 0 0; font-size: 14.5px; }
.sec-more { font-weight: 700; font-size: 14px; white-space: nowrap; padding-bottom: 4px; }
.sec-head--onDark .sec-title { color: #fff; }
.sec-more--coral { color: var(--coral); }
.sec-more--coral:hover { color: #fff; }
.eyebrow-coral { background: rgba(255, 107, 87, 0.14); color: var(--coral); }

/* شريط الثقة */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 3vw, 36px);
	padding-block: clamp(22px, 3.5vw, 34px);
}
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-ic {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border-radius: 15px;
	background: rgba(12, 192, 174, 0.1);
	color: var(--teal);
}
.trust-ic svg { width: 23px; height: 23px; }
.trust-item strong { display: block; font-size: 14.5px; line-height: 1.4; }
.trust-item span { color: var(--stone); font-size: 12.5px; line-height: 1.5; }

/* بطاقات الأقسام — بوابات */
.cats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 2vw, 22px);
}
.cat-gate {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 158px;
	padding: 26px 16px 22px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px 18px 14px 14px;
	overflow: hidden;
	color: var(--night);
	text-align: center;
	transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring), border-color 0.5s var(--spring);
}
/* البوابة: قوس يؤطّر أيقونة القسم — هوية «بوابات السوق» تحمل المعنى. */
.cat-gate-arch {
	display: grid;
	place-items: center;
	width: 66px;
	height: 70px;
	border: 2px solid rgba(12, 192, 174, 0.3);
	border-bottom: 0;
	border-radius: 66px 66px 10px 10px;
	background: linear-gradient(180deg, rgba(12, 192, 174, 0.07), rgba(12, 192, 174, 0));
	transition: border-color 0.5s var(--spring), transform 0.5s var(--spring), background 0.5s var(--spring);
}
.cat-gate-ic { display: grid; color: var(--teal); transition: color 0.5s var(--spring); }
.cat-gate-ic svg { width: 30px; height: 30px; }
.cat-gate-name { font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.cat-gate:hover {
	color: var(--night);
	transform: translateY(-5px);
	box-shadow: var(--shadow-soft);
	border-color: rgba(12, 192, 174, 0.4);
}
.cat-gate:hover .cat-gate-arch {
	border-color: var(--coral);
	background: linear-gradient(180deg, rgba(255, 107, 87, 0.1), rgba(255, 107, 87, 0));
	transform: translateY(-2px);
}
.cat-gate:hover .cat-gate-ic { color: var(--coral); }

/* شبكة المنتجات الواحدة — .pgrid وكل قوائم منتجات ووكومرس (الأرشيف/المرتبطة/الترقيات) */
.pgrid,
.shop-main ul.products,
.related.products ul.products,
.upsells.products ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 2vw, 22px);
}
.pcard {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.pcard-media { position: relative; display: block; aspect-ratio: 1 / 0.86; background: var(--cloud); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
/* ثاني صورة من المعرض تظهر عند المرور — تُطبع فقط لمن له معرض. */
.pcard-img-alt { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.pcard-media:hover .pcard-img-alt,
.pcard-media:focus-visible .pcard-img-alt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pcard-img-alt { transition: none; } }
.pcard-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: rgba(14, 27, 44, 0.16);
}
.pcard-ph svg { width: 54px; height: 54px; }
.pcard-sale {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	background: var(--coral);
	color: var(--night);
	font: 700 12.5px/1 var(--font);
	padding: 6px 11px;
	border-radius: var(--r-pill);
}

.pcard-body { padding: 14px 16px 18px; }
.pcard-vendor {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--teal);
	font-size: 11.5px;
	font-weight: 700;
}
.pcard-vendor svg { width: 12px; height: 12px; }
.pcard-title { font-size: 14.5px; line-height: 1.55; margin: 6px 0 8px; }
.pcard-title a { color: var(--night); }
.pcard-title a:hover { color: var(--teal); }
.pcard-rating { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.pcard-rcount { color: var(--mist); font-size: 12px; font-variant-numeric: tabular-nums; }
.pcard-rating:hover .pcard-rcount { color: var(--teal); }

/* شريط النجوم الكسري (المصدر الوحيد roeia_souq_star_bar) */
.rstars { position: relative; display: inline-block; width: 76px; height: 14px; line-height: 14px; }
.rstars::before { content: '★★★★★'; position: absolute; inset: 0; color: rgba(14, 27, 44, 0.16); font-size: 14px; letter-spacing: 1.5px; }
.rstars-on { position: absolute; inset-inline-start: 0; top: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.rstars-on::before { content: '★★★★★'; color: #F5A623; font-size: 14px; letter-spacing: 1.5px; }

.pcard-price { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.pcard-price del { color: var(--mist); font-weight: 400; font-size: 13px; margin-inline-start: 7px; }
.pcard-price ins { text-decoration: none; color: var(--coral); }

/* مهرجان العروض — شريط داكن بطاقة مرجانية */
.festival {
	position: relative;
	background:
		radial-gradient(700px 340px at 15% 0%, rgba(255, 107, 87, 0.14), transparent 60%),
		var(--night);
	padding-block: clamp(48px, 8vw, 96px);
	overflow: hidden;
	margin-block: clamp(48px, 8vw, 96px);
}
.festival-gates {
	position: absolute;
	inset-inline: 0;
	top: -14px;
	display: flex;
	justify-content: center;
	gap: 18px;
	transform: rotate(180deg);
	opacity: 0.6;
	pointer-events: none;
}
.festival .wrap { position: relative; }
.pgrid--festival .pcard { border-color: transparent; }

/* بطاقات المتاجر */
.vgrid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(14px, 2vw, 22px);
}
.vcard {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 28px 20px 24px;
	color: var(--night);
	transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring);
}
.vcard:hover { color: var(--night); transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.vcard-avatar {
	width: 72px; height: 72px;
	border-radius: 26px 26px 22px 22px;
	background: linear-gradient(160deg, var(--night), var(--night-2));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: inset 0 0 0 2px rgba(12, 192, 174, 0.5);
}
.vcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vcard-avatar b { color: var(--teal); font-size: 26px; }
.vcard-name { font-weight: 700; font-size: 16px; }
.vcard-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(12, 192, 174, 0.12);
	color: #0a8f82;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--r-pill);
}
.vcard-badge svg { width: 12px; height: 12px; }
.vcard-rating { color: #B7791F; font-weight: 700; font-size: 13.5px; }
.vcard-rating small { color: var(--stone); font-weight: 400; }
.vcard-go { margin-top: 6px; color: var(--teal); font-weight: 700; font-size: 13px; }

/* شريط الانضمام */
.joinband {
	position: relative;
	background:
		radial-gradient(800px 400px at 85% 100%, rgba(12, 192, 174, 0.14), transparent 62%),
		var(--night);
	overflow: hidden;
	margin-top: clamp(48px, 8vw, 96px);
}
.joinband-gates {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	gap: 20px;
	opacity: 0.8;
	pointer-events: none;
}
.joinband-in {
	position: relative;
	text-align: center;
	max-width: 640px;
	padding-block: clamp(64px, 9vw, 120px);
}
.joinband-title { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.joinband-sub { color: var(--mist); font-size: 15px; margin-bottom: 28px; }

/* الرئيسية: شريط الانضمام يلاصق الفوتر */
.home .joinband { margin-bottom: 0; }

/* ═══════════ 12ج) الميجا-منيو والتصفح (7ج) ═══════════ */

.site-allcats { border: 0; cursor: pointer; font-family: var(--font); }
.site-allcats-chev { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.4s var(--spring); }
.site-allcats[aria-expanded="true"] .site-allcats-chev { transform: rotate(180deg); }

.mega {
	position: absolute;
	inset-inline: 0;
	z-index: 90;
	background: #fff;
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow-float);
}
.site-head { position: relative; }

.mega-in {
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: 380px;
	max-height: 70vh;
}

.mega-roots {
	list-style: none;
	margin: 0;
	padding: 14px 0;
	border-inline-end: 1px solid var(--line);
	overflow-y: auto;
	max-height: 70vh;
}
.mega-root {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 20px;
	color: var(--night);
	font-size: 13.5px;
	font-weight: 600;
	border-inline-start: 3px solid transparent;
}
.mega-root svg { width: 14px; height: 14px; opacity: 0; transition: opacity 0.3s var(--spring); }
.mega-root.is-active,
.mega-root:hover {
	color: var(--teal);
	background: rgba(12, 192, 174, 0.06);
	border-inline-start-color: var(--teal);
}
.mega-root.is-active svg { opacity: 1; }

.mega-panes { padding: 26px 30px; overflow-y: auto; max-height: 70vh; }
.mega-pane { display: none; }
.mega-pane.is-active { display: block; }
.mega-pane-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}
.mega-pane-head h3 { margin: 0; font-size: 17px; }
.mega-pane-head a { font-size: 13px; font-weight: 700; }
.mega-kids {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px 22px;
}
.mega-kids a {
	display: block;
	padding: 7px 2px;
	color: var(--stone);
	font-size: 13.5px;
	border-radius: 8px;
}
.mega-kids a:hover { color: var(--teal); }
.mega-empty { color: var(--mist); font-size: 13.5px; }

/* أرشيف المتجر والأقسام */
.shop-hero { padding-block: clamp(30px, 5vw, 48px); }
.page-hero-sub { color: var(--mist); margin: 10px 0 0; font-size: 15px; max-width: 560px; }
.crumbs { color: var(--mist); font-size: 12.5px; margin-bottom: 10px; }
.crumbs a { color: var(--mist); }
.crumbs a:hover { color: var(--teal); }
.shop-desc { color: var(--mist); font-size: 14px; max-width: 640px; margin-top: 8px; }

.shop-kids { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(22px, 3.5vw, 34px); }
.shop-kid {
	padding: 8px 18px;
	border-radius: var(--r-pill);
	background: #fff;
	border: 1px solid var(--line);
	color: var(--night);
	font-size: 13px;
	font-weight: 600;
	transition: border-color 0.4s var(--spring), color 0.4s var(--spring), transform 0.4s var(--spring);
}
.shop-kid:hover { color: var(--teal); border-color: rgba(12, 192, 174, 0.45); transform: translateY(-2px); }

.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--stone); font-size: 13.5px; }
.shop-toolbar .woocommerce-ordering select {
	font: 600 13.5px/1.4 var(--font);
	color: var(--night);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	padding: 9px 16px;
}

/* قوائم منتجات WC: تصفير القائمة + تحييد أعمدة/عوامات ووكومرس لصالح الجريد. */
.shop-main ul.products,
.related.products ul.products,
.upsells.products ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
}
.shop-main ul.products li.product,
.woocommerce .shop-main ul.products li.product,
.related.products ul.products li.product,
.upsells.products ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
}
.shop-main ul.products::before,
.shop-main ul.products::after,
.related.products ul.products::before,
.related.products ul.products::after,
.upsells.products ul.products::before,
.upsells.products ul.products::after { display: none; }

.woocommerce-pagination { margin-top: clamp(28px, 5vw, 44px); }
.woocommerce-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-pagination .page-numbers li { display: flex; }
.woocommerce-pagination li .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	border-radius: 13px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--night);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	transition: border-color 0.35s var(--spring), color 0.35s var(--spring), background 0.35s var(--spring), transform 0.35s var(--spring), box-shadow 0.35s var(--spring);
}
.woocommerce-pagination li a.page-numbers:hover {
	border-color: var(--teal);
	color: var(--teal);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -14px rgba(12, 192, 174, 0.7);
}
/* الصفحة الحالية — تعبئة داكنة بالهوية (‏!important يتجاوز افتراضي ووكومرس/البلوكات البنفسجي). */
.woocommerce-pagination li span.current {
	background: var(--night) !important;
	border-color: var(--night);
	color: #fff !important;
}
.woocommerce-pagination li .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--mist);
	min-width: 24px;
	padding: 0;
}
.woocommerce-pagination li .page-numbers.prev,
.woocommerce-pagination li .page-numbers.next {
	color: var(--teal);
	font-size: 18px;
}
.woocommerce-pagination li a.page-numbers.prev:hover,
.woocommerce-pagination li a.page-numbers.next:hover { color: var(--teal); }

.shop-empty { text-align: center; max-width: 480px; margin-inline: auto; padding-block: 30px; }
.shop-empty .notfound-gates { margin-bottom: 26px; }
.shop-empty h2 { font-size: 24px; }
.shop-empty p { color: var(--stone); margin-bottom: 22px; }

/* ═══════════ 12د) الفلترة (7ج2) ═══════════ */

.shop-layout { display: grid; grid-template-columns: 264px 1fr; gap: clamp(20px, 3vw, 34px); align-items: start; }

.shop-filters { position: sticky; top: 20px; }
.filters {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 20px;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters-head h3 { margin: 0; font-size: 16px; }
.filters-close { display: none; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--stone); }

.filter-group { border: 0; padding: 14px 0 0; margin: 0 0 6px; }
.filter-group legend { font-weight: 700; font-size: 13px; color: var(--night); padding: 0; margin-bottom: 10px; }

/* فيسِتس (نمط أمازون): مجموعات مفصولة + خيارات بعدّادات */
.filter-group + .filter-group { border-top: 1px solid var(--line); }
.filter-list { display: grid; gap: 1px; }
.filter-opt {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px;
	margin-inline: -6px;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--stone);
	cursor: pointer;
}
.filter-opt:hover { background: var(--cloud); color: var(--night); }
.filter-opt input { width: 16px; height: 16px; flex: none; accent-color: var(--teal); }
.filter-opt-label { flex: 1 1 auto; line-height: 1.4; display: flex; align-items: center; }
.filter-opt-count { color: var(--mist); font-size: 12px; font-variant-numeric: tabular-nums; }
.filter-opt input:checked ~ .filter-opt-label { color: var(--night); font-weight: 600; }

/* نجوم التقييم — نفس الرمز، المملوء كهرماني والفارغ باهت */
.fstars { color: rgba(14, 27, 44, 0.2); letter-spacing: 1px; font-size: 13px; }
.fstars b { color: #F5A623; font-weight: 400; }
.filter-opt-plus { color: var(--stone); font-size: 12.5px; margin-inline-start: 5px; }

/* عرض المزيد (يعمل مع JS فقط) */
.filter-more { display: none; margin-top: 8px; border: 0; background: none; padding: 2px 0; color: var(--teal); font: 700 12.5px var(--font); cursor: pointer; }
.filter-more:hover { color: var(--coral); }
.js .filter-more { display: inline-block; }
.js .filter-group.is-collapsed .filter-opt--extra { display: none; }

.filters-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.filters-actions .btn { flex: 1; justify-content: center; padding-block: 11px; }
.filters-clear { color: var(--stone); font-size: 13px; font-weight: 600; }
.filters-clear:hover { color: var(--coral); }

/* سلايدر السعر المزدوج */
.frange { position: relative; height: 26px; }
.frange-track {
	position: absolute;
	inset-inline: 0;
	top: 11px;
	height: 4px;
	border-radius: 4px;
	background: rgba(14, 27, 44, 0.1);
}
.frange-fill { position: absolute; inset-block: 0; background: var(--teal); border-radius: 4px; }
.frange input[type="range"] {
	position: absolute;
	inset-inline: 0;
	top: 0;
	width: 100%;
	height: 26px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.frange input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2.5px solid var(--teal);
	box-shadow: 0 2px 8px rgba(14, 27, 44, 0.18);
	cursor: grab;
}
.frange input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 15px; height: 15px;
	border-radius: 50%;
	background: #fff;
	border: 2.5px solid var(--teal);
	cursor: grab;
}
.frange-out { margin: 8px 0 0; color: var(--stone); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }

/* شارات الفلاتر النشطة */
.fbadges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.fbadge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--night);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 13px;
	border-radius: var(--r-pill);
}
.fbadge-x { color: var(--coral); font-weight: 700; }
.fbadge:hover { color: #fff; background: var(--night-2); }

.filters-open { display: none; align-items: center; gap: 8px; padding: 9px 18px; font-size: 13.5px; }
.filters-open svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
	.shop-layout { grid-template-columns: 1fr; }
	.filters-open { display: inline-flex; }
	.filters-close { display: block; }
	.shop-filters {
		position: fixed;
		inset: 0;
		z-index: 130;
		background: rgba(14, 27, 44, 0.5);
		display: none;
		padding: 5vh 16px;
		overflow-y: auto;
	}
	.shop-filters.is-open { display: block; }
	.shop-filters .filters { max-width: 420px; margin-inline: auto; }
}

/* ═══════════ 12هـ) تجربة الشراء (7د) ═══════════ */
/* تخطيط صفحة المنتج انتقل للقسم 16 (تخطيط أمازون الثلاثي). هنا: أزرار WC العامة + بطاقة التاجر + السلة/الدفع. */

/* أزرار ووكومرس العامة (السلة/الدفع/حسابي) — على الهوية (‏!important يتجاوز بنفسجي WC الافتراضي) */
.woocommerce a.button, .woocommerce button.button, .wc-block-components-button {
	background: var(--coral) !important;
	color: var(--night) !important;
	border: 0;
	border-radius: var(--r-pill);
	font: 700 15px/1 var(--font);
	padding: 14px 30px;
	cursor: pointer;
	transition: filter 0.4s var(--spring), transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
	color: var(--night);
	filter: brightness(1.06);
	box-shadow: 0 14px 34px -14px rgba(255, 107, 87, 0.6);
}

/* بطاقة التاجر */
.scard {
	margin-top: 22px;
	background: var(--cloud);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 16px 18px;
}
.scard-row { display: flex; align-items: center; gap: 13px; }
.scard-avatar {
	width: 48px; height: 48px;
	flex-shrink: 0;
	border-radius: 17px 17px 14px 14px;
	background: linear-gradient(160deg, var(--night), var(--night-2));
	display: flex; align-items: center; justify-content: center;
	box-shadow: inset 0 0 0 2px rgba(12, 192, 174, 0.5);
}
.scard-avatar b { color: var(--teal); font-size: 19px; }
.scard-label { display: block; color: var(--mist); font-size: 11.5px; }
.scard-name { font-weight: 700; font-size: 16px; color: var(--night); }
.scard-name:hover { color: var(--teal); }
.scard-meta { display: flex; align-items: center; gap: 12px; margin-top: 2px; font-size: 12px; }
.scard-verified { display: inline-flex; align-items: center; gap: 4px; color: #0a8f82; font-weight: 700; }
.scard-verified svg { width: 12px; height: 12px; }
.scard-stars { color: #B7791F; font-weight: 700; }
.scard-actions { display: flex; gap: 10px; margin-top: 14px; }
.scard-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 14px;
	border-radius: var(--r-pill);
	background: #fff;
	border: 1px solid var(--line);
	color: var(--night);
	font-size: 13px;
	font-weight: 700;
	transition: border-color 0.4s var(--spring), color 0.4s var(--spring);
}
.scard-btn:hover { color: var(--teal); border-color: rgba(12, 192, 174, 0.45); }
.scard-btn svg { width: 15px; height: 15px; }

/* تبويبات المنتج والمنتجات المرتبطة */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 10px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 10px 20px;
	color: var(--stone);
	font-weight: 700;
	font-size: 14px;
	border-bottom: 2.5px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--night); border-bottom-color: var(--teal); }
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: clamp(28px, 5vw, 48px); }
.related.products > h2, .upsells.products > h2 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 20px; }

/* السلة والدفع — تلميع على الهوية */
.woocommerce-cart .shop_table, .woocommerce-checkout .shop_table {
	border: 1px solid var(--line);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
}
.woocommerce-cart .shop_table th, .woocommerce-checkout .shop_table th { background: var(--cloud); color: var(--stone); font-size: 13px; padding: 12px 16px; }
.woocommerce-cart .shop_table td, .woocommerce-checkout .shop_table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.woocommerce-cart .cart_item img { border-radius: 12px; width: 64px; }
.woocommerce .shipping .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.woocommerce-checkout #payment { background: var(--cloud); border-radius: 16px; }

/* ═══════════ 13) حركة الدخول ═══════════ */

/* التخفي الأولي فقط بوجود JS (كلاس js على html) — بلا جافاسكريبت المحتوى ظاهر دائمًا. */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.9s var(--spring), transform 0.9s var(--spring);
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ═══════════ 14) الاستجابة ═══════════ */

@media (max-width: 1024px) {
	.site-nav { display: none; }
	.site-navrow-hint { display: none; }
	.site-burger { display: block; }
	.site-vendor-cta { display: none; }
	.site-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.cats-grid, .pgrid, .shop-main ul.products,
	.related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(3, 1fr); }
	.vgrid { grid-template-columns: repeat(2, 1fr); }
	.mega-in { grid-template-columns: 230px 1fr; }
	.mega-kids { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
	.site-topbar-links { display: none; }
	.site-masthead-in { flex-wrap: wrap; }
	.site-brand-text small { display: none; }
	.site-search { order: 3; flex-basis: 100%; }
	.site-actions { margin-inline-start: auto; }
	.site-action span { display: none; }
	.site-foot-grid { grid-template-columns: 1fr; }
	.hero-gates { gap: 12px; }
	.trust-grid { grid-template-columns: 1fr; }
	.cats-grid, .pgrid, .shop-main ul.products,
	.related.products ul.products, .upsells.products ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.vgrid { grid-template-columns: 1fr; }
	.mega-in { grid-template-columns: 1fr; }
	.mega-panes { display: none; } /* الجوال: الجذور روابط مباشرة */
}

/* ═══════════ 15) صفحات المحتوى والسياسات (7هـ) ═══════════ */

.page-hero .eyebrow { margin-bottom: 12px; }

/* «من نحن» */
.about-lede { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-lede-txt p { font-size: clamp(15.5px, 1.6vw, 18px); line-height: 2; color: var(--stone); margin: 0 0 18px; }
.about-lede-txt p strong { color: var(--night); }
.about-aside {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(22px, 3vw, 32px);
	display: grid;
	gap: 16px;
}
.about-aside-item { display: flex; gap: 13px; align-items: flex-start; }
.about-aside-item svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 3px; }
.about-aside-item b { display: block; font-size: 14.5px; color: var(--night); }
.about-aside-item span { font-size: 13px; color: var(--stone); line-height: 1.8; }

.stat-band { background: var(--night); color: #fff; padding-block: clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.stat-band .gate { border-color: rgba(255, 255, 255, 0.12); }
.stat-band-gates { position: absolute; inset-inline-start: 0; top: -40px; display: flex; gap: 14px; opacity: 0.5; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.stat-cell { text-align: center; padding: 10px; }
.stat-num { display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; color: var(--teal); line-height: 1.1; }
.stat-cell small { color: var(--mist); font-size: 13.5px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(20px, 2.6vw, 30px);
	position: relative;
}
.step-num {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 52px;
	border-radius: 22px 22px 8px 8px; /* القوس */
	background: var(--teal-ink);
	color: var(--teal);
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 17px; }
.step-card p { margin: 0; color: var(--stone); font-size: 14px; line-height: 1.9; }

/* «اتصل بنا» */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 18px 20px;
	transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.contact-card svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 4px; }
.contact-card b { display: block; font-size: 15px; margin-bottom: 3px; color: var(--night); }
.contact-card p { margin: 0; font-size: 13.5px; color: var(--stone); line-height: 1.8; }
.contact-card a { color: var(--teal); font-weight: 600; }

.cform {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(22px, 3vw, 34px);
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: block; font-size: 13.5px; font-weight: 600; color: var(--night); margin: 0 0 6px; }
.cform-field { margin-bottom: 16px; }
.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 11px 14px;
	font: inherit;
	font-size: 14px;
	background: var(--cloud);
	color: var(--night);
	transition: border-color 0.2s ease, background 0.2s ease;
}
.cform input:focus, .cform select:focus, .cform textarea:focus {
	outline: none;
	border-color: var(--teal);
	background: #fff;
}
.cform textarea { min-height: 140px; resize: vertical; }
.cform .btn { width: 100%; justify-content: center; }
.cform-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }
.cform-note {
	border-radius: var(--r-md);
	padding: 12px 16px;
	font-size: 14px;
	margin-bottom: 18px;
}
.cform-note--ok { background: rgba(12, 192, 174, 0.12); color: var(--teal-ink); }
.cform-note--err { background: rgba(255, 107, 87, 0.12); color: #a3321f; }

/* «الأسئلة الشائعة» */
.faq-wrap { max-width: 860px; }
.faq-group { margin-bottom: clamp(28px, 4vw, 44px); }
.faq-group > h2 { font-size: 20px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.faq-group > h2 .gate { width: 13px; height: 17px; border-width: 2px; }
.faq-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	margin-bottom: 10px;
	overflow: hidden;
}
.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 20px;
	font-weight: 600;
	font-size: 15px;
	color: var(--night);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '';
	flex: none;
	width: 10px;
	height: 10px;
	border-inline-start: 2px solid var(--teal);
	border-bottom: 2px solid var(--teal);
	transform: rotate(-45deg);
	transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item[open] summary { color: var(--teal-ink); }
.faq-a { padding: 0 20px 18px; color: var(--stone); font-size: 14.5px; line-height: 2; }
.faq-a a { color: var(--teal); font-weight: 600; }

/* السياسات */
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.policy-side { position: sticky; top: 24px; }
.policy-toc {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 20px;
}
.policy-toc-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--mist);
	margin-bottom: 10px;
}
.policy-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.policy-toc li { counter-increment: toc; }
.policy-toc a {
	display: flex;
	gap: 9px;
	padding: 7px 4px;
	font-size: 13.5px;
	color: var(--stone);
	border-radius: 8px;
}
.policy-toc a::before { content: counter(toc, arabic-indic) '.'; color: var(--teal); font-weight: 700; }
.policy-toc a:hover { color: var(--night); background: var(--cloud); }
.policy-main { max-width: 780px; counter-reset: psec; }
.policy-meta { color: var(--mist); font-size: 13px; margin: 0 0 18px; }
.policy-summary {
	background: rgba(12, 192, 174, 0.07);
	border: 1px solid rgba(12, 192, 174, 0.25);
	border-radius: var(--r-lg);
	padding: 20px 24px;
	margin-bottom: clamp(26px, 4vw, 40px);
}
.policy-summary strong { display: block; color: var(--teal-ink); margin-bottom: 10px; font-size: 15px; }
.policy-summary ul { margin: 0; padding-inline-start: 20px; }
.policy-summary li { font-size: 14px; color: var(--stone); line-height: 2; }
.policy-sec { counter-increment: psec; margin-bottom: clamp(26px, 4vw, 40px); scroll-margin-top: 24px; }
.policy-sec h2 { font-size: 19px; margin: 0 0 12px; display: flex; gap: 10px; align-items: baseline; }
.policy-sec h2::before { content: counter(psec, arabic-indic); color: var(--teal); font-size: 15px; font-weight: 700; }
.policy-sec p, .policy-sec li { color: var(--stone); font-size: 14.5px; line-height: 2.05; }
.policy-sec p { margin: 0 0 12px; }
.policy-sec ul, .policy-sec ol { margin: 0 0 12px; padding-inline-start: 22px; }
.policy-sec a { color: var(--teal); font-weight: 600; }
.policy-contact { border-top: 1px solid var(--line); padding-top: 18px; color: var(--stone); font-size: 14px; }
.policy-contact a { color: var(--teal); font-weight: 700; }

@media (max-width: 900px) {
	.about-lede, .contact-layout, .cform-row { grid-template-columns: 1fr; }
	.stat-grid { grid-template-columns: repeat(2, 1fr); }
	.steps-grid { grid-template-columns: 1fr; }
	.policy-layout { grid-template-columns: 1fr; }
	.policy-side { position: static; }
}

.section--tight { padding-top: 0; }
.about-join {
	background: var(--night);
	border-radius: var(--r-lg);
	padding: clamp(28px, 5vw, 52px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.about-join h2 { color: #fff; margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 28px); }
.about-join p { color: var(--mist); margin: 0; font-size: 14.5px; }

/* ═══════════ 16) صفحة المنتج المفردة ═══════════ */

.single-wrap { padding-top: clamp(20px, 3vw, 32px); }
.crumbs--light { color: var(--stone); font-size: 12.5px; margin-bottom: clamp(16px, 3vw, 26px); }
.crumbs--light a { color: var(--stone); }
.crumbs--light a:hover { color: var(--teal); }

/* التخطيط الثلاثي (نمط أمازون): معرض | معلومات | صندوق شراء.
   الأعمدة الثلاثة في .amz-top مستقلة عن التبويبات — اللصق (sticky) يقف عند
   نهاية .amz-top فلا يتراكب فوق التبويبات/المراجعات. */
.amz-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(270px, 320px);
	gap: clamp(22px, 3vw, 40px);
	align-items: start;
	margin: 0;
	position: relative;
}

/* المعرض (العمود الأول = يمين في RTL) — مصغّرات رأسية جانبية بنمط أمازون.
   المصغّرات مطلقة (لا flex على الحاوية) حتى لا تتأثّر قياسات flexslider للشرائح. */
.amz-gallery { position: sticky; top: 24px; }
.single-wrap .woocommerce-product-gallery {
	position: relative;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding-inline-end: 78px;
}
.single-wrap .woocommerce-product-gallery__wrapper { margin: 0; }
.single-wrap .woocommerce-product-gallery__image,
.single-wrap .woocommerce-product-gallery__image--placeholder {
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--cloud);
}
.single-wrap .woocommerce-product-gallery img { border-radius: var(--r-lg); display: block; }
.single-wrap .flex-control-thumbs { position: absolute; top: 0; inset-inline-end: 0; width: 66px; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.single-wrap .flex-control-thumbs li { width: 66px !important; height: 66px; } /* ‏!important يتجاوز عرض flexslider المضمّن */
.single-wrap .flex-control-thumbs img { width: 100% !important; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; opacity: 0.55; transition: opacity 0.3s var(--spring), border-color 0.3s var(--spring); }
.single-wrap .flex-control-thumbs img.flex-active,
.single-wrap .flex-control-thumbs img:hover { opacity: 1; border-color: var(--teal); }
.single-wrap .woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; inset-inline-end: 12px; z-index: 4;
	width: 40px; height: 40px; display: grid; place-items: center;
	background: #fff; border-radius: 50%; box-shadow: var(--shadow-soft); color: var(--night); font-size: 15px;
}

/* شارة «تخفيض!» الافتراضية مخفية — شارة الخصم −%N قرب السعر تكفي (نمط أمازون) */
.amz-gallery .onsale { display: none; }

/* العمود الأوسط: معلومات المنتج */
.amz-center { min-width: 0; }
.amz-center .product_title { font-size: clamp(21px, 2.9vw, 29px); line-height: 1.3; margin: 0 0 6px; }
.amz-store-link { display: inline-block; color: var(--teal); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.amz-store-link:hover { color: var(--coral); }
.amz-center .woocommerce-product-rating { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.amz-center .woocommerce-product-rating .star-rating { color: #F5A623; margin: 0; }
.amz-center .woocommerce-review-link { color: var(--teal); font-weight: 600; }
.amz-center .woocommerce-review-link:hover { color: var(--coral); }
.amz-sep { height: 1px; background: var(--line); margin: 16px 0; }
.amz-center-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amz-disc { color: var(--coral); font-weight: 800; font-size: clamp(18px, 2.4vw, 24px); }
.amz-center-price .price { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--coral); margin: 0; }
.amz-center-price .price del { color: var(--mist); font-size: 0.58em; font-weight: 600; opacity: 1; }
.amz-center-price .price ins { text-decoration: none; color: var(--coral); }

/* صف الثقة الأفقي (نمط أمازون) — خمسة عناصر في صف */
.p-trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; list-style: none; margin: 0; padding: 0; }
.p-trust li { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1 1 60px; max-width: 76px; text-align: center; font-size: 11px; color: var(--stone); font-weight: 600; line-height: 1.35; }
.p-trust-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--cloud); display: grid; place-items: center; color: var(--teal); }
.p-trust-ic svg { width: 20px; height: 20px; }
.amz-about h2 { font-size: 17px; margin: 0 0 10px; }
.amz-about .woocommerce-product-details__short-description { color: var(--stone); font-size: 14.5px; line-height: 1.95; }
.amz-about .woocommerce-product-details__short-description p { margin: 0 0 0.6em; }
.amz-center .product_meta { font-size: 12.5px; color: var(--stone); margin: 0; }
.amz-center .product_meta > span { display: block; padding: 3px 0; }
.amz-center .product_meta a { color: var(--teal); }

/* صندوق الشراء (العمود الثالث = يسار في RTL) */
.amz-buybox {
	position: sticky; top: 24px;
	border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 20px; background: #fff;
	display: grid; gap: 14px;
	box-shadow: var(--shadow-soft);
}
.amz-buybox-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amz-buybox-price .amz-disc { font-size: 17px; }
.amz-buybox-price .price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 24px; font-weight: 800; color: var(--coral); margin: 0; }
.amz-buybox-price .price del { color: var(--mist); font-size: 0.58em; font-weight: 600; opacity: 1; }
.amz-buybox-price .price ins { text-decoration: none; color: var(--coral); }
.amz-ship { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--stone); margin: 0; line-height: 1.65; }
.amz-ship svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.amz-stock { margin: 0; font-weight: 700; font-size: 15px; }
.amz-stock.is-in { color: #1a9d6e; }
.amz-stock.is-out { color: var(--coral); }

/* نموذج الشراء داخل الصندوق + «اشترِ الآن» */
.amz-buybox form.cart { display: grid; gap: 12px; margin: 0; }
.amz-buybox .quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: #fff; width: fit-content; }
.amz-buybox .quantity input.qty { width: 56px; height: 46px; border: 0; text-align: center; font: 700 15px var(--font); color: var(--night); background: transparent; }
.amz-buybox .single_add_to_cart_button,
.amz-buynow {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; border: 0; cursor: pointer;
	font: 700 15px var(--font); padding: 14px 24px; border-radius: var(--r-pill);
	transition: filter 0.35s var(--spring), box-shadow 0.35s var(--spring), transform 0.35s var(--spring);
}
.amz-buybox .single_add_to_cart_button.button { background: var(--teal) !important; color: var(--teal-ink) !important; }
.amz-buybox .single_add_to_cart_button.button:hover { filter: brightness(1.06); box-shadow: 0 12px 28px -14px rgba(12, 192, 174, 0.6); transform: translateY(-1px); }
.amz-buynow { background: var(--coral) !important; color: var(--night) !important; }
.amz-buynow:hover { filter: brightness(1.06); box-shadow: 0 12px 28px -14px rgba(255, 107, 87, 0.6); transform: translateY(-1px); }

/* الفاصل داخل الصندوق بلا هامش مزدوج (فجوة الشبكة تكفي) */
.amz-buybox .amz-sep { margin: 2px 0; }
/* بطاقة التاجر داخل الصندوق — تندمج بفاصل علوي */
.amz-buybox .scard { margin: 0; border: 0; border-radius: 0; padding: 0; background: none; }

/* التبويبات */
.single-wrap .woocommerce-tabs { margin-top: clamp(38px, 5vw, 60px); }
.single-wrap .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line);
}
.single-wrap .woocommerce-tabs ul.tabs::before,
.single-wrap .woocommerce-tabs ul.tabs::after { display: none; }
.single-wrap .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: 0; }
.single-wrap .woocommerce-tabs ul.tabs li a {
	display: inline-block; padding: 11px 20px; font-weight: 700; font-size: 14.5px; color: var(--stone);
}
.single-wrap .woocommerce-tabs ul.tabs li.active a,
.single-wrap .woocommerce-tabs ul.tabs li a:hover { color: var(--night); box-shadow: inset 0 -2px 0 var(--teal); }
.single-wrap .woocommerce-tabs .panel { color: var(--stone); font-size: 15px; line-height: 1.95; margin: 0; }
.single-wrap .woocommerce-tabs .panel > h2 { font-size: 20px; color: var(--night); margin: 0 0 12px; }

/* ملخص التقييم (نمط أمازون): متوسط كبير + شرائط توزيع */
.rsum { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin: 0 0 30px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.rsum-score { text-align: center; }
.rsum-avg { display: block; font-size: 44px; font-weight: 800; color: var(--night); line-height: 1; }
.rsum-score .rstars { width: 100px; height: 18px; margin: 8px 0 6px; }
.rsum-score .rstars::before, .rsum-score .rstars-on::before { font-size: 18px; letter-spacing: 2px; }
.rsum-total { color: var(--stone); font-size: 13.5px; }
.rsum-bars { display: grid; gap: 7px; }
.rsum-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.rsum-star { flex: none; width: 34px; color: var(--stone); font-weight: 600; }
.rsum-star::after { content: ''; }
.rsum-track { flex: 1 1 auto; height: 10px; background: var(--cloud); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rsum-fill { display: block; height: 100%; background: #F5A623; }
.rsum-pct { flex: none; width: 40px; text-align: end; color: var(--stone); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .rsum { grid-template-columns: 1fr; gap: 18px; } }

/* المراجعات + نموذجها */
.single-wrap #reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; }
.single-wrap #reviews .comment-form { display: grid; gap: 14px; max-width: 640px; }
.single-wrap #reviews .comment-form input[type="text"],
.single-wrap #reviews .comment-form input[type="email"],
.single-wrap #reviews .comment-form textarea {
	width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 14px; font: 14px var(--font); background: var(--cloud); color: var(--night);
}
.single-wrap #reviews .comment-form input:focus,
.single-wrap #reviews .comment-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.single-wrap #reviews .comment-form-rating .stars a { color: #F5A623; }
.single-wrap #reviews .form-submit input {
	background: var(--teal); color: var(--teal-ink); border: 0; border-radius: var(--r-pill); padding: 13px 30px; font: 700 14px var(--font); cursor: pointer;
}

/* ذات صلة/الترقيات */
.single-wrap .related > h2,
.single-wrap .upsells > h2 { font-size: clamp(20px, 2.6vw, 26px); margin: clamp(38px, 5vw, 56px) 0 22px; }

@media (max-width: 1080px) {
	/* لوحيّ: معرض + معلومات جنبًا، صندوق الشراء أسفلهما بعرض كامل */
	.amz-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.amz-buybox { grid-column: 1 / -1; max-width: 420px; }
}
@media (max-width: 760px) {
	.amz-top { grid-template-columns: 1fr; }
	.amz-gallery, .amz-buybox { position: static; }
	.amz-buybox { max-width: none; }
	/* الجوال: الصورة فوق والمصغّرات صفًّا أفقيًّا تحتها */
	.single-wrap .woocommerce-product-gallery { padding-inline-end: 0; }
	.single-wrap .flex-control-thumbs { position: static; width: auto; flex-direction: row; flex-wrap: wrap; margin-top: 12px; }
}

/* ── صفحة المنتج: صفوف التوصية (نمط أمازون) ── */

.amz-product > .woocommerce-tabs { margin-top: clamp(32px, 5vw, 52px); }

/* صف منتجات أفقي قابل للتمرير — بطاقات مريحة العرض (بلا زحمة) بعرض ثابت */
.prow-sec { margin-top: clamp(30px, 4vw, 48px); }
.prow {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 214px;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding-bottom: 8px;
	scrollbar-width: thin;
}
.prow-item { scroll-snap-align: start; }
.prow-item .pcard { height: 100%; }
.prow::-webkit-scrollbar { height: 8px; }
.prow::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* عادةً ما يُشترى معًا */
.fbt { margin-top: clamp(30px, 4vw, 48px); }
.fbt-title { font-size: clamp(19px, 2.4vw, 24px); margin: 0 0 18px; }
.fbt-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(18px, 3vw, 40px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(18px, 2.5vw, 26px);
}
.fbt-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fbt-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 116px; text-align: center; }
.fbt-item img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.fbt-item-price { font-size: 13px; font-weight: 700; color: var(--coral); }
.fbt-item-price del { color: var(--mist); font-weight: 500; font-size: 0.85em; }
.fbt-item-price ins { text-decoration: none; }
.fbt-plus { color: var(--mist); font-size: 22px; font-weight: 700; }
.fbt-buy { display: grid; gap: 12px; }
.fbt-total { font-size: 15px; color: var(--stone); }
.fbt-total b { color: var(--night); font-size: 18px; }
.fbt-buy .btn { justify-content: center; }

/* ── قائمة الرغبات (المفضلة) ── */

/* زر القلب على البطاقة */
.pcard { position: relative; }
.wish-btn {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px; border: 0; cursor: pointer;
	border-radius: 50%; background: rgba(255, 255, 255, 0.92);
	color: var(--stone); box-shadow: 0 6px 16px -8px rgba(14, 27, 44, 0.4);
	transition: color 0.3s var(--spring), background 0.3s var(--spring), transform 0.3s var(--spring);
}
.wish-btn svg { width: 19px; height: 19px; transition: fill 0.3s var(--spring); }
.wish-btn:hover { color: var(--coral); transform: scale(1.08); }
.wish-btn.is-active { color: var(--coral); }
.wish-btn.is-active svg { fill: var(--coral); }
.wish-btn--card { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; }

/* زر القلب في صندوق شراء المنتج */
.amz-wish { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--night); font: 700 14px var(--font); cursor: pointer; transition: border-color 0.3s var(--spring), color 0.3s var(--spring); }
.amz-wish svg { width: 18px; height: 18px; }
.amz-wish:hover { border-color: var(--coral); color: var(--coral); }
.amz-wish.is-active { color: var(--coral); border-color: rgba(255, 107, 87, 0.4); }
.amz-wish.is-active svg { fill: var(--coral); }
.amz-wish .amz-wish-off { display: inline; }
.amz-wish .amz-wish-on { display: none; }
.amz-wish.is-active .amz-wish-off { display: none; }
.amz-wish.is-active .amz-wish-on { display: inline; }

/* شارة عدّاد المفضلة في الهيدر */
.site-wish-badge {
	position: absolute; top: -6px; inset-inline-start: 12px;
	min-width: 18px; height: 18px; padding: 0 5px;
	display: grid; place-items: center;
	background: var(--coral); color: var(--night);
	border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1;
}

/* صفحة المفضلة */
.wishlist-empty { text-align: center; max-width: 480px; margin-inline: auto; padding-block: clamp(20px, 4vw, 40px); }
.wishlist-empty .notfound-gates { display: flex; justify-content: center; gap: 14px; margin-bottom: 26px; }
.wishlist-empty h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
.wishlist-empty p { color: var(--stone); margin: 0 0 24px; }

/* ═══════════ حساب العميل — دخول/تسجيل ═══════════ */
.roeia-auth { max-width: 1080px; margin-inline: auto; }
.roeia-auth-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 26px; align-items: start; }
.roeia-auth-grid.is-login-only { grid-template-columns: minmax(0, 460px); justify-content: center; }

.roeia-auth-main,
.roeia-auth-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: clamp(22px, 3vw, 36px);
	box-shadow: var(--shadow-soft);
}
.roeia-auth-main { position: relative; overflow: hidden; }
.roeia-auth-main::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--coral)); }

.roeia-auth-head { margin-bottom: 22px; }
.roeia-auth-eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal);
	background: rgba(12, 192, 174, 0.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.roeia-auth-title { font-size: clamp(22px, 3vw, 29px); font-weight: 800; color: var(--night); margin: 0; line-height: 1.2; }
.roeia-auth-title.sm { font-size: clamp(19px, 2.4vw, 22px); }
.roeia-auth-sub { color: var(--stone); font-size: 14.5px; margin: 8px 0 0; }

.roeia-auth-section { margin-top: 22px; }
.roeia-auth-legend {
	font-size: 12.5px; font-weight: 700; color: var(--stone); text-transform: none;
	margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
	display: flex; align-items: center; gap: 8px;
}
.roeia-auth-legend::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--teal); }

.roeia-auth-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.roeia-field { margin: 0; display: flex; flex-direction: column; }
.roeia-field--wide { grid-column: 1 / -1; }
.roeia-field label { font-size: 13px; font-weight: 600; color: var(--night); margin-bottom: 6px; }
.roeia-field .req { color: var(--coral); }
.roeia-field .opt { color: var(--mist); font-weight: 500; font-size: 12px; }
.roeia-auth input[type="text"],
.roeia-auth input[type="email"],
.roeia-auth input[type="tel"],
.roeia-auth input[type="password"],
.roeia-auth select {
	width: 100%; border: 1px solid var(--line); border-radius: 12px;
	padding: 12px 14px; font: inherit; font-size: 14px;
	background: var(--cloud); color: var(--night);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.roeia-auth input:focus,
.roeia-auth select:focus {
	outline: none; border-color: var(--teal); background: #fff;
	box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.14);
}
.roeia-auth select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-start: 40px; }

.roeia-auth-note,
.roeia-auth-privacy { font-size: 13px; color: var(--stone); margin: 16px 0 0; line-height: 1.7; }
.roeia-auth-privacy a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.roeia-auth-submit { margin: 20px 0 0; }
.roeia-auth-submit .btn { width: 100%; justify-content: center; }
/* دخول تركوازي، تسجيل مرجاني — يغلب على !important في .woocommerce button.button */
.roeia-auth .btn.btn-teal { background: var(--teal) !important; color: var(--teal-ink) !important; }
.roeia-auth .btn.btn-teal:hover { filter: brightness(1.07); box-shadow: 0 14px 34px -14px rgba(12, 192, 174, 0.55); }
.roeia-auth .btn.btn-coral { background: var(--coral) !important; color: var(--night) !important; }

.roeia-auth-side { display: flex; flex-direction: column; gap: 18px; }
.roeia-auth-login .roeia-auth-sub { margin-bottom: 18px; }
.roeia-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.roeia-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--stone); cursor: pointer; }
.roeia-check input { width: 16px; height: 16px; accent-color: var(--teal); }
.roeia-auth-lost { font-size: 13.5px; color: var(--teal); text-decoration: none; }
.roeia-auth-lost:hover { text-decoration: underline; text-underline-offset: 3px; }

.roeia-auth-perks {
	list-style: none; margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px;
	background: var(--cloud); border-radius: 20px; border: 1px solid var(--line);
}
.roeia-auth-perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--night); line-height: 1.5; }
.roeia-auth-perks .rcheck { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }

/* تنبيهات ووكومرس (أخطاء التحقّق/الرسائل) */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
	font-size: 14px; line-height: 1.6; border: 1px solid transparent;
}
.woocommerce-error { background: rgba(255, 107, 87, 0.08); border-color: rgba(255, 107, 87, 0.35); color: #9c2a1a; }
.woocommerce-message { background: rgba(12, 192, 174, 0.08); border-color: rgba(12, 192, 174, 0.35); color: var(--teal-ink); }
.woocommerce-info { background: var(--cloud); border-color: var(--line); color: var(--stone); }
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li { margin: 0; }

@media (max-width: 860px) {
	.roeia-auth-grid { grid-template-columns: 1fr; }
	.roeia-auth-side { flex-direction: column-reverse; }
}
@media (max-width: 520px) {
	.roeia-auth-fields { grid-template-columns: 1fr; }
}

/* ═══════════ لوحة «حسابي» (بعد الدخول) ═══════════ */
.logged-in.woocommerce-account .woocommerce {
	display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 26px; align-items: start;
}
.logged-in.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.logged-in.woocommerce-account .woocommerce > .woocommerce-message,
.logged-in.woocommerce-account .woocommerce > .woocommerce-error,
.logged-in.woocommerce-account .woocommerce > .woocommerce-info { grid-column: 1 / -1; }
/* صفّر float/width من ووكومرس ليتحكّم الـgrid في التخطيط */
.logged-in.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation { float: none; width: auto; margin: 0; grid-column: 1; }
.logged-in.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; min-width: 0; grid-column: 2; }

/* التنقّل الجانبي */
.roeia-account-nav { position: sticky; top: 92px; }
.roeia-account-nav ul {
	list-style: none; margin: 0; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: 20px;
	box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 2px;
}
.roeia-account-nav li { margin: 0; }
.roeia-account-nav li a {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px;
	border-radius: 13px; color: var(--stone); font-weight: 600; font-size: 14.5px;
	text-decoration: none; transition: background 0.2s ease, color 0.2s ease;
}
.roeia-account-nav .acc-ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--mist); transition: color 0.2s ease; }
.roeia-account-nav li a:hover { background: var(--cloud); color: var(--night); }
.roeia-account-nav li a:hover .acc-ico { color: var(--teal); }
.roeia-account-nav li.is-active a { background: var(--night); color: #fff; }
.roeia-account-nav li.is-active .acc-ico { color: var(--teal); }
.roeia-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--coral); }
.roeia-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: rgba(255, 107, 87, 0.08); color: var(--coral); }
.roeia-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout .acc-ico { color: currentColor; }

.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p { color: var(--stone); line-height: 1.8; }
.woocommerce-MyAccount-content a:not(.btn):not(.button) { color: var(--teal); }

/* لوحة التحكم — بطاقات سريعة */
.roeia-dash-welcome h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--night); margin: 0 0 6px; }
.roeia-dash-welcome p { color: var(--stone); margin: 0 0 24px; }
.roeia-dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.roeia-dash-card {
	display: flex; align-items: center; gap: 14px; padding: 18px;
	background: #fff; border: 1px solid var(--line); border-radius: 18px;
	text-decoration: none; box-shadow: var(--shadow-soft);
	transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring);
}
.roeia-dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.roeia-dash-card-ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(12, 192, 174, 0.1); display: grid; place-items: center; flex-shrink: 0; }
.roeia-dash-card-ico .acc-ico { width: 24px; height: 24px; color: var(--teal); }
.roeia-dash-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.roeia-dash-card-body strong { color: var(--night); font-size: 15.5px; }
.roeia-dash-card-body span { color: var(--stone); font-size: 12.5px; }
.roeia-dash-card-go { width: 18px; height: 18px; color: var(--mist); flex-shrink: 0; transition: color 0.2s ease; }
.roeia-dash-card:hover .roeia-dash-card-go { color: var(--coral); }

/* جداول الطلبات/التنزيلات */
.woocommerce-MyAccount-content table.shop_table {
	width: 100%; border-collapse: collapse; background: #fff;
	border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0;
}
.woocommerce-MyAccount-content table.shop_table th { background: var(--cloud); color: var(--stone); font-size: 13px; font-weight: 700; padding: 13px 16px; text-align: start; }
.woocommerce-MyAccount-content table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--night); }
.woocommerce-MyAccount-content table.shop_table tbody tr:hover { background: var(--cloud); }

/* العناوين */
.woocommerce-Addresses { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.logged-in.woocommerce-account .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; margin: 0; flex: 1 1 300px; }
.woocommerce-Address { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 { font-size: 17px; font-weight: 800; color: var(--night); margin: 0; }
.woocommerce-Address-title .edit { font-size: 13.5px; color: var(--teal); text-decoration: none; font-weight: 600; }
.woocommerce-Address address { font-style: normal; color: var(--stone); line-height: 1.9; font-size: 14px; }

/* نماذج تفاصيل الحساب/العنوان */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields { max-width: 620px; }
.woocommerce-MyAccount-content .woocommerce-form-row label,
.woocommerce-MyAccount-content .form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--night); margin-bottom: 6px; }
.woocommerce-MyAccount-content input.input-text,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
	width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
	font: inherit; font-size: 14px; background: var(--cloud); color: var(--night);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(12, 192, 174, 0.14); }
.woocommerce-MyAccount-content .woocommerce-form-row { margin-bottom: 16px; }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 24px; }
.woocommerce-MyAccount-content fieldset legend { font-weight: 800; color: var(--night); padding-inline: 8px; }

@media (max-width: 860px) {
	.logged-in.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.roeia-account-nav { position: static; }
	.roeia-account-nav ul { flex-direction: row; overflow-x: auto; padding: 8px; }
	.roeia-account-nav li a { white-space: nowrap; padding: 10px 14px; }
	.woocommerce-Addresses { grid-template-columns: 1fr; }
}
