/* =====================================================================
   رونق — قالب متجر كتب لمنصّة «ناشر»
   زيتونيٌّ وذهبيّ، رأسٌ من صفّين والشعار في الوسط، وقسمٌ داكن بعرض الصفحة
   تحيط أغلفةٌ عائمة بعنوانه. كلّ التنسيق هنا، بلا مكتبات.
   ===================================================================== */

:root {
	/* ألوان الهويّة: يختارها الناشر، والقيم هنا تجريبيّة */
	--store-primary: #3D4A2B;
	--store-primary-dark: #28341D;
	--store-accent: #8A6200;
	--store-bg: #FFFFFF;
	--store-text: #1A1A1A;

	/* ألوان محايدة */
	--ink: #111111;
	--muted: #686868;
	--soft: #F6F6F6;
	--line: #E6E6E6;
	--line-strong: #CFCFCF;
	--white: #FFFFFF;
	--star: #F2B01E;
	--star-off: #D6D6D6;
	--sale: #A3271F;
	--ok: #1F7A3A;

	/* درجاتٌ مشتقّة من لون المتجر */
	--tint: color-mix(in srgb, var(--store-primary) 9%, #FFFFFF);
	--accent-on-dark: color-mix(in srgb, var(--store-accent) 30%, #FFFFFF);

	/* أنواع الكتب (القاعدة 6) */
	--type-print: #DB7056;
	--type-ebook: #5675A3;
	--type-audio: #986AB0;
	--type-educational: #3f8f6b;

	--font: "Tajawal", system-ui, sans-serif;
	--container: 1320px;
	--gutter: 24px;
	--r: 6px;
	--r-lg: 10px;
	--pill: 999px;
	--gap: 20px;
	--per: 5;
	--shadow: 0 10px 30px rgba(17, 17, 17, .12);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

/* ---------------- أساسيّات ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.7;
	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, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
sup { font-size: .62em; line-height: 0; }
:focus-visible { outline: 2px solid var(--store-accent); outline-offset: 2px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------- الأزرار ---------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 26px;
	border-radius: var(--pill); border: 1px solid transparent;
	font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
	transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-lg { min-height: 52px; padding: 12px 34px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.btn-xs { min-height: 30px; padding: 4px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--store-primary); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.round-btn {
	width: 44px; height: 44px; border-radius: 50%; flex: none;
	display: inline-grid; place-items: center;
	background: var(--ink); color: var(--white);
	transition: background .25s, color .25s;
}
.round-btn:hover { background: var(--store-primary); }
.round-outline { background: var(--white); color: var(--ink); border: 1px solid var(--line-strong); width: 52px; height: 52px; }
.round-outline:hover, .round-outline[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .icon { width: 16px; height: 16px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.icon-btn .count {
	position: absolute; top: 2px; inset-inline-end: 0;
	min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
	background: var(--sale); color: var(--white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.field {
	width: 100%; min-height: 44px; padding: 8px 16px;
	border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white);
}
.field:focus { outline: none; border-color: var(--ink); }

/* ---------------- النصوص ---------------- */
.eyebrow { display: inline-block; color: var(--store-accent); font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.section-title { font-size: 36px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.section { padding-block: 84px; }
.section-tight { padding-block: 56px; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .section-sub { max-width: 560px; margin-inline: auto; }

.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-weight: 500; font-size: 16px; color: var(--store-text); }
.price del { color: var(--muted); font-size: 13.5px; font-weight: 400; }
.price-lg { font-size: 26px; }
.price-lg del { font-size: 17px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .icon { width: 15px; height: 15px; }
.stars .off { color: var(--star-off); }

/* =====================================================================
   شريط الإعلان والرأس
   ===================================================================== */
.announce { background: var(--ink); color: var(--white); text-align: center; font-size: 13px; padding: 8px var(--gutter); }
.announce:empty { display: none; }

/* الرأس مثبّتٌ أعلى الشاشة؛ شريط الإعلان فوقه يمرّ */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.head-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 16px; }
.head-start { display: flex; align-items: center; gap: 8px; justify-self: start; }
.head-end { display: flex; align-items: center; gap: 4px; justify-self: end; }
.menu-toggle { display: none; }
.head-search { display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); width: 250px; }
.head-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 2px; font-size: 14px; }
.head-search input:focus { outline: none; }
.head-search button { width: 34px; height: 34px; display: grid; place-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1; color: var(--ink); }

.head-nav { border-top: 1px solid var(--line); }
.nav-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 34px; min-height: 52px; align-items: center; }
.nav-list > li > a, .nav-list > li > button { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; padding: 14px 0; position: relative; }
.nav-list > li > a::after, .nav-list > li > button::after { content: ""; position: absolute; inset-inline: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > button:hover::after { transform: scaleX(1); }
.nav-list .icon { width: 16px; height: 16px; }
.has-drop { position: relative; }
.drop {
	position: absolute; top: 100%; inset-inline-start: -20px; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
	padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 8px 12px; border-radius: var(--r); }
.drop a:hover { background: var(--soft); }

/* الدرج الجانبيّ */
.drawer-backdrop, .filters-backdrop { position: fixed; inset: 0; background: rgba(17, 17, 17, .45); z-index: 60; opacity: 0; visibility: hidden; transition: .3s; }
.drawer, .filters {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 70;
	width: min(340px, 88vw); background: var(--white); overflow-y: auto; padding: 20px;
	transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
.drawer-open .drawer-backdrop, .filters-open .filters-backdrop { opacity: 1; visibility: visible; }
.drawer-open .drawer, .filters-open .filters { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head h2 { font-size: 20px; font-weight: 500; }
.drawer-head .brand-name { font-size: 20px; }
.drawer-search { display: flex; border: 1px solid var(--line-strong); border-radius: var(--pill); padding-inline: 14px 4px; margin-bottom: 14px; }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; }
.drawer-search input:focus { outline: none; }
.drawer-search button { width: 40px; display: grid; place-items: center; }
.drawer-nav > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-sub a { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 14px; }
.drawer-phone { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; }

/* =====================================================================
   السلايدر: تلاشٍ بين الشرائح
   ===================================================================== */
.hero { position: relative; background: var(--tint); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; min-height: clamp(440px, 44vw, 640px); opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
html:not(.js) .slide:first-child, .slide.is-active { opacity: 1; visibility: visible; }
/* النصّ في نصف الشريحة الأيمن، والرسم مجموعٌ في يسار الصورة، فلا يقع خلف العنوان في أيّ عرض */
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.slide-body { grid-column: 1; grid-row: 1; position: relative; padding-inline-start: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-inline-end: 24px; }
.slide-text { max-width: 560px; padding-block: 60px; }
.slide-eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.slide h1, .slide h2 { font-size: 58px; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.slide p { color: #3A3A3A; font-size: 17px; margin: 18px 0 30px; max-width: 480px; }
.slide.is-active .slide-text > * { animation: rise .8s var(--ease) both; }
.slide.is-active .slide-text > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-text > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide-text > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider-dots-wrap { position: absolute; bottom: 34px; inset-inline: 0; pointer-events: none; }
.slider-dots { display: flex; gap: 8px; pointer-events: auto; width: max-content; }
.slider-dots button { width: 26px; height: 14px; position: relative; }
.slider-dots button::before { content: ""; position: absolute; inset-inline: 0; top: 6px; height: 2px; background: rgba(17, 17, 17, .25); transition: .3s; }
.slider-dots button[aria-current="true"] { width: 44px; }
.slider-dots button[aria-current="true"]::before { background: var(--ink); }

/* =====================================================================
   التبويبات بفواصل مائلة
   ===================================================================== */
.type-tabs, .slash-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 0; margin-bottom: 36px; }
.slash-tabs ul { display: contents; }
.type-tabs button, .slash-tabs a, .slash-tabs button {
	position: relative; display: inline-flex; align-items: flex-start; gap: 3px;
	font-size: 17px; font-weight: 500; padding: 4px 2px 6px; color: var(--muted);
}
.type-tabs button + button, .slash-tabs li, .slash-tabs button + button { margin-inline-start: 46px; }
.type-tabs button + button::before, .slash-tabs li::before, .slash-tabs button + button::before {
	content: ""; position: absolute; inset-inline-start: -26px; top: 50%; width: 1px; height: 26px;
	background: var(--line-strong); transform: translateY(-50%) rotate(20deg);
}
.slash-tabs li { position: relative; display: inline-flex; }
.slash-tabs li > a { padding-inline: 2px; }
.type-tabs sup, .slash-tabs sup { font-size: 11px; line-height: 1; margin-top: 2px; }
.type-tabs [aria-selected="true"], .slash-tabs [aria-selected="true"], .slash-tabs [aria-current="page"] { color: var(--ink); }
.type-tabs [aria-selected="true"]::after, .slash-tabs [aria-selected="true"]::after, .slash-tabs [aria-current="page"]::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--ink);
}

/* =====================================================================
   صفّ الكتب المنزلق وشريط التقدّم
   ===================================================================== */
.book-track, .review-track {
	display: grid; grid-auto-flow: column; gap: var(--gap);
	grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scrollbar-width: none; padding-bottom: 4px;
}
.book-track::-webkit-scrollbar, .review-track::-webkit-scrollbar { display: none; }
.book-track > *, .review-track > * { scroll-snap-align: start; }
.book-track.is-compact { --per-c: calc(var(--per) + 1); grid-auto-columns: calc((100% - (var(--per-c) - 1) * var(--gap)) / var(--per-c)); }
.track-bar { position: relative; width: 160px; height: 2px; margin: 30px auto 0; background: var(--line); overflow: hidden; }
.track-bar span { position: absolute; top: 0; bottom: 0; right: 0; width: var(--bar-w, 40%); background: var(--ink); transform: translateX(var(--bar-x, 0)); transition: transform .15s linear; }
.track-bar[hidden] { display: none; }

.book-grid { display: grid; grid-template-columns: repeat(var(--per), minmax(0, 1fr)); gap: 34px var(--gap); }

/* =====================================================================
   بطاقة الكتاب
   ===================================================================== */
.book-card { position: relative; min-width: 0; }
.book-media { position: relative; aspect-ratio: 2 / 3; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.book-cover { display: block; height: 100%; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.04); }
.type-dot {
	position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	color: var(--white); box-shadow: 0 0 0 2px var(--white);
}
.type-dot .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.type-dot.sm { width: 22px; height: 22px; top: 6px; inset-inline-start: 6px; box-shadow: 0 0 0 1.5px var(--white); }
.type-dot.sm .icon { width: 12px; height: 12px; }
.type-dot[data-type="print"] { background: var(--type-print); }
.type-dot[data-type="ebook"] { background: var(--type-ebook); }
.type-dot[data-type="audio"] { background: var(--type-audio); }
.type-dot[data-type="educational"] { background: var(--type-educational); }
.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: 2px 9px; border-radius: var(--r); font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--white); }
.badge-sale { background: var(--sale); }
.badge-new { background: var(--white); color: var(--store-primary-dark); }
.stock-band { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; background: rgba(17, 17, 17, .86); color: var(--white); text-align: center; font-size: 13px; font-weight: 500; padding: 8px; }
.book-card.is-out .book-cover img { filter: grayscale(.7); opacity: .75; }
/* المفضّلة والنظرة السريعة تطفوان فوق الغلاف: عند التحويم في الحاسوب، ودائمًا في اللمس، ولا تحجزان مكانًا */
.card-tools {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
	display: flex; flex-direction: column; gap: 8px;
}
.card-tools button {
	width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink);
	display: grid; place-items: center; box-shadow: 0 2px 8px rgba(17, 17, 17, .12);
	opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s;
}
.card-tools button:nth-child(2) { transition-delay: .05s; }
.card-tools .icon { width: 18px; height: 18px; }
.card-tools button:hover { background: var(--ink); color: var(--white); }
.wish-btn[aria-pressed="true"] { color: var(--sale); }
.wish-btn[aria-pressed="true"] .icon { fill: currentColor; }
.book-card:hover .card-tools button, .book-card:focus-within .card-tools button { opacity: 1; transform: none; }
@media (hover: none) {
	.card-tools button { opacity: 1; transform: none; }
}

/* زرّ السلّة: شريطٌ دائريّ رفيع بإطارٍ أسود، ظاهرٌ دائمًا تحت السعر بعرض البطاقة */
.card-cart {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	min-height: 40px; margin-top: 10px; padding: 6px 12px;
	border: 1px solid var(--ink); border-radius: var(--pill); background: var(--white); color: var(--ink);
	font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
	transition: background .25s, color .25s;
}
.card-cart .icon { width: 17px; height: 17px; }
.card-cart:hover { background: var(--ink); color: var(--white); }
.card-cart:disabled { cursor: not-allowed; border-color: var(--line-strong); background: var(--soft); color: var(--muted); }
.book-card { display: flex; flex-direction: column; }
.book-body { flex: 1; padding-top: 14px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.book-title { font-size: 16px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.book-author { color: var(--muted); font-size: 13.5px; }
.book-body .price { margin-top: auto; padding-top: 4px; }

/* شكل البطاقة: مؤطَّرة وبسيطة */
body[data-card-style="framed"] .book-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 10px 16px; background: var(--white); }
body[data-card-style="framed"] .book-media { background: var(--tint); }
body[data-card-style="framed"] .book-cover { padding: 12% 14%; }
body[data-card-style="framed"] .book-cover img { box-shadow: 0 10px 22px rgba(17, 17, 17, .22); border-radius: 2px; }
body[data-card-style="framed"] .book-body { padding-inline: 4px; }
body[data-card-style="minimal"] .book-card .rating, body[data-card-style="minimal"] .book-card .book-author { display: none; }
body[data-card-style="minimal"] .book-media { background: none; }
body[data-card-style="minimal"] .book-body { align-items: center; text-align: center; }

/* =====================================================================
   التصنيفات
   ===================================================================== */
.cat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.cat-card { display: block; text-align: center; }
.cat-img { display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card h3 { font-size: 17px; font-weight: 500; margin-top: 12px; }
.cat-count { color: var(--muted); font-size: 13.5px; }

/* =====================================================================
   القسم الحصريّ الداكن والأغلفة العائمة (ومثله رأس صفحة المؤلّف)
   ===================================================================== */
.exclusive, .author-hero { position: relative; overflow: hidden; background: var(--store-primary); color: var(--white); }
.exclusive { padding-block: 170px; }
.ex-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; }
.ex-eyebrow { display: block; font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--accent-on-dark); }
.ex-title { font-size: 66px; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
.ex-text { color: rgba(255, 255, 255, .86); font-size: 16.5px; margin: 20px auto 34px; max-width: 520px; }
.ex-books { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-book { position: absolute; width: 150px; pointer-events: auto; animation: float 7s ease-in-out infinite alternate; }
.float-cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.float-cover img { width: 100%; height: 100%; object-fit: cover; }
.float-title { font-size: 14px; font-weight: 500; margin-top: 10px; line-height: 1.4; }
.float-book .price { font-size: 13.5px; color: rgba(255, 255, 255, .88); gap: 6px; }
.float-book .price del { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.fb-1 { top: 56px; inset-inline-start: 4%; }
.fb-2 { bottom: 44px; inset-inline-start: 16%; animation-delay: -2s; }
.fb-3 { top: 84px; inset-inline-end: 5%; animation-delay: -4s; }
.fb-4 { bottom: 56px; inset-inline-end: 17%; animation-delay: -1s; }
@keyframes float { from { transform: translateY(-10px); } to { transform: translateY(10px); } }

/* =====================================================================
   قائمة القراءة المرقّمة
   ===================================================================== */
.list-box { display: flex; gap: 56px; align-items: center; background: var(--soft); border-radius: var(--r-lg); padding: 56px; }
.list-col { flex: 1; min-width: 0; }
.list-col .section-title { margin-bottom: 22px; }
.list-banner { flex: 0 0 44%; }
.num-list { display: flex; flex-direction: column; }
.num-item { display: flex; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.num-item:last-child { border-bottom: 0; }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13.5px; color: var(--muted); background: var(--white); }
.num-cover { position: relative; flex: none; width: 72px; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--white); }
.num-cover img { width: 100%; height: 100%; object-fit: cover; }
.num-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.num-body .book-title { font-size: 16.5px; }

/* البانر بصورة وبطاقة عنوانٍ بيضاء */
.banner { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.banner:hover img { transform: scale(1.04); }
.list-banner img { aspect-ratio: 7 / 8; }
.banner-cap {
	position: absolute; inset-inline: 20px; bottom: 20px; z-index: 1;
	display: flex; flex-direction: column; gap: 2px; padding: 16px 20px;
	background: var(--white); border-radius: var(--r); color: var(--ink);
}
.banner-cap b { font-size: 19px; font-weight: 500; }
.banner-cap span { color: var(--muted); font-size: 14px; }

/* =====================================================================
   شريط العبارات المتحرّك
   ===================================================================== */
.marquee { background: var(--tint); overflow: hidden; padding-block: 22px; }
.marquee-track { display: flex; width: max-content; direction: ltr; animation: marquee 40s linear infinite; }
.marquee-track li { direction: rtl; display: inline-flex; align-items: center; font-size: 30px; font-weight: 500; color: var(--store-primary-dark); white-space: nowrap; }
.marquee-track li::after { content: "✦"; color: var(--store-accent); font-size: 20px; margin-inline: 42px; }
.marquee-track:empty, .marquee:has(.marquee-track:empty) { display: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =====================================================================
   تسوّق المجموعة
   ===================================================================== */
.banner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.banner-pair .banner img { aspect-ratio: 4 / 3; }
.mini-row { margin-top: 26px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.mini-grid.one { grid-template-columns: 1fr; }
.mini-card { display: flex; gap: 14px; align-items: center; min-width: 0; }
.mini-cover { position: relative; flex: none; width: 80px; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.mini-body .book-title { font-size: 15px; }
.mini-body .price { font-size: 14.5px; }
.mini-body .btn { margin-top: 6px; }
.look:not(:has([data-region])) { display: none; }

/* =====================================================================
   آراء القرّاء: بطاقاتٌ أفقيّة
   ===================================================================== */
.review-track { --per: 2; }
.review-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); background: var(--white); border-radius: var(--r-lg); overflow: hidden; min-height: 250px; }
.rv-media { background: var(--tint); }
.rv-media img { width: 100%; height: 100%; object-fit: cover; }
.rv-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rv-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.rv-who b { font-weight: 500; font-size: 16px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ok); }
.verified .icon { width: 16px; height: 16px; }
.rv-text { color: #3A3A3A; font-size: 15px; }
.rv-text::before { content: "«"; }
.rv-text::after { content: "»"; }
.rv-book { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; font-weight: 500; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; }
.rv-book .icon { width: 18px; height: 18px; color: var(--muted); }
.rv-book .price { font-size: 14px; color: var(--muted); }
body[data-show-reviews="false"] .reviews-home { display: none; }

/* =====================================================================
   المؤلّفون
   ===================================================================== */
.author-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.author-card { display: block; text-align: center; }
.author-img { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.author-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.author-card:hover .author-img img { transform: scale(1.05); }
.author-card h3 { font-size: 16.5px; font-weight: 500; margin-top: 12px; }
.author-count { color: var(--muted); font-size: 13.5px; }

/* =====================================================================
   شريط الثقة
   ===================================================================== */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 16px; min-width: 0; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item .icon { width: 30px; height: 30px; stroke-width: 1.3; color: var(--store-primary); }
.trust-item h3 { font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.trust-item p { color: var(--muted); font-size: 13px; line-height: 1.4; }
body[data-show-trust-bar="false"] .trust { display: none; }

/* =====================================================================
   التذييل
   ===================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 54px; }
.foot-brand > p { color: var(--muted); font-size: 14px; margin: 16px 0; max-width: 360px; }
.foot-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #444; }
.foot-contact li { display: flex; align-items: center; gap: 10px; }
.foot-contact .icon { width: 18px; height: 18px; color: var(--muted); }
.foot-contact a { text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .25s; }
.social a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.social .icon { width: 18px; height: 18px; }
.site-footer h2 { font-size: 17px; font-weight: 500; margin-bottom: 16px; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: #444; font-size: 14px; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-news p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.news-field { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 4px; padding-inline-start: 18px; }
.news-field input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; }
.news-field input:focus { outline: none; }
.news-field button { width: 44px; height: 40px; border-radius: var(--pill); background: var(--ink); color: var(--white); display: grid; place-items: center; }
.foot-news small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }

.mobile-bar { display: none; }

/* =====================================================================
   رؤوس الصفحات الداخليّة
   ===================================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }
.breadcrumb.on-dark { justify-content: center; color: rgba(255, 255, 255, .82); }
.breadcrumb.on-dark li + li::before { color: rgba(255, 255, 255, .5); }
.breadcrumb.on-dark [aria-current], .breadcrumb.on-dark a:hover { color: var(--white); }

.page-band { background: var(--store-primary); color: var(--white); text-align: center; padding-block: 64px 70px; }
.page-band h1 { font-size: 60px; font-weight: 400; line-height: 1.2; margin-top: 18px; letter-spacing: -.015em; }
.page-band p { color: rgba(255, 255, 255, .86); margin-top: 10px; }
.page-head { background: var(--soft); padding-block: 40px; }
.page-head h1 { font-size: 40px; font-weight: 500; margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 4px; }

/* التصنيف: شريط الأدوات والتصفية والترقيم */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; margin-bottom: 30px; border-block: 1px solid var(--line); }
.toolbar-count { color: var(--muted); font-size: 14px; }
.toolbar-count b { color: var(--ink); font-weight: 500; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort .field { width: auto; min-height: 38px; padding-block: 4px; border-radius: var(--pill); color: var(--ink); }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 16px; }
.filter-group legend { font-weight: 500; font-size: 16px; margin-bottom: 10px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; padding-block: 5px; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.check .type-dot { position: static; box-shadow: none; }
.price-range { display: flex; gap: 10px; }
.filters .btn-block { margin-top: 20px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 54px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; border: 1px solid var(--line-strong); }
.pagination span { border: 0; color: var(--muted); }
.pagination a:hover { border-color: var(--ink); }
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination .icon { width: 18px; height: 18px; }

/* =====================================================================
   صفحة الكتاب
   ===================================================================== */
.pdp-wrap { padding-top: 26px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 22px; align-items: start; }
.gallery-main { position: relative; background: var(--soft); border-radius: var(--r-lg); padding: 56px 18%; }
.gallery-main img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 24px 48px rgba(17, 17, 17, .22); border-radius: 3px; }
.gallery-main .type-dot { top: 18px; inset-inline-start: 18px; width: 36px; height: 36px; }
.gallery-main .type-dot .icon { width: 19px; height: 19px; }
.gallery-main .book-badges { top: 64px; inset-inline-start: 18px; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs button { width: 72px; padding: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--soft); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.pdp-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pdp-info .eyebrow { margin: 0; }
.pdp-info h1 { font-size: 42px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.pdp-author { color: var(--muted); }
.pdp-author a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pdp-lead { color: #3A3A3A; font-size: 15.5px; }
.pdp-chip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--tint); color: var(--store-primary-dark); padding: 8px 16px; border-radius: var(--pill); font-size: 14px; }
.pdp-chip b { font-weight: 700; }
.pdp-chip .icon { width: 18px; height: 18px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); font-weight: 500; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(31, 122, 58, .15); }
.pdp-buy, .pdp-buy2 { display: flex; gap: 12px; width: 100%; flex-wrap: wrap; }
.pdp-buy { margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); height: 52px; padding-inline: 4px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--soft); }
.qty .icon { width: 16px; height: 16px; }
.qty input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield; font-weight: 500; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; width: 100%; margin-top: 8px; }
.meta-item { background: var(--white); padding: 12px 14px; display: flex; flex-direction: column; }
.meta-item small { color: var(--muted); font-size: 12.5px; }
.meta-item b { font-weight: 500; font-size: 14.5px; }

.pdp-lower { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.pdp-tabs .slash-tabs { justify-content: flex-start; border-bottom: 1px solid var(--line); margin-bottom: 26px; padding-bottom: 8px; }
.pdp-tabs .slash-tabs [aria-selected="true"]::after { bottom: -9px; }
.prose p + p { margin-top: 14px; }
.prose { color: #3A3A3A; font-size: 15.5px; line-height: 1.9; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; font-weight: 500; color: var(--muted); }
.read-with { background: var(--soft); border-radius: var(--r-lg); padding: 30px; position: sticky; top: 150px; }
.read-with .section-title { font-size: 24px; margin-bottom: 8px; }
.read-with .num-item { gap: 12px; }
.read-with .num-cover { width: 58px; }
.read-with .round-btn { width: 40px; height: 40px; }

.reviews-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
.reviews-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.reviews-summary strong { font-size: 44px; font-weight: 500; color: var(--ink); line-height: 1; }
.rating-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.rating-bars li { display: grid; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 10px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--star); }
.review-form { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.review-form h3 { font-size: 18px; font-weight: 500; }
.review-form p { color: var(--muted); font-size: 14px; }
.review-form textarea { min-height: 90px; resize: vertical; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick legend { width: 100%; font-size: 14px; color: var(--muted); margin-bottom: 4px; padding: 0; float: right; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { color: var(--star-off); cursor: pointer; }
.star-pick label .icon { width: 24px; height: 24px; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--star); }
.star-pick input:focus-visible + label { outline: 2px solid var(--store-accent); border-radius: 4px; }
.review-list { display: flex; flex-direction: column; }
.review-item { padding-block: 20px; border-bottom: 1px solid var(--line); }
.review-item:first-child { padding-top: 0; }
.ri-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.ri-head b { font-weight: 500; }
.ri-head time { color: var(--muted); font-size: 13px; margin-inline-start: auto; }
.review-item p { color: #3A3A3A; }

/* =====================================================================
   صفحة المؤلّف
   ===================================================================== */
.author-hero { padding-block: 64px 120px; }
.author-photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: 34px auto 22px; border: 6px solid rgba(255, 255, 255, .14); }
.author-hero .ex-title { font-size: 54px; }
.author-hero .ex-text { margin-bottom: 0; }
.author-hero .fb-1 { top: 70px; }
.author-hero .fb-3 { top: 100px; }
.author-about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; }
.author-about .prose { font-size: 17px; max-width: 760px; }

/* =====================================================================
   السلّة
   ===================================================================== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.cart-list { border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 40px 72px minmax(0, 1fr) auto 110px 40px; align-items: center; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.cart-cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.cart-cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cart-info .price { font-size: 14.5px; }
.cart-row .qty { height: 44px; }
.cart-row .qty button { width: 34px; height: 34px; }
.cart-total { font-weight: 500; text-align: end; }
.remove-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.remove-btn:hover { background: var(--soft); color: var(--sale); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.cart-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.cart-empty .icon { width: 44px; height: 44px; margin: 0 auto 12px; stroke-width: 1.2; }
.cart-empty h2 { font-size: 24px; font-weight: 500; }
.cart-empty p { color: var(--muted); margin: 6px 0 18px; }
.summary { background: var(--soft); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 150px; }
.summary h2 { font-size: 22px; font-weight: 500; margin-bottom: 18px; }
.coupon { display: flex; gap: 8px; }
.coupon .field { border-radius: var(--pill); min-height: 40px; }
.coupon-on { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--store-primary-dark); margin: 12px 0 8px; }
.coupon-on .icon { width: 16px; height: 16px; }
.coupon-on button { text-decoration: underline; margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.summary-row { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary-row b { font-weight: 500; }
.summary-total { font-size: 18px; border-bottom: 0; padding-block: 16px 20px; }
.summary-total b { font-weight: 700; }
.summary-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 14px; }
.summary-note .icon { width: 16px; height: 16px; }

/* =====================================================================
   404
   ===================================================================== */
.notfound { background: var(--store-primary); color: var(--white); text-align: center; padding-block: 90px 100px; }
.nf-code { font-size: 180px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.notfound h1 { font-size: 40px; font-weight: 500; margin-top: 8px; }
.notfound p:not(.nf-code) { color: rgba(255, 255, 255, .86); max-width: 520px; margin: 12px auto 28px; }
.nf-search { display: flex; max-width: 460px; margin: 0 auto 22px; background: var(--white); border-radius: var(--pill); padding: 4px; padding-inline-start: 20px; color: var(--ink); }
.nf-search input { flex: 1; min-width: 0; border: 0; background: none; }
.nf-search input:focus { outline: none; }
.nf-search button { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; }

/* =====================================================================
   components.html
   ===================================================================== */
.kit { padding-block: 40px 80px; }
.kit-block { padding-block: 34px; border-bottom: 1px solid var(--line); }
.kit-title { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.kit-row .type-dot { position: static; }
.kit-row .field { width: 240px; }
.kit-dark { background: var(--store-primary); padding: 24px; border-radius: var(--r-lg); margin-top: 18px; }
.kit-opts { display: flex; flex-direction: column; gap: 12px; }
.kit-opts > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kit-opts b { min-width: 130px; font-weight: 500; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.swatch { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.swatch span { height: 64px; border-radius: var(--r); margin-bottom: 6px; }
.swatch b { font-weight: 500; direction: ltr; text-align: end; }
.swatch small { color: var(--muted); direction: ltr; text-align: end; }
.kit-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.kit-reviews { grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
.kit-authors, .kit-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit .book-grid { --per: 4; }
.kit .kit-posts { display: grid; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); max-width: 380px; overflow: visible; }
.kit .countdown { margin-bottom: 0; }

/* =====================================================================
   الحركة والاستجابة
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1200px) {
	.exclusive { padding-block: 90px; }
	.ex-books { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); justify-content: center; gap: 24px; margin-top: 56px; padding-inline: var(--gutter); }
	.float-book { position: static; width: auto; animation: none; }
	.author-hero { padding-bottom: 80px; }
}

@media (max-width: 1100px) {
	:root { --gutter: 20px; }
	body[data-books-per-row] { --per: 4; }
	body[data-books-per-row="3"] { --per: 3; }
	.head-search { width: 200px; }
	.nav-list { gap: 4px 22px; }
	.slide h1, .slide h2 { font-size: 46px; }
	.section-title { font-size: 31px; }
	.ex-title { font-size: 52px; }
	.cat-row, .author-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.list-box { padding: 36px; gap: 36px; }
	.mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.review-card { grid-template-columns: 150px minmax(0, 1fr); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.pdp { gap: 40px; }
	.pdp-lower, .cart-layout { grid-template-columns: minmax(0, 1fr); }
	.read-with, .summary { position: static; }
	.reviews-layout { grid-template-columns: 1fr; }
	.pdp-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.review-track { --per: 1.1; }
	.list-box { flex-direction: column; align-items: stretch; }
	.list-banner { flex: none; }
	.list-banner img { aspect-ratio: 4 / 3; }
	.pdp { grid-template-columns: 1fr; }
	.gallery { max-width: 460px; width: 100%; margin-inline: auto; }
	.author-about { grid-template-columns: 1fr; gap: 16px; }
	.kit-split { grid-template-columns: 1fr; }
	.kit-reviews { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
	:root { --gutter: 16px; --gap: 14px; }
	body { padding-bottom: 64px; font-size: 14.5px; }
	body[data-books-per-row], body[data-books-per-row="3"] { --per: 2.15; }
	.book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px var(--gap); }
	.book-track.is-compact { --per-c: 2.4; }
	.announce { font-size: 12px; }
	.head-top { min-height: 62px; grid-template-columns: auto auto 1fr; gap: 8px; }
	.menu-toggle { display: inline-grid; }
	.head-search, .head-nav, .hide-sm { display: none; }
	.brand-name { font-size: 21px; }
	.brand img { width: 34px; height: 34px; }

	.slide { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
	.slide-body { padding-inline: var(--gutter); }
	/* الرسم مجموعٌ في يسار الصورة: تُعرض الصورة أعرض من الشاشة ويظهر يسارها وحده، فيكبر المشهد */
	.slide { overflow: hidden; }
	.slide-img { position: relative; order: 2; flex: none; width: 170%; max-width: none; height: auto; aspect-ratio: 16 / 7; margin-top: auto; margin-right: -70%; }
	.slide-text { padding-block: 40px 30px; }
	.slide h1, .slide h2 { font-size: 34px; }
	.slide p { font-size: 15px; margin: 12px 0 22px; }
	.slider-dots-wrap { bottom: auto; top: 16px; }

	.section { padding-block: 56px; }
	.section-tight { padding-block: 40px; }
	.section-title { font-size: 26px; }
	.section-head { margin-bottom: 24px; flex-wrap: wrap; align-items: flex-start; }
	.type-tabs button, .slash-tabs a, .slash-tabs button { font-size: 15px; }
	.type-tabs button + button, .slash-tabs li, .slash-tabs button + button { margin-inline-start: 30px; }
	.type-tabs button + button::before, .slash-tabs li::before, .slash-tabs button + button::before { inset-inline-start: -17px; height: 20px; }

	.card-cart { min-height: 40px; font-size: 13px; padding-inline: 8px; gap: 6px; }
	.card-cart .icon { width: 15px; height: 15px; }
	.card-tools { top: 8px; inset-inline-end: 8px; gap: 6px; }
	.book-title { font-size: 15px; }
	.cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.cat-card h3 { font-size: 15px; }
	.author-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.author-card h3 { font-size: 14.5px; }

	.exclusive { padding-block: 64px; }
	.ex-title { font-size: 38px; }
	.ex-books { grid-template-columns: repeat(2, minmax(0, 150px)); gap: 26px 20px; margin-top: 44px; }
	.list-box { padding: 22px 16px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
	.num-item { gap: 12px; }
	.num { width: 34px; height: 34px; font-size: 12.5px; }
	.num-cover { width: 60px; }
	.marquee-track li { font-size: 22px; }
	.marquee-track li::after { margin-inline: 26px; font-size: 16px; }
	.banner-pair { grid-template-columns: 1fr; }
	.mini-grid { grid-template-columns: 1fr; gap: 16px; }
	.review-card { grid-template-columns: 1fr; }
	.rv-media { height: 180px; }
	.rv-media img { object-position: center 30%; }
	.foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.foot-brand, .foot-news { grid-column: 1 / -1; }
	.banner-cap { inset-inline: 12px; bottom: 12px; padding: 10px 14px; }
	.banner-cap b { font-size: 16px; }
	.banner-cap span { font-size: 13px; }

	.mobile-bar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
		background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(17, 17, 17, .06);
	}
	.mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: 11.5px; color: var(--ink); }

	.page-band { padding-block: 40px 46px; }
	.page-band h1 { font-size: 40px; }
	.page-head h1 { font-size: 30px; }
	.toolbar { gap: 10px; }
	.toolbar-count { order: 3; width: 100%; }
	.pdp-info h1 { font-size: 30px; }
	.gallery-main { padding: 36px 20%; }
	.pdp-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.read-with { padding: 22px 16px; }
	.author-hero .ex-title { font-size: 38px; }
	.author-photo { width: 150px; height: 150px; }
	.cart-row { grid-template-columns: 32px 64px minmax(0, 1fr) auto; grid-template-areas: "n c i r" "n c q t"; gap: 8px 12px; }
	.cart-row .num { grid-area: n; width: 32px; height: 32px; font-size: 12px; }
	.cart-cover { grid-area: c; }
	.cart-info { grid-area: i; }
	.cart-row .qty { grid-area: q; justify-self: start; height: 40px; }
	.cart-total { grid-area: t; justify-self: end; align-self: center; }
	.remove-btn { grid-area: r; justify-self: end; }
	.nf-code { font-size: 110px; }
	.notfound h1 { font-size: 28px; }
	.swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kit-authors, .kit-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kit .book-grid { --per: 2; }
}

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

/* النظرة السريعة على البطاقات الصغيرة */
.mini-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.mini-actions .btn { margin-top: 0; }
.qv-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); transition: .2s; }
.qv-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.qv-btn .icon { width: 16px; height: 16px; }

/* الباقات تحت قائمة القراءة */
.bundle-strip { margin-top: 28px; }
.bundle-head { font-size: 20px; font-weight: 500; margin-bottom: 16px; }
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.bundle-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); min-width: 0; }
.bundle-covers { flex: none; display: flex; align-items: flex-end; }
.bundle-covers img { width: 58px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r); box-shadow: 0 6px 14px rgba(17, 17, 17, .16); border: 2px solid var(--white); }
.bundle-covers img + img { margin-inline-start: -26px; }
.bundle-covers img:nth-child(2) { transform: translateY(-6px); }
.bundle-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.bundle-body .book-title { font-size: 15px; }
.bundle-body .price { font-size: 14.5px; }
.bundle-body .btn { margin-top: 6px; }
.bundle-saving { display: inline-block; padding: 1px 10px; border-radius: var(--pill); background: var(--sale); color: var(--white); font-size: 12.5px; font-weight: 500; }

/* اشترِ أكثر ووفّر، وقسيمة الترحيب */
.qty-deal { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 10px; padding: 5px 12px; border-radius: var(--pill); background: var(--tint); color: var(--store-primary); font-size: 14px; font-weight: 500; }
.qty-deal .icon, .news-offer .icon { width: 16px; height: 16px; }
.news-offer { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 500; font-size: 14px; }

@media (max-width: 1100px) { .bundle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bundle-grid { grid-template-columns: 1fr; } }


/* =====================================================================
   عروض الموسم: عدّادٌ واحد للقسم وصفٌّ منزلق
   ===================================================================== */
.deal-wrap { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 48px; align-items: center; }
.deal-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.deal-intro .section-sub { margin: 4px 0 18px; }
.deal-books { min-width: 0; }
.deal .book-track { --per: 3; }
.countdown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.countdown[hidden] { display: none; }
.cd-label { font-size: 14px; color: var(--muted); }
.cd-units { display: flex; gap: 8px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 10px 6px 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.cd-unit b { font-size: 26px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.cd-unit small { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   كتاب الأسبوع: كتابٌ واحد بغلافٍ كبير
   ===================================================================== */
.featured {
	display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; column-gap: 72px;
	background: color-mix(in srgb, var(--store-accent) 9%, #FFFFFF); border-radius: var(--r-lg); padding: 56px 64px; position: relative; overflow: hidden;
}
.feat-head { grid-column: 1; grid-row: 1; margin-bottom: 14px; }
.feat-head .section-title { font-size: 22px; color: var(--store-primary); }
.feat-head .eyebrow { margin-bottom: 0; }
.feat-items, .feat-book { display: contents; }
.feat-cover { grid-column: 2; grid-row: 1 / 3; align-self: center; position: relative; display: block; width: 100%; max-width: 320px; justify-self: center; }
.feat-cover::before { content: ""; position: absolute; top: 50%; left: 50%; width: 122%; aspect-ratio: 1; transform: translate(-50%, -46%); border-radius: 50%; background: color-mix(in srgb, var(--store-primary) 14%, transparent); z-index: 0; }
.feat-cover img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 26px 50px rgba(17, 17, 17, .25); transform: rotate(-2deg); transition: transform .6s var(--ease); }
.feat-cover:hover img { transform: rotate(0); }
.feat-cover .type-dot { z-index: 2; top: 14px; inset-inline-start: 14px; }
.feat-body { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.feat-title { font-size: 40px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.feat-title a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.feat-desc { color: #3A3A3A; font-size: 15.5px; line-height: 1.85; max-width: 620px; }
.feat-desc p + p { margin-top: 8px; }
.feat-facts { display: flex; flex-wrap: wrap; gap: 0; border-block: 1px solid color-mix(in srgb, var(--store-accent) 22%, #FFFFFF); width: 100%; margin-block: 6px; }
.feat-facts li { display: flex; flex-direction: column; padding: 10px 22px; }
.feat-facts li:first-child { padding-inline-start: 0; }
.feat-facts li + li { border-inline-start: 1px solid color-mix(in srgb, var(--store-accent) 22%, #FFFFFF); }
.feat-facts small { font-size: 12.5px; color: #5E5E5E; }
.feat-facts b { font-weight: 500; font-size: 15px; }
.feat-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 6px; }
.feat-wish { width: 44px; height: 44px; }

/* =====================================================================
   من دفتر المكتبة: بطاقات المقالات
   ===================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
.post-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 22px 24px; }
.post-date { font-size: 13px; color: var(--store-accent); font-weight: 500; }
.post-title { font-size: 19px; font-weight: 500; line-height: 1.45; }
.post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-excerpt { color: var(--muted); font-size: 14.5px; }
.section:not(.section-soft) .post-card { border: 1px solid var(--line); }

/* صفحة المدوّنة: مقالٌ أوّل عريض ثمّ شبكة */
.blog-list .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.blog-list .post-card:first-child .post-media { aspect-ratio: auto; min-height: 100%; }
.blog-list .post-card:first-child .post-body { justify-content: center; padding: 40px 44px; gap: 10px; }
.blog-list .post-card:first-child .post-title { font-size: 30px; line-height: 1.3; }
.blog-list .post-card:first-child .post-excerpt { font-size: 16px; }
.blog-list .post-card { border: 1px solid var(--line); }

/* صفحة المقال */
.article { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; margin-top: 30px; }
.article-head h1 { font-size: 46px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin-top: 12px; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-top: 14px; }
.article-cover { max-width: 1040px; margin: 40px auto 44px; border-radius: var(--r-lg); overflow: hidden; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { color: #2E2E2E; font-size: 17px; line-height: 2; }
.article-body p + p, .article-body h2 + p { margin-top: 16px; }
.article-body h2 { font-size: 24px; font-weight: 500; margin-top: 34px; line-height: 1.4; }
.article-body blockquote { margin: 28px 0; padding: 4px 24px; border-inline-start: 3px solid var(--store-accent); font-size: 19px; color: var(--store-primary-dark); }
.article-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.article-books .mini-card { align-items: flex-start; }
.article-share { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--muted); font-size: 14px; }

/* =====================================================================
   التصنيف: شرائح التصفية المختارة والتبديل بين الشبكة والقائمة
   ===================================================================== */
.toolbar-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 2px; }
.view-toggle button { width: 38px; height: 34px; border-radius: var(--pill); display: grid; place-items: center; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.view-toggle .icon { width: 18px; height: 18px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -14px 0 28px; }
.active-filters[hidden] { display: none; }
.active-filters > span { font-size: 14px; color: var(--muted); margin-inline-end: 4px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: var(--pill); background: var(--tint); color: var(--store-primary-dark); font-size: 13.5px; font-weight: 500; }
.filter-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.filter-chip button:hover { background: var(--white); }
.filter-chip .icon { width: 14px; height: 14px; }
.clear-filters { font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
/* اثنا عشر كتابًا تملأ كلّ الصفوف: 3 أو 4 أو 6 أعمدة (والخمسة تصير أربعة) */
.listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body[data-books-per-row="3"] .listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-books-per-row="6"] .listing { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.listing.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.listing.is-list .book-card { flex-direction: row; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.listing.is-list .book-media { flex: 0 0 120px; align-self: flex-start; }
.listing.is-list .book-body { padding-top: 4px; }
.listing.is-list .card-cart { width: auto; padding-inline: 20px; }
.filter-group .count { color: var(--muted); font-size: 13px; margin-inline-start: auto; }

/* =====================================================================
   صفحة الكتاب: اختيار الصيغة، وصندوق التوصيل والدفع، ورؤوس الآراء
   ===================================================================== */
.formats-box { width: 100%; margin-top: 4px; }
.formats-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.format-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; padding-inline-start: 52px; border: 1px solid var(--line-strong); border-radius: var(--r); transition: border-color .2s; min-width: 0; }
.format-opt:hover { border-color: var(--ink); }
.format-opt.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.format-opt .type-dot { top: 50%; transform: translateY(-50%); inset-inline-start: 12px; box-shadow: none; }
.format-name { font-weight: 500; font-size: 15px; }
.format-price { font-size: 13.5px; color: var(--muted); }
.formats-box:not(:has([data-repeat="format"] ~ .format-opt)) { display: none; }
.pdp-service { width: 100%; border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pdp-service li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; color: #444; }
.pdp-service li + li { border-inline-start: 1px solid var(--line); }
.pdp-service b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.pdp-service .icon { width: 20px; height: 20px; color: var(--store-primary); margin-top: 2px; }
.ri-head .stars .icon { width: 14px; height: 14px; }

@media (max-width: 1100px) {
	.trust-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.trust-grid::-webkit-scrollbar { display: none; }
	.trust-item { flex: 1 0 auto; scroll-snap-align: start; }
	.trust-item h3, .trust-item p { white-space: nowrap; }
	.deal-wrap { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
	.deal .book-track { --per: 2.3; }
	.featured { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 44px; padding: 44px; }
	.feat-title { font-size: 34px; }
	body[data-books-per-row="6"] .listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.blog-list .post-card:first-child .post-body { padding: 28px 30px; }
	.pdp-service { grid-template-columns: 1fr; }
	.pdp-service li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
	.deal-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.deal-intro { align-items: center; text-align: center; }
	.deal .book-track { --per: 3; }
	.featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 36px 28px; }
	.feat-head, .feat-cover, .feat-body { grid-column: 1; grid-row: auto; }
	.feat-head { text-align: center; }
	.feat-cover { max-width: 230px; margin-bottom: 36px; }
	.feat-body { align-items: center; text-align: center; }
	.feat-facts { justify-content: center; }
	.feat-buy { justify-content: center; }
	.post-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
	.post-grid::-webkit-scrollbar { display: none; }
	.post-grid > * { scroll-snap-align: start; }
	.blog-list { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
	.blog-list .post-card:first-child { grid-template-columns: 1fr; }
	.blog-list .post-card:first-child .post-media { aspect-ratio: 16 / 9; }
	.blog-list .post-card:last-child:nth-child(even) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.blog-list .post-card:last-child:nth-child(even) .post-media { aspect-ratio: auto; min-height: 100%; }
	.listing.is-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.trust-grid { margin-inline: calc(var(--gutter) * -1); }
	.trust-item { padding: 14px 18px; gap: 10px; }
	.trust-item .icon { width: 24px; height: 24px; }
	.trust-item h3 { font-size: 14px; }
	.trust-item p { font-size: 12px; }
	.deal .book-track { --per: 2.15; }
	.cd-unit { min-width: 58px; }
	.cd-unit b { font-size: 22px; }
	.featured { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: 36px var(--gutter); }
	.feat-title { font-size: 28px; }
	.feat-facts li { padding: 8px 14px; }
	.post-grid { grid-auto-columns: 82%; }
	.blog-list { grid-template-columns: minmax(0, 1fr); }
	.blog-list .post-card:last-child:nth-child(even) { grid-template-columns: 1fr; }
	.blog-list .post-card:last-child:nth-child(even) .post-media { aspect-ratio: 16 / 9; }
	.blog-list .post-card:first-child .post-title { font-size: 23px; }
	.article-head h1 { font-size: 30px; }
	.article-body { font-size: 16px; }
	.article-books { grid-template-columns: minmax(0, 1fr); }
	.listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body[data-books-per-row="6"] .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.listing.is-list .book-media { flex-basis: 96px; }
	.toolbar-end { width: 100%; justify-content: space-between; }
	.active-filters { margin-top: -10px; }
}

/* تبويبات صفّ الكتب (القاعدة 16): يختفي الشريط إن لم يختر الناشر غير مصدرٍ واحد */
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

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