/* ==================================================================
   بلّور — قالب متجر كتب لمنصّة «ناشر»
   كلّ التنسيق هنا، بلا مكتبات. ألوان الهويّة متغيّرات يختارها الناشر.
   ================================================================== */

:root {
	/* ألوان المتجر (قيمٌ تجريبيّة) */
	--store-primary: #4A1CA5;
	--store-primary-dark: #0E0037;
	--store-accent: #B10000;
	--store-bg: #FFFFFF;
	--store-text: #1A1A1A;

	/* مشتقّات ومحايدات */
	--band: color-mix(in srgb, var(--store-primary) 8%, #E1E9F2);
	--band-deep: color-mix(in srgb, var(--store-primary) 14%, #D3DEEA);
	--soft: #F5F5F5;
	--line: #E6E6E6;
	--line-strong: #D5D5D5;
	--muted: #555555;
	--gold: #F2A100;
	--white: #FFFFFF;
	--ink: #111111;

	--radius: 14px;
	--radius-sm: 8px;
	--radius-lg: 22px;
	--pill: 999px;
	--per-row: 4;
	--gap: 18px;
	--shadow: 0 10px 30px rgba(14, 0, 55, .08);

	--font: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
}

body[data-corners="sharp"] {
	--radius: 0px;
	--radius-sm: 0px;
	--radius-lg: 0px;
	--pill: 4px;
}
body[data-books-per-row="3"] { --per-row: 3; }
body[data-books-per-row="4"] { --per-row: 4; }
body[data-books-per-row="5"] { --per-row: 5; }
body[data-books-per-row="6"] { --per-row: 6; }

/* خيارات الإظهار */
body[data-show-trust-bar="false"] .trust-section { display: none; }
body[data-show-reviews="false"] .reviews-section { display: none; }
[data-option]:empty { display: none; }

/* ------------------------------------------------------------------ الأساس */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
fieldset { border: 0; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--store-primary); outline-offset: 2px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: currentColor; stroke: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 32px, 1392px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ الأزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 24px;
	border-radius: var(--pill); border: 1px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--store-primary); color: var(--white); }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--store-primary-dark); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--line-strong); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.link-all { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.link-all:hover { color: var(--store-primary); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* ------------------------------------------------------------------ الشريط العلويّ */
.topbar { background: var(--store-primary-dark); color: var(--white); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-msg { font-weight: 500; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ الرأس */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--white); }
.header-main { background: var(--store-primary-dark); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .08); }
.header-main .container { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.header-main .menu-toggle { display: none; }
.hdr-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.hdr-btn .icon { width: 24px; height: 24px; }
.hdr-count {
	position: absolute; top: 2px; inset-inline-end: 0;
	min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
	background: var(--store-accent); color: var(--white);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.header-search {
	flex: 1; max-width: 680px; margin-inline: auto;
	display: flex; align-items: center; height: 46px;
	background: var(--white); color: var(--ink); border-radius: var(--pill); padding-inline: 6px 18px;
}
.header-search select {
	border: 0; background: transparent; height: 100%; padding: 0 12px 0 22px; font-size: 14px; font-weight: 500; max-width: 160px;
	border-inline-end: 1px solid var(--line); border-radius: 0; appearance: none; -webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%);
	background-size: 5px 5px; background-position: left 8px center, left 13px center; background-repeat: no-repeat;
}
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 14px; height: 100%; }
.header-search input::placeholder { color: #6B6B6B; }
.header-search button { display: grid; place-items: center; width: 36px; height: 36px; }
.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.hdr-account, .hdr-cart { display: inline-flex; align-items: center; gap: 8px; }
.hdr-account > .icon { width: 24px; height: 24px; }
.hdr-label { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.hdr-label b { font-size: 13px; }

.header-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.header-nav .container { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.cats-menu { position: relative; flex: none; }
.cats-btn {
	display: inline-flex; align-items: center; gap: 12px; height: 46px; width: 250px; padding: 0 18px;
	background: var(--store-primary-dark); color: var(--white); border-radius: var(--radius-sm);
	font-weight: 700; font-size: 15px;
}
.cats-btn .chev { margin-inline-start: auto; width: 16px; height: 16px; transition: transform .2s; }
.cats-menu.open .chev { transform: rotate(180deg); }
.cats-drop {
	position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 40; width: 250px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.cats-menu.open .cats-drop, .cats-menu:focus-within .cats-drop { opacity: 1; visibility: visible; transform: none; }
.cats-drop a { display: block; padding: 9px 20px; font-size: 15px; }
.cats-drop a:hover { background: var(--soft); color: var(--store-primary); }
.nav-list { display: flex; gap: 30px; font-weight: 500; font-size: 15px; }
.nav-list a:hover { color: var(--store-primary); }
.help { display: inline-flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.help-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--store-primary-dark); color: var(--white); flex: none; }
.help small { display: block; font-size: 13px; line-height: 1.3; }
.help b { display: block; font-size: 15px; color: var(--store-primary); line-height: 1.4; }

/* الدرج الجانبيّ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 6, 30, .5); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100; width: min(340px, 88vw);
	background: var(--white); padding: 18px; overflow-y: auto;
	transform: translateX(105%); transition: transform .3s; visibility: hidden;
}
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-backdrop, body.filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head .brand-name { font-size: 19px; }
.drawer-nav a, .drawer-cats a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-title { font-size: 15px; margin: 20px 0 4px; color: var(--muted); }
.drawer-cats a { font-weight: 400; }
.drawer .help { margin: 22px 0 0; }

/* الشريط السفليّ للهاتف */
.tabbar { display: none; }

/* ------------------------------------------------------------------ الأقسام */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-flush { padding-top: 0; }
.section-soft { background: #FAFAFB; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head .eyebrow { color: var(--store-primary); margin-bottom: 4px; display: block; }
.section-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }

/* الشريط المزرقّ */
.band { background: var(--band); }
.band-home { padding: 30px 0 48px; }
.page-band { padding: 26px 0 36px; }
.page-band h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-top: 10px; line-height: 1.3; }
.page-band-sm { padding-bottom: 28px; }
.page-band-xs { padding: 16px 0; }
.page-lead { color: #3A3A3A; margin-top: 6px; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #3A3A3A; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: #6A6A6A; }
.breadcrumb a:hover { color: var(--store-primary); }
.breadcrumb [aria-current] { color: var(--store-text); font-weight: 700; }

/* ------------------------------------------------------------------ البطاقة الزجاجيّة */
.glass-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.glass-banner {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 800 / 520; padding: clamp(20px, 5%, 56px);
	border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: var(--white);
}
.glass-banner > img, .slide > img, .promo > img, .wide-banner > img, .pair-banner > img, .nf-hero > img, .author-hero-bg {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
	transition: transform .6s ease;
}
.glass-banner:hover > img, .promo:hover > img, .pair-banner:hover > img, .wide-banner:hover > img { transform: scale(1.04); }
.glass-card {
	position: relative; width: 100%; max-width: 460px; text-align: center; color: var(--white);
	padding: 34px 36px;
	background: rgba(20, 12, 50, .28);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: calc(var(--radius) + 4px);
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.glass-card .eyebrow { font-size: 13px; margin-bottom: 10px; }
.glass-card h1, .glass-card h2, .glass-card h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; line-height: 1.25; }
.glass-card p { margin: 12px auto 22px; font-size: 15px; max-width: 360px; }
.glass-card .btn { text-shadow: none; }

/* السلايدر (home_hero) */
.hero { margin-bottom: 22px; }
.hero .glass-card { max-width: 520px; }
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: clamp(340px, 36vw, 520px); padding: 40px 20px; }
.slider-nav { position: absolute; bottom: 18px; inset-inline: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.slider-nav > button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.slider-dots button[aria-current="true"] { background: var(--white); width: 24px; border-radius: 5px; }

/* بطاقات التصنيف المربّعة */
.cat-strip { margin-top: 0; }
.hero-grid + .cat-strip { margin-top: 30px; }

/* الواجهة: السلايدر بجانب البانرين الزجاجيّين المتراصّين */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 22px; }
.hero-grid > .hero { margin: 0; min-width: 0; }
.hero-grid > :only-child { grid-column: 1 / -1; }
.hero-grid .slider, .hero-grid .slides { height: 100%; }
.hero-grid .slide { min-height: clamp(420px, 38vw, 560px); }
.hero + .glass-pair { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 22px; }
.hero + .glass-pair .glass-banner { aspect-ratio: auto; padding: 18px; }
.hero + .glass-pair .glass-card { padding: 18px 20px; max-width: 340px; }
.hero + .glass-pair .glass-card .eyebrow { margin-bottom: 4px; }
.hero + .glass-pair .glass-card h2 { font-size: clamp(20px, 1.7vw, 26px); }
.hero + .glass-pair .glass-card p { font-size: 14px; margin: 6px auto 12px; }
.hero + .glass-pair .glass-card .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.cat-card { text-align: center; }
.cat-img { display: block; aspect-ratio: 1; background: var(--white); border-radius: var(--radius); padding: 12%; transition: box-shadow .2s, transform .2s; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.cat-card:hover .cat-img { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card h3 { font-size: 16px; font-weight: 500; margin-top: 14px; }
.cat-count { font-size: 13px; color: #4A4A4A; }
/* التصنيفات الفرعيّة: بطاقاتٌ أفقيّة مدمجة بعرض الشريط كلّه */
.cat-grid-sm { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.cat-card-sm { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: start; padding: 10px; background: var(--white); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.cat-card-sm:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card-sm .cat-img { grid-row: span 2; padding: 8px; background: var(--soft); border-radius: var(--radius-sm); }
.cat-card-sm:hover .cat-img { box-shadow: none; transform: none; }
.cat-card-sm h3 { font-size: 15px; margin-top: 0; align-self: end; line-height: 1.4; }
.cat-card-sm .cat-count { align-self: start; }

/* ------------------------------------------------------------------ بطاقة الكتاب */
.book-grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: var(--gap); }
.book-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
	transition: border-color .2s, box-shadow .2s;
}
.book-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.book-media {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	aspect-ratio: 1 / 1.05; padding-top: 7%; background: var(--soft); border-radius: var(--radius-sm); overflow: hidden;
}
.book-cover { display: block; height: 72%; }
.book-mini .book-media { justify-content: center; padding-top: 0; }
.book-mini .book-cover { height: 80%; }
.book-cover img { height: 100%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); transition: transform .3s; }
.book-card:hover .book-cover img { transform: translateY(-4px); }
.type-dot {
	position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--white);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.type-dot .icon { width: 16px; height: 16px; }
.type-dot[data-type="print"] { background: #DB7056; }
.type-dot[data-type="ebook"] { background: #5675A3; }
.type-dot[data-type="audio"] { background: #986AB0; }
.type-dot[data-type="educational"] { background: #3f8f6b; }
.book-badges { position: absolute; top: 48px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.badge-sale { background: var(--store-accent); color: var(--white); }
.badge-new { background: #2E6B3A; color: var(--white); }
.book-wish {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08); opacity: 0; transform: scale(.9); transition: .2s;
}
.book-wish .icon { width: 18px; height: 18px; }
.book-wish[aria-pressed="true"] { color: var(--store-accent); }
.book-wish[aria-pressed="true"] .icon { fill: currentColor; }
.book-cta {
	position: absolute; left: 50%; bottom: 10px; z-index: 2; transform: translateX(-50%);
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; max-width: calc(100% - 16px);
	background: var(--white); color: var(--ink); border-radius: var(--pill); font-weight: 700; font-size: 13.5px; white-space: nowrap;
	box-shadow: 0 4px 14px rgba(14, 0, 55, .14); transition: background .2s, color .2s;
}
.book-cta .icon { width: 16px; height: 16px; }
.book-cta:hover { background: var(--ink); color: var(--white); }
.book-cta:disabled { background: #ECECEC; color: #555555; box-shadow: none; cursor: not-allowed; }
.book-card:hover .book-wish, .book-card:focus-within .book-wish { opacity: 1; transform: none; }
@media (hover: none) {
	.book-wish { opacity: 1; transform: none; }
}
.book-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 4px; flex: 1; }
.book-title { font-size: 15px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-title a:hover { color: var(--store-primary); }
.book-author { font-size: 13px; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 15px; height: 15px; }
.stars .off { color: #D9D9D9; }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-weight: 700; font-size: 17px; color: var(--store-accent); margin-top: 2px; }
.price del { font-size: 13px; font-weight: 400; color: #6A6A6A; }
.is-out .book-cover img { opacity: .5; filter: grayscale(.5); }
.stock-band {
	position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%); z-index: 2;
	background: rgba(17, 17, 17, .86); color: var(--white); text-align: center; padding: 8px; font-weight: 700; font-size: 14px;
}

/* شكل البطاقة */
body[data-card-style="framed"] .book-card { border: 1.5px solid var(--line-strong); box-shadow: 0 4px 0 var(--band-deep); }
body[data-card-style="framed"] .book-card:hover { border-color: var(--store-primary); }
body[data-card-style="framed"] .book-media { background: var(--band); }
body[data-card-style="minimal"] .book-card { border-color: transparent; padding: 0; background: transparent; }
body[data-card-style="minimal"] .book-card:hover { box-shadow: none; }
body[data-card-style="minimal"] .book-body { padding-inline: 0; }

/* صفّ «شاهدتَه مؤخّرًا» */
.recent-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.book-mini { padding: 8px; }
.book-mini .book-body { padding-top: 10px; }
.book-mini .book-title { font-size: 14px; }
.book-mini .price { font-size: 15px; }
.book-mini .type-dot { width: 26px; height: 26px; top: 8px; inset-inline-start: 8px; }
.book-mini .type-dot .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ شبكة البانرات */
.promo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; height: clamp(360px, 33vw, 470px); }
.promo { position: relative; display: flex; overflow: hidden; border-radius: var(--radius); isolation: isolate; color: var(--white); }
.promo-body { position: relative; padding: clamp(20px, 2.4vw, 36px); width: 100%; }
.promo h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; line-height: 1.25; margin: 6px 0 8px; }
.promo p { font-size: 15px; margin-bottom: 20px; max-width: 360px; }
.promo-big { align-items: center; }
.promo-big .promo-body { text-align: center; display: flex; flex-direction: column; align-items: center; padding-inline-end: 36%; }
.promo-light { color: #14112B; }
.promo-light .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; margin-top: 6px; }
.promo-light .icon { width: 16px; height: 16px; }
.promo-tall .promo-body { text-align: center; display: flex; flex-direction: column; align-items: center; }
.promo-tall h3 { font-size: clamp(20px, 1.9vw, 28px); margin-bottom: 18px; }

.wide-banner {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
	margin-top: 16px; min-height: 180px; padding: 30px clamp(24px, 4vw, 56px);
	border-radius: var(--radius); overflow: hidden; isolation: isolate; color: var(--white);
}
.wide-body h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.25; margin: 4px 0; }
.wide-body p { font-size: 15px; }

/* بانران متجاوران */
.banner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-banner { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--radius); isolation: isolate; color: var(--white); }
.pair-body { text-align: center; padding: 24px; max-width: 440px; }
.pair-body h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; line-height: 1.25; margin: 6px 0 8px; }
.pair-body p { font-size: 15px; margin-bottom: 20px; }
.glass-chip {
	position: absolute; bottom: 20px; inset-inline-start: 20px;
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; font-weight: 700;
	background: rgba(20, 12, 50, .38); border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--pill);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass-chip .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ المؤلّفون */
.author-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.author-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.author-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.author-card h3 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.author-card > span { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ آراء القرّاء */
.reviews-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
.reviews-aside .eyebrow { color: var(--store-primary); margin-bottom: 6px; }
.reviews-aside .section-title { font-size: clamp(28px, 3vw, 40px); }
.reviews-aside p { color: var(--muted); margin: 12px 0 24px; }
.review-list { border-top: 1px solid var(--line); }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-top b { font-size: 16px; }
.review-item p { margin: 8px 0 6px; }
.review-item small { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ شريط الثقة */
.trust-section { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 0; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px; line-height: 1.35; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--band); color: var(--store-primary-dark); flex: none; }
.trust-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.trust-item b { display: block; font-size: 15px; }
.trust-item small { display: block; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ التذييل */
.site-footer { padding: 0 12px 12px; }
.footer-box { background: var(--store-primary-dark); color: var(--white); border-radius: calc(var(--radius) + 8px); padding: 56px clamp(20px, 3.5vw, 48px) 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 40px; }
.site-footer .brand-name { font-size: 24px; }
.footer-contact { margin: 22px 0; display: grid; gap: 12px; font-size: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.fc-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); flex: none; }
.fc-icon .icon { width: 15px; height: 15px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); transition: .2s; }
.social a:hover { background: var(--white); color: var(--store-primary-dark); }
.social .icon { width: 18px; height: 18px; }
.footer-col h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; font-size: 14px; }
.footer-col a:hover { text-decoration: underline; }
.footer-news p { font-size: 14px; }
.newsletter { display: flex; align-items: center; height: 50px; margin: 16px 0 12px; background: var(--white); border-radius: var(--pill); padding-inline: 20px 5px; color: var(--ink); }
.newsletter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.newsletter input::placeholder { color: #6B6B6B; }
.newsletter button { display: grid; place-items: center; width: 58px; height: 40px; border-radius: var(--pill); background: var(--ink); color: var(--white); }
.footer-news .fine { font-size: 13px; }
.footer-news .fine a { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }

/* ------------------------------------------------------------------ صفحة التصنيف */
.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; align-items: start; }
.listing-main { min-width: 0; }
.filters { display: grid; gap: 14px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { font-size: 19px; }
.filters-head .hdr-btn { display: none; }
.filter-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--store-primary); }
.check .count { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.field { height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); width: 100%; font-size: 15px; }
textarea.field { height: auto; padding: 12px 14px; resize: vertical; }
.price-range { display: flex; align-items: center; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }
.toolbar select { width: auto; min-width: 180px; }
.filters-toggle { display: none; }
.listing-grid { --per-row: 3; }
body[data-books-per-row="4"] .listing-grid, body[data-books-per-row="5"] .listing-grid, body[data-books-per-row="6"] .listing-grid { --per-row: 4; }
@media (max-width: 1240px) { body[data-books-per-row] .listing-grid { --per-row: 3; } }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); }
.view-toggle button + button { border-inline-start: 1px solid var(--line-strong); }
.view-toggle [aria-pressed="true"] { background: var(--store-primary-dark); color: var(--white); }
.view-toggle .icon { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 18px; font-size: 14px; }
.active-label { font-weight: 700; color: var(--muted); }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--pill); background: var(--band); font-weight: 500; }
.filter-chip .icon { width: 14px; height: 14px; }
.filter-chip:hover { background: var(--band-deep); }
.filter-clear { font-weight: 700; color: var(--store-primary); text-decoration: underline; text-underline-offset: 4px; margin-inline-start: 4px; }
.listing-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.listing-grid.is-list .book-card { flex-direction: row; align-items: center; gap: 20px; }
.listing-grid.is-list .book-media { width: 190px; flex: none; }
.listing-grid.is-list .book-body { padding: 0; }
.listing-grid.is-list .book-title { font-size: 18px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 15px; }
.pagination span { border: 0; }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--store-primary-dark); border-color: var(--store-primary-dark); color: var(--white); }
.pagination .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ صفحة الكتاب */
.section-pdp { padding-top: 36px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 52px; align-items: start; }
.gallery { position: sticky; top: 162px; }
.gallery-main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--soft); border-radius: var(--radius-lg); }
.gallery-main img { height: 82%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.gallery-main .type-dot { top: 18px; inset-inline-start: 18px; width: 40px; height: 40px; }
.gallery-main .type-dot .icon { width: 20px; height: 20px; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs button { width: 84px; height: 84px; display: grid; place-items: center; background: var(--soft); border: 2px solid transparent; border-radius: var(--radius-sm); }
.thumbs button[aria-pressed="true"] { border-color: var(--store-primary); }
.thumbs img { height: 72px; width: auto; border-radius: 2px; }
.pdp-info { display: flex; flex-direction: column; gap: 14px; }
.pdp-tags { display: flex; align-items: center; gap: 10px; }
.type-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.type-label .type-dot { position: static; width: 26px; height: 26px; box-shadow: none; }
.type-label .type-dot .icon { width: 14px; height: 14px; }
.pdp h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.25; }
.pdp-author { color: var(--muted); }
.pdp-author a { color: var(--store-primary); font-weight: 700; }
.rating-lg .stars .icon { width: 18px; height: 18px; }
.rating-lg { font-size: 14px; }
.price-lg { font-size: 30px; align-items: center; }
.price-lg del { font-size: 17px; }
.price-lg .badge { font-size: 13px; }
.pdp-lead { color: #3A3A3A; }
.info-table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.info-table th, .info-table td { padding: 11px 16px; text-align: start; font-size: 15px; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 38%; background: var(--soft); font-weight: 500; color: #3A3A3A; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: #23683A; font-weight: 700; font-size: 15px; }
.stock .icon { width: 18px; height: 18px; }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.buy-row .btn-primary { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); height: 52px; padding: 0 6px; }
.qty button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.qty button:hover { background: var(--soft); }
.qty .icon { width: 16px; height: 16px; }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wish-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; background: var(--white); }
.wish-btn[aria-pressed="true"] { color: var(--store-accent); }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }
.ship-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 4px; }
.ship-box li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 13px; font-weight: 500; }
.ship-icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }

.tabs { margin-top: 64px; }
.tab-list { display: flex; gap: 32px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list [role="tab"] { padding: 14px 0; font-size: 17px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-list [aria-selected="true"] { color: var(--store-text); border-bottom-color: var(--store-primary-dark); }
.tab-panel { padding-top: 28px; }
.prose { max-width: 820px; display: grid; gap: 14px; }
.tab-panel .prose { display: block; max-width: none; column-count: 2; column-gap: 48px; }
.tab-panel .prose p { margin-bottom: 14px; break-inside: avoid; }
@media (max-width: 991px) { .tab-panel .prose { column-count: 1; } }
.spec-table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: start; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 26%; background: var(--soft); font-weight: 500; }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.reviews-side { display: grid; gap: 20px; }
.reviews-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.reviews-summary strong { font-size: 48px; line-height: 1; font-weight: 800; }
.reviews-summary .stars .icon { width: 20px; height: 20px; }
.rating-bars { display: grid; gap: 8px; font-size: 14px; }
.rating-bars li { display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 10px; }
.bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); }
.review-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.review-form h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.review-form p { color: var(--muted); font-size: 14px; }
.review-form .btn { justify-self: start; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { color: #D0D0D0; cursor: pointer; }
.star-input label .icon { width: 26px; height: 26px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--store-primary); border-radius: 4px; }

/* ------------------------------------------------------------------ صفحة المؤلّف */
.author-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); margin-top: 18px; padding: clamp(28px, 5vw, 64px); display: flex; justify-content: flex-start; }
.author-glass { display: flex; align-items: center; gap: 24px; text-align: start; max-width: 560px; padding: 26px 30px; }
.author-glass img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .7); flex: none; }
.author-glass h1 { margin: 2px 0; font-size: clamp(26px, 3vw, 38px); }
.author-glass p { margin: 0; }
.author-about .prose { display: block; max-width: none; column-count: 2; column-gap: 48px; }
.author-about .prose p { margin-bottom: 12px; break-inside: avoid; }
@media (max-width: 991px) { .author-about .prose { column-count: 1; } }
.author-about .section-title { margin-bottom: 14px; }

/* ------------------------------------------------------------------ السلّة */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.cart-table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.cart-table th { background: var(--soft); text-align: start; font-size: 14px; font-weight: 700; padding: 14px 16px; }
.cart-table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.cart-book { display: flex; align-items: center; gap: 14px; }
.cart-thumb { flex: none; width: 76px; height: 92px; display: grid; place-items: center; background: var(--soft); border-radius: var(--radius-sm); }
.cart-thumb img { height: 76px; width: auto; border-radius: 2px; }
.cart-book h3 { font-size: 16px; font-weight: 700; }
.cart-book p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.cart-table .qty { height: 44px; }
.cart-table .qty button { width: 30px; height: 30px; }
.cart-remove { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #3A3A3A; }
.cart-remove:hover { background: var(--soft); color: var(--store-accent); }
.cart-under { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.empty-cart { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; justify-items: center; gap: 10px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; position: sticky; top: 162px; background: var(--white); }
.summary h2 { font-size: 20px; }
.coupon { display: flex; gap: 8px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; background: var(--band); padding: 10px 12px; border-radius: var(--radius-sm); }
.coupon-applied button { text-decoration: underline; font-weight: 700; color: var(--store-accent); }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; }
.summary-total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 19px; font-weight: 800; }
.summary-perks { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.summary-perks li { display: flex; align-items: center; gap: 8px; }
.summary-perks .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ 404 */
.nf-band { padding: 30px 0 48px; }
.nf-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); display: flex; justify-content: center; padding: clamp(28px, 6vw, 80px) 16px; }
.nf-card { max-width: 620px; }
.nf-code { display: block; font-size: clamp(72px, 10vw, 128px); font-weight: 800; line-height: 1; letter-spacing: .02em; }
.nf-card h1 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 8px; }
.nf-search { display: flex; gap: 8px; margin: 0 auto 16px; max-width: 460px; background: var(--white); border-radius: var(--pill); padding: 5px; }
.nf-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; color: var(--ink); background: transparent; }
.nf-search input::placeholder { color: #6B6B6B; }
.nf-search .btn { text-shadow: none; height: 42px; }

/* ------------------------------------------------------------------ components.html */
.kit-title { font-size: 20px; font-weight: 700; margin: 44px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.kit .kit-title:first-child { margin-top: 0; }
.kit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kit-dark { display: inline-flex; padding: 10px; border-radius: var(--radius); background: var(--store-primary-dark); }
.kit-band { padding: 24px; border-radius: var(--radius); }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { display: grid; gap: 6px; font-size: 13px; }
.swatch span { width: 110px; height: 64px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.kit-reviews { max-width: 760px; }
.kit-note { margin: -6px 0 16px; font-size: 14px; }
.kit-row + .kit-row { margin-top: 12px; }
.kit-pair { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.kit-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767px) {
	.kit-pair { grid-template-columns: minmax(0, 1fr); }
	.kit .kit-one { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); overflow: visible; }
}

/* ------------------------------------------------------------------ العروض المتوسّطة */
@media (max-width: 1200px) {
	.header-nav .container { gap: 20px; }
	.cats-btn, .cats-drop { width: 210px; }
	.nav-list { gap: 18px; font-size: 14.5px; white-space: nowrap; }
	.help { gap: 8px; }
	.help small { display: none; }
	.help b { font-size: 14px; white-space: nowrap; }
	.cat-grid { gap: 12px; }
	.cat-card h3 { font-size: 15px; margin-top: 10px; }
	.cat-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body[data-books-per-row="5"] .book-grid, body[data-books-per-row="6"] .book-grid,
	body[data-books-per-row="5"] .book-track, body[data-books-per-row="6"] .book-track { --per-row: 4; }
	body[data-books-per-row] .row-1 > :nth-child(n+5) { display: none; }
	body[data-books-per-row="3"] .row-1 > :nth-child(4) { display: none; }
	body[data-books-per-row="5"] .row-2 > :nth-child(n+9), body[data-books-per-row="6"] .row-2 > :nth-child(n+9) { display: none; }
	.recent-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.recent-row > :nth-child(n+5) { display: none; }
	.author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
	.topbar-links { display: none; }
	.topbar .container { justify-content: center; text-align: center; }
	.header-main .container { flex-wrap: wrap; gap: 6px 10px; min-height: 64px; padding: 8px 0 12px; }
	.header-main .menu-toggle { display: inline-grid; }
	.brand { margin-inline-end: auto; }
	.brand img { width: 38px; height: 38px; }
	.brand-name { font-size: 19px; }
	.header-search { order: 5; flex: 0 0 100%; width: 100%; min-width: 0; max-width: none; height: 44px; }
	.header-search input { width: 0; }
	.header-actions { gap: 4px; }
	.hdr-label, .hdr-wish { display: none; }
	.hdr-account { display: inline-grid; place-items: center; width: 42px; height: 42px; }
	.header-nav { display: none; }

	.tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 80;
		background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .05);
		padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
	}
	.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: #2A2A2A; }
	.tabbar .icon { width: 22px; height: 22px; }
	.tabbar .hdr-count { top: -4px; inset-inline-end: calc(50% - 22px); }
	body { padding-bottom: 64px; }

	.hero-grid { grid-template-columns: 1fr; }
	.hero-grid .slide { min-height: 380px; }
	.cat-grid {
		display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 19%;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
	}
	.cat-card { scroll-snap-align: start; }
	.cat-grid-sm { grid-auto-columns: 34%; }
	.glass-pair, .hero + .glass-pair { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.glass-banner, .hero + .glass-pair .glass-banner { aspect-ratio: auto; min-height: 320px; }
	.promo-grid { grid-template-columns: 1fr 1fr; height: auto; }
	.promo { min-height: 300px; }
	.promo-big { grid-column: 1 / -1; background: #1F2433; }
	.promo-big > img { opacity: .35; }
	.promo-big .promo-body { padding-inline-end: clamp(20px, 30%, 240px); }
	.wide-banner { flex-direction: column; align-items: flex-start; }
	.banner-pair { grid-template-columns: 1fr; }
	.reviews-split, .reviews-layout { grid-template-columns: 1fr; gap: 28px; }
	.trust-bar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 12px 0; }
	.trust-bar::-webkit-scrollbar { display: none; }
	.trust-item { flex: 0 0 auto; justify-content: flex-start; scroll-snap-align: start; padding: 0 16px; }
	.trust-item:first-child { padding-inline-start: 0; }

	.listing { grid-template-columns: 1fr; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100; width: min(340px, 88vw);
		background: var(--white); padding: 18px; overflow-y: auto; align-content: start;
		transform: translateX(105%); transition: transform .3s; visibility: hidden;
	}
	body.filters-open .filters { transform: none; visibility: visible; }
	.filters-head .hdr-btn, .filters-toggle { display: inline-flex; }
	.pdp { grid-template-columns: 1fr; gap: 28px; }
	.gallery { position: static; max-width: 560px; width: 100%; margin-inline: auto; }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
}

@media (max-width: 767px) {
	.section { padding: 44px 0; }
	.section-tight { padding: 30px 0; }
	.band-home { padding: 18px 0 32px; }
	.book-grid, .listing-grid { --per-row: 2 !important; gap: 12px; }
	body .listing-grid.is-list { grid-template-columns: minmax(0, 1fr); }
	.listing-grid.is-list .book-media { width: 130px; }
	.listing-grid.is-list .book-card { gap: 14px; }
	body .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.book-card { padding: 8px; }
	.book-body { padding: 10px 2px 2px; }
	.book-media { padding-top: 6%; }
	.book-cover { height: 70%; }
	.book-cta { bottom: 8px; height: 32px; padding: 0 12px; font-size: 12.5px; }
	.book-cta .icon { display: none; }
	.book-wish { width: 32px; height: 32px; top: 8px; inset-inline-end: 8px; }
	.type-dot { top: 8px; inset-inline-start: 8px; }
	.book-badges { top: 44px; inset-inline-start: 8px; }
	.price { font-size: 15px; }
	.cat-grid, .author-grid, .recent-row {
		display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 38%;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
	}
	.cat-grid-sm { grid-auto-columns: 62%; }
	.author-grid { grid-auto-columns: 42%; }
	.recent-row { grid-auto-columns: 40%; }
	.recent-row > :nth-child(n+5) { display: flex; }
	.cat-card, .author-card, .recent-row > * { scroll-snap-align: start; }
	.glass-card { padding: 24px 20px; }
	.glass-pair, .hero + .glass-pair {
		display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: none; grid-auto-columns: 86%; gap: 12px;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	}
	.glass-pair::-webkit-scrollbar { display: none; }
	.glass-banner { scroll-snap-align: start; }
	.hero-grid { gap: 14px; }
	.glass-banner, .hero + .glass-pair .glass-banner { min-height: 220px; padding: 14px; }
	.hero-grid .slide { min-height: 340px; padding: 20px 14px 60px; }
	.hero-grid + .cat-strip { margin-top: 20px; }
	.promo-grid { grid-template-columns: 1fr; }
	.promo-big .promo-body { padding-inline-end: 20px; }
	.pair-banner { aspect-ratio: auto; min-height: 280px; }
	.section-head { margin-bottom: 18px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.site-footer { padding: 0 8px 8px; }
	.footer-bottom { flex-direction: column; }
	.ship-box { grid-template-columns: 1fr 1fr 1fr; padding: 12px 8px; }
	.buy-row { flex-wrap: nowrap; gap: 8px; }
	.buy-row .btn-primary { flex: 1 1 auto; min-width: 0; padding: 0 12px; font-size: 15px; }
	.buy-row .qty { padding: 0 2px; }
	.buy-row .qty input { width: 30px; }
	.formats-box .formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.formats-box .format-opt { min-width: 0; padding: 8px; column-gap: 6px; }
	.tabs { margin-top: 40px; }
	.tab-list { gap: 22px; }
	.author-glass { flex-direction: column; text-align: center; }
	.author-hero { justify-content: center; }

	/* السلّة: الجدول بطاقات */
	.cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
	.cart-table { border: 0; }
	.cart-table thead { display: none; }
	.cart-table tr { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
	.cart-table td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; }
	.cart-table td:first-child { display: block; padding-inline-end: 40px; }
	.cart-table td[data-label]::before { content: attr(data-label); font-size: 13px; color: var(--muted); }
	.cell-remove { position: absolute; top: 8px; inset-inline-end: 8px; width: auto !important; padding: 0 !important; }
	.toolbar select { min-width: 0; flex: 1; }
	.toolbar-actions { width: 100%; }
}

@media (max-width: 420px) {
	.brand-name { font-size: 17px; }
	.header-search select { max-width: 132px; padding-inline: 6px 18px; font-size: 13px; }
	.toolbar { padding: 10px; }
	.nf-search { flex-direction: column; border-radius: var(--radius); }
	.nf-search input { height: 44px; }
}

/* ================= ميزات المنصّة المعتمدة (SPEC، الملحق 8) ================= */

/* عدّاد العرض */
.deals-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.countdown { display: inline-flex; align-items: center; gap: 6px; direction: rtl; }
.countdown-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.countdown-box { display: grid; justify-items: center; min-width: 42px; padding: 5px 4px 4px; border-radius: var(--radius-sm); background: var(--store-accent); color: var(--white); line-height: 1.1; }
.countdown-box b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown-box small { font-size: 10.5px; font-weight: 500; }

/* النظرة السريعة على البطاقة */
.book-qv {
	position: absolute; top: 54px; inset-inline-end: 10px; z-index: 2;
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--ink);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08); opacity: 0; transform: scale(.9); transition: .2s;
}
.book-qv .icon { width: 18px; height: 18px; }
.book-qv:hover { background: var(--ink); color: var(--white); }
.book-card:hover .book-qv, .book-card:focus-within .book-qv { opacity: 1; transform: none; }
@media (hover: none) { .book-qv { opacity: 1; transform: none; } }

/* الباقات */
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.bundle-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: border-color .2s, box-shadow .2s; }
.bundle-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.bundle-covers { display: flex; justify-content: center; align-items: center; padding: 22px 12px; background: var(--band); border-radius: var(--radius-sm); }
.bundle-covers img { width: 30%; max-width: 110px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 20px rgba(0, 0, 0, .18); }
.bundle-covers img + img { margin-inline-start: -9%; }
.bundle-covers img:nth-child(odd) { transform: rotate(3deg); }
.bundle-covers img:nth-child(even) { transform: translateY(-6px) rotate(-3deg); position: relative; z-index: 1; }
.bundle-covers[data-count="4"] img { width: 26%; }
.bundle-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 4px 4px; flex: 1; }
.bundle-title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.bundle-note { font-size: 13px; color: var(--muted); }
.bundle-body .btn { margin-top: auto; align-self: stretch; }
.bundle-body .price { margin-bottom: 10px; }

/* الأسئلة الشائعة */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 18px 0 18px 40px; font-weight: 700; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: ""; position: absolute; left: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
	background: var(--soft) linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat;
}
.faq-item:not([open]) summary::after { background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 11px 1.6px, 1.6px 11px; background-position: center; background-repeat: no-repeat; }
.faq-item summary:hover { color: var(--store-primary); }
.faq-answer { padding: 0 0 18px; color: var(--muted); max-width: 680px; }

/* اشترِ أكثر ووفّر */
.qty-deal { display: inline-flex; width: fit-content; align-self: flex-start; justify-self: start; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 6px 12px; border-radius: var(--pill); background: color-mix(in srgb, var(--store-primary) 8%, #FFFFFF); color: var(--store-primary); font-size: 14px; font-weight: 700; }
.qty-deal .icon { width: 16px; height: 16px; }

@media (max-width: 767px) {
	.bundle-grid {
		grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
	}
	.bundle-card { scroll-snap-align: start; }
}
@media (max-width: 640px) {
	.deals-head .countdown-label { display: none; }
}

/* ================= تطوير الإصدار الثاني ================= */

/* صفوفٌ كاملة دائمًا: «عروض اليوم» صفٌّ واحد و«الأكثر مبيعًا» صفّان، بأيّ عددٍ في الصفّ */
body[data-books-per-row="3"] .row-1 > :nth-child(n+4), body[data-books-per-row="4"] .row-1 > :nth-child(n+5),
body[data-books-per-row="5"] .row-1 > :nth-child(n+6), body[data-books-per-row="6"] .row-1 > :nth-child(n+7),
body[data-books-per-row="3"] .row-2 > :nth-child(n+7), body[data-books-per-row="4"] .row-2 > :nth-child(n+9),
body[data-books-per-row="5"] .row-2 > :nth-child(n+11), body[data-books-per-row="6"] .row-2 > :nth-child(n+13) { display: none; }

/* تبويبات المصادر في صفّ الكتب (القاعدة 16) */
.section-head.has-tabs { flex-wrap: wrap; align-items: center; }
.section-head.has-tabs > :first-child { margin-inline-end: auto; }
.row-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.row-tab {
	height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--white);
	font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
}
.row-tab:hover { border-color: var(--store-primary-dark); }
.row-tab[aria-selected="true"] { background: var(--store-primary-dark); border-color: var(--store-primary-dark); color: var(--white); }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

/* «وصل حديثًا»: دوّارٌ أفقيّ على الشريط الملوّن */
.new-section { background: var(--band); }
.new-section .section-head .eyebrow { color: var(--store-primary); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(14, 0, 55, .1); transition: background .2s, color .2s; }
.carousel-btn:hover { background: var(--store-primary-dark); color: var(--white); }
.carousel-btn .icon { width: 18px; height: 18px; }
.book-track {
	display: grid; grid-auto-flow: column; gap: var(--gap);
	grid-auto-columns: calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px;
}
.book-track::-webkit-scrollbar { display: none; }
.book-track > * { scroll-snap-align: start; }

/* «كتاب الأسبوع»: كتابٌ واحد في بطاقةٍ زجاجيّة فوق صورة */
.feature-panel { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: flex-end; padding: clamp(16px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--store-primary-dark); }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.feature-glass {
	width: 100%; max-width: 860px; color: var(--white); padding: clamp(18px, 3vw, 36px);
	background: rgba(14, 0, 55, .58); border: 1px solid rgba(255, 255, 255, .26); border-radius: calc(var(--radius) + 4px);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.feature-head { margin-bottom: 18px; }
.feature-head .eyebrow { color: #DCD2FF; margin-bottom: 2px; }
.feature-book { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: center; }
.feature-media { position: relative; }
.feature-cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.feature-media .type-dot { top: 10px; inset-inline-start: 10px; }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.feature-title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.3; }
.feature-title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.feature-author { color: #E6E0F5; }
.feature-body .rating { color: #E6E0F5; }
.feature-body .stars .off { color: rgba(255, 255, 255, .35); }
.feature-body .price { color: var(--white); }
.feature-body .price del { color: #D9D2EC; }
.feature-desc { display: grid; gap: 8px; margin: 6px 0 10px; font-size: 15px; color: #EEE9FA; }
.feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.feature-wish { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); color: var(--white); }
.feature-wish[aria-pressed="true"] .icon { fill: currentColor; }
.feature-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.feature-more .icon { width: 16px; height: 16px; }

/* المؤلّفون على خلفيّةٍ فاتحة */
.authors-section .author-card { background: var(--white); }

/* اختيار الصيغة (book.formats): يُخفى إن لم يكن للعنوان غير صيغةٍ واحدة */
.formats-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.format-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 136px; padding: 8px 14px 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s, background .2s; }
.format-opt .type-dot { position: static; grid-row: span 2; width: 28px; height: 28px; box-shadow: none; }
.format-opt .type-dot .icon { width: 14px; height: 14px; }
.format-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.format-price { font-size: 13px; color: var(--muted); line-height: 1.35; }
.format-opt:hover { border-color: var(--store-primary); }
.format-opt.is-current { border-color: var(--store-primary); background: color-mix(in srgb, var(--store-primary) 6%, #FFFFFF); box-shadow: inset 0 0 0 1px var(--store-primary); }
[data-slot="book.formats"]:not(:has([data-repeat="format"] ~ [data-preview-copy])) { display: none; }

/* المدوّنة */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: border-color .2s, box-shadow .2s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: var(--soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-date { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 3px 12px; border-radius: var(--pill); background: var(--store-primary-dark); color: var(--white); font-size: 12.5px; font-weight: 700; }
.post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 4px 4px; flex: 1; }
.post-title { font-size: 18px; font-weight: 700; line-height: 1.45; }
.post-title a:hover { color: var(--store-primary); }
.post-excerpt { font-size: 14px; color: var(--muted); }
.post-body .link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--store-primary); }
.post-body .link-arrow .icon { width: 16px; height: 16px; }

/* طبقةٌ داكنة خفيفة تحت نصوص البانرات حتّى لا تزاحمها عناصر الصورة */
.wide-banner::after, .pair-text::after, .promo-tall::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wide-banner::after { background: linear-gradient(to left, rgba(14, 0, 55, .62), rgba(14, 0, 55, .12) 55%, rgba(14, 0, 55, .3)); }
.pair-text::after { background: radial-gradient(ellipse at center, rgba(14, 0, 55, .55), rgba(14, 0, 55, .15) 70%); }
.promo-tall::after { background: linear-gradient(to bottom, rgba(14, 0, 55, .55), rgba(14, 0, 55, 0) 55%); }

@media (max-width: 991px) {
	body .book-grid:not(.listing-grid), body .book-track { --per-row: 3 !important; }
	body[data-books-per-row] .row-1 > :nth-child(n+4), body[data-books-per-row] .row-2 > :nth-child(n+7) { display: none; }
}

.post-grid-page { row-gap: 26px; }
.article-wrap { max-width: 820px; }
.article-head { display: grid; justify-items: start; gap: 10px; margin-bottom: 22px; }
.article-head .post-date { position: static; }
.article-title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; line-height: 1.3; }
.article-lead { font-size: 18px; color: #3A3A3A; }
.article-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.article-body { display: grid; gap: 16px; margin-top: 28px; font-size: 17px; line-height: 1.9; }
.article-body h2 { font-size: 23px; font-weight: 700; margin-top: 10px; }
.article-body blockquote { margin: 6px 0; padding: 18px 24px; border-inline-start: 4px solid var(--store-primary); background: var(--band); border-radius: var(--radius-sm); font-size: 19px; font-weight: 700; }
.article-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.works-meta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 991px) {
	.feature-panel { justify-content: center; }
	.post-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body[data-books-per-row] .row-1 > :nth-child(-n+4), body[data-books-per-row] .row-2 > :nth-child(-n+6) { display: flex; }
	body[data-books-per-row] .row-1 > :nth-child(n+5), body[data-books-per-row] .row-2 > :nth-child(n+7) { display: none; }
	.section-head.has-tabs { gap: 12px; }
	.section-head.has-tabs .row-tabs { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.row-tab { height: 38px; padding: 0 14px; }
	.book-track { grid-auto-columns: 46%; gap: 12px; }
	.carousel-nav { display: none; }
	.wide-banner::after { background: rgba(14, 0, 55, .55); }
	.promo-tall::after { background: linear-gradient(to bottom, rgba(14, 0, 55, .7), rgba(14, 0, 55, .25)); }
	.feature-book { grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 16px; }
	.feature-desc { font-size: 14px; grid-column: 1 / -1; }
	.feature-body { display: contents; }
	.feature-media { grid-row: span 4; }
	.feature-actions { grid-column: 1 / -1; }
	.post-grid {
		grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
	}
	.post-card { scroll-snap-align: start; }
	.post-grid-page { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); overflow: visible; padding-bottom: 0; }
	.article-body { font-size: 16px; }
}

/* نصّ الرأي: أربعة أسطر على الأكثر، والنصّ الكامل في title (الملحق، البند 5) */
[data-slot="review.text"] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
