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

:root {
	--store-primary: #425A8B;
	--store-primary-dark: #0E224D;
	--store-accent: #FD9636;
	--store-bg: #FFFFFF;
	--store-text: #425A8B;

	/* محايدات */
	--sand: #F5ECDD;          /* المختارات والنشرة */
	--beige: #F3E6D6;         /* السلايدر وخلفيّة الغلاف */
	--line: #E2E6EE;
	--line-strong: #CDD4E1;
	--soft: #EEF2F7;          /* التذييل والأزرار الرماديّة */
	--muted: #56658A;
	--gold: #F2B01E;
	--ink-on-accent: var(--store-primary-dark);
	--new-bg: #DDF3E6;
	--new-ink: #1D6340;

	--font-head: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--font-body: "IBM Plex Sans Arabic", "Readex Pro", Tahoma, sans-serif;
	--r: 6px;
	--r-lg: 10px;
	--cols: 5;
	--gutter: 24px;
	--shadow: 0 10px 30px -18px rgba(14, 34, 77, .35);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--store-bg);
	color: var(--store-text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.65;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--store-primary-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--store-primary-dark); margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--store-accent); outline-offset: 2px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--store-primary-dark); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ---------- أزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
	font-family: var(--font-head); font-weight: 600; font-size: 14px; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-accent { background: var(--store-accent); color: var(--ink-on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 85%, #000); color: var(--ink-on-accent); }
.btn-primary { background: var(--store-primary-dark); color: #fff; }
.btn-primary:hover { background: var(--store-primary); color: #fff; }
.btn-line { background: #fff; color: var(--store-primary-dark); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--store-primary-dark); }
.btn-soft { background: var(--soft); color: var(--store-primary-dark); }
.btn-soft:hover { background: var(--line); }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.btn-block { width: 100%; }
.round-btn {
	width: 38px; height: 38px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
	background: #fff; color: var(--store-primary-dark); box-shadow: 0 4px 14px -6px rgba(14, 34, 77, .45);
}
.round-btn .icon { width: 18px; height: 18px; }
.round-btn:hover { background: var(--store-accent); }
.round-btn[aria-pressed="true"] .icon { fill: #C2410C; stroke: #C2410C; }
.round-btn-line { box-shadow: none; border: 1px solid var(--line-strong); width: 46px; height: 46px; }
.arrow-btn {
	width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff;
	display: inline-grid; place-items: center; color: var(--store-primary);
}
.arrow-btn .icon { width: 16px; height: 16px; }
.arrow-btn:hover:not(:disabled) { border-color: var(--store-primary-dark); color: var(--store-primary-dark); }
.arrow-btn:disabled { opacity: .45; cursor: default; }
.icon-btn {
	position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
	border: 0; background: transparent; border-radius: 50%; color: var(--store-primary-dark);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn .icon { width: 22px; height: 22px; }
.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(--ink-on-accent);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.pill {
	display: inline-block; min-width: 28px; text-align: center; padding: 1px 8px;
	border-radius: 999px; background: var(--soft); color: var(--store-primary); font-size: 12px; font-weight: 500;
}

/* ---------- شريط الخدمات ---------- */
.servicebar { border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; }
.servicebar-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.sb-links, .sb-contact { display: flex; align-items: center; gap: 0; }
.sb-links a, .sb-contact a { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--store-primary); }
.sb-links a + a, .sb-contact a + a { border-inline-start: 1px solid var(--line); }
.sb-links a:first-child { padding-inline-start: 0; }
.sb-contact a:last-child { padding-inline-end: 0; }
.sb-contact .icon { width: 16px; height: 16px; }
.sb-contact bdi { font-weight: 600; color: var(--store-primary-dark); }
.sb-ship { flex: 1; display: flex; justify-content: center; min-width: 0; }
.shipbar { display: inline-flex; align-items: center; gap: 8px; color: var(--store-primary-dark); }
.shipbar .icon { width: 18px; height: 18px; color: var(--store-primary); }
.shipbar b { font-weight: 700; }
.ship-track { position: relative; width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; }
.ship-fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--store-accent); border-radius: 3px; }
.shipbar.is-free .ship-track, .freeship.is-free .ship-track { display: none; }
[data-slot="cart.free_shipping_left"][hidden] { display: none !important; }
.cmp-bar { border: 1px solid var(--line); border-radius: var(--r); padding-inline: 16px; }

/* ---------- الرأس ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--store-primary-dark); white-space: nowrap; }
.menu-toggle { display: none; }
.search-box {
	flex: 1 1 240px; min-width: 0; max-width: 460px; display: flex; align-items: center; height: 44px;
	border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff;
}
.search-box select {
	border: 0; background: transparent; height: 100%; padding: 0 12px; max-width: 140px; color: var(--store-primary-dark);
	border-inline-end: 1px solid var(--line); font-size: 13px;
}
.search-box input { flex: 1; min-width: 0; border: 0; height: 100%; padding: 0 12px; background: transparent; font-size: 14px; }
.search-box input:focus, .search-box select:focus { outline: none; }
.search-box:focus-within { border-color: var(--store-primary); }
.search-box button { border: 0; background: transparent; width: 44px; height: 100%; display: grid; place-items: center; color: var(--store-primary-dark); }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a, .main-nav button {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; background: none;
	font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--store-primary-dark); border-radius: var(--r);
}
.main-nav button .icon { width: 16px; height: 16px; }
.main-nav a[aria-current="page"] { color: var(--store-primary); box-shadow: inset 0 -2px 0 var(--store-accent); border-radius: 0; }
.has-drop { position: relative; }
.drop {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; padding: 8px; display: block !important;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 5;
}
.drop a { display: block; padding: 8px 12px; font-size: 14px; }
.drop a:hover { background: var(--soft); }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.mobile-search { display: none; }

/* الدرج الجانبيّ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14, 34, 77, .45); opacity: 0; visibility: hidden; transition: .2s; z-index: 60; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 86vw); background: #fff; z-index: 61;
	overflow-y: auto; padding: 16px; display: none;
}
.drawer-open .drawer { display: block; animation: slide-in .25s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-in-end { from { transform: translateX(-40px); opacity: 0; } }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-head .brand-name { font-size: 18px; }
.drawer-nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; color: var(--store-primary-dark); }
.drawer-label { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-cats a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.drawer-phone { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; font-weight: 600; color: var(--store-primary-dark); }

/* ---------- عناوين الأقسام ---------- */
.section { padding-block: 44px; }
.section-tight { padding-block: 22px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.sec-title { font-size: 30px; font-weight: 600; color: var(--store-primary); }
.sec-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sec-note { color: var(--muted); font-size: 13px; }
.sec-head .countdown { margin-inline-start: auto; }
.see-all { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; color: var(--store-primary-dark); white-space: nowrap; }
.see-all .icon { width: 18px; height: 18px; }
.see-all:hover { color: var(--store-primary); }
.arrows { display: inline-flex; gap: 6px; }
.section-sand { background: var(--sand); }
.section-sand .sec-head { border-color: #E6D8C1; }
.section-sand .sec-sub { color: #4E5C7E; }

/* تبويبات صفّ الكتب */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-head-tabs { align-items: center; }
.sec-head-tabs .tabs { margin-inline-start: auto; }
.tab { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--store-primary-dark); white-space: nowrap; }
.tab:hover { border-color: var(--store-primary-dark); }
.tab[aria-selected="true"] { background: var(--store-primary-dark); border-color: var(--store-primary-dark); color: #fff; }

/* العدّاد */
.countdown { display: flex; align-items: center; gap: 12px; }
.cd-label { font-family: var(--font-head); font-weight: 600; color: var(--store-primary-dark); font-size: 14px; max-width: 9em; line-height: 1.3; }
.cd-boxes { display: inline-flex; align-items: flex-start; gap: 4px; }
.cd-boxes i { font-style: normal; font-weight: 700; color: var(--store-primary-dark); line-height: 38px; }
.cd-box { display: grid; justify-items: center; gap: 2px; }
.cd-box b { min-width: 40px; height: 38px; padding: 0 6px; display: grid; place-items: center; background: var(--store-accent); color: var(--ink-on-accent); border-radius: var(--r); font-family: var(--font-head); font-size: 16px; }
.cd-box small { font-size: 11px; color: var(--muted); }

/* ---------- النجوم والسعر ودوائر النوع والشارات ---------- */
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .icon { width: 13px; height: 13px; fill: var(--gold); stroke: var(--gold); stroke-width: 1; }
.stars .icon.off { fill: #E4E1D8; stroke: #E4E1D8; }
.rate { display: inline-flex; align-items: center; gap: 4px; }
.rate .count { position: static; background: none; color: var(--muted); font-size: 12px; font-weight: 400; min-width: 0; height: auto; padding: 0; line-height: 1.4; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price .now { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--store-primary-dark); }
.price del { color: var(--muted); font-size: 14px; }
.price-lg .now { font-size: 20px; }
.price-xl .now { font-size: 28px; }
.price-xl del { font-size: 17px; }
.price-xxl .now { font-size: 32px; }
.price-xxl del { font-size: 18px; }
.type-dot {
	width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex: none;
	box-shadow: 0 0 0 2px #fff;
}
.type-dot .icon { width: 16px; height: 16px; }
.type-dot-sm { width: 22px; height: 22px; }
.type-dot-sm .icon { width: 12px; height: 12px; }
.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; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; font-family: var(--font-head); white-space: nowrap; }
.badge-sale { background: var(--store-accent); color: var(--ink-on-accent); }
.badge-new { background: var(--new-bg); color: var(--new-ink); }
.badge-best { background: var(--store-primary-dark); color: #fff; }
.stock-flag { position: absolute; inset-inline: 0; bottom: 0; padding: 6px; text-align: center; background: rgba(14, 34, 77, .88); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- البطاقة العموديّة ---------- */
.book-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 34px 22px; }
.bcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bcard-media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--beige); }
.bcard-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .35s; }
.bcard:hover .bcard-cover img { transform: scale(1.03); }
.bcard-media > .type-dot { position: absolute; top: 10px; inset-inline-end: 10px; }
.bcard-media > .badge { position: absolute; top: 12px; inset-inline-start: 10px; }
/* زرّ السلّة ظاهرٌ دائمًا في ركن الغلاف، والمفضّلة والنظرة السريعة تطفوان عند التحويم (ودائمًا في اللمس) بلا مكانٍ محجوز */
.bcard-actions { position: absolute; inset-inline: 10px; bottom: 10px; display: flex; gap: 8px; pointer-events: none; }
.bcard-actions > * { pointer-events: auto; }
.bcard-actions .round-btn:not(.round-btn-cart) { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.bcard:hover .bcard-actions .round-btn, .bcard:focus-within .bcard-actions .round-btn { opacity: 1; transform: none; }
@media (hover: none) { .bcard-actions .round-btn:not(.round-btn-cart) { opacity: 1; transform: none; } }
.bcard.is-out .bcard-actions { bottom: 44px; }
.round-btn-cart { background: var(--store-accent); color: var(--ink-on-accent); margin-inline-end: auto; }
.round-btn-cart:hover { background: var(--store-primary-dark); color: #fff; }
.round-btn-cart:disabled { background: #E4E1D8; color: #6B7280; box-shadow: none; cursor: not-allowed; }
.bcard.is-out .bcard-cover img { filter: grayscale(.6); opacity: .8; }
.bcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; }
.bcard-author { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bcard-meta .rate { flex: none; }
.bcard-title { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .price { margin-top: auto; padding-top: 2px; }
[data-card-style="framed"] .bcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 10px 14px; background: #fff; }
[data-card-style="framed"] .bcard-meta { margin-top: 4px; }
@media (min-width: 1241px) {
	[data-books-per-row="5"] .book-grid-fill > :nth-child(n+11) { display: none; }
	[data-books-per-row="4"] .book-grid-row > :nth-child(n+5), [data-books-per-row="5"] .book-grid-row > :nth-child(n+6) { display: none; }
}
.book-grid-scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * 22px) / var(--cols)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.book-grid-scroll::-webkit-scrollbar { display: none; }
.book-grid-scroll > * { scroll-snap-align: start; }

/* ---------- البطاقة الأفقيّة ---------- */
.hcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hcard { position: relative; display: flex; gap: 16px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.hcard:hover { border-color: var(--store-primary); box-shadow: var(--shadow); }
.hcard-cover { position: relative; width: 92px; flex: none; align-self: flex-start; }
.hcard-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(var(--r) - 2px); }
.hcard-cover .type-dot { position: absolute; bottom: -6px; inset-inline-end: -6px; }
.hcard-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-inline-end: 52px; }
.hcard-cart { position: absolute; bottom: 14px; inset-inline-end: 14px; }
.hcard-author, .mcard-author, .deal-author { font-size: 12px; color: var(--muted); }
.hcard-title { font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .price { padding-top: 4px; }
.hcard-flags { position: absolute; top: 12px; inset-inline-end: 12px; }
.hcard-flags:empty { display: none; }

/* ---------- البطاقة المصغّرة ---------- */
.mcard { display: flex; gap: 12px; min-width: 0; }
.mcard-cover { position: relative; width: 66px; flex: none; align-self: flex-start; }
.mcard-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.mcard-cover .type-dot { position: absolute; top: -6px; inset-inline-end: -6px; }
.mcard-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mcard-title { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .price .now { font-size: 16px; }
.mcard .price del { font-size: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* ---------- الرئيسيّة: الواجهة ---------- */
.hero-row > * { min-width: 0; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 22px; }
.hero-row:has(> .side-cats):has(> .hero) { grid-template-columns: 270px minmax(0, 1fr); }
.side-cats { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 6px 18px 14px; background: #fff; }
.side-cats-title { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--store-primary-dark); }
.side-cats ul a { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14.5px; color: var(--store-primary-dark); }
.side-cats ul a .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; color: var(--store-primary); }
.side-cats ul a:hover [data-slot="category.name"] { color: var(--store-primary); text-decoration: underline; text-underline-offset: 4px; }
.side-cats .pill { margin-inline-start: auto; }
.side-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 600; color: #B2540B; }
.side-more .icon { width: 14px; height: 14px; }
.hero-row:not(:has(> .hero)) .side-cats ul { columns: 4 200px; }
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--beige); min-height: 440px; }
.slides { position: relative; height: 100%; min-height: inherit; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.slide-copy { position: relative; z-index: 1; max-width: 470px; padding: 40px 48px; display: grid; gap: 16px; justify-items: start; }
.slide-title { font-size: 46px; line-height: 1.15; font-weight: 700; color: var(--store-primary-dark); }
.slide-text { color: var(--store-primary-dark); font-size: 15.5px; max-width: 34em; }
.slider-dots { position: absolute; bottom: 22px; inset-inline-start: 48px; display: flex; gap: 6px; z-index: 2; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: color-mix(in srgb, var(--store-primary-dark) 18%, transparent); }
.dot.on { background: var(--store-accent); width: 26px; border-radius: 5px; }

/* البانرات */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promo, .duo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 200px; display: flex; }
.promo > img, .duo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.banner-copy { position: relative; z-index: 1; display: grid; align-content: center; justify-items: start; gap: 6px; padding: 24px 26px; max-width: 62%; }
.banner-title { font-size: 22px; font-weight: 700; color: var(--store-primary-dark); }
.banner-text { font-size: 13.5px; color: var(--store-primary-dark); }
.banner-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--font-head); font-size: 13px; font-weight: 700; color: #0B5C8A; letter-spacing: .01em; }
.banner-link .icon { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.duo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo { min-height: 300px; }
.duo .banner-copy { max-width: 48%; padding: 32px; }
.duo .banner-title { font-size: 28px; }
.duo .banner-text { font-size: 15px; }

.wide-banner { position: relative; display: grid; place-items: center; min-height: 170px; border-radius: var(--r); overflow: hidden; text-align: center; }
.wide-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-copy { position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px; }
.wide-text { color: #fff; font-size: 14px; font-weight: 600; }
.wide-title { color: #fff; font-family: var(--font-head); font-size: 28px; font-weight: 600; line-height: 1.3; }
.wide-banner .btn { margin-top: 6px; }
.wide-banner:hover .btn { background: #fff; }

/* المختارات */
.picks { background: var(--sand); padding-block: 56px; }
.picks-head { text-align: center; display: grid; justify-items: center; gap: 4px; margin-bottom: 30px; }
.picks-head .countdown { margin-top: 14px; }
.picks .sec-sub { color: #4E5C7E; }
.picks .cd-box small { color: #4E5C7E; }
.carousel { position: relative; display: flex; align-items: center; gap: 18px; }
.arrow-round { width: 46px; height: 46px; flex: none; border: 0; box-shadow: 0 6px 18px -8px rgba(14, 34, 77, .4); }
.arrow-round .icon { width: 20px; height: 20px; }
.deal-track { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; }
.deal-track::-webkit-scrollbar { display: none; }
.deal-track-static { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
.deal-card { position: relative; scroll-snap-align: start; display: flex; gap: 22px; padding: 26px 22px 22px; background: #fff; border: 2px solid var(--store-primary); border-radius: var(--r); overflow: hidden; min-width: 0; }
.ribbon { position: absolute; top: 0; inset-inline-start: 0; width: 120px; height: 120px; overflow: hidden; pointer-events: none; z-index: 2; }
.ribbon > span { position: absolute; top: 24px; right: -38px; width: 170px; transform: rotate(45deg); background: var(--store-primary); color: #fff; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; padding: 5px 0; }
.deal-cover { position: relative; width: 170px; flex: none; align-self: flex-start; margin-top: 14px; }
.deal-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 24px -14px rgba(14, 34, 77, .6); }
.deal-cover .type-dot { position: absolute; top: 8px; inset-inline-end: 8px; }
.deal-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.deal-title { font-size: 20px; line-height: 1.35; }
.deal-desc { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-top: 6px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }
.deal-btns { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 10px; }

/* بطاقات التصنيف */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cat-card { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; min-width: 0; }
.cat-card-side { display: grid; justify-items: center; align-content: start; gap: 12px; flex: none; }
.cat-card-side img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); }
.cat-card-body { min-width: 0; }
.cat-card h3 { font-size: 16px; margin-bottom: 8px; }
.cat-kids li a { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 13.5px; color: var(--store-primary); }
.cat-kids .icon { width: 9px; height: 9px; fill: currentColor; stroke: none; }
.cat-kids a:hover { color: var(--store-primary-dark); text-decoration: underline; }

/* أعمدة القوائم */
.list-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.list-col { min-width: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.list-title { font-size: 20px; color: var(--store-primary); }
.list-head .arrow-btn { width: 26px; height: 26px; border: 0; }
.list-track { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: 100%; row-gap: 20px; column-gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.list-track::-webkit-scrollbar { display: none; }
.list-track > .mcard { scroll-snap-align: start; }

/* المؤلّفون */
.author-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.author-card { display: grid; justify-items: center; gap: 8px; padding: 20px 12px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; transition: border-color .2s; }
.author-card:hover { border-color: var(--store-primary); }
.section-sand .author-card { background: #fff; border-color: #fff; }
.section-sand .author-card img { box-shadow: 0 0 0 4px var(--beige); }

/* آراء القرّاء في الرئيسيّة */
.home-reviews { background: var(--soft); }
.home-reviews .sec-head { border-color: var(--line-strong); }
.store-score { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.store-score b { font-family: var(--font-head); font-size: 28px; line-height: 1; color: var(--store-primary-dark); }
.store-score .stars .icon { width: 16px; height: 16px; }
.rcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rcard { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); min-width: 0; }
.rcard-top { display: flex; align-items: center; justify-content: space-between; }
.rcard-top .stars .icon { width: 15px; height: 15px; }
.rcard-q { width: 28px; height: 28px; color: var(--store-accent); stroke-width: 2.2; }
.rcard-text { color: #33456E; font-size: 14.5px; }
.rcard-by { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.rcard-by > span:last-child { display: grid; line-height: 1.45; min-width: 0; }
.rcard-by b { font-family: var(--font-head); font-weight: 600; color: var(--store-primary-dark); }
.rcard-by small { color: var(--muted); font-size: 12.5px; }
.rcard-by a { color: var(--store-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-show-reviews="false"] .home-reviews { display: none; }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--sand); }
.author-name { font-family: var(--font-head); font-weight: 600; color: var(--store-primary-dark); font-size: 15px; line-height: 1.35; }

/* المدوّنة */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.post-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.post-media { border-radius: var(--r); overflow: hidden; }
.post-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.post-tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 4px; background: var(--soft); color: var(--store-primary); }
.post-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--store-primary); }
.post-title { font-size: 19px; line-height: 1.4; font-weight: 500; }
.post-excerpt { color: var(--muted); font-size: 14px; }

/* شريط الثقة */
.trust-bar { padding-top: 22px; }
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--r); }
.trust-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.trust-list li + li { border-inline-start: 1px solid var(--line); }
.trust-list .icon { width: 30px; height: 30px; color: var(--store-primary); stroke-width: 1.4; }
.trust-list b { display: block; font-family: var(--font-head); color: var(--store-primary-dark); font-weight: 600; font-size: 15px; }
.trust-list small { font-size: 12.5px; color: var(--muted); }
[data-show-trust-bar="false"] .trust-bar { display: none; }

/* النشرة */
.newsletter { background: var(--sand); padding-top: 52px; overflow: hidden; }
.nl-inner { display: grid; justify-items: center; text-align: center; gap: 10px; padding-bottom: 40px; }
.newsletter h2 { font-size: 30px; }
.newsletter .mark { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--store-accent) 55%, transparent) 62%); }
.newsletter p { color: #3F4D70; }
.nl-field { display: flex; width: min(520px, 100%); margin-top: 10px; background: #fff; border-radius: var(--r); overflow: hidden; }
.nl-field input { flex: 1; min-width: 0; border: 0; padding: 0 16px; height: 52px; background: #fff; }
.nl-field input:focus { outline: none; }
.nl-field .btn { border-radius: 0; height: 52px; padding: 0 30px; }
.nl-offer { font-size: 13px; font-weight: 600; color: var(--store-primary-dark) !important; }
.nl-shelf { display: flex; justify-content: center; align-items: flex-end; gap: 14px; height: 118px; overflow: hidden; }
.nl-shelf img { width: 112px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 4px 0 0; flex: none; transform: translateY(26px); box-shadow: 0 -6px 20px -10px rgba(14, 34, 77, .4); }
.nl-shelf img:nth-child(even) { transform: translateY(46px); }
[data-show-newsletter="false"] .newsletter { display: none; }

/* التذييل */
.site-footer { background: var(--soft); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 56px 44px; }
.foot-col h2 { font-size: 20px; margin-bottom: 18px; color: var(--store-primary-dark); }
.foot-contact p { margin-bottom: 10px; font-size: 14px; }
.foot-contact b { color: var(--store-primary-dark); font-weight: 600; }
.foot-links li { margin-bottom: 9px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.foot-links a::before { content: ""; border: 4px solid transparent; border-inline-start: 0; border-inline-end: 5px solid var(--store-primary); }
.foot-links a:hover { color: var(--store-primary-dark); }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--store-primary); }
.social a:hover { background: var(--store-primary-dark); color: #fff; }
.social .icon { width: 18px; height: 18px; }
.app-links { display: grid; gap: 10px; justify-items: start; font-size: 14px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; min-width: 160px; border-radius: var(--r); background: var(--store-primary-dark); color: #fff; font-weight: 600; line-height: 1.2; direction: ltr; }
.app-badge span { display: grid; text-align: left; }
.app-badge small { font-weight: 400; font-size: 10.5px; direction: rtl; text-align: left; }
.app-badge:hover { color: #fff; background: var(--store-primary); }
.foot-bottom { border-top: 1px solid var(--line-strong); background: #fff; }
.foot-bottom-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 22px; font-size: 13px; }
.foot-about { color: var(--muted); max-width: 60ch; }
.foot-copy { color: var(--muted); }

/* ---------- مسار التصفّح ورأس الصفحات ---------- */
.crumbs { border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 12px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--muted); }
.crumbs a { color: var(--store-primary); }
.crumbs [aria-current] { color: var(--store-primary-dark); }
.cat-hero { background: var(--beige); background-image: radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .55) 0 160px, transparent 161px), radial-gradient(circle at 90% -40%, rgba(255, 255, 255, .4) 0 200px, transparent 201px); }
.cat-hero .container { padding-block: 40px; display: grid; gap: 6px; }
.cat-hero-title { font-size: 38px; font-weight: 700; }
.cat-hero-text { color: #3F4D70; max-width: 60ch; }

/* ---------- التصنيف ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.strip-card { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--r); min-width: 0; }
.strip-card:hover { border-color: var(--store-primary); }
.strip-card img { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; flex: none; }
.strip-card span { display: grid; min-width: 0; }
.strip-card b { font-family: var(--font-head); color: var(--store-primary-dark); font-weight: 600; font-size: 14px; }
.strip-card small { color: var(--muted); font-size: 12px; }
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; padding-block: 20px 56px; }
.filters-head { display: none; }
.filter-box { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 6px 18px 16px; margin-bottom: 18px; }
.filter-box h3 { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.filter-list label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: var(--store-primary-dark); cursor: pointer; }
.filter-list input { accent-color: var(--store-primary); width: 16px; height: 16px; }
.filter-list .pill { margin-inline-start: auto; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-range label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.price-range input { width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 10px; }
.filters .btn-block { display: none; }
.filters-backdrop { display: none; }
.toolbar { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.toolbar-count { font-size: 14px; color: var(--muted); }
.toolbar-count span { color: var(--store-primary-dark); font-weight: 700; }
.filter-toggle { display: none; }
.sort { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: 13.5px; color: var(--muted); }
.sort select { height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 10px; background: #fff; color: var(--store-primary-dark); }
.book-grid-listing { --cols: 4; }
[data-books-per-row="5"] .book-grid-listing, [data-books-per-row="6"] .book-grid-listing { --cols: 5; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.page-btn { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); font-weight: 600; color: var(--store-primary-dark); }
.page-btn .icon { width: 16px; height: 16px; }
.page-btn[aria-current="page"] { background: var(--store-primary-dark); border-color: var(--store-primary-dark); color: #fff; }
.page-btn:hover:not([aria-current]) { border-color: var(--store-primary-dark); }
.page-gap { color: var(--muted); }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.view-toggle button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: #fff; color: var(--store-primary); }
.view-toggle button + button { border-inline-start: 1px solid var(--line-strong); }
.view-toggle button[aria-pressed="true"] { background: var(--store-primary-dark); color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -10px 0 22px; }
.active-filters:not(:has(.fchip)) { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 500; color: var(--store-primary-dark); }
.fchip .icon { width: 14px; height: 14px; }
.fchip:hover { border-color: var(--store-primary-dark); }
.fchip-clear { border: 0; background: none; font-size: 13px; font-weight: 600; color: #A13A16; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
@media (min-width: 1241px) {
	[data-books-per-row="5"] .book-grid-listing > :nth-child(n+11), [data-books-per-row="6"] .book-grid-listing > :nth-child(n+11) { display: none; }
}
/* عرض القائمة: بطاقاتٌ أفقيّة في عمودين */
.book-grid-listing.is-rows { --cols: 2 !important; gap: 18px; }
.is-rows .bcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 18px; row-gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); align-content: start; }
.is-rows .bcard-media { grid-row: 1 / span 3; align-self: start; }
.is-rows .bcard-meta { margin-top: 4px; flex-direction: column; align-items: flex-start; gap: 2px; }
.is-rows .bcard .price { align-self: end; }
.is-rows .bcard-actions { inset-inline: 6px; bottom: 6px; gap: 4px; }
.is-rows .bcard-actions .round-btn { width: 30px; height: 30px; }
.is-rows .bcard-actions .icon { width: 16px; height: 16px; }

/* ---------- صفحة الكتاب ---------- */
.pdp { padding-block: 34px 20px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; align-items: start; }
.pdp-media { display: grid; gap: 14px; }
.pdp-stage {
	position: relative; display: grid; place-items: center; padding: 44px 30px; border-radius: var(--r-lg);
	background: var(--beige) url("assets/hero-1.jpg") left bottom / cover;
}
.pdp-stage::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--beige) 55%, transparent); }
.pdp-cover { position: relative; width: min(290px, 100%); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 26px 40px -22px rgba(14, 34, 77, .7); }
.pdp-stage > .type-dot { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; }
.pdp-stage > .type-dot .icon { width: 20px; height: 20px; }
.pdp-stage > .badge { position: absolute; top: 20px; inset-inline-start: 16px; }
.pdp-thumbs { display: flex; gap: 10px; justify-content: center; }
.pdp-thumbs button { width: 66px; padding: 3px; border: 2px solid transparent; border-radius: var(--r); background: #fff; }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--store-primary); }
.pdp-thumbs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.pdp-info { display: grid; gap: 14px; align-content: start; }
.pdp-kicker { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pdp-kicker a { color: var(--store-primary); font-weight: 600; }
.pdp-kicker .icon { width: 18px; height: 18px; color: var(--store-primary); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.pdp-title { font-size: 38px; line-height: 1.2; font-weight: 700; }
.pdp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pdp-by a { color: var(--store-primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--store-accent); }
.pdp-line .stars .icon { width: 15px; height: 15px; }
.pdp-line .rate a { color: var(--muted); }
.qty-disc { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: var(--r); background: var(--sand); color: var(--store-primary-dark); font-size: 13.5px; font-weight: 600; }
.qty-disc .icon { width: 16px; height: 16px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--new-ink); font-weight: 600; }
.stock .icon { width: 18px; height: 18px; }
.pdp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-chips li { display: grid; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); }
.pdp-chips small { color: var(--muted); font-size: 12px; }
.pdp-chips b { color: var(--store-primary-dark); font-family: var(--font-head); font-weight: 600; }
.pdp-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px; border: 2px solid var(--store-primary); border-radius: var(--r); }
.pdp-buy .btn { flex: 1 1 150px; }
/* اختيار الصيغة: يُخفى إن لم يكن للعنوان غير صيغةٍ واحدة */
.formats-box { display: grid; gap: 8px; }
.formats-box:not(:has([data-repeat="format"] ~ .format-opt)) { display: none; }
.formats-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--store-primary-dark); }
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.format-opt { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.format-opt .type-dot { grid-row: span 2; }
.format-name { font-family: var(--font-head); font-weight: 600; color: var(--store-primary-dark); font-size: 14px; line-height: 1.3; }
.format-price { font-size: 13px; color: var(--muted); line-height: 1.3; }
.format-opt:hover { border-color: var(--store-primary); }
.format-opt.is-current { border: 2px solid var(--store-primary); padding: 9px 11px; background: var(--sand); }
.format-opt.is-current .format-price { color: var(--store-primary-dark); font-weight: 600; }
/* التوصيل والدفع */
.pdp-service { display: grid; border: 1px solid var(--line-strong); border-radius: var(--r); }
.pdp-service li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; font-size: 13.5px; color: #33456E; }
.pdp-service li + li { border-top: 1px solid var(--line); }
.pdp-service .icon { width: 20px; height: 20px; color: var(--store-primary); margin-top: 2px; }
.pdp-service b { font-family: var(--font-head); font-weight: 600; color: var(--store-primary-dark); margin-inline-end: 6px; }
.qty { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; flex: none; }
.qty button { width: 38px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--store-primary-dark); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-weight: 700; color: var(--store-primary-dark); -moz-appearance: textfield; appearance: textfield; background: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.pdp-details .sec-title, .reviews-sec .sec-title { font-size: 24px; margin-bottom: 14px; }
.prose p { margin-bottom: 12px; color: #33456E; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--store-primary-dark); font-weight: 600; }
.spec-table tr:nth-child(odd) { background: #F7F9FC; }
.reviews-sec .sec-head .sec-title { margin-bottom: 0; }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.review-list { display: grid; gap: 14px; }
.review { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-top > div { display: grid; line-height: 1.35; }
.review-top b { color: var(--store-primary-dark); font-family: var(--font-head); font-weight: 600; }
.review-top small { color: var(--muted); font-size: 12px; }
.review-top .stars { margin-inline-start: auto; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--store-primary-dark); font-weight: 700; }
.review p { font-size: 14px; color: #33456E; }
.review-form { display: grid; gap: 12px; padding: 22px; border-radius: var(--r); background: var(--sand); }
.review-form h3 { font-size: 18px; }
.review-hint { font-size: 13px; color: #4E5C7E; }
.review-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 12px; background: #fff; resize: vertical; }
.review-form .btn { justify-self: start; }
.star-pick { display: flex; gap: 2px; }
.star-pick button { border: 0; background: none; padding: 2px; color: #C9C3B4; }
.star-pick button .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.star-pick button[aria-pressed="true"] { color: var(--gold); }
[data-show-reviews="false"] .reviews-sec { display: none; }

/* ---------- المؤلّف ---------- */
.author-hero { background: var(--sand); }
.author-hero-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 44px; }
.author-photo { width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 6px solid #fff; box-shadow: var(--shadow); }
.author-info { display: grid; gap: 12px; }
.author-title { font-size: 40px; font-weight: 700; }
.author-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: #4E5C7E; font-size: 14px; }
.author-meta .pill { background: #fff; color: var(--store-primary-dark); padding: 4px 12px; font-size: 13px; }
.author-bio { color: #33456E; max-width: 70ch; font-size: 15.5px; }

/* ---------- السلّة ---------- */
.summary, .nf-copy, .pdp-info, .author-info, .review-form { grid-template-columns: minmax(0, 1fr); }
.cart-grid > *, .nf-grid > *, .pdp-grid > *, .listing > * { min-width: 0; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); }
.ci-cover { position: relative; }
.ci-cover img { width: 76px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.ci-cover .type-dot { position: absolute; top: -6px; inset-inline-end: -6px; }
.ci-body { display: grid; gap: 2px; min-width: 0; }
.ci-title { font-size: 16px; }
.ci-author { font-size: 13px; color: var(--muted); }
.ci-total { font-family: var(--font-head); font-weight: 700; color: var(--store-primary-dark); min-width: 92px; text-align: end; }
.ci-remove { color: var(--muted); }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 50px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r); }
.cart-empty > .icon { width: 48px; height: 48px; color: var(--store-primary); }
.summary { display: grid; gap: 16px; padding: 22px; border: 2px solid var(--store-primary); border-radius: var(--r); position: sticky; top: 96px; }
.summary h2 { font-size: 20px; }
.freeship { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--sand); font-size: 13.5px; color: var(--store-primary-dark); }
.freeship p { display: flex; align-items: center; gap: 8px; }
.freeship .icon { width: 18px; height: 18px; }
.freeship .ship-track { width: 100%; background: #fff; }
.sum-rows { display: grid; gap: 10px; margin: 0; font-size: 14px; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 10px; }
.sum-rows dt { color: var(--muted); }
.sum-rows dd { margin: 0; font-weight: 600; color: var(--store-primary-dark); }
.sum-rows .minus { color: #A13A16; }
.sum-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 17px; }
.sum-total dt { color: var(--store-primary-dark); font-weight: 600; }
.sum-total dd { font-family: var(--font-head); font-size: 22px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 12px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--store-primary-dark); }
.coupon-on span { display: inline-flex; align-items: center; gap: 6px; }
.coupon-on .icon { width: 16px; height: 16px; color: var(--store-primary); }
.coupon-on button { border: 0; background: none; color: #A13A16; text-decoration: underline; font-size: 13px; }
.sum-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); justify-content: center; }
.sum-note .icon { width: 16px; height: 16px; }

/* ---------- 404 ---------- */
.nf { background: var(--beige); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; padding-block: 60px; }
.nf-copy { display: grid; gap: 14px; justify-items: start; }
.nf-code { font-family: var(--font-head); font-size: 110px; font-weight: 700; line-height: 1; color: var(--store-primary-dark); letter-spacing: .02em; }
.nf h1 { font-size: 32px; }
.nf-copy > p { color: #3F4D70; max-width: 52ch; }
.nf-search { display: flex; gap: 8px; width: min(480px, 100%); }
.nf-search input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 0 14px; background: #fff; }
.nf-art { width: 100%; color: #B89A76; }

/* ---------- المقال ---------- */
.article { padding-block: 40px 10px; }
.article-head, .article-body { max-width: 780px; }
.article-head { display: grid; gap: 12px; }
.article-title { font-size: 38px; font-weight: 700; }
.article-media { max-width: 1000px; margin-block: 28px; }
.article-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-lg); }
.article-body { font-size: 17px; line-height: 1.9; }
.article-body h2 { font-size: 24px; margin: 28px 0 10px; }
.article-body blockquote { margin: 22px 0; padding: 16px 20px; border-inline-start: 4px solid var(--store-accent); background: var(--sand); color: var(--store-primary-dark); font-family: var(--font-head); border-radius: var(--r); }

/* ---------- المكوّنات ---------- */
.cmp-block { padding-block: 28px; border-bottom: 1px solid var(--line); }
.cmp-sand { background: var(--sand); }
.cmp-title { font-size: 18px; margin-bottom: 18px; }
.cmp-title code { font-size: 12.5px; font-weight: 400; background: var(--soft); color: var(--store-primary-dark); padding: 2px 8px; border-radius: 4px; direction: ltr; display: inline-block; }
.cmp-sand .cmp-title code { background: #fff; }
.cmp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cmp-trust { padding-block: 28px; }
.cmp-pdp { display: grid; gap: 16px; max-width: 560px; }
.cmp-reviews { grid-template-columns: minmax(0, 420px); margin-top: 16px; }
.cmp-chips .active-filters { margin: 14px 0 0; }

/* ==========================================================================
   العروض
   ========================================================================== */
@media (max-width: 1240px) {
	.main-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.search-box { max-width: none; }
	.foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.foot-contact { grid-column: span 2; }
	.author-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.book-grid { --cols: 4 !important; }
	.book-grid-row > :nth-child(n+5) { display: none; }
	.list-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sb-links a:nth-child(n+2) { display: none; }
}
@media (max-width: 1100px) {
	/* صفوفٌ تُمرَّر بدل أعمدةٍ ينقص صفّها الأخير */
	.hcard-grid { grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: min(400px, 86%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
	.hcard-grid::-webkit-scrollbar, .promo-grid::-webkit-scrollbar, .trust-list::-webkit-scrollbar { display: none; }
	.hcard-grid > * { scroll-snap-align: start; }
	.promo-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(380px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.promo-grid > * { scroll-snap-align: start; }
	.trust-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
	.trust-list li { padding: 10px 16px; }
	.duo-grid { grid-template-columns: 1fr; gap: 18px; }
	.duo { min-height: 260px; }
}
@media (max-width: 1024px) {
	:root { --gutter: 20px; }
	.hero-row:has(> .side-cats):has(> .hero) { grid-template-columns: minmax(0, 1fr); }
	.side-cats { padding: 0; border: 0; }
	.side-cats-title, .side-more { display: none; }
	.side-cats ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; columns: auto !important; padding-bottom: 2px; }
	.side-cats ul::-webkit-scrollbar { display: none; }
	.side-cats ul a { white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
	.side-cats ul a .icon { display: none; }
	.deal-track { grid-auto-columns: 100%; }
	.deal-track-static { grid-template-columns: 1fr; }
	.rcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid, .post-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
	.post-grid-3 .post-title { font-size: 16px; }
	.listing { grid-template-columns: 1fr; }
	.filter-toggle { display: inline-flex; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(340px, 88vw); z-index: 61; background: #fff;
		padding: 16px; overflow-y: auto; display: none;
	}
	.filters-open .filters { display: block; animation: slide-in-end .25s ease-out; }
	.filters-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(14, 34, 77, .45); opacity: 0; visibility: hidden; transition: .2s; }
	.filters-open .filters-backdrop { opacity: 1; visibility: visible; }
	.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
	.filters-head h2 { font-size: 18px; }
	.filters .btn-block { display: flex; }
	.book-grid-listing { --cols: 3 !important; }
	.pdp-grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 30px; }
	.pdp-details, .reviews-grid { grid-template-columns: 1fr; }
	.cart-grid { grid-template-columns: minmax(0, 1fr); }
	.summary { position: static; }
	.mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-bottom-row { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.sb-contact .sb-wa { display: none; }
}
@media (max-width: 860px) {
	.book-grid { --cols: 3 !important; }
	.book-grid-row > :nth-child(n+4) { display: none; }
	.nf-grid { grid-template-columns: minmax(0, 1fr); }
	.nf-art { max-width: 320px; }
	.author-hero-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
	.author-photo { width: 180px; }
}
@media (max-width: 767px) {
	:root { --gutter: 16px; }
	body { font-size: 14.5px; }
	.servicebar-row { justify-content: center; min-height: 36px; }
	.sb-links, .sb-contact { display: none; }
	.shipbar { font-size: 12.5px; }
	.ship-track { width: 54px; }
	.header-row { gap: 6px; min-height: 62px; }
	.search-box.hide-sm, .hide-sm { display: none; }
	.brand-name { font-size: 17px; }
	.brand img { width: 34px; height: 34px; }
	.menu-toggle { margin-inline-start: -8px; }
	.header-actions { margin-inline-end: -6px; gap: 0; }
	.mobile-search { display: block; padding-block: 10px; border-bottom: 1px solid var(--line); }
	.mobile-search .container { display: flex; }
	.mobile-search input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line-strong); border-inline-end: 0; border-radius: 0 var(--r) var(--r) 0; padding: 0 12px; }
	.mobile-search button { width: 46px; border: 0; border-radius: var(--r) 0 0 var(--r); background: var(--store-accent); color: var(--ink-on-accent); display: grid; place-items: center; }
	.section { padding-block: 32px; }
	.section-tight { padding-block: 16px; }
	.sec-title { font-size: 23px; }
	.sec-head { margin-bottom: 18px; }
	.sec-head .countdown { margin-inline-start: 0; order: 3; width: 100%; }
	.hero { min-height: 0; }
	.slides { min-height: 450px; }
	.slide { align-items: flex-start; }
	.slide-bg { top: auto; bottom: 0; height: 220px; object-position: 12% bottom; }
	.slide-copy { padding: 26px 20px; gap: 10px; }
	.slide-title { font-size: 28px; }
	.slide-text { font-size: 14px; }
	.slider-dots { inset-inline-start: auto; inset-inline-end: 20px; bottom: 18px; }
	.promo { min-height: 170px; }
	.banner-copy { padding: 18px 20px; max-width: 64%; }
	.banner-title { font-size: 19px; }
	.duo { min-height: 240px; }
	.duo .banner-copy { max-width: 72%; padding: 16px 18px; margin: 14px; margin-inline-end: auto; background: rgba(255, 255, 255, .82); border-radius: var(--r); align-self: center; }
	.duo .banner-title { font-size: 21px; }
	.duo .banner-text { font-size: 13.5px; }
	.book-grid, .book-grid-listing { --cols: 2 !important; gap: 26px 14px; }
	.book-grid-row > :nth-child(4) { display: flex; }
	.list-cols .list-track { overflow-x: hidden; }
	.book-grid-row > :nth-child(n+5), .book-grid-fill > :nth-child(n+9) { display: none; }
	.book-grid-scroll { grid-auto-columns: 44%; }
	.sec-head-tabs .tabs { order: 3; width: 100%; margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.sec-head-tabs .tabs::-webkit-scrollbar { display: none; }
	.bcard-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
	.bcard .price { gap: 2px 6px; }
	.bcard .price .now { font-size: 16px; }
	.bcard .price del { font-size: 12px; }
	.bcard-actions .round-btn { width: 34px; height: 34px; }
	.wide-title { font-size: 19px; }
	.wide-text { font-size: 12.5px; }
	.picks { padding-block: 36px; }
	.carousel { gap: 0; }
	.carousel > .arrow-round { position: absolute; z-index: 3; top: 40%; width: 38px; height: 38px; }
	.carousel > .arrow-round[data-scroll="prev"] { inset-inline-start: -10px; }
	.carousel > .arrow-round[data-scroll="next"] { inset-inline-end: -10px; }
	.deal-card { flex-direction: column; gap: 14px; padding: 22px 16px 18px; }
	.deal-cover { width: 140px; align-self: center; margin-top: 4px; }
	.deal-title { font-size: 18px; }
	.price-xl .now { font-size: 24px; }
	.countdown { gap: 8px; flex-wrap: wrap; }
	.cd-box b { min-width: 36px; height: 34px; font-size: 15px; }
	.cd-boxes i { line-height: 34px; }
	.hcard-body { padding-inline-end: 0; }
	.hcard-flags { top: 8px; inset-inline-end: auto; inset-inline-start: 8px; }
	.hcard-cart { bottom: 12px; inset-inline-end: 12px; }
	.cat-grid, .list-cols, .author-row, .rcard-grid { grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.cat-grid { grid-auto-columns: 84%; }
	.list-cols { grid-auto-columns: 86%; }
	.author-row { grid-auto-columns: 40%; gap: 12px; }
	.rcard-grid { grid-auto-columns: 84%; gap: 14px; }
	.cat-grid > *, .list-cols > *, .author-row > *, .rcard-grid > * { scroll-snap-align: start; }
	.cat-grid::-webkit-scrollbar, .list-cols::-webkit-scrollbar, .author-row::-webkit-scrollbar, .rcard-grid::-webkit-scrollbar { display: none; }
	.store-score b { font-size: 22px; }
	.post-grid, .post-grid-4, .post-grid-3 { grid-template-columns: 1fr; }
	.post-grid-4 { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
	.post-grid-4 > * { scroll-snap-align: start; }
	.trust-bar { padding-top: 14px; }
	.trust-list .icon { width: 26px; height: 26px; }
	.trust-list b { font-size: 14px; }
	.newsletter h2 { font-size: 22px; }
	.nl-shelf { height: 84px; gap: 10px; }
	.nl-shelf img { width: 76px; }
	.nl-field .btn { padding: 0 18px; }
	.foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 40px 30px; }
	.foot-contact, .foot-app { grid-column: span 2; }
	.cat-hero-title { font-size: 28px; }
	.cat-hero .container { padding-block: 26px; }
	.toolbar { flex-wrap: wrap; }
	.sort span { display: none; }
	.toolbar { gap: 10px; }
	.toolbar-count { flex-basis: 100%; }
	.book-grid-listing.is-rows { --cols: 1 !important; }
	.is-rows .bcard { grid-template-columns: 112px minmax(0, 1fr); }
	.pdp { padding-top: 20px; }
	.pdp-grid { grid-template-columns: 1fr; gap: 22px; }
	.pdp-stage { padding: 30px 20px; }
	.pdp-cover { width: min(220px, 70%); }
	.pdp-title { font-size: 28px; }
	.price-xxl .now { font-size: 27px; }
	.pdp-buy { padding: 14px; }
	.pdp-buy .btn { flex-basis: 100%; }
	.pdp-buy .qty { flex: 1; justify-content: space-between; }
	.pdp-buy .round-btn-line { order: 1; }
	.pdp-buy .btn { order: 2; }
	.formats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.format-opt { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 2px; padding: 8px 6px; }
	.format-opt.is-current { padding: 7px 5px; }
	.format-opt .type-dot { grid-row: auto; }
	.cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "c b x" "c q t"; gap: 10px 14px; align-items: start; }
	.ci-cover { grid-area: c; }
	.ci-cover img { width: 64px; }
	.ci-body { grid-area: b; }
	.cart-item .qty { grid-area: q; height: 40px; justify-self: start; }
	.ci-total { grid-area: t; align-self: center; min-width: 0; }
	.ci-remove { grid-area: x; width: 34px; height: 34px; }
	.summary { padding: 18px; }
	.nf-grid { padding-block: 36px; }
	.nf-code { font-size: 76px; }
	.nf h1 { font-size: 24px; }
	.author-hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-block: 30px; }
	.author-info { justify-items: center; }
	.author-meta { justify-content: center; }
	.author-title { font-size: 30px; }
	.author-photo { width: 160px; }
	.article-title { font-size: 27px; }
	.article-body { font-size: 16px; }
	.mini-grid { grid-template-columns: 1fr; }
	.deal-track-static { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* تبويبات صفّ الكتب (القاعدة 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; }
