/* ==========================================================================
   قالب صَفصاف — منصّة ناشر
   لونٌ مريميّ واحد على أبيض، وخلفيّاتٌ نعناعيّة شاحبة تُشتقّ منه بـ color-mix،
   ودوائر زخرفيّة خلف الأغلفة والصور، وعناوين رفيعة بخطّ Readex Pro.
   ========================================================================== */

:root {
	/* ألوان الهويّة: يختارها الناشر، والقيم هنا تجريبيّة */
	--store-primary: #587779;
	--store-primary-dark: #4A5556;
	--store-accent: #C2412D;
	--store-bg: #FFFFFF;
	--store-text: #444A5C;

	/* مشتقّات محايدة */
	--mint: color-mix(in srgb, var(--store-primary) 10%, var(--store-bg));
	--mint-2: color-mix(in srgb, var(--store-primary) 18%, var(--store-bg));
	--pale: color-mix(in srgb, var(--store-text) 4%, var(--store-bg));
	--line: color-mix(in srgb, var(--store-text) 14%, var(--store-bg));
	--muted: color-mix(in srgb, var(--store-text) 86%, var(--store-bg));
	--on-primary: #FFFFFF;
	--gold: #E9A21B;

	--font-h: "Readex Pro", "Tajawal", system-ui, sans-serif;
	--font-b: "Tajawal", system-ui, sans-serif;

	--r: 14px;
	--r-sm: 8px;
	--pill: 999px;
	--per-row: 4;
	--gap: 24px;
	--shadow: 0 22px 44px -22px rgba(36, 48, 52, .32);
	--cover-shadow: 0 16px 26px -12px rgba(30, 40, 44, .5);
}

/* خيارات الناشر */
body[data-books-per-row="3"] { --per-row: 3; }
body[data-books-per-row="4"] { --per-row: 4; }
body[data-books-per-row="5"] { --per-row: 5; }
body[data-books-per-row="6"] { --per-row: 6; }
body[data-corners="sharp"] { --r: 0px; --r-sm: 0px; --pill: 3px; }
body[data-show-trust-bar="false"] .trust { display: none; }
body[data-show-reviews="false"] .revs,
body[data-show-reviews="false"] [data-reviews] { display: none; }

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--store-bg);
	color: var(--store-text);
	font-family: var(--font-b);
	font-size: 16px;
	line-height: 1.75;
	overflow-x: clip;
}
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; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 300; line-height: 1.35; margin: 0; color: var(--store-text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--store-primary); outline-offset: 2px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- الأزرار ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 26px; border-radius: var(--pill);
	border: 1px solid transparent; background: none;
	font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--store-primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--store-primary-dark); }
.btn--line { border-color: var(--line); color: var(--store-text); background: var(--store-bg); }
.btn--line:hover { border-color: var(--store-primary); color: var(--store-primary-dark); }
.btn--soft { background: var(--mint); color: var(--store-primary-dark); }
.btn--soft:hover { background: var(--mint-2); }
.btn--sm { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 34px; }
.btn--block { width: 100%; }
.round {
	width: 40px; height: 40px; border-radius: 50%; flex: none;
	border: 1px solid var(--line); background: var(--store-bg); color: var(--store-text);
	display: inline-grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s;
}
.round:hover { border-color: var(--store-primary); color: var(--store-primary-dark); }
.round--lg { width: 48px; height: 48px; }
.mini {
	width: 34px; height: 34px; border-radius: 50%; flex: none;
	border: 1px solid var(--line); background: var(--store-bg); color: var(--store-text);
	display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s;
}
.mini .i { width: 16px; height: 16px; }
.mini:hover { background: var(--store-primary); border-color: var(--store-primary); color: var(--on-primary); }
[data-action="wishlist"][aria-pressed="true"] { color: var(--store-accent); }
[data-action="wishlist"][aria-pressed="true"] .i { fill: currentColor; }
.link-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--store-text); }
.link-go .i { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- عنوان القسم ---------- */
.sec { padding: 80px 0; }
.sec--tight { padding: 0 0 80px; }
.sec--top0 { padding-top: 0; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 34px; }
.shead > div:first-child { min-width: 0; }
.shead__title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 300; }
.shead__sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.shead__ctrl { display: flex; gap: 8px; }

/* ---------- الرأس ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--store-bg); box-shadow: 0 1px 0 var(--line); }
.hdr__row { display: flex; align-items: center; gap: 30px; min-height: 84px; }
.hdr__menu {
	display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-sm);
	background: var(--store-primary); color: var(--on-primary); place-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; }
.brand__name { font-family: var(--font-h); font-size: 22px; font-weight: 400; color: var(--store-text); white-space: nowrap; }
.hdr__nav > ul { display: flex; gap: 28px; }
.hdr__nav a, .hdr__nav button {
	display: inline-flex; align-items: center; gap: 4px; padding: 10px 0;
	background: none; border: 0; font-size: 15px; color: var(--store-text); white-space: nowrap;
}
.hdr__nav a[aria-current="page"] { color: var(--store-primary-dark); box-shadow: inset 0 -1px 0 currentColor; }
.hdr__nav .i { width: 15px; height: 15px; }
.has-drop { position: relative; }
.drop {
	position: absolute; top: 100%; inset-inline-start: -18px; z-index: 5; min-width: 220px;
	display: none; flex-direction: column; padding: 10px;
	background: var(--store-bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.has-drop:hover > .drop, .has-drop:focus-within > .drop, .has-drop.is-open > .drop { display: flex; }
.drop a { display: block; padding: 8px 12px; border-radius: var(--r-sm); }
.drop a:hover { background: var(--mint); }
.hdr__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.hdr__icon {
	position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none;
	display: grid; place-items: center; color: var(--store-text);
}
.hdr__icon:hover { background: var(--mint); }
.hdr__badge {
	position: absolute; top: 1px; inset-inline-end: -1px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--store-accent); color: #FFFFFF;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.hdr__badge--soft { background: var(--store-primary); }
.hdr__help { display: flex; align-items: center; gap: 10px; margin-inline-start: 14px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.hdr__help .i { width: 32px; height: 32px; color: var(--store-primary); stroke-width: 1.2; }
.hdr__help small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); }
.hdr__help b { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.hsearch { border-top: 1px solid var(--line); background: var(--store-bg); padding: 14px 0; }
.hsearch__in { display: flex; gap: 10px; }
.hsearch input, .field {
	flex: 1; min-width: 0; height: 46px; padding: 0 20px;
	border: 1px solid var(--line); border-radius: var(--pill); background: var(--store-bg);
}
.hsearch input:focus, .field:focus { outline: none; border-color: var(--store-primary); }

/* الدرج الجانبيّ */
.drawer { position: fixed; inset: 0; z-index: 100; display: flex; }
.drawer__scrim { position: absolute; inset: 0; border: 0; background: rgba(32, 40, 42, .45); }
.drawer__panel { position: relative; width: min(340px, 86vw); height: 100%; overflow-y: auto; background: var(--store-bg); padding: 18px 20px 28px; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer__links a, .drawer__cats a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer__title { margin: 22px 0 4px; font-family: var(--font-h); font-size: 18px; }
.drawer__cats a { font-size: 15px; color: var(--muted); }
.drawer__help { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--store-primary-dark); font-weight: 500; }

/* ---------- السلايدر ---------- */
.hero { position: relative; background: var(--mint); overflow: hidden; }
.slide { display: none; }
.slide.is-active { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slide__in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 580px; padding: 40px 0 70px; }
.slide__eyebrow { font-size: 14px; font-weight: 700; color: var(--store-primary-dark); letter-spacing: .02em; }
.slide__title { margin: 8px 0 16px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 300; line-height: 1.25; }
.slide__desc { max-width: 460px; margin-bottom: 30px; color: var(--muted); font-size: 17px; }
.slide__art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: center; }
.slide__art::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: var(--store-bg); }
.slide__art::after {
	content: ""; position: absolute; top: 3%; inset-inline-start: 2%; width: 20%; aspect-ratio: 1;
	border-radius: 50%; border: 1px solid color-mix(in srgb, var(--store-primary) 45%, transparent);
}
.slide__art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero__arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; background: transparent; border-color: color-mix(in srgb, var(--store-primary) 40%, transparent); }
.hero__arrow--prev { inset-inline-start: 28px; }
.hero__arrow--next { inset-inline-end: 28px; }
.hero__dots { position: absolute; bottom: 30px; inset-inline-start: max(16px, calc((100% - 1200px) / 2)); display: flex; gap: 6px; }
.hero__dots button {
	width: 22px; height: 22px; border: 1px solid transparent; border-radius: 50%; background: none; padding: 0;
	display: grid; place-items: center;
}
.hero__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--store-primary) 55%, var(--store-bg)); }
.hero__dots button[aria-current="true"] { border-color: var(--store-primary); }
.hero__dots button[aria-current="true"]::before { background: var(--store-primary); }

/* ---------- شريط الثقة ---------- */
.trust { padding: 56px 0; border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust__item { display: flex; align-items: flex-start; gap: 16px; }
.trust__item .i { width: 46px; height: 46px; color: var(--store-primary); stroke-width: 1.4; }
.trust__h { font-size: 19px; font-weight: 400; }
.trust__item p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- صفوف الكتب ---------- */
.bgrid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 40px var(--gap); }
.track {
	--cols: var(--per-row);
	display: grid; grid-auto-flow: column; gap: var(--gap);
	grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track--cats { --cols: 4; }
.track--authors { --cols: 5; }
.track--revs { --cols: 2; padding: 6px 4px 30px; margin: -6px -4px 0; }
.track--recent { --cols: 6; }

/* ---------- بطاقة الكتاب ---------- */
.bcard { display: flex; flex-direction: column; min-width: 0; }
.bcard__media {
	position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden;
	padding: 12% 18%; background: var(--pale); border-radius: var(--r-sm);
}
.bcard__img { display: block; width: 100%; }
.bcard__img img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; box-shadow: var(--cover-shadow); transition: transform .35s ease; }
.bcard:hover .bcard__img img { transform: translateY(-5px); }
.type-dot {
	position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1;
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF;
}
.type-dot .i { width: 16px; height: 16px; stroke-width: 1.8; }
.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; }
.bcard__badges { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { display: inline-block; padding: 5px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1.2; color: #FFFFFF; }
.badge--sale { background: var(--store-accent); }
.badge--new { background: var(--store-primary); }
.bcard__out { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 8px; background: #3E4748; color: #FFFFFF; font-size: 13px; font-weight: 500; text-align: center; }
.bcard.is-out .bcard__img img { filter: grayscale(.6); opacity: .8; }
.bcard__qv {
	position: absolute; bottom: 12px; inset-inline: 12px; z-index: 1; min-height: 38px;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	border: 0; border-radius: var(--pill); background: var(--store-bg); color: var(--store-text);
	font-size: 13px; font-weight: 500; box-shadow: 0 8px 18px -10px rgba(30, 40, 44, .45);
	opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.bcard__qv .i { width: 16px; height: 16px; }
.bcard:hover .bcard__qv, .bcard__qv:focus-visible { opacity: 1; transform: none; }
@media (hover: none) {
	.bcard__qv { opacity: 1; transform: none; inset-inline: auto 10px; bottom: 10px; width: 36px; min-height: 36px; padding: 0; }
	.bcard__qv-t { display: none; }
}
.bcard__body { flex: 1; display: flex; flex-direction: column; padding-top: 14px; }
.bcard__rate { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .i { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.stars .off { color: #D7DCDF; }
.bcard__title { margin-top: 4px; font-size: 16px; font-weight: 400; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bcard__title a:hover { color: var(--store-primary-dark); }
.bcard__author { font-size: 13px; color: var(--muted); line-height: 1.6; }
.bcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price__now { font-family: var(--font-h); font-size: 18px; font-weight: 400; color: var(--store-text); white-space: nowrap; }
.price del { font-size: 13px; color: var(--muted); white-space: nowrap; }
.price--lg .price__now { font-size: 30px; font-weight: 300; }
.price--lg del { font-size: 17px; }
.bcard__btns { display: flex; gap: 6px; }

/* أشكال البطاقة */
body[data-card-style="framed"] .bcard { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; background: var(--store-bg); }
body[data-card-style="framed"] .bcard__media { background: var(--mint); }
body[data-card-style="minimal"] .bcard__media { background: none; padding: 0; aspect-ratio: auto; }
body[data-card-style="minimal"] .bcard__img img { border-radius: var(--r-sm); }

/* ---------- فسيفساء البانرات ---------- */
.mosaic { padding-bottom: 80px; }
.mosaic__grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.mosaic__col { display: flex; flex-direction: column; gap: var(--gap); }
.mban {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; min-height: 240px; padding: 30px;
	background: var(--mint); border-radius: var(--r-sm);
}
.mban__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.mban__eb { font-size: 13px; color: var(--muted); }
.mban__title { display: block; margin: 4px 0 12px; font-family: var(--font-h); font-size: 24px; font-weight: 300; line-height: 1.35; color: var(--store-text); }
.mban img { position: relative; z-index: 1; transition: transform .4s ease; }
.mban:hover img { transform: scale(1.04); }
.mban::before { content: ""; position: absolute; z-index: 0; border-radius: 50%; background: var(--mint-2); aspect-ratio: 1; }
/* القصير: النصّ في جهة، والصورة في الركن المقابل */
.mosaic__col:nth-child(odd) > .mban:first-child,
.mosaic__col:nth-child(2) > .mban:last-child { padding-inline-end: 46%; }
.mosaic__col:nth-child(odd) > .mban:first-child img,
.mosaic__col:nth-child(2) > .mban:last-child img { position: absolute; bottom: -8px; inset-inline-end: 0; width: 50%; }
.mosaic__col:nth-child(odd) > .mban:first-child::before,
.mosaic__col:nth-child(2) > .mban:last-child::before { width: 44%; bottom: -12%; inset-inline-end: 4%; }
/* الطويل: نصٌّ في الوسط وصورةٌ في دائرة */
.mosaic__col:nth-child(odd) > .mban:last-child,
.mosaic__col:nth-child(2) > .mban:first-child { min-height: 456px; align-items: center; text-align: center; justify-content: space-between; }
.mosaic__col:nth-child(odd) > .mban:last-child .mban__text,
.mosaic__col:nth-child(2) > .mban:first-child .mban__text { align-items: center; }
.mosaic__col:nth-child(odd) > .mban:last-child img,
.mosaic__col:nth-child(2) > .mban:first-child img { width: 78%; margin-top: auto; }
.mosaic__col:nth-child(odd) > .mban:last-child::before,
.mosaic__col:nth-child(2) > .mban:first-child::before { width: 62%; bottom: 7%; inset-inline-start: 19%; }
.mosaic__col:nth-child(1) > .mban:last-child { flex-direction: column-reverse; }
.mosaic__col:nth-child(1) > .mban:last-child img { margin: 0 0 auto; }
.mosaic__col:nth-child(1) > .mban:last-child::before { bottom: auto; top: 7%; }

/* ---------- الكتاب المميّز ---------- */
.feat { padding: 84px 0; background: var(--pale); }
.feat__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 56px; align-items: start; }
.feat__items, .fbook { display: contents; }
.feat__eyebrow { grid-column: 1; grid-row: 1; font-size: 14px; font-weight: 700; color: var(--store-primary-dark); }
.fbook__text { grid-column: 1; grid-row: 2; }
.timer { grid-column: 1; grid-row: 3; margin-top: 30px; }
.fbook__media { grid-column: 2; grid-row: 1 / 4; align-self: center; }
.fbook__title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 300; margin-top: 6px; }
.fbook__author { margin-top: 4px; color: var(--muted); }
.fbook__rate { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fbook__rate .stars .i { width: 15px; height: 15px; }
.fbook__desc { max-width: 520px; margin-top: 14px; color: var(--muted); }
.fbook__buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 24px; }
.fbook__buy .price { margin-inline-end: 6px; }
.fbook__media { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.fbook__media::before { content: ""; position: absolute; inset: 5%; border-radius: 50%; background: var(--mint-2); }
.fbook__media a { position: relative; width: 38%; }
.fbook__media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transform: rotate(-5deg); box-shadow: 0 34px 50px -22px rgba(30, 40, 44, .55); }
.fbook__media .type-dot { top: 14%; inset-inline-end: 22%; }
.fbook__media .bcard__badges { top: 14%; inset-inline-start: 22%; }
.timer__label { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.timer__units { display: flex; align-items: flex-start; gap: 10px; }
.timer__u { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.timer__u b {
	width: 62px; height: 62px; border-radius: 50%; background: var(--store-bg); box-shadow: 0 8px 20px -14px rgba(30, 40, 44, .5);
	display: grid; place-items: center; font-family: var(--font-h); font-size: 22px; font-weight: 300;
}
.timer__u small { font-size: 12px; color: var(--muted); }
.timer__sep { line-height: 62px; color: var(--muted); }

/* ---------- التبويبات ---------- */
.tabs { display: flex; gap: 6px 26px; flex-wrap: wrap; }
.tab { padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; font-size: 15px; color: var(--muted); }
.tab:hover { color: var(--store-text); }
.tab[aria-selected="true"] { color: var(--store-text); border-bottom-color: var(--store-text); }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

/* ---------- البانر العريض ---------- */
.wban__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.wban { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 300px; padding: 40px; border-radius: var(--r-sm); background: var(--mint); }
.wban img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wban:hover img { transform: scale(1.03); }
.wban__text { max-width: 46%; display: flex; flex-direction: column; align-items: flex-start; }
.wban__title { display: block; margin: 4px 0 14px; font-family: var(--font-h); font-size: 28px; font-weight: 300; line-height: 1.3; color: var(--store-text); }
.wban .mban__eb { color: var(--store-text); }

/* ---------- التصنيفات والمؤلّفون ---------- */
.cat { display: block; text-align: center; }
.cat__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--mint); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__name { display: block; margin-top: 14px; font-family: var(--font-h); font-size: 18px; }
.cat__n { display: block; font-size: 13px; color: var(--muted); }
.auth { display: block; text-align: center; }
.auth__ph { position: relative; display: block; width: min(170px, 100%); aspect-ratio: 1; margin: 0 auto 16px; }
.auth__ph::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint-2); translate: 10px 10px; }
.auth__ph img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.auth__name { display: block; font-family: var(--font-h); font-size: 17px; }
.auth__n { display: block; font-size: 13px; color: var(--muted); }

/* ---------- آراء القرّاء ---------- */
.revs { position: relative; overflow: hidden; padding: 84px 0; background: var(--pale); }
.revs::before, .revs::after { content: ""; position: absolute; border-radius: 50%; background: var(--mint-2); }
.revs::before { width: 520px; aspect-ratio: 1; inset-inline-end: -170px; top: -60px; }
.revs::after { width: 190px; aspect-ratio: 1; inset-inline-start: 7%; bottom: -100px; }
.revs__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start; }
.revs__intro p { margin: 10px 0 24px; color: var(--muted); }
.rev { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 34px; background: var(--store-bg); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.rev__top { display: flex; align-items: center; justify-content: space-between; }
.rev__q { width: 34px; height: 34px; fill: var(--store-primary); }
.rev .stars .i { width: 15px; height: 15px; }
.rev__text { margin: 0; font-size: 16px; line-height: 1.95; color: var(--store-text); }
.rev__by { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.rev__av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--mint-2); color: var(--store-primary-dark); font-family: var(--font-h); font-size: 18px; }
.rev__by b { display: block; font-weight: 500; line-height: 1.4; }
.rev__by small { font-size: 13px; color: var(--muted); }

/* ---------- المقالات ---------- */
.posts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap); }
.post { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--store-bg); }
.post__img { display: none; }
.post__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.post__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.post__meta .i { width: 15px; height: 15px; color: var(--store-primary); }
.post__title { margin: 8px 0 18px; font-size: 19px; font-weight: 400; line-height: 1.5; }
.post__title a:hover { color: var(--store-primary-dark); }
.post__ex { display: none; }
.post .link-go { margin-top: auto; }
.posts > .post:first-child { grid-row: span 2; min-height: 460px; border: 0; justify-content: flex-end; background: var(--store-primary-dark); }
.posts > .post:first-child .post__img { display: block; position: absolute; inset: 0; }
.posts > .post:first-child .post__img img { width: 100%; height: 100%; object-fit: cover; }
.posts > .post:first-child .post__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 34, 36, .86), rgba(28, 34, 36, .1) 70%); }
.posts > .post:first-child .post__body { position: relative; flex: none; padding: 30px; color: #FFFFFF; }
.posts > .post:first-child .post__meta, .posts > .post:first-child .post__meta .i,
.posts > .post:first-child .post__title, .posts > .post:first-child .link-go { color: #FFFFFF; }
.posts > .post:first-child .post__title { font-size: 26px; font-weight: 300; margin-bottom: 10px; }
.posts > .post:first-child .post__ex { display: block; margin-bottom: 16px; color: rgba(255, 255, 255, .9); font-size: 15px; }
/* صفّ مقالاتٍ متساوية (المدوّنة والمقال) */
.posts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts--row > .post:first-child { grid-row: auto; min-height: 0; border: 1px solid var(--line); justify-content: flex-start; background: var(--store-bg); }
.posts--row > .post .post__img, .posts--row > .post:first-child .post__img { display: block; position: static; aspect-ratio: 16 / 10; overflow: hidden; }
.posts--row > .post .post__img img { width: 100%; height: 100%; object-fit: cover; }
.posts--row > .post:first-child .post__img::after { display: none; }
.posts--row > .post:first-child .post__body { flex: 1; padding: 22px; color: inherit; }
.posts--row > .post:first-child .post__meta, .posts--row > .post:first-child .post__title, .posts--row > .post:first-child .link-go { color: var(--store-text); }
.posts--row > .post:first-child .post__meta { color: var(--muted); }
.posts--row > .post:first-child .post__meta .i { color: var(--store-primary); }
.posts--row > .post:first-child .post__title { font-size: 19px; font-weight: 400; margin-bottom: 18px; }
.posts--row > .post .post__ex, .posts--row > .post:first-child .post__ex { display: block; margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
/* شبكة المدوّنة: المقال الأوّل كبيرًا والبقيّة نصّيّة */
.posts--blog > .post:nth-child(n+6) .post__ex { display: block; margin: -8px 0 16px; color: var(--muted); font-size: 14px; }

/* ---------- رأس الصفحات الداخليّة ---------- */
.phead { position: relative; overflow: hidden; padding: 46px 0 50px; background: var(--mint); }
.phead::after { content: ""; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; background: var(--store-bg); opacity: .55; inset-inline-end: -90px; top: -170px; }
.phead > .container { position: relative; z-index: 1; }
.phead__title { margin-top: 8px; font-size: clamp(30px, 4vw, 46px); font-weight: 300; }
.phead__sub { margin-top: 4px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--store-primary-dark); }
.crumbs [aria-current] { color: var(--store-text); }

/* ---------- التصنيف ---------- */
.strip { padding: 40px 0 0; }
.strip .track { --cols: 6; }
.strip .cat__name { font-size: 16px; margin-top: 10px; }
.lay { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding: 48px 0 84px; }
.filters__head { display: none; }
.fgroup { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-of-type { padding-top: 0; }
.fgroup h2 { margin-bottom: 10px; font-size: 18px; font-weight: 400; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; cursor: pointer; }
.fcheck input { width: 17px; height: 17px; accent-color: var(--store-primary); }
.fcheck .n { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.frange { display: flex; align-items: center; gap: 8px; }
.frange input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.filters .btn { margin-top: 20px; }
.tbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.tbar__count { color: var(--muted); font-size: 15px; }
.tbar__right { display: flex; align-items: center; gap: 10px; }
.select { height: 42px; padding: 0 16px 0 36px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--store-bg); }
.tbar__filter { display: none; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 54px; }
.pager a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; }
.pager a:hover { border-color: var(--store-primary); }
.pager a[aria-current="page"] { background: var(--store-primary); border-color: var(--store-primary); color: var(--on-primary); }
.pager span { color: var(--muted); }

/* ---------- صفحة الكتاب ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; padding: 44px 0 70px; }
.gal { position: relative; }
.gal__stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--pale); border-radius: var(--r); overflow: hidden; }
.gal__stage::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: var(--mint-2); }
.gal__front, .gal__back { position: relative; grid-area: 1 / 1; width: 46%; transition: transform .45s ease, opacity .45s ease; }
.gal__front img, .gal__back img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 30px 46px -22px rgba(30, 40, 44, .55); }
.gal__back { transform: translateX(-34%) rotate(-8deg) scale(.86); opacity: .9; }
.gal__front { z-index: 1; transform: translateX(8%) rotate(3deg); }
.gal.is-back .gal__back { z-index: 2; transform: translateX(-8%) rotate(-3deg); opacity: 1; }
.gal.is-back .gal__front { z-index: 1; transform: translateX(30%) rotate(8deg) scale(.86); opacity: .9; }
.gal__flip { position: absolute; bottom: 18px; inset-inline-start: 50%; translate: 50% 0; z-index: 3; }
.gal .type-dot { top: 20px; inset-inline-end: 20px; width: 38px; height: 38px; }
.gal .type-dot .i { width: 20px; height: 20px; }
.gal .bcard__badges { top: 20px; inset-inline-start: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: var(--pill); background: var(--mint); color: var(--store-primary-dark); font-size: 13px; font-weight: 500; }
.pdp__title { margin-top: 12px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; }
.pdp__by { margin-top: 4px; color: var(--muted); }
.pdp__by a { color: var(--store-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.pdp__rate { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.pdp__rate .stars .i { width: 16px; height: 16px; }
.pdp__rate a { text-decoration: underline; text-underline-offset: 3px; }
.pdp__price { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp__qd { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-sm); background: var(--mint); color: var(--store-primary-dark); font-size: 14px; }
.pdp__qd .i { width: 16px; height: 16px; }
.pdp__short { margin-top: 16px; color: var(--muted); }
.stock { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: #2F6B4F; }
.stock .i { width: 16px; height: 16px; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.buy .btn--primary { flex: 1 1 200px; min-height: 52px; }
.buy .round { width: 52px; height: 52px; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; }
.qty button:hover { background: var(--mint); }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm button { width: 34px; font-size: 17px; }
.qty--sm input { width: 32px; }
.buy-now { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; }
.fact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.fact .i { width: 22px; height: 22px; color: var(--store-primary); }
.fact dt { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fact dd { margin: 0; font-weight: 500; line-height: 1.5; }
.pinfo { padding-bottom: 72px; }
.ptabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ptab { padding: 14px 0; margin-bottom: -1px; border: 0; border-bottom: 1px solid transparent; background: none; font-family: var(--font-h); font-size: 19px; font-weight: 300; color: var(--muted); white-space: nowrap; }
.ptab[aria-selected="true"] { color: var(--store-text); border-bottom-color: var(--store-text); }
.ppanel { padding-top: 30px; }
.prose { max-width: 760px; }
.prose p + p { margin-top: 14px; }
.spec { width: 100%; max-width: 760px; border-collapse: collapse; }
.spec th, .spec td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 400; }
.spec th { width: 40%; color: var(--muted); }
.rsum { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.rsum__score { padding: 26px; border-radius: var(--r); background: var(--mint); text-align: center; }
.rsum__score b { display: block; font-family: var(--font-h); font-size: 50px; font-weight: 300; line-height: 1.1; }
.rsum__score .stars .i { width: 17px; height: 17px; }
.rsum__score p { font-size: 14px; color: var(--muted); }
.rlist { display: flex; flex-direction: column; }
.ritem { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ritem:first-child { padding-top: 0; }
.ritem__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ritem__head time { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.ritem__head b { font-weight: 500; }
.rform { margin-top: 30px; padding: 26px; border-radius: var(--r); background: var(--pale); }
.rform h3 { font-size: 21px; }
.rform p { font-size: 14px; color: var(--muted); }
.rform__stars { display: flex; gap: 4px; margin: 14px 0; }
.rform__stars button { border: 0; background: none; padding: 2px; color: var(--gold); }
.rform__stars .i { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.rform textarea { width: 100%; min-height: 110px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--store-bg); resize: vertical; }
.rform .btn { margin-top: 12px; }
.related { padding: 0 0 80px; }

/* ---------- المؤلّف ---------- */
.ahead { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 50px; align-items: center; }
.ahead__ph { position: relative; aspect-ratio: 1; }
.ahead__ph::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--store-bg); translate: 14px 14px; }
.ahead__ph img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ahead__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ahead__bio { max-width: 720px; margin-top: 16px; color: var(--store-text); }

/* ---------- السلّة ---------- */
.cartlay { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; padding: 44px 0 80px; }
.ship { margin-bottom: 26px; padding: 16px 20px; border-radius: var(--r-sm); background: var(--mint); }
.ship__text { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ship__text .i { width: 26px; height: 26px; color: var(--store-primary-dark); stroke-width: 1.8; }
.ship__track { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--store-bg); overflow: hidden; }
.ship__fill { display: block; height: 100%; border-radius: 3px; background: var(--store-primary); }
.ship.is-free .ship__text { color: var(--store-primary-dark); font-weight: 500; }
[data-slot="cart.free_shipping_left"][hidden] { display: none !important; }
.ctable { width: 100%; border-collapse: collapse; }
.ctable th { padding: 0 0 14px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14px; font-weight: 500; color: var(--muted); }
.ctable td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable td + td, .ctable th + th { padding-inline-start: 16px; }
.citem { display: flex; align-items: center; gap: 16px; }
.citem__img { flex: none; width: 72px; }
.citem__img img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; box-shadow: var(--cover-shadow); }
.citem__t { font-family: var(--font-h); font-size: 16px; font-weight: 400; line-height: 1.5; }
.citem__a { font-size: 13px; color: var(--muted); }
.citem__type { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.citem__type .type-dot { position: static; width: 22px; height: 22px; }
.citem__type .type-dot .i { width: 12px; height: 12px; }
.ctotal { font-family: var(--font-h); font-size: 17px; white-space: nowrap; }
.cunit { white-space: nowrap; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.coupon { display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.csum { position: sticky; top: 108px; padding: 28px; border-radius: var(--r); background: var(--mint); }
.csum h2 { margin-bottom: 18px; font-size: 24px; }
.csum__row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; }
.csum__row span:first-child { color: var(--muted); }
.csum__total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-h); font-size: 20px; }
.csum .btn { margin-top: 18px; }
.csum__note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.cempty { padding: 70px 20px; text-align: center; }
.cempty__ic { position: relative; width: 140px; aspect-ratio: 1; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--store-primary); }
.cempty__ic .i { width: 54px; height: 54px; stroke-width: 1.2; }
.cempty h2 { font-size: 28px; }
.cempty p { margin: 8px 0 22px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { padding: 56px 0 70px; text-align: center; }
.nf__art { position: relative; width: min(400px, 82vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.nf__art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); }
.nf__art::after { content: ""; position: absolute; top: 4%; inset-inline-start: 0; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--store-primary) 45%, transparent); }
.nf__code { position: relative; font-family: var(--font-h); font-size: clamp(96px, 16vw, 168px); font-weight: 200; line-height: 1; color: var(--store-primary-dark); }
.nf h1 { margin-top: 30px; font-size: clamp(26px, 3vw, 36px); }
.nf__p { max-width: 520px; margin: 10px auto 26px; color: var(--muted); }
.nf__search { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.nf__home { margin-top: 18px; }
.faq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 50px; align-items: start; }
.faq__intro p { margin-top: 10px; color: var(--muted); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--font-h); font-size: 18px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq__sign::after { rotate: 90deg; transition: rotate .2s; }
.faq__item[open] .faq__sign::after { rotate: 0deg; }
.faq__item p { padding: 0 0 18px; color: var(--muted); }

/* ---------- المقال ---------- */
.article { padding: 44px 0 60px; }
.article__head { max-width: 780px; margin: 0 auto; text-align: center; }
.article__head h1 { margin-top: 12px; font-size: clamp(30px, 4vw, 46px); font-weight: 300; }
.article__meta { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.article__meta .i { width: 16px; height: 16px; color: var(--store-primary); }
.article__img { max-width: 1000px; margin: 34px auto 0; border-radius: var(--r); overflow: hidden; }
.article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body { max-width: 720px; margin: 40px auto 0; font-size: 17px; line-height: 2; }
.article__body p + p, .article__body h2 + p { margin-top: 14px; }
.article__body h2 { margin-top: 34px; font-size: 26px; }
.article__body blockquote { position: relative; margin: 30px 0; padding: 24px 28px; border-radius: var(--r-sm); background: var(--mint); font-family: var(--font-h); font-size: 20px; font-weight: 300; line-height: 1.8; }

/* ---------- التذييل ---------- */
.ftr { margin-top: 0; padding-top: 72px; background: var(--store-primary-dark); color: #FFFFFF; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1.15fr .8fr 1.1fr; gap: 40px; }
.ftr .brand__name { color: #FFFFFF; }
.ftr .brand img { background: #FFFFFF; }
.ftr__about > p { margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.ftr__label { display: block; margin-top: 22px; font-size: 14px; font-weight: 500; }
.ftr__nl { display: flex; margin-top: 8px; border-radius: var(--r-sm); background: #FFFFFF; overflow: hidden; }
.ftr__nl input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; background: none; color: #33393B; }
.ftr__nl input::placeholder { color: #6A7072; }
.ftr__nl button { width: 50px; border: 0; background: none; color: var(--store-primary-dark); display: grid; place-items: center; }
.ftr__offer { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .86); }
.ftr__h { margin-bottom: 20px; font-size: 20px; font-weight: 400; color: #FFFFFF; }
.ftr__contact li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 15px; color: rgba(255, 255, 255, .88); }
.ftr__contact .i { width: 18px; height: 18px; margin-top: 4px; }
.ftr__links li { padding: 4px 0; }
.ftr__links a { font-size: 15px; color: rgba(255, 255, 255, .88); }
.ftr a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.ftr__cats { columns: 2; column-gap: 20px; }
.ftr__mid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.ftr__social { display: flex; gap: 10px; }
.ftr__social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--store-primary-dark); }
.ftr__social a:hover { text-decoration: none; opacity: .9; }
.ftr__social .i { width: 17px; height: 17px; }
.ftr__pay { font-size: 14px; color: rgba(255, 255, 255, .86); }
.ftr__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: rgba(255, 255, 255, .86); }
.ftr__bottom nav { display: flex; gap: 22px; }

/* ---------- صفحة المكوّنات ---------- */
.kit { padding: 48px 0; border-bottom: 1px solid var(--line); }
.kit__h { margin-bottom: 22px; font-size: 24px; }
.kit__h code { font-family: ui-monospace, monospace; font-size: 13px; color: var(--muted); }
.kit__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.kit__note { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.kit .bgrid { --per-row: 4; }
.kit__lists { padding: 30px; border-radius: var(--r); }
.kit__lists::before { display: none; }

/* ==========================================================================
   العروض
   ========================================================================== */
@media (max-width: 1180px) {
	.hdr__help { display: none; }
	.hdr__nav > ul { gap: 20px; }
}
@media (max-width: 1023px) {
	body { --per-row: 3 !important; }
	.track--authors { --cols: 4; }
	.track--recent { --cols: 4; }
	.strip .track { --cols: 4; }
	.sec { padding: 64px 0; }
	.sec--tight { padding: 0 0 64px; }
	.sec--top0 { padding-top: 0; }
	.trust__grid { grid-template-columns: repeat(2, 1fr); }
	.mosaic__grid { grid-auto-flow: row; grid-template-columns: 1fr; }
	.mosaic__col { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
	.mosaic__col > .mban { min-height: 300px !important; }
	.feat__grid { column-gap: 32px; }
	.revs__grid { grid-template-columns: 1fr; gap: 26px; }
	.revs__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 20px; }
	.revs__intro p { margin: 0; flex: 1 1 100%; order: 2; }
	.revs__ctrl { order: 1; }
	.posts { grid-template-columns: 1fr 1fr; }
	.posts > .post:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
	.posts--row { grid-template-columns: 1fr 1fr; }
	.posts--row > .post:first-child { grid-column: auto; min-height: 0; }
	.lay { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
	.filters { display: none; }
	.filters.is-open { display: block; position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 120; width: min(340px, 88vw); overflow-y: auto; padding: 20px; background: var(--store-bg); box-shadow: var(--shadow); }
	.filters.is-open .filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
	.tbar__filter { display: inline-flex; }
	.pdp { grid-template-columns: 1fr; gap: 36px; }
	.gal { max-width: 560px; width: 100%; margin-inline: auto; }
	.cartlay { grid-template-columns: 1fr; }
	.csum { position: static; }
	.ftr__grid { grid-template-columns: 1fr 1fr; }
	.faq { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
	.hdr__nav { display: none; }
	.hdr__menu { display: grid; }
	.hdr__row { gap: 10px; min-height: 68px; }
	.hide-sm { display: none; }
	.brand img { width: 36px; height: 36px; }
	.brand__name { font-size: 19px; }
	.hdr__tools { gap: 0; }
	.hero__arrow { display: none; }
	.slide__in { grid-template-columns: 1fr; min-height: 0; padding: 44px 0 70px; text-align: center; gap: 16px; }
	.slide__desc { margin-inline: auto; }
	.slide__art { max-width: 340px; }
	.hero__dots { inset-inline-start: 50%; translate: 50% 0; }
	.feat__grid { grid-template-columns: 1fr; grid-template-rows: none; }
	.feat__eyebrow, .fbook__text, .timer, .fbook__media { grid-column: 1; grid-row: auto; }
	.fbook__media { order: 2; max-width: 360px; margin-top: 10px; }
	.feat__eyebrow { order: 1; }
	.fbook__text { order: 3; }
	.timer { order: 4; }
	.wban__grid { grid-template-columns: 1fr; }
	.ahead { grid-template-columns: 1fr; gap: 26px; text-align: center; }
	.ahead__ph { width: 190px; margin: 0 auto; }
	.ahead__meta { justify-content: center; }
	.ahead__bio { margin-inline: auto; }
	.rsum { grid-template-columns: 1fr; gap: 24px; }
	.ctable thead { display: none; }
	.ctable, .ctable tbody, .ctable tr, .ctable td { display: block; }
	.ctable tr { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
	.ctable td { padding: 0 !important; border: 0; }
	.ctable td:first-child { grid-column: 1 / -1; padding-inline-end: 44px !important; }
	.ctable td.cunit { display: none; }
	.ctable td:last-child { position: absolute; top: 18px; inset-inline-end: 0; }
	.ctable td.ctotal { align-self: center; }
}
@media (max-width: 640px) {
	body { --per-row: 2 !important; --gap: 14px; }
	.container { width: calc(100% - 32px); }
	.sec { padding: 52px 0; }
	.sec--tight { padding: 0 0 52px; }
	.sec--top0 { padding-top: 0; }
	.shead { margin-bottom: 24px; }
	.track--cats { --cols: 2; }
	.track--authors { --cols: 2.4; }
	.track--recent { --cols: 2.4; }
	.strip .track { --cols: 3; }
	.track--revs { --cols: 1; }
	.bgrid { row-gap: 30px; }
	.bcard__media { padding: 12% 16%; }
	.bcard__title { font-size: 15px; }
	.price__now { font-size: 16px; }
	.trust { padding: 40px 0; }
	.trust__grid { grid-template-columns: 1fr; gap: 22px; }
	.mosaic { padding-bottom: 52px; }
	.mosaic__col { display: flex; }
	.mosaic__col > .mban { min-height: 250px !important; }
	.mosaic__col:nth-child(odd) > .mban:last-child, .mosaic__col:nth-child(2) > .mban:first-child { min-height: 400px !important; }
	.mban__title { font-size: 22px; }
	.feat { padding: 56px 0; }
	.timer__u b { width: 54px; height: 54px; font-size: 19px; }
	.timer__sep { line-height: 54px; }
	.timer__units { gap: 6px; }
	.wban { min-height: 230px; padding: 26px; }
	.wban__text { max-width: 62%; }
	.wban__title { font-size: 22px; }
	.revs { padding: 56px 0; }
	.rev { padding: 26px; }
	.posts, .posts--row { grid-template-columns: 1fr; }
	.posts > .post:first-child { min-height: 340px; }
	.posts > .post:first-child .post__body { padding: 22px; }
	.posts > .post:first-child .post__title { font-size: 22px; }
	.phead { padding: 34px 0 38px; }
	.tbar__right { width: 100%; justify-content: space-between; }
	.facts { grid-template-columns: 1fr; }
	.buy .btn--primary { flex-basis: 100%; order: 3; }
	.coupon { flex-basis: 100%; }
	.ftr { padding-top: 52px; }
	.ftr__grid { grid-template-columns: 1fr; gap: 32px; }
	.nf__search { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- إضافات ---------- */
.crumbbar { padding: 16px 0; border-bottom: 1px solid var(--line); background: var(--pale); }
.fact dl { margin: 0; }

/* ==========================================================================
   الإصدار الثاني: إيقاع الرئيسيّة، والقوائم المدمجة، وصفحات الكتاب، والتصنيف
   ========================================================================== */

/* المسافات: البانران العريضان بين قسمين لهما مسافتهما، فلا تتضاعف المسافة */
.sec.sec--tight { padding: 0; }
.pinfo { padding-bottom: 0; }
/* ظلّ بطاقات الآراء يبقى داخل حدود الصفّ المتمرّر فلا يظهر له حدٌّ مستطيل */
.track--revs { padding: 12px 14px 40px; margin: -12px -14px -10px; }
.rev { box-shadow: 0 16px 30px -20px rgba(36, 48, 52, .34); }
.trust { padding: 44px 0; }
@media (max-width: 1180px) { .hero__arrow { display: none; } }

/* صفوف الكتب: لا صفّ نصف فارغ مهما كان عدد الكتب في الصفّ */
@media (min-width: 1024px) {
	body[data-books-per-row="3"] .bgrid--fill > :nth-child(n+7),
	body[data-books-per-row="5"] .bgrid--fill > :nth-child(n+6),
	body[data-books-per-row="6"] .bgrid--fill > :nth-child(n+7) { display: none; }
	.bgrid--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body[data-books-per-row="5"] .lay .bgrid,
	body[data-books-per-row="6"] .lay .bgrid { --per-row: 4; }
}
@media (min-width: 641px) and (max-width: 1023px) {
	.bgrid--fill > :nth-child(n+7),
	.bgrid--row > :nth-child(n+4) { display: none; }
}
.track--works { --cols: var(--per-row); }
.bcard .mini:disabled { opacity: .45; cursor: not-allowed; }
.bcard .mini:disabled:hover { background: var(--store-bg); border-color: var(--line); color: var(--store-text); }

/* المقالات الصغيرة: سطران من المقتطف بدل الفراغ تحت العنوان */
.posts > .post:nth-child(n+2) .post__ex {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	margin: -8px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7;
}

/* ثلاثة أعمدة مدمجة على النعناعيّ */
.lists { position: relative; overflow: hidden; padding: 72px 0; background: var(--mint); }
.lists::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--mint-2); inset-inline-start: -120px; top: -150px; }
.lists__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.lists__col { display: flex; flex-direction: column; padding: 26px 26px 22px; background: var(--store-bg); border-radius: var(--r); }
.lists__head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.lists__title { font-size: 24px; font-weight: 300; }
.lists__items { display: flex; flex-direction: column; }
.lists__col > .link-go { margin-top: 14px; align-self: flex-start; }
.lcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lcard:last-child { border-bottom: 0; }
.lcard__img { position: relative; display: block; align-self: start; }
.lcard__img img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; box-shadow: 0 10px 18px -10px rgba(30, 40, 44, .5); }
.lcard .type-dot { top: -8px; inset-inline-end: -8px; width: 24px; height: 24px; }
.lcard .type-dot .i { width: 13px; height: 13px; }
.lcard__body { display: flex; flex-direction: column; min-width: 0; }
.lcard .bcard__title { margin-top: 0; font-size: 15px; }
.lcard .bcard__rate { margin-top: 2px; }
.lcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.lcard .price__now { font-size: 17px; }

/* صفحة الكتاب: اختيار الصيغة وصندوق التوصيل والدفع */
@media (min-width: 1024px) { .pdp .gal { position: sticky; top: 100px; align-self: start; } }
/* كتاب الأسبوع: السعر تحت التقييم مباشرةً، والوصف بعد زرّ الشراء */
.fbook__buy { margin-top: 14px; }
.fbook__desc { margin-top: 18px; }
.fmts { margin-top: 20px; }
.fmts__label { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.fmts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fmt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s; }
.fmt:hover { border-color: var(--store-primary); }
.fmt.is-current { border-color: var(--store-primary); background: var(--mint); }
.fmt .type-dot { position: static; width: 26px; height: 26px; margin-bottom: 4px; }
.fmt .type-dot .i { width: 14px; height: 14px; }
.fmt__name { font-weight: 500; line-height: 1.4; }
.fmt__price { font-size: 14px; color: var(--muted); }
.fmt.is-current .fmt__price { color: var(--store-primary-dark); }
.assure { display: grid; gap: 10px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--pale); }
.assure li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.6; }
.assure .i { width: 24px; height: 24px; color: var(--store-primary); stroke-width: 1.5; }

/* التصنيف: طريقة العرض والتصفية المختارة */
.vswitch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--pill); }
.vswitch button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.vswitch button[aria-pressed="true"] { background: var(--store-primary); color: var(--on-primary); }
.afilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -14px 0 26px; }
.afilters__t { font-size: 14px; color: var(--muted); }
.chip--x { border: 0; cursor: pointer; min-height: 32px; }
.chip--x .i { width: 14px; height: 14px; stroke-width: 2; }
.chip--x:hover { background: var(--mint-2); }
.afilters__clear { border: 0; background: none; padding: 4px 6px; font-size: 13px; font-weight: 700; color: var(--store-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
/* أعمدة التصنيف ضيّقة بجانب التصفية: السعر في سطر والزرّان تحته في كلّ البطاقات، فتتساوى */
.bgrid--list:not(.is-list) .bcard__btns { flex-basis: 100%; }
.bgrid--list.is-list { grid-template-columns: 1fr; row-gap: 0; }
.bgrid--list.is-list > .bcard { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bgrid--list.is-list .bcard__media { padding: 10% 14%; }
.bgrid--list.is-list .bcard__qv-t { display: none; }
.bgrid--list.is-list .bcard__qv { inset-inline: auto 8px; width: 34px; min-height: 34px; padding: 0; }
.bgrid--list.is-list .bcard__body { padding-top: 0; }
.bgrid--list.is-list .bcard__title { font-size: 19px; }
.bgrid--list.is-list .bcard__foot { margin-top: 12px; justify-content: flex-start; gap: 18px; }

@media (max-width: 1023px) {
	.lists__grid { grid-template-columns: 1fr 1fr; }
	.lists__col:last-child { grid-column: 1 / -1; }
	.lists__col:last-child .lists__items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
	.lists__col:last-child .lcard { border-bottom: 0; }
}
@media (max-width: 640px) {
	.mini { width: 40px; height: 40px; }
	.vswitch button { width: 40px; height: 40px; }
	.vswitch { padding: 0; }
	.vswitch { flex: none; }
	.tbar__right .select { flex: 1 1 auto; min-width: 0; padding-inline-start: 12px; }
	.tbar__right .tbar__filter { flex: none; padding: 0 14px; }
	.trust { padding: 16px 0; }
	.trust__grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.trust__grid::-webkit-scrollbar { display: none; }
	.trust__item { flex: 0 0 76%; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); scroll-snap-align: start; }
	.trust__item .i { width: 34px; height: 34px; }
	.trust__h { font-size: 16px; }
	.trust__item p { margin-top: 0; font-size: 13px; line-height: 1.5; }
	.mosaic__grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.mosaic__grid::-webkit-scrollbar { display: none; }
	.mosaic__col { display: contents; }
	.mosaic__grid .mosaic__col > .mban.mban { flex: 0 0 80%; min-height: 210px !important; padding: 24px; padding-inline-end: 44%; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: start; scroll-snap-align: start; }
	.mosaic__grid .mosaic__col > .mban.mban .mban__text { align-items: flex-start; }
	.mosaic__grid .mosaic__col > .mban.mban img { position: absolute; bottom: -6px; inset-inline-end: 0; width: 48%; margin: 0; }
	.mosaic__grid .mosaic__col > .mban.mban::before { width: 42%; top: auto; bottom: -12%; inset-inline: auto 4%; }
	.lists { padding: 52px 0; }
	.lists__grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.lists__grid::-webkit-scrollbar { display: none; }
	.lists__col, .lists__col:last-child { flex: 0 0 86%; padding: 20px; scroll-snap-align: start; }
	.lists__col:last-child .lists__items { display: flex; }
	.lists__col:last-child .lcard { border-bottom: 1px solid var(--line); }
	.lists__col:last-child .lcard:last-child { border-bottom: 0; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact { padding: 10px 12px; gap: 10px; }
	.bcard__btns { flex-basis: 100%; }
	.fmts__list { gap: 8px; }
	.fmt { padding: 10px; }
	.afilters { margin-top: -16px; }
	.bgrid--list.is-list > .bcard { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
	.bgrid--list.is-list .bcard__title { font-size: 16px; }
	.bgrid--list.is-list .type-dot { top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; }
	.bgrid--list.is-list .bcard__badges { top: 8px; inset-inline-start: 8px; }
	.bgrid--list.is-list .badge { padding: 3px 5px; font-size: 11px; }
}

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