/* =====================================================================
   غيمة — قالب متجر كتب لمنصّة «ناشر»
   ألوان الهويّة متغيّرات يختارها الناشر؛ ما عداها ألوانٌ محايدة.
   ===================================================================== */

:root {
	--store-primary: #BFA893;
	--store-primary-dark: #8A6F57;
	--store-accent: #232323;
	--store-bg: #FFFFFF;
	--store-text: #232323;

	/* مشتقّات من ألوان الهويّة */
	--tint: color-mix(in srgb, var(--store-primary) 16%, #fff);
	--tint-2: color-mix(in srgb, var(--store-primary) 8%, #fff);
	--brand-ink: color-mix(in srgb, var(--store-primary-dark) 78%, #000);

	/* محايدة */
	--muted: #636363;
	--line: #E9E7E4;
	--soft: #F5F4F2;
	--sale: #C62828;
	--ok: #24692A;
	--star: #F2B01E;
	--ghost: rgba(35, 35, 35, .055);
	--on-dark: #FFFFFF;
	--on-dark-muted: #BDBDBD;

	--r: 16px;
	--r-sm: 8px;
	--r-pill: 999px;
	--per-row: 4;
	--gap: 22px;
	--container: 1296px;
	--shadow: 0 18px 40px -22px rgba(35, 35, 35, .35);
	--book-shadow: 0 16px 26px -14px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .08);
	--font: "Tajawal", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- أساس */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; 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, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
del { color: var(--muted); font-weight: 400; }
:focus-visible { outline: 2px solid var(--store-primary-dark); outline-offset: 2px; }
.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(--store-accent); color: var(--on-dark); padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 10px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.star { fill: var(--star); stroke: var(--star); stroke-width: 1; }
.icon.star.off { fill: #DADADA; stroke: #DADADA; }
.icon-arrow { width: 18px; height: 18px; }
.icon-arrow.flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- أزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 24px;
	border-radius: var(--r-sm);
	font-weight: 700; font-size: 15.5px; white-space: nowrap;
	border: 1px solid transparent;
	transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--store-primary); color: var(--store-accent); }
.btn-primary:hover { background: var(--store-primary-dark); color: var(--on-dark); }
.btn-dark { background: var(--store-accent); color: var(--on-dark); }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--store-text); color: var(--store-text); background: #fff; }
.btn-outline:hover { background: var(--store-accent); color: var(--on-dark); border-color: var(--store-accent); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--store-text); }
.btn-ghost[aria-pressed="true"] .icon { fill: var(--sale); stroke: var(--sale); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-pill); }
.icon-btn:hover { background: rgba(35, 35, 35, .06); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.link-btn:hover { color: var(--store-text); }
.link-btn .icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- الرأس */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--tint);
	border-bottom: 1px solid rgba(35, 35, 35, .09);
}
.hd {
	display: grid; grid-template-columns: 270px 1fr 270px; align-items: stretch;
	min-height: 76px;
}
.hd-brand {
	display: flex; align-items: center; gap: 6px;
	padding-inline: 32px 20px;
	border-inline-end: 1px solid rgba(35, 35, 35, .1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.menu-toggle { display: none; }
.hd-nav { display: flex; justify-content: center; align-items: center; }
.hd-nav > ul { display: flex; gap: 28px; align-items: center; }
.hd-nav a, .hd-nav button { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; padding: 8px 0; }
.hd-nav a:hover, .hd-nav button:hover, .hd-nav a[aria-current="page"] { color: var(--brand-ink); }
.hd-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--store-primary-dark); }
.hd-nav .icon { width: 16px; height: 16px; }
.has-drop { position: relative; }
.drop {
	position: absolute; top: calc(100% + 14px); inset-inline-start: -18px; min-width: 210px;
	background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 10px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.drop a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 15px; }
.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; }
.hd-actions {
	display: flex; align-items: center; justify-content: flex-end; gap: 4px;
	padding-inline: 20px 32px;
	border-inline-start: 1px solid rgba(35, 35, 35, .1);
}
.hd-actions .icon { width: 23px; height: 23px; }
.count {
	position: absolute; top: 2px; inset-inline-end: 0;
	min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
	background: var(--store-primary); color: var(--store-accent);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.hd-search {
	max-height: 0; overflow: hidden; visibility: hidden;
	transition: max-height .25s, visibility .25s;
	border-top: 1px solid transparent;
}
.hd-search.open { max-height: 120px; visibility: visible; border-top-color: rgba(35, 35, 35, .08); }
.hd-search .container { display: flex; gap: 10px; padding-block: 16px; }
.hd-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }

/* الدرج الجانبيّ */
.drawer-backdrop, .filter-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transition: .25s; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 90;
	width: min(330px, 86vw); background: #fff; padding: 18px; overflow-y: auto;
	transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-head .brand-name { font-size: 20px; }
.drawer-nav { padding-block: 10px; }
.drawer-nav a { display: block; padding: 11px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer-label { padding: 14px 4px 4px; color: var(--muted); font-size: 14px; }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.drawer-cats a { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 14px; font-size: 14.5px; }
.drawer-phone { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 700; }

/* ---------------------------------------------------------------- عناوين الأقسام */
.section { padding-block: 60px; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-title { font-size: 34px; font-weight: 700; line-height: 1.35; }
.eyebrow { display: block; color: var(--brand-ink); font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }

/* ---------------------------------------------------------------- السلايدر */
.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 55%, #fff 100%);
}
.slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-grid {
	display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px;
	min-height: 620px; padding-block: 64px 96px;
	padding-inline-start: 40px;
}
.slide-copy h1, .slide-copy h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.3; font-weight: 800; letter-spacing: -.5px; }
.slide-copy em { position: relative; font-style: normal; display: inline-block; padding-inline: 6px; }
.slide-copy em::after {
	content: ""; position: absolute; inset: 6% -10% -2% -10%;
	border: 2px solid var(--store-primary); border-radius: 50%;
	transform: rotate(-4deg);
	pointer-events: none;
}
.slide-copy p { margin-block: 20px 32px; max-width: 470px; font-size: 17.5px; color: var(--muted); line-height: 1.9; }
.slide-art { position: relative; padding: 30px 20px 50px; }
.slide-frame {
	position: relative; z-index: 1;
	border-radius: 58% 42% 52% 48% / 50% 46% 54% 50%;
	overflow: hidden; aspect-ratio: 900 / 640;
	box-shadow: 0 30px 60px -36px rgba(80, 60, 40, .5);
}
.slide-frame img { width: 100%; height: 100%; object-fit: cover; }
.orbit { position: absolute; z-index: 2; inset-inline: -4%; bottom: 0; width: 108%; height: auto; overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--store-primary); stroke-width: 2; }
.orbit-head { fill: var(--store-primary); }
.stamp { position: absolute; z-index: 3; top: -4px; inset-inline-start: 14%; width: 118px; height: 118px; animation: spin 26s linear infinite; }
.stamp text { font-size: 10.5px; font-weight: 700; fill: var(--store-text); }
.art-badge {
	position: absolute; z-index: 3; top: 18px; inset-inline-end: 0;
	width: 78px; height: 78px; border-radius: 50%;
	display: grid; place-items: center;
	background: color-mix(in srgb, var(--store-primary) 28%, #fff); color: var(--brand-ink);
}
.art-badge .icon { width: 36px; height: 36px; stroke-width: 1.3; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-social {
	position: absolute; z-index: 4; inset-inline-start: 22px; top: 50%;
	transform: translateY(-50%) rotate(180deg);
	writing-mode: vertical-rl;
	display: flex; gap: 14px; align-items: center;
	font-size: 14.5px; color: var(--muted);
}
.hero-social a:hover { color: var(--store-text); }
.slide-counter {
	position: absolute; z-index: 4; bottom: 0; inset-inline-start: 0;
	display: flex; align-items: center; gap: 6px;
	background: var(--store-primary); color: var(--store-accent);
	padding: 14px 16px; font-size: 15px;
}
.slide-counter b { font-size: 30px; font-weight: 700; line-height: 1; }
.slide-counter button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.slide-counter button:hover { background: rgba(255, 255, 255, .35); }
.slide-counter .icon { width: 18px; height: 18px; }
.slide-counter.static { position: static; display: inline-flex; }

/* ---------------------------------------------------------------- شريط الثقة */
.trust-bar { padding-top: 52px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.trust-item {
	display: flex; align-items: center; gap: 14px;
	padding: 16px 18px; border-radius: var(--r-sm);
	background: linear-gradient(270deg, var(--tint) 0%, #fff 100%);
	border: 1px solid var(--tint);
}
.trust-icon { width: 40px; height: 40px; color: var(--store-primary-dark); stroke-width: 1.2; }
.trust-item h3 { font-size: 16.5px; font-weight: 700; color: var(--brand-ink); line-height: 1.4; }
.trust-item p { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- صفوف التمرير */
.row-wrap { position: relative; }
[data-track] { scrollbar-width: none; }
[data-track]::-webkit-scrollbar { display: none; }
.scroll-btn {
	position: absolute; z-index: 5; top: 36%;
	width: 42px; height: 42px; border-radius: 50%;
	display: grid; place-items: center;
	background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.scroll-btn.prev { inset-inline-start: -21px; }
.scroll-btn.next { inset-inline-end: -21px; }
.scroll-btn .icon { width: 18px; height: 18px; }
.section-soft .price, .section-soft .chip-price { color: var(--brand-ink); }
[data-card-style="soft"] .section-soft .book-media { background: #fff; }
@media (max-width: 1360px) { .scroll-btn.prev { inset-inline-start: 6px; } .scroll-btn.next { inset-inline-end: 6px; } }
.scroll-btn[disabled] { opacity: .35; cursor: default; }
.row-progress { height: 2px; background: var(--line); margin-top: 28px; position: relative; overflow: hidden; }
.row-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 34%; background: var(--store-primary-dark); transition: inset-inline-start .2s, width .2s; }

/* التصنيفات */
.cat-row {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - 5 * var(--gap)) / 6);
	gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
}
.cat-tile { scroll-snap-align: start; text-align: center; }
.cat-img { display: block; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.cat-img img { width: 100%; aspect-ratio: 1 / .8; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-name { display: block; margin-top: 12px; font-size: 17px; font-weight: 500; }
.row-wrap:has(.cat-row) .scroll-btn { top: calc(50% - 40px); }

/* ---------------------------------------------------------------- بطاقة الكتاب */
.book-row {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
	gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
}
.book-row > * { scroll-snap-align: start; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px var(--gap); }
.book-grid.wide { grid-template-columns: repeat(var(--per-row), 1fr); }

.book-card { position: relative; min-width: 0; display: flex; flex-direction: column; }
.book-media {
	position: relative; border-radius: var(--r);
	background: var(--soft);
	padding: 30px 30px 34px;
	overflow: hidden;
}
.cover-wrap { position: relative; width: 74%; margin-inline: auto; }
.cover-wrap img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--book-shadow); transition: transform .35s; }
.book-card:hover .cover-wrap img { transform: translateY(-4px); }
.type-dot {
	display: inline-grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	color: #fff; border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.type-dot .icon { width: 15px; height: 15px; stroke-width: 1.9; }
.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; }
.cover-wrap .type-dot { position: absolute; bottom: 8px; inset-inline-end: 8px; }
.badge-new {
	position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px;
	background: var(--sale); color: #fff;
	font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 4px;
}
.wish {
	position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	opacity: 0; transition: opacity .2s;
}
.wish .icon { width: 18px; height: 18px; }
.wish[aria-pressed="true"] .icon { fill: var(--sale); stroke: var(--sale); }
.book-card:hover .wish, .wish:focus-visible, .wish[aria-pressed="true"] { opacity: 1; }
.stock-band {
	position: absolute; inset-inline: 0; top: 44%;
	background: rgba(35, 35, 35, .86); color: #fff;
	text-align: center; font-size: 13.5px; font-weight: 700; padding: 5px;
}
.is-out .cover-wrap img { filter: grayscale(.7); opacity: .8; }

.book-body { flex: 1; display: flex; flex-direction: column; padding-top: 14px; }
.book-body .price { margin-top: 4px; }
/* زرّ السلّة: شريط القالب الأصليّ بعرض لوح الغلاف وتحته، ظاهرٌ دائمًا بلا تحويم (الملحق، البند 7) */
.cart-bar {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 42px; margin-top: 18px; border-radius: var(--r-sm);
	background: var(--store-accent); color: var(--on-dark);
	font-weight: 700; font-size: 14.5px;
	transition: background .2s, color .2s;
}
.cart-bar .icon { width: 18px; height: 18px; flex: none; }
.cart-bar:hover { background: var(--store-primary); color: var(--store-accent); }
.cart-bar:disabled { background: var(--line); color: #595959; cursor: not-allowed; }
[data-card-style="plain"] .cart-bar { margin-top: 12px; }
.book-author { font-size: 14px; color: var(--muted); }
.title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 2px; }
.book-title { font-size: 17px; font-weight: 500; line-height: 1.5; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.book-title a:hover { color: var(--brand-ink); }
.rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 500; flex: none; }
.rate .icon { width: 16px; height: 16px; }
.price { margin-top: 4px; font-size: 15.5px; font-weight: 500; color: var(--store-primary-dark); }
.price del { font-size: 14px; margin-inline-start: 4px; }
.off { color: var(--sale); margin-inline-start: 4px; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .icon { width: 17px; height: 17px; }

/* خيارات شكل البطاقة */
[data-card-style="framed"] .book-card { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 16px; background: #fff; }
[data-card-style="framed"] .book-media { background: #fff; padding: 18px 24px 24px; }
[data-card-style="framed"] .book-body { padding-inline: 8px; }
[data-card-style="plain"] .book-media { background: transparent; padding: 0; }
[data-card-style="plain"] .cover-wrap { width: 100%; }

/* عدد الكتب في الصفّ */
[data-books-per-row="3"] { --per-row: 3; }
[data-books-per-row="4"] { --per-row: 4; }
[data-books-per-row="5"] { --per-row: 5; }
[data-books-per-row="6"] { --per-row: 6; }
[data-books-per-row="5"] .book-media, [data-books-per-row="6"] .book-media { padding: 22px 20px 26px; }

/* الزوايا */
[data-corners="sharp"] { --r: 0px; --r-sm: 0px; }
[data-corners="sharp"] .slide-frame { border-radius: 0; }

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

/* ---------------------------------------------------------------- الكتب المختارة (كولاج) */
.spot-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.spot-collage {
	display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: 1fr 1fr;
	gap: var(--gap); height: 440px;
}
.spot-tile { position: relative; border-radius: var(--r); background: #ECEFF2; min-height: 0; grid-column: 1; }
.spot-tile:first-child { grid-column: 2; grid-row: 1 / 3; background: color-mix(in srgb, var(--store-primary) 22%, #fff); }
.spot-tile:nth-child(3) { background: #EDEDEA; }
.spot-cover { position: absolute; top: 12%; bottom: 12%; left: 50%; transform: translateX(-50%); aspect-ratio: 2 / 3; }
.spot-tile:first-child .spot-cover { top: 13%; bottom: 17%; }
.spot-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--book-shadow); transition: transform .35s; }
.spot-tile:hover .spot-cover img { transform: translateY(-4px) rotate(-1.5deg); }
.spot-cover .type-dot { position: absolute; bottom: 8px; inset-inline-end: 8px; }
.chip {
	display: flex; align-items: center; gap: 14px;
	background: #fff; border-radius: var(--r-pill);
	padding: 8px 8px 8px 26px;
	box-shadow: 0 14px 34px -14px rgba(35, 35, 35, .3);
}
.chip img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: var(--soft); }
.chip b { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.chip-sub { display: block; font-size: 13.5px; color: var(--muted); }
.chip-price { display: block; color: var(--store-primary-dark); font-weight: 700; font-size: 15px; }
.chip-price del { font-size: 13px; }
.chip.static { display: inline-flex; }
.spot-tile .chip { position: absolute; z-index: 3; bottom: 24px; inset-inline-start: calc(100% - 70px); white-space: nowrap; }
.spot-tile:not(:first-child) .chip { display: none; }
.spot-copy h2 { font-size: 36px; line-height: 1.4; font-weight: 700; }
.spot-copy p { margin-block: 18px 28px; color: var(--muted); font-size: 16.5px; line-height: 1.95; max-width: 520px; }
.spot-copy p:empty { display: none; }

/* ---------------------------------------------------------------- بانران */
.banner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.banner { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: #EEEDEB; isolation: isolate; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: -1; transition: transform .5s; }
.banner:hover > img { transform: scale(1.03); }
.banner-ghost {
	position: absolute; top: 14px; inset-inline: 26px;
	font-size: clamp(70px, 9vw, 128px); font-weight: 800; line-height: 1;
	color: var(--ghost); white-space: nowrap; overflow: hidden; pointer-events: none;
}
.banner-tab {
	position: absolute; top: 0; inset-inline-start: 26px;
	background: var(--store-accent); color: var(--on-dark);
	font-weight: 700; font-size: 16px;
	padding: 12px 16px 20px; border-radius: 0 0 999px 999px;
}
.banner-tab.static { position: static; display: inline-block; padding: 10px 16px 16px; }
.banner-copy {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: 54%;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: 60px 30px 30px;
}
.banner-title { font-size: 27px; font-weight: 700; line-height: 1.4; }
.banner-text { margin-block: 8px 22px; font-size: 15.5px; color: #4A4A4A; }

/* ---------------------------------------------------------------- كتاب الأسبوع */
.feature { overflow: hidden; }
.feature .section-head { margin-bottom: 0; position: relative; z-index: 2; }
.feature-stage { position: relative; padding-block: 40px 10px; }
.feature-ghost {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%);
	font-size: clamp(80px, 15vw, 230px); font-weight: 800; line-height: 1;
	color: var(--ghost); white-space: nowrap; pointer-events: none;
}
.feature-items { position: relative; min-height: 560px; }
.feature-item:first-child { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.feature-item:first-child .feature-cover { position: relative; width: 290px; transform: rotate(-5deg); transition: transform .4s; }
.feature-item:first-child:hover .feature-cover { transform: rotate(-2deg) translateY(-6px); }
.feature-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .55), 0 4px 10px rgba(0, 0, 0, .1); }
.feature-cover .type-dot { position: absolute; bottom: 10px; inset-inline-end: 10px; }
.feature-item:first-child .chip { position: absolute; top: 46px; inset-inline-end: calc(50% + 120px); z-index: 3; }
.feature-cta { margin-top: 34px; }
/* الكتابان التاليان يظهران دائرتين حول الغلاف */
.feature-item:not(:first-child) { position: absolute; z-index: 3; }
.feature-item:not(:first-child) .chip, .feature-item:not(:first-child) .feature-cta, .feature-item:not(:first-child) .type-dot { display: none; }
.feature-item:not(:first-child) .feature-cover {
	display: block; width: 116px; height: 116px; border-radius: 50%; overflow: hidden;
	border: 6px solid #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .3); background: var(--soft);
}
.feature-item:not(:first-child) .feature-cover img { height: 100%; aspect-ratio: auto; object-position: top; border-radius: 0; box-shadow: none; }
.feature-item:nth-child(2) { top: 0; inset-inline-start: calc(50% + 190px); }
.feature-item:nth-child(3) { top: 300px; inset-inline-start: calc(50% + 250px); }

/* ---------------------------------------------------------------- المؤلّفون */
.author-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.author-tile { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: var(--r); padding: 28px 18px 24px; transition: box-shadow .25s; }
.author-tile:hover { box-shadow: var(--shadow); }
.author-img { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; outline: 1px solid var(--store-primary); outline-offset: 6px; }
.author-img img { width: 100%; height: 100%; object-fit: cover; }
.author-tile b { margin-top: 18px; font-size: 18px; font-weight: 700; }
.author-tile small { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- الآراء */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review-grid.one { grid-template-columns: 1fr; }
.review-card {
	border: 1px solid var(--line); border-radius: var(--r);
	padding: 26px 26px 24px;
	background: linear-gradient(180deg, var(--tint-2) 0%, #fff 70%);
}
.review-card .q { width: 40px; height: 40px; color: var(--store-primary); fill: currentColor; stroke: none; }
.review-who { display: flex; align-items: center; gap: 12px; margin-block: 14px 8px; }
.review-who b { font-size: 17px; font-weight: 700; }
.review-who .sep { width: 1px; height: 16px; background: #CFCFCF; }
.review-who span:last-child { color: var(--muted); font-size: 14.5px; }
.review-card p { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin-bottom: 12px; }
.dashes { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.dashes span { width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.dashes .on { width: 38px; background: var(--store-primary); }

/* ---------------------------------------------------------------- شاهدتَه مؤخّرًا: شريطٌ ملتصق */
.recent-strip { padding-top: 60px; }
.recent-strip .section-head { margin-bottom: 28px; }
.recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 8); overflow-x: auto; scrollbar-width: none; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-tile { position: relative; overflow: hidden; }
.recent-tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .4s; }
.recent-tile:hover img { transform: scale(1.06); }
.recent-tile .type-dot { position: absolute; top: 10px; inset-inline-end: 10px; }
.recent-cap {
	position: absolute; inset-inline: 0; bottom: 0;
	padding: 12px 14px; background: rgba(28, 28, 28, .8); color: #fff;
	opacity: 0; transform: translateY(100%); transition: .3s;
}
.recent-cap b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-price { font-size: 14px; color: #fff; }
.recent-price del { color: #D6D6D6; }
.recent-tile:hover .recent-cap, .recent-tile:focus-within .recent-cap { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- التذييل */
.site-footer { background: var(--store-accent); color: var(--on-dark); margin-top: 0; }
.news { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 54px 50px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.news h2 { font-size: 34px; font-weight: 700; line-height: 1.3; }
.news p { color: var(--on-dark-muted); font-size: 15px; margin-top: 4px; }
.news-field { display: flex; gap: 10px; width: min(520px, 100%); }
.news-field input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.news-field input::placeholder { color: #ABABAB; }
.news-field .btn { height: 50px; }
.foot-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.35fr; gap: 36px; padding-block: 50px; }
.foot-about .brand img { background: #fff; border-radius: 10px; padding: 4px; }
.foot-about p { margin-block: 16px 22px; color: var(--on-dark-muted); font-size: 15px; line-height: 1.9; max-width: 380px; }
.site-footer h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.site-footer ul a, .site-footer li > span { color: var(--on-dark-muted); font-size: 15.5px; line-height: 2.25; }
.site-footer ul a:hover { color: #fff; }
.contact li { display: flex; align-items: flex-start; gap: 10px; }
.contact .icon { width: 19px; height: 19px; margin-top: 9px; color: var(--on-dark-muted); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); }
.social a:hover { background: rgba(255, 255, 255, .08); }
.social .icon { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.foot-bottom p { color: var(--on-dark-muted); font-size: 14.5px; }
.foot-bottom b { color: #fff; }
.foot-links { display: flex; gap: 20px; }
.foot-links a:hover { color: #fff; }

/* ---------------------------------------------------------------- شريط عنوان الصفحات الداخليّة */
.page-band {
	background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 60%, #fff 100%);
	padding-block: 50px 40px; text-align: center;
}
.page-band h1 { font-size: 40px; font-weight: 800; line-height: 1.3; }
.band-sub { color: var(--muted); margin-top: 6px; font-size: 16px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: #9A9A9A; }
.crumbs a:hover { color: var(--store-text); }
.crumbs [aria-current] { color: var(--store-text); font-weight: 500; }
.page-band.slim { padding-block: 22px 18px; }
.page-band.slim .crumbs { margin-top: 0; justify-content: flex-start; }

/* ---------------------------------------------------------------- التصنيف */
.sub-strip { padding-top: 8px; }
.sub-row { display: flex; justify-content: center; gap: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sub-row::-webkit-scrollbar { display: none; }
.sub-tile { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.4; }
.sub-img { width: 96px; height: 96px; border-radius: var(--r); overflow: hidden; background: var(--soft); border: 1px solid transparent; transition: border-color .2s; }
.sub-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-tile:hover .sub-img { border-color: var(--store-primary); }
.shop-section { padding-top: 44px; }
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 2px solid var(--store-accent); }
.filters-head h2 { font-size: 21px; font-weight: 700; }
.filter-close, .filter-toggle, .filter-backdrop { display: none; }
.f-panel { padding-block: 18px; border-bottom: 1px solid var(--line); }
.f-panel h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.f-list li + li { margin-top: 4px; }
.f-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding-block: 3px; font-size: 15px; }
.f-list input { width: 17px; height: 17px; accent-color: var(--store-primary-dark); margin: 0; }
.f-list .type-dot { width: 24px; height: 24px; border-width: 0; box-shadow: none; }
.f-list .type-dot .icon { width: 13px; height: 13px; }
.f-count { margin-inline-start: auto; font-size: 13px; color: var(--muted); background: var(--soft); border-radius: var(--r-pill); padding: 0 9px; }
.f-list .stars .icon { width: 15px; height: 15px; }
.f-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-price label { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); }
.f-price input { height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; color: var(--store-text); width: 100%; }
.f-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.shop-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shop-count { color: var(--muted); font-size: 15px; }
.shop-sort { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.shop-sort select { height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px 26px; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px 4px 10px; font-size: 14px; }
.chip-tag .icon { width: 14px; height: 14px; }
.chip-tag:hover { border-color: var(--store-text); }
.chip-clear { font-size: 14px; text-decoration: underline; color: var(--muted); padding-inline: 6px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination.start { justify-content: flex-start; margin-top: 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 500; }
.pagination span { border-color: transparent; }
.pagination a:hover { border-color: var(--store-text); }
.pagination [aria-current="page"] { background: var(--store-accent); color: var(--on-dark); border-color: var(--store-accent); }
.pagination .icon { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- صفحة الكتاب */
.pdp-section { padding-top: 26px; }
.pdp { display: grid; grid-template-columns: 400px 1fr 340px; gap: 40px; align-items: start; }
.g-main { background: var(--soft); border-radius: var(--r); padding: 44px 0; display: grid; place-items: center; }
.g-cover { position: relative; width: 66%; }
.g-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: var(--book-shadow); }
.g-cover .type-dot { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 34px; height: 34px; }
.g-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.g-thumbs button { width: 78px; padding: 10px 14px; background: var(--soft); border-radius: var(--r-sm); border: 2px solid transparent; }
.g-thumbs button[aria-pressed="true"] { border-color: var(--store-primary-dark); }
.g-thumbs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.pdp-kind { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--brand-ink); font-weight: 700; font-size: 14px; padding: 4px 14px 4px 6px; border-radius: var(--r-pill); }
.pdp-kind .type-dot { width: 26px; height: 26px; border-width: 0; box-shadow: none; }
.pdp-kind .type-dot .icon { width: 14px; height: 14px; }
.pdp-info h1 { font-size: 36px; font-weight: 800; line-height: 1.35; margin-top: 14px; }
.pdp-author { margin-top: 4px; color: var(--muted); font-size: 16px; }
.pdp-author a { color: var(--store-text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--store-primary); text-underline-offset: 5px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; }
.pdp-rating a { color: var(--muted); }
.pdp-lead { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.95; }
.pdp-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 22px; border-top: 1px solid var(--line); }
.pdp-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pdp-facts dt { font-size: 13.5px; color: var(--muted); }
.pdp-facts dd { font-size: 15.5px; font-weight: 700; }
.buy-box { background: var(--tint); border-radius: var(--r); padding: 26px 24px; position: sticky; top: 96px; }
.buy-price { font-size: 30px; font-weight: 800; color: var(--brand-ink); line-height: 1.3; }
.buy-price del { font-size: 17px; }
.buy-price .off { font-size: 16px; font-weight: 700; }
.stock { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 15px; margin-block: 8px 18px; }
.stock .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.qty-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-weight: 500; }
.qty { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); height: 44px; }
.qty button { width: 40px; height: 100%; font-size: 20px; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; appearance: textfield; font-weight: 700; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-box .btn + .btn { margin-top: 10px; }
.perks { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(35, 35, 35, .1); }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #3A3A3A; padding-block: 5px; }
.perks .icon { width: 20px; height: 20px; color: var(--brand-ink); }
.sample-player { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.sample-player .play { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--store-primary); color: var(--store-accent); flex: none; }
.sample-player .play .icon { fill: currentColor; width: 20px; height: 20px; }
.sp-body { flex: 1; min-width: 0; }
.sp-body b { font-size: 15px; }
.sp-bar { display: block; height: 4px; background: var(--line); border-radius: 2px; margin-block: 8px 4px; position: relative; }
.sp-bar span { position: absolute; inset-block: 0; inset-inline-start: 0; width: 18%; background: var(--store-primary-dark); border-radius: 2px; }
.sp-time { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.edu-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.edu-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--soft); font-size: 15px; }
.edu-badges .icon { color: #3f8f6b; }
.pdp-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-top: 64px; position: sticky; top: 77px; background: #fff; z-index: 10; overflow-x: auto; scrollbar-width: none; }
.pdp-tabs a { padding-block: 14px; font-size: 17px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pdp-tabs a[aria-current="true"] { color: var(--store-text); box-shadow: inset 0 -2px 0 var(--store-accent); }
.pdp-block { padding-top: 38px; scroll-margin-top: 140px; }
.pdp-block > h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.prose { max-width: 860px; color: #444; font-size: 16.5px; line-height: 2; }
.prose p + p { margin-top: 12px; }
.spec-table { width: 100%; max-width: 860px; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; font-weight: 500; color: var(--muted); background: var(--soft); }
.reviews-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.rev-summary { background: var(--soft); border-radius: var(--r); padding: 24px; text-align: center; }
.rev-summary strong { display: block; font-size: 52px; font-weight: 800; line-height: 1.1; }
.rev-summary p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.bars { margin-top: 16px; text-align: start; }
.bars li { display: grid; grid-template-columns: 16px 1fr 38px; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.bar { height: 6px; background: #E3E1DE; border-radius: 3px; position: relative; overflow: hidden; }
.bar span { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--star); }
.review-list { display: grid; gap: 14px; }
.review-list .review-card { background: #fff; padding: 20px 22px; }
.review-list .review-who { margin-top: 0; }
.review-list .review-card p { margin: 8px 0 0; }
.review-form { margin-top: 22px; border: 1px dashed #CFCBC6; border-radius: var(--r); padding: 22px; }
.review-form h3 { font-size: 19px; font-weight: 700; }
.review-form .note { color: var(--muted); font-size: 14px; }
.star-pick { display: flex; gap: 4px; margin-block: 12px; }
.star-pick button .icon { width: 26px; height: 26px; stroke: #BDBDBD; }
.star-pick button[aria-pressed="true"] .icon { fill: var(--star); stroke: var(--star); }
.review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; resize: vertical; margin-bottom: 12px; }

/* ---------------------------------------------------------------- المؤلّف */
.author-hero { display: grid; grid-template-columns: 380px 1fr; gap: 70px; align-items: center; }
.author-photo { position: relative; padding: 24px 30px 40px; }
.author-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); position: relative; z-index: 1; }
.author-photo .orbit { inset-inline: -10%; width: 120%; bottom: 0; }
.author-copy h2 { font-size: 38px; font-weight: 800; line-height: 1.3; }
.author-meta { color: var(--muted); margin-block: 6px 18px; }
.author-meta b { color: var(--store-text); }
.works-more { text-align: center; margin-top: 30px; }

/* ---------------------------------------------------------------- السلّة */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: start; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ci-book { display: flex; align-items: center; gap: 16px; }
.ci-thumb { display: block; flex: none; width: 82px; background: var(--soft); border-radius: var(--r-sm); padding: 10px 12px; }
.ci-thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .4); }
.ci-title { display: block; font-weight: 700; font-size: 16.5px; }
.ci-author { display: block; color: var(--muted); font-size: 14px; }
.ci-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ci-type .type-dot { width: 22px; height: 22px; border-width: 0; box-shadow: none; }
.ci-type .type-dot .icon { width: 12px; height: 12px; }
.ci-price { color: var(--store-primary-dark); font-weight: 500; white-space: nowrap; }
.ci-price del { display: block; font-size: 13.5px; }
.ci-total { font-weight: 700; white-space: nowrap; }
.ci-remove .icon { width: 20px; height: 20px; color: var(--muted); }
.cart-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.coupon { display: flex; gap: 8px; }
.coupon input { height: 48px; width: 220px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; }
.coupon-on { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--brand-ink); padding: 6px 8px 6px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 700; }
.coupon-on .icon { width: 15px; height: 15px; }
.cart-tools .link-btn { margin-inline-start: auto; }
.summary { background: var(--tint); border-radius: var(--r); padding: 26px; position: sticky; top: 96px; }
.summary h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.summary dl div { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid rgba(35, 35, 35, .1); font-size: 15.5px; }
.summary dt { color: #4A4A4A; }
.summary dd { font-weight: 700; }
.summary .minus { color: var(--sale); }
.summary .total { border-bottom: 0; padding-top: 16px; font-size: 19px; }
.summary .total dd { font-size: 22px; font-weight: 800; }
.summary .btn { margin-top: 16px; }
.summary-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #4A4A4A; margin-top: 14px; }
.summary-note .icon { width: 18px; height: 18px; margin-top: 2px; }
.continue { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 15px; }
.cart-empty { text-align: center; padding: 50px 20px; border: 1px dashed #CFCBC6; border-radius: var(--r); margin-top: 24px; }
.cart-empty[hidden] { display: none; }
.cart-empty h2, .cart-empty h3 { font-size: 24px; font-weight: 700; margin-top: 12px; }
.cart-empty p { color: var(--muted); margin-block: 6px 20px; }
.empty-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--tint); color: var(--brand-ink); }
.empty-icon .icon { width: 34px; height: 34px; }

/* ---------------------------------------------------------------- 404 */
.nf { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); overflow: hidden; }
.nf-inner { position: relative; text-align: center; padding-block: 80px 70px; display: flex; flex-direction: column; align-items: center; }
.nf-ghost { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: clamp(160px, 26vw, 330px); font-weight: 800; line-height: 1; color: var(--ghost); pointer-events: none; }
.nf-book { position: relative; width: 150px; height: 100px; margin-bottom: 26px; perspective: 400px; }
.nf-book span { position: absolute; top: 0; width: 75px; height: 100px; background: #fff; border: 2px solid var(--store-accent); }
.nf-book span:first-child { right: 0; border-radius: 4px 10px 10px 4px; transform: rotateY(-18deg); transform-origin: left; background: var(--store-primary); }
.nf-book span:last-child { left: 0; border-radius: 10px 4px 4px 10px; transform: rotateY(18deg); transform-origin: right; background: repeating-linear-gradient(180deg, #fff 0 14px, #E7E3DE 14px 16px); }
.nf h1 { position: relative; font-size: 38px; font-weight: 800; }
.nf-inner > p { position: relative; color: var(--muted); max-width: 520px; margin-block: 10px 26px; font-size: 16.5px; }
.nf-search { position: relative; display: flex; gap: 10px; width: min(540px, 100%); }
.nf-search input { flex: 1; min-width: 0; height: 50px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 16px; background: #fff; }
.nf-search .btn { height: 50px; }
.nf-actions { position: relative; display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

/* ---------------------------------------------------------------- صفحة المكوّنات */
.kit-title { font-size: 22px; font-weight: 700; margin: 44px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.kit-title:first-child { margin-top: 0; }
.kit-note { color: var(--muted); margin-bottom: 20px; }
.kit-cards { grid-template-columns: repeat(4, 1fr); }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.kit-formats { flex: 1 1 340px; max-width: 420px; }
.kit-formats .formats-box { margin-top: 0; }
.kit-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.kit-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gap); align-items: start; }
.cart-empty.shown { margin-top: 0; }

/* لمس: المفضّلة والنظرة السريعة ظاهرتان دائمًا */
@media (hover: none) {
	.wish { opacity: 1; }
	.wish, .quick { width: 40px; height: 40px; }
	.quick { top: 58px; }
	.recent-cap { opacity: 1; transform: none; padding: 8px 10px; }
	.recent-cap b { font-size: 13.5px; }
}

/* ---------------------------------------------------------------- الشاشات المتوسّطة */
@media (max-width: 1180px) {
	.hd { grid-template-columns: auto 1fr auto; }
	.hd-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.hd-brand { padding-inline: 12px 18px; }
	.hd-actions { padding-inline: 14px 16px; border-inline-start: 0; }
	.hero-social { display: none; }
	.slide-grid { padding-inline-start: 0; }
	.pdp { grid-template-columns: 340px 1fr; }
	.buy-box { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
	.buy-box > .buy-price, .buy-box > .stock, .buy-box > .qty-line { grid-column: 1; }
	.buy-box > .btn { grid-column: 2; }
	.buy-box > .perks { grid-column: 1 / -1; }
	.buy-box .btn + .btn { margin-top: 10px; }
	.buy-box > .btn:first-of-type { margin-top: 0; }
	.buy-box { grid-auto-flow: dense; }
	.foot-cols { grid-template-columns: 1fr 1fr 1fr; }
	.foot-about { grid-column: 1 / -1; }
	.spot-grid { gap: 40px; }
	.spot-tile .chip { inset-inline-start: auto; inset-inline-end: 16px; }
	.feature-item:nth-child(2) { inset-inline-start: calc(50% + 160px); }
	.feature-item:nth-child(3) { inset-inline-start: calc(50% + 190px); }
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
	.slide-grid { grid-template-columns: 1fr; gap: 10px; text-align: center; padding-block: 40px 90px; min-height: 0; }
	.slide-copy p { margin-inline: auto; }
	.slide-art { max-width: 560px; margin-inline: auto; width: 100%; }
	.cat-row { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); }
	.book-row { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); }
	.book-grid, .book-grid.wide, .kit-cards { grid-template-columns: repeat(3, 1fr); }
	.spot-grid { grid-template-columns: 1fr; }
	.spot-collage { height: 420px; }
	.banner-copy { width: 58%; padding-inline: 22px; }
	.banner-title { font-size: 22px; }
	.author-grid { grid-template-columns: repeat(2, 1fr); }
	.review-grid { grid-template-columns: 1fr 1fr; }
	.review-grid .review-card:nth-child(3) { display: none; }
	.review-grid.one .review-card { display: block; }
	.recent-row { grid-auto-columns: calc(100% / 5); }
	.news { flex-direction: column; align-items: flex-start; }
	.shop { grid-template-columns: 1fr; }
	.filter-toggle { display: inline-flex; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 90;
		width: min(340px, 88vw); background: #fff; padding: 18px; overflow-y: auto;
		transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
	}
	.filter-close { display: inline-grid; }
	.filter-backdrop { display: block; }
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-open .filter-backdrop { opacity: 1; visibility: visible; }
	.sub-row { justify-content: flex-start; }
	.reviews-layout { grid-template-columns: 1fr; }
	.author-hero { grid-template-columns: 300px 1fr; gap: 40px; }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.kit-split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.pdp { grid-template-columns: 1fr; gap: 26px; }
	.buy-box { display: block; }
	.buy-box > .btn:first-of-type { margin-top: 0; }
	.gallery { max-width: 420px; width: 100%; margin-inline: auto; }
	.author-hero { grid-template-columns: 1fr; text-align: center; }
	.author-photo { max-width: 320px; margin-inline: auto; }
	.cart-table thead { display: none; }
	.cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
	.cart-table tr { position: relative; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.cart-table td { border: 0; padding: 4px 0; }
	.cart-table td[data-label] { display: flex; justify-content: space-between; align-items: center; padding-inline-start: 98px; }
	.cart-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
	.ci-price del { display: inline; margin-inline-start: 6px; }
	.ci-remove { position: absolute; top: 12px; inset-inline-end: 0; }
	.cart-table td.ci-book { display: flex; padding-inline-end: 44px; }
	.cart-tools .link-btn { margin-inline-start: 0; }
}

/* ---------------------------------------------------------------- الهاتف */
@media (max-width: 600px) {
	.section { padding-block: 44px; }
	.section-title { font-size: 26px; }
	.section-head { margin-bottom: 24px; }
	.hide-sm { display: none; }
	.hd { min-height: 64px; }
	.hd-brand { padding-inline: 4px 8px; border-inline-end: 0; }
	.hd-actions { padding-inline: 4px 8px; gap: 0; }
	.brand-name { font-size: 20px; }
	.brand img { width: 38px; height: 38px; }
	.slide-grid { padding-block: 28px 64px; }
	.slide-copy p { font-size: 16px; margin-block: 14px 22px; }
	.slide-art { padding: 20px 6px 34px; }
	.stamp { width: 86px; height: 86px; inset-inline-start: 6%; top: -6px; }
	.art-badge { width: 56px; height: 56px; top: 10px; }
	.art-badge .icon { width: 26px; height: 26px; }
	.slide-counter { padding: 10px 12px; }
	.slide-counter b { font-size: 24px; }
	.scroll-btn { display: none; }
	.cat-row { grid-auto-columns: calc((100% - var(--gap)) / 2.3); gap: 14px; }
	.book-row { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
	.book-grid, .book-grid.wide, .kit-cards { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
	.book-media { padding: 18px 18px 22px; }
	.cart-bar { height: 40px; margin-top: 14px; font-size: 13.5px; gap: 6px; }
	.cover-wrap { width: 82%; }
	.book-title { font-size: 15.5px; }
	.rate { font-size: 13.5px; }
	.price { font-size: 14.5px; }
	.price del { font-size: 13px; }
	.off { display: inline-block; }
	.spot-collage { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 300px 170px; }
	.spot-tile:first-child { grid-column: 1 / -1; grid-row: 1; }
	.spot-tile:nth-child(2) { grid-column: 1; grid-row: 2; }
	.spot-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
	.spot-tile .chip { inset-inline-start: auto; inset-inline-end: 12px; bottom: 14px; padding: 6px 6px 6px 18px; }
	.chip img { width: 46px; height: 46px; }
	.chip b { font-size: 14.5px; }
	.spot-copy h2 { font-size: 27px; }
	.banner-pair { grid-template-columns: 1fr; }
	.banner { aspect-ratio: auto; display: flex; flex-direction: column; background: #EEEDEB; }
	.banner > img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; z-index: 0; }
	.banner-copy { position: relative; width: 100%; padding: 18px 20px 22px; z-index: 1; }
	.banner-ghost { font-size: 70px; z-index: 1; }
	.banner-tab { z-index: 2; }
	.feature-items { min-height: 0; padding-bottom: 10px; }
	.feature-item:first-child .feature-cover { width: 190px; }
	.feature-item:first-child .chip { position: relative; top: auto; inset-inline-end: auto; margin-top: 26px; }
	.feature-cta { margin-top: 16px; }
	.feature-item:not(:first-child) .feature-cover { width: 76px; height: 76px; border-width: 4px; }
	.feature-item:nth-child(2) { top: 10px; inset-inline-start: auto; inset-inline-end: 8px; }
	.feature-item:nth-child(3) { top: 140px; inset-inline-start: 8px; }
	.author-grid { gap: 14px; }
	.author-tile { padding: 20px 10px 18px; }
	.author-img { width: 92px; height: 92px; }
	.author-tile b { font-size: 16px; margin-top: 14px; }
	.author-tile small { font-size: 13px; }
	.review-grid { grid-template-columns: 1fr; }
	.review-grid .review-card:nth-child(3) { display: block; }
	.recent-row { grid-auto-columns: calc(100% / 3); }
	.news { padding-block: 40px 36px; }
	.news h2 { font-size: 27px; }
	.news-field { flex-direction: column; }
	.news-field input { flex: none; width: 100%; }
	.foot-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 36px; }
	.foot-cols > div:last-child { grid-column: 1 / -1; }
	.foot-bottom .container { flex-direction: column; text-align: center; }
	.page-band { padding-block: 34px 28px; }
	.page-band h1 { font-size: 30px; }
	.shop-sort { margin-inline-start: 0; width: 100%; }
	.shop-sort select { flex: 1; }
	.pdp-info h1 { font-size: 28px; }
	.pdp-tabs { gap: 20px; top: 65px; margin-top: 40px; }
	.pdp-tabs a { font-size: 15.5px; }
	.author-copy h2 { font-size: 30px; }
	.coupon { width: 100%; }
	.coupon input { flex: 1; width: auto; min-width: 0; }
	.nf-inner { padding-block: 60px 50px; }
	.nf h1 { font-size: 28px; }
	.nf-search { flex-direction: column; }
	.kit-row { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==== ميزات المنصّة (الملحق 8) ==== */
/* النظرة السريعة: زرٌّ تحت المفضّلة على البطاقة */
.quick {
	position: absolute; z-index: 2; top: 56px; inset-inline-end: 12px;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center; background: #fff; color: var(--store-text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	opacity: 0; transition: opacity .2s;
}
.quick .icon { width: 18px; height: 18px; }
.book-card:hover .quick, .quick:focus-visible { opacity: 1; }
.quick:hover { background: var(--store-primary); color: var(--store-accent); }
@media (hover: none) { .quick { opacity: 1; } }

/* العرض محدود المدّة: عدّاد «كتاب الأسبوع» */
.offer-timer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.offer-label { width: 100%; text-align: center; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.cd { display: grid; place-items: center; min-width: 64px; padding: 8px 6px; border-radius: var(--r-sm); background: var(--tint); line-height: 1.2; }
.cd b { font-size: 24px; font-weight: 700; color: var(--store-text); font-variant-numeric: tabular-nums; }
.cd small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .cd { min-width: 56px; } .cd b { font-size: 20px; } }

/* الأسئلة الشائعة */
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq-intro .section-title { margin-bottom: 12px; }
.faq-intro p { color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: background .2s; }
.faq-item[open] { background: var(--tint-2); border-color: var(--tint); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .icon { width: 20px; height: 20px; flex: none; transition: transform .25s; }
.faq-item[open] .faq-q .icon { transform: rotate(180deg); }
.faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 15px; line-height: 1.85; }
@media (max-width: 991px) { .faq-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } .faq-intro { text-align: center; } }

/* قسيمة الترحيب تحت حقل النشرة */
.news-box { display: flex; flex-direction: column; gap: 10px; width: min(520px, 100%); }
.news-box .news-field { width: 100%; }
.news .news-offer { margin: 0; color: var(--store-primary); font-size: 14px; font-weight: 700; }

/* ما يُخفيه theme.js بالسمة hidden (مثل العرض المنتهي) يختفي ولو كان لعنصره display */
[hidden] { display: none !important; }

/* ==== الإصدار الثاني: إيقاع الرئيسيّة ==== */
/* خلفيّات الأقسام تتناوب حتّى لا يتشابه قسمان متجاوران */
.spotlight { background: var(--tint-2); }
.band-tint { background: var(--tint-2); }
.band-tint .review-card { background: #fff; }
.authors-section .author-tile { background: var(--soft); }
.authors-section .author-tile:hover { background: #fff; }
.more-line { text-align: center; margin-top: 36px; }

/* عنوانٌ في جانب ورابطٌ في الآخر */
.section-head.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: start; }
.head-split .link-btn { flex: none; color: var(--brand-ink); font-weight: 700; }

/* تبويبات «الأكثر رواجًا» (القاعدة 16) */
.row-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.row-tab {
	height: 40px; padding: 0 18px; border-radius: var(--r-pill);
	background: #fff; border: 1px solid var(--line);
	font-weight: 500; font-size: 15px; transition: background .2s, color .2s, border-color .2s;
}
.row-tab:hover { border-color: var(--store-text); }
.row-tab[aria-selected="true"] { background: var(--store-accent); border-color: var(--store-accent); color: var(--on-dark); }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }
/* الشبكة صفّان كاملان بأيّ عددٍ في الصفّ: يُخفى ما يزيد على صفّين */
[data-books-per-row="3"] .tab-grid > :nth-child(n + 7),
[data-books-per-row="4"] .tab-grid > :nth-child(n + 9),
[data-books-per-row="5"] .tab-grid > :nth-child(n + 11) { display: none; }

/* المدوّنة */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; min-width: 0; }
.post-media { display: block; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.post-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.post-title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-top: 4px; }
.post-title a:hover { color: var(--brand-ink); }
.post-excerpt { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 15px; }
.post-more:hover { color: var(--brand-ink); }
.post-more .icon { width: 17px; height: 17px; }

/* صفحة التصنيف: شبكة أو قائمة */
.view-switch { display: flex; gap: 6px; }
.view-switch button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--muted); }
.view-switch button[aria-pressed="true"] { border-color: var(--store-accent); color: var(--store-text); }
.view-switch .icon { width: 19px; height: 19px; }
.shop-grid.is-list { grid-template-columns: 1fr; gap: 16px; }
.shop-grid.is-list .book-card { flex-direction: row; gap: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop-grid.is-list .book-media { flex: none; width: 170px; padding: 16px 22px 18px; }
.shop-grid.is-list .cover-wrap { width: 100%; }
.shop-grid.is-list .book-body { padding-top: 8px; }
.shop-grid.is-list .title-line { justify-content: flex-start; }
.shop-grid.is-list .book-title { font-size: 19px; font-weight: 700; }
.shop-grid.is-list .book-body .price { margin-top: 10px; }
.shop-grid.is-list .cart-bar { margin-top: 12px; font-size: 13.5px; }
.shop-grid.is-list .cart-bar .icon { display: none; }
@media (max-width: 600px) {
	.shop-grid.is-list .book-media { width: 116px; padding: 10px 12px 12px; }
	.shop-grid.is-list .cart-bar { font-size: 12.5px; }
	.shop-grid.is-list .book-card { gap: 14px; }
	.shop-grid.is-list .book-title { font-size: 16px; white-space: normal; }
	.shop-grid.is-list .title-line { flex-direction: column; gap: 0; }
}

/* اختيار النسخة (book.formats): يختفي إن لم يكن للعنوان غير نسخةٍ واحدة */
.formats-box { margin-top: 22px; }
.formats-box:not(:has(.format-opt + .format-opt)) { display: none; }
.formats-label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.format-opt {
	display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center;
	padding: 8px 16px 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
	transition: border-color .2s;
}
.format-opt .type-dot { grid-row: 1 / 3; width: 30px; height: 30px; border-width: 0; box-shadow: none; }
.format-opt .type-dot .icon { width: 15px; height: 15px; }
.format-name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.format-price { font-size: 14px; color: var(--brand-ink); line-height: 1.35; }
.format-opt:hover { border-color: var(--store-text); }
.format-opt.is-current { border-color: var(--store-primary-dark); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--store-primary-dark); }

/* صفحتا المدوّنة والمقال */
.posts-grid.is-blog { grid-template-columns: repeat(2, 1fr); gap: 40px var(--gap); }
.posts-grid.is-blog .post-title { font-size: 23px; }
.article-wrap { max-width: 860px; }
.article-head { text-align: center; }
.article-head h1 { font-size: 40px; font-weight: 800; line-height: 1.35; margin-top: 6px; }
.article-lead { color: var(--muted); font-size: 17.5px; line-height: 1.9; margin: 12px auto 0; max-width: 680px; }
.article-figure { margin-block: 30px; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { max-width: none; font-size: 17.5px; }
.article-body h2 { font-size: 25px; font-weight: 700; color: var(--store-text); margin-top: 26px; margin-bottom: 4px; }
@media (max-width: 760px) {
	.posts-grid.is-blog { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; gap: 30px; }
}
@media (max-width: 600px) {
	.article-head h1 { font-size: 28px; }
	.article-body { font-size: 16.5px; }
	.posts-grid.is-blog .post-title { font-size: 19px; }
}

/* صفحة الكتاب: الوصف والتفاصيل متجاوران بلا عمودٍ فارغ */
.pdp-more { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
.pdp-more > .pdp-tabs, .pdp-more > .reviews-block { grid-column: 1 / -1; }
.pdp-more .prose, .pdp-more .spec-table { max-width: none; }
.reviews-layout .rev-summary { position: sticky; top: 140px; }
@media (max-width: 1000px) { .pdp-more { grid-template-columns: minmax(0, 1fr); } .reviews-layout .rev-summary { position: static; } }

/* رأي القارئ: النجوم في أسفل البطاقة مهما طال النصّ */
.review-grid .review-card { display: flex; flex-direction: column; }
.review-grid .review-card .stars { margin-top: auto; }

@media (max-width: 760px) {
	.posts-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; }
	.posts-grid::-webkit-scrollbar { display: none; }
	.posts-grid > * { scroll-snap-align: start; }
}
@media (max-width: 1000px) {
	.tab-grid > :nth-child(n + 7) { display: none; }
}
@media (max-width: 600px) {
	/* شريط الثقة: شريطٌ واحد يُمرَّر بدل أربع بطاقاتٍ تملأ الشاشة */
	.trust-bar { padding-top: 22px; }
	.trust-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; width: 100%; padding-inline: 16px; scroll-padding-inline: 16px; }
	.trust-grid::-webkit-scrollbar { display: none; }
	.trust-item { flex: 0 0 76%; scroll-snap-align: start; padding: 10px 12px; gap: 10px; }
	.trust-icon { width: 30px; height: 30px; }
	.trust-item h3 { font-size: 15px; }
	.trust-item p { font-size: 13px; }
	.row-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.row-tabs::-webkit-scrollbar { display: none; }
	.row-tab { flex: none; }
	.head-split .link-btn { font-size: 14.5px; }
	.post-title { font-size: 18px; }
	.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.format-opt { grid-template-columns: auto; justify-items: center; text-align: center; row-gap: 2px; padding: 8px 6px; }
	.format-opt .type-dot { grid-row: auto; }
}

/* آراء القرّاء: اسم الكتاب تحت الاسم */
.review-card > .review-book { display: block; margin: -2px 0 8px; color: var(--muted); font-size: 14px; }

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