/* =========================================================
   صفحة المنتجات — أرشيف ncc_product
   كل الأنماط مقيّدة بـ body.page-products-a فلا تتسرّب إلى أي صفحة أخرى.
   ========================================================= */

body.page-products-a {
	--pr-ink:      #08111f;
	--pr-ink-2:    rgba(8, 17, 31, .62);
	--pr-ink-3:    rgba(8, 17, 31, .45);
	--pr-line:     rgba(8, 17, 31, .10);
	--pr-paper:    #f3f1ec;
	--pr-navy:     #002d62;
	--pr-navy-900: #001631;
	--pr-teal:     #00a5b5;
	--pr-teal-d:   #007f8c;
	/* لون افتراضي حتى تُستخرج ألوان الأكياس */
	--pr-c:    #002d62;
	--pr-soft: #e7ecf3;
	--pr-deep: #001f45;
}

/* =========================================================
   1) الهيرو
   ========================================================= */
body.page-products-a .pr-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--pr-navy-900);
	color: #fff;
	padding-top: calc(var(--header, 88px) + clamp(34px, 5vw, 64px));
	padding-bottom: clamp(40px, 5vw, 72px);
}
body.page-products-a .pr-hero-glow {
	position: absolute;
	inset-block-start: -40%;
	inset-inline-start: -8%;
	width: 62vw;
	height: 150%;
	background: radial-gradient(closest-side, rgba(0, 165, 181, .28), rgba(0, 165, 181, 0) 72%);
	pointer-events: none;
	z-index: -1;
}
body.page-products-a .pr-hero .breadcrumb,
body.page-products-a .pr-hero .breadcrumbs { margin-bottom: 16px; }

body.page-products-a .pr-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 12px;
	border: 1px solid rgba(127, 211, 218, .34);
	border-radius: 999px;
	background: rgba(0, 165, 181, .12);
	color: #9be2e9;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
}
body.page-products-a .pr-chip i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pr-teal);
	box-shadow: 0 0 0 4px rgba(0, 165, 181, .22);
}

body.page-products-a .pr-hero h1 {
	margin: 18px 0 0;
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	line-height: 1.18;
	font-weight: 800;
	letter-spacing: -.02em;
	max-width: 18ch;
}
body.page-products-a .pr-hero-lead {
	margin: 16px 0 0;
	max-width: 64ch;
	font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
	line-height: 1.9;
	color: rgba(255, 255, 255, .72);
}

body.page-products-a .pr-hero-facts {
	list-style: none;
	margin: 30px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
}
body.page-products-a .pr-hero-facts li { display: flex; align-items: baseline; gap: 8px; }
body.page-products-a .pr-hero-facts b {
	font-family: var(--font-en);
	font-size: 1.375rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.02em;
}
body.page-products-a .pr-hero-facts span { font-size: .8125rem; color: rgba(255, 255, 255, .6); font-weight: 600; }

/* ---------- صف الأكياس في الهيرو ----------
   الأكياس في الجهة المقابلة للنص، متدرّجة الحجم والعتمة للخلف، ومقصوصة من
   الحافة السفلية — فتُقرأ كعائلة منتجات لها مقدّمة وترتيب، لا كجدار متساوٍ. */
body.page-products-a .pr-hero.has-bags > .container {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(20px, 4vw, 64px);
	align-items: center;
}
body.page-products-a .pr-hero.has-bags h1 { max-width: 15ch; }
body.page-products-a .pr-hero.has-bags .pr-hero-lead { max-width: 46ch; }

body.page-products-a .pr-hero-bags {
	position: relative;
	align-self: end;
	min-height: 340px;
}
body.page-products-a .pr-hero-bag {
	position: absolute;
	inset-block-end: 0;
	display: block;
	width: auto;
	filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45));
	/* الدخول المتدرّج: كل كيس يرتفع بعد سابقه بـ 70 مللي (--d من القالب) */
	animation: prBagIn 620ms cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: var(--d, 0ms);
}
@keyframes prBagIn {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: none; }
}
body.page-products-a .pr-hero-bag-1 { inset-inline-end: 0;   height: 330px; z-index: 5; }
body.page-products-a .pr-hero-bag-2 { inset-inline-end: 14%; height: 305px; z-index: 4; opacity: .97; }
body.page-products-a .pr-hero-bag-3 { inset-inline-end: 27%; height: 282px; z-index: 3; opacity: .93; }
body.page-products-a .pr-hero-bag-4 { inset-inline-end: 39%; height: 261px; z-index: 2; opacity: .88; }
body.page-products-a .pr-hero-bag-5 { inset-inline-end: 50%; height: 242px; z-index: 1; opacity: .82; }

/* لا حركة لمن يطلب تقليلها */
@media (prefers-reduced-motion: reduce) {
	body.page-products-a .pr-hero-bag { animation: none; }
}

@media (max-width: 900px) {
	body.page-products-a .pr-hero.has-bags > .container { grid-template-columns: minmax(0, 1fr); }
	body.page-products-a .pr-hero-bags { min-height: 300px; margin-block-start: 40px; }
	body.page-products-a .pr-hero-bag-1 { height: 250px; }
	body.page-products-a .pr-hero-bag-2 { height: 232px; }
	body.page-products-a .pr-hero-bag-3 { height: 215px; }
	body.page-products-a .pr-hero-bag-4 { height: 199px; }
	body.page-products-a .pr-hero-bag-5 { height: 185px; }
}

/* =========================================================
   2) شريط الأدوات
   ========================================================= */
body.page-products-a .pr-main {
	background: var(--pr-paper);
	padding: clamp(28px, 3.5vw, 48px) 0 clamp(56px, 7vw, 96px);
	scroll-margin-top: 10px;
}
body.page-products-a .pr-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: clamp(20px, 2.5vw, 30px);
}
body.page-products-a .pr-filters { display: flex; flex-wrap: wrap; gap: 8px; }
body.page-products-a .pr-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border: 1px solid var(--pr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pr-ink-2);
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
	transition: color var(--ease), border-color var(--ease), background var(--ease);
}
body.page-products-a .pr-filter em {
	font-style: normal;
	font-family: var(--font-en);
	font-size: .6875rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(8, 17, 31, .06);
	color: var(--pr-ink-3);
}
body.page-products-a .pr-filter:hover { color: var(--pr-ink); border-color: rgba(8, 17, 31, .2); }
body.page-products-a .pr-filter.is-active { background: var(--pr-navy); border-color: var(--pr-navy); color: #fff; }
body.page-products-a .pr-filter.is-active em { background: rgba(255, 255, 255, .18); color: #fff; }

body.page-products-a .pr-views {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--pr-line);
	border-radius: 999px;
	background: #fff;
}
body.page-products-a .pr-view {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--pr-ink-2);
	font: inherit;
	font-size: .8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--ease), color var(--ease);
}
body.page-products-a .pr-view svg { width: 16px; height: 16px; }
body.page-products-a .pr-view:hover { color: var(--pr-ink); }
body.page-products-a .pr-view.is-active { background: var(--pr-navy); color: #fff; }

/* =========================================================
   3) بطاقات المنتجات
   ========================================================= */
body.page-products-a .pr-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 26px);
}
/* لازم بعد قاعدة display:grid وإلا بقيت الشبكة ظاهرة عند التبديل إلى المقارنة */
body.page-products-a .pr-grid[hidden] { display: none; }
body.page-products-a .pr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pr-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 26px 52px -40px rgba(8, 17, 31, .45);
	transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
body.page-products-a .pr-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--pr-c) 35%, transparent);
	box-shadow: 0 34px 62px -34px rgba(8, 17, 31, .5);
}
body.page-products-a .pr-card[hidden] { display: none; }

/* صورة الكيس على أرضية مشتقة من لون المنتج نفسه */
body.page-products-a .pr-card-media {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 232px;
	padding: 26px 20px 18px;
	background:
		radial-gradient(120% 90% at 50% 6%, #fff 0%, transparent 58%),
		linear-gradient(168deg, var(--pr-soft), #fff 78%);
	border-bottom: 1px solid var(--pr-line);
}
body.page-products-a .pr-card-media::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	height: 3px;
	background: linear-gradient(to left, var(--pr-c), color-mix(in srgb, var(--pr-c) 25%, transparent));
}
body.page-products-a .pr-card-media img {
	max-height: 190px;
	width: auto;
	max-width: 76%;
	object-fit: contain;
	filter: drop-shadow(0 22px 26px rgba(8, 17, 31, .28));
	transition: transform var(--slow);
}
body.page-products-a .pr-card:hover .pr-card-media img { transform: translateY(-5px) scale(1.03); }

body.page-products-a .pr-badge {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(8, 17, 31, .82);
	color: #fff;
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .08em;
}
body.page-products-a .pr-card.is-soon .pr-card-media img { opacity: .58; filter: grayscale(.35) drop-shadow(0 18px 22px rgba(8, 17, 31, .2)); }

body.page-products-a .pr-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 22px 18px;
}
body.page-products-a .pr-code {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--pr-c) 12%, transparent);
	color: var(--pr-deep);
	font-family: var(--font-en);
	font-size: .6875rem;
	font-weight: 800;
	letter-spacing: .08em;
}
body.page-products-a .pr-card-title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.5;
	font-weight: 700;
	letter-spacing: -.01em;
}
body.page-products-a .pr-card-title a { color: var(--pr-navy); text-decoration: none; }
body.page-products-a .pr-card-title a:hover { color: var(--pr-teal-d); }
body.page-products-a .pr-card-text {
	margin: 0;
	font-size: .875rem;
	line-height: 1.85;
	color: var(--pr-ink-2);
}

body.page-products-a .pr-uses { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; }
body.page-products-a .pr-uses li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: .8125rem;
	line-height: 1.7;
	color: var(--pr-ink-2);
}
body.page-products-a .pr-uses svg { width: 14px; height: 14px; flex: none; margin-top: .3em; color: var(--pr-teal-d); }

body.page-products-a .pr-card-foot {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--pr-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
body.page-products-a .pr-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .875rem;
	font-weight: 700;
	color: var(--pr-navy);
	text-decoration: none;
}
body.page-products-a .pr-more svg { width: 17px; height: 17px; transition: transform var(--ease); }
html[dir="rtl"] body.page-products-a .pr-more svg { transform: scaleX(-1); }
body.page-products-a .pr-more:hover { color: var(--pr-teal-d); }
html[dir="rtl"] body.page-products-a .pr-more:hover svg { transform: scaleX(-1) translateX(3px); }
html[dir="ltr"] body.page-products-a .pr-more:hover svg { transform: translateX(3px); }

body.page-products-a .pr-sheet {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .75rem;
	font-weight: 700;
	color: var(--pr-ink-3);
	text-decoration: none;
	transition: color var(--ease);
}
body.page-products-a .pr-sheet svg { width: 15px; height: 15px; }
body.page-products-a .pr-sheet:hover { color: var(--pr-ink); }

/* =========================================================
   4) جدول المقارنة
   ========================================================= */
body.page-products-a .pr-table-wrap {
	background: #fff;
	border: 1px solid var(--pr-line);
	border-radius: 18px;
	overflow-x: auto;
	box-shadow: 0 26px 52px -44px rgba(8, 17, 31, .45);
}
body.page-products-a .pr-table-wrap[hidden] { display: none; }
body.page-products-a .pr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .875rem;
	min-width: 640px;
}
body.page-products-a .pr-table th,
body.page-products-a .pr-table td {
	padding: 14px 16px;
	vertical-align: middle;
	border-bottom: 1px solid var(--pr-line);
	line-height: 1.7;
}
/* خانات البيانات في الوسط دائمًا.
   السبب: قيم المواصفات تخلط عربيًا ولاتينيًا (SASO GSO 1914 / 2009 مقابل «مقاومة عالية»)،
   ومع text-align:start يتبع كل خانة اتجاه نصّها فتلتصق العربية باليمين واللاتينية باليسار
   فيتكسّر العمود بصريًا. التوسيط يوحّد المحور ويبقي كل عمود مقروءًا من أعلى إلى أسفل. */
body.page-products-a .pr-table td,
body.page-products-a .pr-table thead th { text-align: center; }
/* عمود أسماء المواصفات وحده يبدأ من حافة القراءة */
body.page-products-a .pr-table thead th:first-child,
body.page-products-a .pr-table tbody th { text-align: start; }
body.page-products-a .pr-table thead th {
	position: sticky;
	top: 0;
	background: #fbfaf8;
	border-bottom: 2px solid rgba(8, 17, 31, .14);
	font-size: .8125rem;
	color: var(--pr-navy);
	font-weight: 800;
}
body.page-products-a .pr-table thead th a { color: inherit; text-decoration: none; }
body.page-products-a .pr-table thead th a:hover { color: var(--pr-teal-d); }
body.page-products-a .pr-table thead th em {
	display: block;
	margin-top: 3px;
	font-style: normal;
	font-family: var(--font-en);
	font-size: .625rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--pr-ink-3);
}
body.page-products-a .pr-table tbody th {
	background: #fbfaf8;
	color: var(--pr-ink);
	font-weight: 700;
	white-space: nowrap;
	position: sticky;
	inset-inline-start: 0;
	/* فاصل يميّز العمود الثابت عند التمرير الأفقي */
	box-shadow: inset -1px 0 0 var(--pr-line);
}
html[dir="ltr"] body.page-products-a .pr-table tbody th { box-shadow: inset 1px 0 0 var(--pr-line); }
/* المواصفات تخلط عربي وأرقام ورموز (≥ 42.5 MPa)؛ plaintext تجعل اتجاه كل خلية
   يُحدَّد من أول حرف فيها فلا تنقلب الأرقام والوحدات في الصفحة العربية. */
body.page-products-a .pr-table td {
	color: var(--pr-ink-2);
	/* plaintext تحسم اتجاه كل خانة من أول حرف فيها فلا تنقلب الأرقام والرموز،
	   والتوسيط أعلاه يمنعها من تغيير محاذاة الخانة. */
	unicode-bidi: plaintext;
	font-variant-numeric: tabular-nums;
}
body.page-products-a .pr-table tbody tr:hover td { background: #fbfdfd; }
body.page-products-a .pr-table tr:last-child th,
body.page-products-a .pr-table tr:last-child td { border-bottom: 0; }
body.page-products-a .pr-table-actions a {
	display: inline-block;
	margin-inline-end: 10px;
	font-weight: 700;
	color: var(--pr-navy);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
body.page-products-a .pr-table-actions a:hover { color: var(--pr-teal-d); }
body.page-products-a .pr-table [hidden] { display: none; }
body.page-products-a .pr-table-hint {
	margin: 0;
	padding: 12px 16px;
	font-size: .75rem;
	color: var(--pr-ink-3);
	border-top: 1px solid var(--pr-line);
}
@media (min-width: 900px) { body.page-products-a .pr-table-hint { display: none; } }

body.page-products-a .pr-empty {
	margin: 30px 0 0;
	padding: 26px;
	text-align: center;
	border: 1px dashed rgba(8, 17, 31, .18);
	border-radius: 14px;
	color: var(--pr-ink-2);
	font-size: .9375rem;
}
body.page-products-a .pr-empty[hidden] { display: none; }

/* =========================================================
   5) شريط المساعدة
   ========================================================= */
body.page-products-a .pr-help {
	background: var(--pr-navy);
	color: #fff;
	padding: clamp(40px, 5vw, 68px) 0;
}
body.page-products-a .pr-help-inner {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}
body.page-products-a .pr-help h2 {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	line-height: 1.4;
	font-weight: 800;
	letter-spacing: -.01em;
}
body.page-products-a .pr-help p {
	margin: 10px 0 0;
	max-width: 56ch;
	font-size: .9375rem;
	line-height: 1.85;
	color: rgba(255, 255, 255, .72);
}
body.page-products-a .pr-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-inline-start: auto; }

body.page-products-a .pr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 700;
	font-size: .9375rem;
	text-decoration: none;
	transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
body.page-products-a .pr-btn svg { width: 18px; height: 18px; }
body.page-products-a .pr-btn-primary { background: var(--pr-teal); color: #04222a; }
body.page-products-a .pr-btn-primary:hover { background: #14b9c9; transform: translateY(-2px); }
body.page-products-a .pr-btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .26); color: #fff; }
body.page-products-a .pr-btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* دخول متتابع للبطاقات */
body.page-products-a .pr-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
	body.page-products-a .pr-card:hover,
	body.page-products-a .pr-btn:hover { transform: none; }
	body.page-products-a .pr-card:hover .pr-card-media img { transform: none; }
}

/* =========================================================
   6) المقاسات
   ========================================================= */
@media (max-width: 1100px) {
	body.page-products-a .pr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	body.page-products-a .pr-help-actions { margin-inline-start: 0; }
}
@media (max-width: 640px) {
	body.page-products-a .pr-grid { grid-template-columns: 1fr; }
	body.page-products-a .pr-bar { flex-direction: column; align-items: stretch; }
	body.page-products-a .pr-views { align-self: flex-start; }
	body.page-products-a .pr-card-media { min-height: 200px; }
	body.page-products-a .pr-card-media img { max-height: 160px; }
	/* على الجوال يصطفّ سطر الأرقام في شبكة 2×2 بدل الالتفاف العشوائي */
	body.page-products-a .pr-hero-facts {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px 18px;
	}
	body.page-products-a .pr-hero-facts li { flex-direction: column; align-items: flex-start; gap: 2px; }
	body.page-products-a .pr-hero-facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	body.page-products-a .pr-btn { flex: 1 1 100%; }
	body.page-products-a .pr-view span { display: none; }
	body.page-products-a .pr-view { padding: 8px 12px; }
}

/* =========================================================
   تتبُّع الحروف والعربية — مراجعة ما قبل التسليم (2026-09-16)
   =========================================================

   الحرف العربي متّصل بما قبله وما بعده، و letter-spacing تُدخِل فراغًا بين كل
   حرفين فتفكّ هذا الاتصال. على iOS تظهر الكلمة **مقطّعة** فعلًا — رُصد على
   آيفون في «صناعة سعودية منذ 2005» وتتبُّعها 0.32em — وعلى كروم تبدو مبعثرة
   وإن بقيت متصلة.

   والتتبُّع تقليد طباعي **لاتيني** للعناوين الصغيرة لا مقابل له في العربية.
   فيُلغى هنا في الاتجاه العربي وحده، ويبقى في النسخة الإنجليزية وفي المقاطع
   اللاتينية المعلَّمة بـ dir="ltr" (الأسعار، رموز تداول، أكواد المنتجات)
   — ولهذا :not([dir="ltr"]).

   وحيث كان التتبُّع كبيرًا (‏≥ 0.18em) فالمقصود «عنوان صغير متباعد»، فيُعوَّض
   بتباعد بين **الكلمات** لا بين الحروف: يحفظ الأثر البصري ولا يمسّ الاتصال.
   ========================================================= */

html[dir="rtl"] body.page-products-a .pr-badge:not([dir="ltr"]),
html[dir="rtl"] body.page-products-a .pr-chip:not([dir="ltr"]),
html[dir="rtl"] body.page-products-a .pr-code:not([dir="ltr"]),
html[dir="rtl"] body.page-products-a .pr-table thead th em:not([dir="ltr"]) {
	letter-spacing: normal;
}

/* رمز المنتج + «صديق للبيئة» في صفّ واحد */
body.page-products-a .pr-card-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
body.page-products-a .pr-card-tags .pr-code { align-self: auto; }
