/**
 * صفحة المتجر العامة — سوق رؤية
 * الهوية: docs/brand/BRAND.md — نمط «البوابات» في البانر الافتراضي والحالة الفارغة.
 *
 * نظام الشكل: بطاقات 16px، وسائط 12px، شارات/أزرار حبّة (pill).
 * الظلال مصبوغة بلون الليل — لا ظل أسود صافٍ.
 *
 * Copyright © 2026 Roeia — roeia.com
 */

@font-face {
	font-family: 'Plex Arabic';
	src: url('../fonts/plex-arabic-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Plex Arabic';
	src: url('../fonts/plex-arabic-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.roeia-store {
	--roeia-night: #0E1B2C;
	--roeia-night-deep: #0A1522;
	--roeia-teal: #0CC0AE;
	--roeia-teal-dark: #0AA396;
	--roeia-teal-ink: #067367;
	--roeia-coral: #FF6B57;
	--roeia-cloud: #F4F9F8;
	--roeia-mist: #8FA8B5;
	--roeia-stone: #5B6B74;
	--roeia-line: rgba(14, 27, 44, 0.08);
	--roeia-ease: cubic-bezier(0.22, 1, 0.36, 1);
	/* نمط البوابات — نسخة داكنة لبانر المتجر الافتراضي: أقواس خافتة وواحدة مضيئة بالمرجان */
	--roeia-arches-dark: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='72'%20viewBox='0%200%20240%2072'%3E%3Cg%20fill='none'%20stroke-width='1.5'%3E%3Cpath%20stroke='%231C3040'%20d='M3,72V30C3,18,8,11,15,7C22,11,27,18,27,30V72M33,72V30C33,18,38,11,45,7C52,11,57,18,57,30V72M63,72V30C63,18,68,11,75,7C82,11,87,18,87,30V72M93,72V30C93,18,98,11,105,7C112,11,117,18,117,30V72M123,72V30C123,18,128,11,135,7C142,11,147,18,147,30V72M183,72V30C183,18,188,11,195,7C202,11,207,18,207,30V72M213,72V30C213,18,218,11,225,7C232,11,237,18,237,30V72'/%3E%3Cpath%20stroke='%23FF6B57'%20d='M153,72V30C153,18,158,11,165,7C172,11,177,18,177,30V72'/%3E%3C/g%3E%3C/svg%3E");
	/* نسخة فاتحة للحالة الفارغة */
	--roeia-arches-light: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='72'%20viewBox='0%200%20240%2072'%3E%3Cg%20fill='none'%20stroke-width='1.5'%3E%3Cpath%20stroke='%230E1B2C'%20stroke-opacity='0.09'%20d='M3,72V30C3,18,8,11,15,7C22,11,27,18,27,30V72M33,72V30C33,18,38,11,45,7C52,11,57,18,57,30V72M63,72V30C63,18,68,11,75,7C82,11,87,18,87,30V72M93,72V30C93,18,98,11,105,7C112,11,117,18,117,30V72M123,72V30C123,18,128,11,135,7C142,11,147,18,147,30V72M183,72V30C183,18,188,11,195,7C202,11,207,18,207,30V72M213,72V30C213,18,218,11,225,7C232,11,237,18,237,30V72'/%3E%3Cpath%20stroke='%23FF6B57'%20stroke-opacity='0.9'%20d='M153,72V30C153,18,158,11,165,7C172,11,177,18,177,30V72'/%3E%3C/g%3E%3C/svg%3E");

	font-family: 'Plex Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--roeia-night);
	direction: rtl;
	background: var(--roeia-cloud);
}

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

.roeia-store a {
	text-decoration: none;
}

.roeia-store :is(a, button):focus-visible {
	outline: 2px solid var(--roeia-teal-dark);
	outline-offset: 2px;
	border-radius: 6px;
}

.roeia-store .roeia-i {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	display: inline-block;
}

.roeia-store-wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---------- رأس المتجر ---------- */

.roeia-store-hero {
	background: transparent;
	padding-bottom: 4px;
}

.roeia-store-banner {
	position: relative;
	height: 312px;
	background-color: var(--roeia-night);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	isolation: isolate;
}

/* غلالة سينمائية فوق كل بانر — تعمّق الصورة وتحمي حافة الشعار */
.roeia-store-banner::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(10, 21, 34, 0.42), rgba(10, 21, 34, 0) 34%),
		linear-gradient(to top, rgba(10, 21, 34, 0.5), rgba(10, 21, 34, 0) 42%);
	pointer-events: none;
}

/* البانر الافتراضي: بوابات أعلى + هالات ضوء تركواز/مرجان خافتة فوق ليلٍ متدرّج */
.roeia-store-banner.is-pattern {
	background-image:
		radial-gradient(820px 380px at 16% -14%, rgba(12, 192, 174, 0.24), transparent 70%),
		radial-gradient(620px 330px at 85% 2%, rgba(255, 107, 87, 0.13), transparent 72%),
		radial-gradient(520px 220px at 50% 108%, rgba(12, 192, 174, 0.12), transparent 75%),
		var(--roeia-arches-dark),
		linear-gradient(to bottom, #101F33, var(--roeia-night-deep));
	background-repeat: no-repeat, no-repeat, no-repeat, repeat-x, no-repeat;
	background-position: top, top, bottom, bottom center, center;
	background-size: auto, auto, auto, auto 190px, cover;
}

.roeia-store-banner.is-pattern::after {
	/* البوابات ترتكز على الحافة — الغلالة السفلية تُرفع حتى لا تطمسها */
	background: linear-gradient(to bottom, rgba(10, 21, 34, 0.35), rgba(10, 21, 34, 0) 30%);
}

/* لوحة الهوية — بطاقة بيضاء عائمة تعلو حافة البانر (إطار مزدوج: خط شعري + ظل ليلي) */
.roeia-store-panel {
	position: relative;
	z-index: 1;
	margin-top: -78px;
	background: #fff;
	border-radius: 26px;
	padding: 26px 34px 30px;
	box-shadow:
		0 0 0 1px rgba(14, 27, 44, 0.05),
		0 2px 4px rgba(14, 27, 44, 0.04),
		0 34px 64px -34px rgba(14, 27, 44, 0.4);
}

.roeia-store-head {
	display: flex;
	align-items: flex-start;
	gap: 26px;
	padding-top: 0;
	position: relative;
	z-index: 1;
}

.roeia-store-logo {
	/* الشعار يعلو حافة اللوحة والبانر — إطار مزدوج: صينية بيضاء وخط شعري */
	margin-top: -70px;
	width: 122px;
	height: 122px;
	padding: 7px;
	border-radius: 22px;
	background: #fff;
	box-shadow:
		0 0 0 1px rgba(14, 27, 44, 0.09),
		0 1px 2px rgba(14, 27, 44, 0.08),
		0 24px 46px -20px rgba(14, 27, 44, 0.5);
	overflow: hidden;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.roeia-store-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: 100%;
	border-radius: 13px;
}

.roeia-store-logo-initial {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background:
		radial-gradient(120px 90px at 50% -20%, rgba(12, 192, 174, 0.28), transparent 75%),
		var(--roeia-night);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--roeia-teal);
}

.roeia-store-idcard {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.roeia-store-name {
	margin: 0;
	font-family: inherit;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--roeia-night);
	text-wrap: balance;
}

/* شارة التوثيق — جوهرة الهوية: تركواز بلمعة داخلية وهالة خفيفة، ونص ليلي دائمًا */
.roeia-badge-verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--roeia-teal);
	color: var(--roeia-night);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px 6px 15px;
	border-radius: 999px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		inset 0 -1px 0 rgba(14, 27, 44, 0.12),
		0 6px 14px -6px rgba(12, 192, 174, 0.55);
}

.roeia-badge-verified .roeia-i {
	width: 13px;
	height: 13px;
}

/* كتلة الإحصاءات — ترسو على يسار اللوحة لموازنة الاسم على اليمين */
.roeia-store-stats {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 12px;
	align-self: center;
	align-items: stretch;
}

.roeia-store-stat {
	min-width: 108px;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--roeia-cloud);
	box-shadow: inset 0 0 0 1px rgba(14, 27, 44, 0.05);
}

.roeia-store-stat-label {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	color: var(--roeia-stone);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.roeia-store-stat-label .roeia-i {
	width: 13px;
	height: 13px;
	color: var(--roeia-teal-dark);
}

.roeia-store-stat-value {
	margin: 4px 0 0;
	color: var(--roeia-night);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	font-variant-numeric: tabular-nums;
}

.roeia-store-desc {
	margin: 22px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--roeia-line);
	max-width: 72ch;
	color: var(--roeia-stone);
	font-size: 15px;
	line-height: 1.9;
}

/* ---------- قسم المنتجات ---------- */

.roeia-store-products {
	margin: 56px 0 100px;
}

.roeia-store-products-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 0;
}

.roeia-store-products-head h2 {
	margin: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	color: var(--roeia-night);
	line-height: 1.4;
}

.roeia-store-count {
	background: rgba(12, 192, 174, 0.13);
	color: var(--roeia-teal-ink);
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 13px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* خيط شعري يمدّ إيقاع الرأس حتى حافة الشبكة */
.roeia-store-products-head::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--roeia-line);
	min-width: 40px;
}

/* شبكة منتجات ووكومرس (content-product) بهوية سوق رؤية */

.roeia-store ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.roeia-store ul.products::before,
.roeia-store ul.products::after {
	content: none;
}

.roeia-store ul.products li.product {
	position: relative;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--roeia-line);
	border-radius: 16px;
	padding: 12px 12px 16px;
	box-shadow:
		0 1px 2px rgba(14, 27, 44, 0.04),
		0 14px 30px -20px rgba(14, 27, 44, 0.18);
	display: flex;
	flex-direction: column;
	transition:
		border-color 0.3s var(--roeia-ease),
		transform 0.45s var(--roeia-ease),
		box-shadow 0.45s var(--roeia-ease);
}

.roeia-store ul.products li.product:hover {
	border-color: rgba(12, 192, 174, 0.55);
	transform: translateY(-5px);
	box-shadow:
		0 1px 2px rgba(14, 27, 44, 0.05),
		0 24px 44px -22px rgba(14, 27, 44, 0.28);
}

.roeia-store ul.products li.product > a.woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* إطار الصورة — خط شعري داخلي وظل ناعم يرفع الصورة كصورة منتج على سطح */
.roeia-store ul.products li.product a img {
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	margin: 0 0 14px;
	display: block;
	background: var(--roeia-cloud);
	box-shadow:
		inset 0 0 0 1px rgba(14, 27, 44, 0.06),
		0 12px 24px -18px rgba(14, 27, 44, 0.45);
	transition:
		transform 0.5s var(--roeia-ease),
		filter 0.5s var(--roeia-ease),
		box-shadow 0.5s var(--roeia-ease);
	will-change: transform;
}

.roeia-store ul.products li.product:hover a img {
	transform: scale(1.04);
	filter: saturate(1.06);
	box-shadow:
		inset 0 0 0 1px rgba(14, 27, 44, 0.06),
		0 18px 30px -18px rgba(14, 27, 44, 0.5);
}

.roeia-store ul.products li.product .woocommerce-loop-product__title {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: var(--roeia-night);
	padding: 0;
	margin: 0;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(2 * 1.55em);
	transition: color 0.2s ease;
}

.roeia-store ul.products li.product:hover .woocommerce-loop-product__title {
	color: var(--roeia-teal-ink);
}

.roeia-store ul.products li.product .price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--roeia-night);
	font-size: 17px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
	margin: 8px 0 14px;
}

.roeia-store ul.products li.product .price .woocommerce-Price-currencySymbol {
	font-size: 0.72em;
	font-weight: 400;
	color: var(--roeia-stone);
}

.roeia-store ul.products li.product .price del {
	color: var(--roeia-stone);
	font-size: 13px;
	font-weight: 400;
	opacity: 1;
	text-decoration-color: rgba(255, 107, 87, 0.7);
	text-decoration-thickness: 1.5px;
}

.roeia-store ul.products li.product .price del .woocommerce-Price-currencySymbol {
	font-size: 0.9em;
}

.roeia-store ul.products li.product .price ins {
	text-decoration: none;
	color: var(--roeia-night);
}

.roeia-store ul.products li.product .star-rating span::before {
	color: var(--roeia-coral);
}

/* زر الإضافة — هادئ ونحيل في السكون (تركواز خافت + خط شعري)، يمتلئ تركوازًا صلبًا
   عند مرور المؤشر أو تحويم البطاقة: طاقة عند الطلب بدل جدار أزرار صاخب */
.roeia-store ul.products li.product .button,
.roeia-store ul.products li.product .add_to_cart_button {
	margin-top: auto;
	background: rgba(12, 192, 174, 0.1);
	color: var(--roeia-teal-ink);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	padding: 11px 18px;
	text-align: center;
	box-shadow: inset 0 0 0 1px rgba(12, 192, 174, 0.26);
	transition:
		background-color 0.25s var(--roeia-ease),
		color 0.25s var(--roeia-ease),
		transform 0.2s var(--roeia-ease),
		box-shadow 0.3s var(--roeia-ease);
}

.roeia-store ul.products li.product:hover .button,
.roeia-store ul.products li.product:hover .add_to_cart_button,
.roeia-store ul.products li.product .button:hover,
.roeia-store ul.products li.product .add_to_cart_button:hover,
.roeia-store ul.products li.product .button:focus-visible,
.roeia-store ul.products li.product .add_to_cart_button:focus-visible {
	background: var(--roeia-teal);
	color: var(--roeia-night); /* ليل فوق التركواز دائمًا */
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		0 10px 20px -10px rgba(12, 192, 174, 0.6);
}

.roeia-store ul.products li.product .button:active,
.roeia-store ul.products li.product .add_to_cart_button:active {
	transform: scale(0.97);
}

/* على الأجهزة اللمسية لا يوجد تحويم — يبقى الزر ممتلئًا تركوازًا للوضوح */
@media (hover: none) {
	.roeia-store ul.products li.product .button,
	.roeia-store ul.products li.product .add_to_cart_button {
		background: var(--roeia-teal);
		color: var(--roeia-night);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
	}
}

/* أثناء الإضافة للسلة (ajax) — مؤشر دوّار صغير */
.roeia-store ul.products li.product .add_to_cart_button.loading {
	opacity: 0.75;
	position: relative;
}

.roeia-store ul.products li.product .add_to_cart_button.loading::after {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-inline-start: 8px;
	vertical-align: -1px;
	border: 2px solid rgba(14, 27, 44, 0.35);
	border-top-color: var(--roeia-night);
	border-radius: 50%;
	animation: roeia-spin 0.7s linear infinite;
}

@keyframes roeia-spin {
	to {
		transform: rotate(360deg);
	}
}

/* رابط «عرض السلة» الذي يظهر بعد الإضافة */
.roeia-store ul.products li.product .added_to_cart {
	margin-top: 10px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--roeia-teal-ink);
}

.roeia-store ul.products li.product .added_to_cart:hover {
	color: var(--roeia-night);
}

/* شارة الخصم — مرجان فوق الصورة، لا يزيح المحتوى */
.roeia-store ul.products li.product .onsale {
	position: absolute;
	top: 22px;
	inset-inline-start: 22px;
	inset-inline-end: auto;
	z-index: 2;
	margin: 0;
	background: var(--roeia-coral); /* المرجان = طاقة العروض */
	color: var(--roeia-night);
	font-weight: 700;
	font-size: 12px;
	min-width: 0;
	min-height: 0;
	line-height: 1.6;
	padding: 3px 12px;
	border-radius: 999px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.35),
		0 6px 12px -5px rgba(255, 107, 87, 0.65);
}

/* ---------- ترقيم الصفحات ---------- */

.roeia-store-pagination ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	list-style: none;
	margin: 44px 0 0;
	padding: 0;
	border: 0;
}

.roeia-store-pagination ul.page-numbers li {
	margin: 0;
	border: 0;
}

.roeia-store-pagination .page-numbers a,
.roeia-store-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 15px;
	border: 1px solid rgba(14, 27, 44, 0.14);
	border-radius: 999px;
	background: #fff;
	color: var(--roeia-night);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		transform 0.2s var(--roeia-ease);
}

.roeia-store-pagination .page-numbers a:hover {
	border-color: var(--roeia-teal-dark);
	transform: translateY(-1px);
}

.roeia-store-pagination .page-numbers span.current {
	background: var(--roeia-night);
	border-color: var(--roeia-night);
	color: var(--roeia-cloud);
	box-shadow: 0 8px 16px -10px rgba(14, 27, 44, 0.5);
}

.roeia-store-pagination .page-numbers span.dots {
	border-color: transparent;
	background: transparent;
	color: var(--roeia-stone);
}

/* ---------- الحالة الفارغة: «لسه مفيش منتجات» ---------- */

.roeia-store-empty {
	margin-top: 28px;
	background: #fff;
	border: 1px dashed rgba(14, 27, 44, 0.16);
	border-radius: 20px;
	text-align: center;
	padding: 0 24px 56px;
	overflow: hidden;
}

.roeia-store-empty .roeia-arches {
	height: 92px;
	background-image: var(--roeia-arches-light);
	background-repeat: repeat-x;
	background-position: bottom center;
	background-size: auto 76px;
	margin-bottom: 30px;
}

.roeia-store-empty h3 {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 21px;
	font-weight: 700;
	color: var(--roeia-night);
}

.roeia-store-empty p {
	margin: 0 auto;
	max-width: 42ch;
	color: var(--roeia-stone);
	font-size: 14.5px;
	line-height: 1.9;
}

/* ---------- حركة الدخول — تُفعَّل فقط عند السماح بالحركة ---------- */

@media (prefers-reduced-motion: no-preference) {
	.roeia-store-head,
	.roeia-store-desc {
		animation: roeia-rise 0.65s var(--roeia-ease) backwards;
	}

	.roeia-store-desc {
		animation-delay: 0.1s;
	}

	.roeia-store ul.products li.product {
		animation: roeia-rise 0.6s var(--roeia-ease) backwards;
	}

	.roeia-store ul.products li.product:nth-child(1) { animation-delay: 0.05s; }
	.roeia-store ul.products li.product:nth-child(2) { animation-delay: 0.1s; }
	.roeia-store ul.products li.product:nth-child(3) { animation-delay: 0.15s; }
	.roeia-store ul.products li.product:nth-child(4) { animation-delay: 0.2s; }
	.roeia-store ul.products li.product:nth-child(5) { animation-delay: 0.25s; }
	.roeia-store ul.products li.product:nth-child(6) { animation-delay: 0.3s; }
	.roeia-store ul.products li.product:nth-child(7) { animation-delay: 0.35s; }
	.roeia-store ul.products li.product:nth-child(n+8) { animation-delay: 0.4s; }

	@keyframes roeia-rise {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
	}
}

/* ---------- استجابة الشاشات الصغيرة ---------- */

@media (max-width: 900px) {
	.roeia-store ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 640px) {
	.roeia-store-banner {
		height: 200px;
	}

	.roeia-store-banner.is-pattern {
		background-size: auto, auto, auto 132px, cover;
	}

	.roeia-store-hero {
		padding-bottom: 0;
	}

	.roeia-store-wrap {
		padding-inline: 16px;
	}

	.roeia-store-panel {
		margin-top: -58px;
		padding: 18px 18px 22px;
		border-radius: 20px;
	}

	.roeia-store-head {
		gap: 14px;
		padding-top: 0;
		flex-wrap: wrap;
	}

	.roeia-store-logo {
		margin-top: -56px;
		width: 86px;
		height: 86px;
		padding: 5px;
		border-radius: 18px;
	}

	.roeia-store-logo img,
	.roeia-store-logo-initial {
		border-radius: 13px;
	}

	.roeia-store-logo-initial {
		font-size: 34px;
	}

	.roeia-store-idcard {
		padding-top: 6px;
		gap: 10px;
	}

	.roeia-store-name {
		font-size: 23px;
	}

	/* الإحصاءات تنزل لسطر كامل تحت الاسم — بطاقتان متساويتان */
	.roeia-store-stats {
		flex: 1 0 100%;
		align-self: auto;
		gap: 10px;
	}

	.roeia-store-stat {
		flex: 1 1 0;
		min-width: 0;
		padding: 10px 14px;
	}

	.roeia-store-desc {
		font-size: 14px;
	}

	.roeia-store-products {
		margin: 36px 0 72px;
	}

	.roeia-store ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin-top: 22px;
	}

	.roeia-store ul.products li.product {
		padding: 9px 9px 12px;
		border-radius: 14px;
	}

	.roeia-store ul.products li.product a img {
		margin-bottom: 10px;
	}

	.roeia-store ul.products li.product .woocommerce-loop-product__title {
		font-size: 13.5px;
	}

	.roeia-store ul.products li.product .price {
		font-size: 15px;
		margin: 6px 0 12px;
	}

	.roeia-store ul.products li.product .button,
	.roeia-store ul.products li.product .add_to_cart_button {
		font-size: 12.5px;
		padding: 10px 12px;
	}

	.roeia-store ul.products li.product .onsale {
		top: 16px;
		inset-inline-start: 16px;
	}

	.roeia-store-pagination .page-numbers a,
	.roeia-store-pagination .page-numbers span {
		min-width: 38px;
		height: 38px;
		padding: 0 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.roeia-store *,
	.roeia-store *::before,
	.roeia-store *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ============================================================
   تقييمات المتجر (المرحلة 6أ)
   ============================================================ */

/* نجوم عامة */
.roeia-stars { display: inline-flex; align-items: center; color: #F5A623; line-height: 1; }
.roeia-stars .dashicons { font-size: 17px; width: 17px; height: 17px; }
.roeia-stars--lg .dashicons { font-size: 22px; width: 22px; height: 22px; }

/* شارة التقييم في بطاقة المتجر */
.roeia-store-rating {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	color: #fff;
	font-size: 13px;
}
.roeia-store-rating b { font-variant-numeric: tabular-nums; }
.roeia-store-rating-count { color: rgba(255, 255, 255, 0.7); }

/* زر «راسل التاجر» في بطاقة المتجر */
.roeia-store-contact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	padding: 9px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.roeia-store-contact:hover,
.roeia-store-contact:focus {
	background: rgba(255, 255, 255, 0.24);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}
.roeia-store-contact .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
}

/* قسم التقييمات */
.roeia-reviews {
	margin-top: 30px;
	background: #fff;
	border: 1px solid var(--roeia-line, rgba(14,27,44,0.08));
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 1px 2px rgba(14, 27, 44, 0.04), 0 14px 30px -20px rgba(14, 27, 44, 0.18);
}
.roeia-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.roeia-reviews-head h2 { font-size: 20px; font-weight: 700; color: var(--roeia-night, #0E1B2C); margin: 0; }
.roeia-reviews-avg { display: inline-flex; align-items: center; gap: 10px; }
.roeia-reviews-avg-num { font-size: 30px; font-weight: 700; color: var(--roeia-night, #0E1B2C); font-variant-numeric: tabular-nums; }
.roeia-reviews-avg-count { color: var(--roeia-stone, #5B6B74); font-size: 13px; }

.roeia-review-form { border: 1px solid var(--roeia-line, rgba(14,27,44,0.08)); border-radius: 14px; padding: 18px; margin-bottom: 22px; background: var(--roeia-cloud, #F4F9F8); }
.roeia-review-form h3 { margin: 0 0 12px; font-size: 15px; color: var(--roeia-night, #0E1B2C); }
.roeia-review-form textarea {
	width: 100%; margin: 12px 0; padding: 10px 12px;
	border: 1px solid var(--roeia-line-strong, rgba(14,27,44,0.14)); border-radius: 10px;
	background: #fff; font: inherit; font-size: 14px; resize: vertical;
}
.roeia-review-form textarea:focus { outline: none; border-color: var(--roeia-teal, #0CC0AE); box-shadow: 0 0 0 3px rgba(12,192,174,0.16); }

/* إدخال النجوم */
.roeia-star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; border: 0; margin: 0; padding: 0; gap: 2px; }
.roeia-star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roeia-star-input label { cursor: pointer; color: var(--roeia-line-strong, rgba(14,27,44,0.2)); transition: color 0.15s ease; }
.roeia-star-input label .dashicons { font-size: 30px; width: 30px; height: 30px; }
.roeia-star-input label:hover,
.roeia-star-input label:hover ~ label,
.roeia-star-input input:checked ~ label { color: #F5A623; }
.roeia-star-input input:focus-visible + label { outline: 2px solid var(--roeia-teal, #0CC0AE); outline-offset: 2px; border-radius: 4px; }

/* زر إرسال التقييم */
.roeia-reviews .roeia-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 22px; border-radius: 10px; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 14px;
	background: var(--roeia-teal, #0CC0AE); color: var(--roeia-night, #0E1B2C);
	transition: background 0.2s ease;
}
.roeia-reviews .roeia-btn:hover { background: var(--roeia-teal-dark, #0AA396); }

.roeia-reviews-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.roeia-review { border-top: 1px solid var(--roeia-line, rgba(14,27,44,0.08)); padding-top: 16px; }
.roeia-review:first-child { border-top: 0; padding-top: 0; }
.roeia-review-head { display: flex; align-items: center; gap: 10px; }
.roeia-review-author { font-weight: 700; color: var(--roeia-night, #0E1B2C); font-size: 14px; }
.roeia-review-body { margin: 6px 0 0; color: var(--roeia-stone, #5B6B74); line-height: 1.8; font-size: 14px; }
.roeia-reviews-empty, .roeia-reviews-hint { color: var(--roeia-stone, #5B6B74); font-size: 14px; }

.roeia-reviews .roeia-inline-notice {
	display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: 14px;
}
.roeia-reviews .roeia-inline-notice.is-success { background: rgba(12,192,174,0.12); color: var(--roeia-teal-dark, #0AA396); }
.roeia-reviews .roeia-inline-notice.is-error { background: rgba(255,107,87,0.12); color: #c0392b; }
