/* =====================================================================
   رحلة (rihla) — قالب متجر كتب لمنصّة «ناشر»
   مأخوذ عن الرئيسيّة الأولى من «Viatour»: واجهةٌ بصورةٍ واحدة مستديرة
   بحافّةٍ سفليّة متموّجة، ودوائر تصنيفات، وشبكة بطاقاتٍ مؤطّرة 4×2،
   وبانرٌ نصفيّ كريميّ، وفسيفساء، وتذييلٌ في صندوقٍ كريميّ.
   ===================================================================== */

:root {
	/* ألوان المتجر: يختارها الناشر (القاعدة 4) */
	--store-primary: #EB662B;
	--store-primary-dark: #CE5A25;
	--store-accent: #4A43C4;
	--store-bg: #FFFFFF;
	--store-text: #05073C;

	/* محايدات ومشتقّات */
	--on-primary: #05073C;            /* نصّ الأزرار البرتقاليّة: الأبيض لا يبلغ 4.5 */
	--on-accent: #FFFFFF;
	--primary-ink: color-mix(in srgb, var(--store-primary-dark) 78%, #000);  /* نصٌّ ملوّن على الفاتح */
	--cream: color-mix(in srgb, var(--store-primary) 6%, #FFFFFF);
	--cream-2: color-mix(in srgb, var(--store-primary) 11%, #FFFFFF);
	--band: #F5F5F5;
	--muted: #5F6170;
	--line: #E4E4E7;
	--white: #FFFFFF;
	--star: #F5A623;
	--shadow: 0 10px 30px rgba(5, 7, 60, .08);
	--shadow-sm: 0 4px 14px rgba(5, 7, 60, .08);
	--radius: 12px;
	--radius-lg: 18px;
	--gap: 22px;
	--per-row: 4;
	--font: "Tajawal", system-ui, sans-serif;
}

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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 20px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- الأزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border-radius: var(--radius);
	border: 1.5px solid transparent; font-weight: 700; font-size: 15px;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	white-space: nowrap;
}
.btn-primary { background: var(--store-primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-outline { background: var(--white); color: var(--store-text); border-color: var(--store-text); }
.btn-outline:hover { background: var(--store-text); color: var(--white); }
.btn-accent { background: var(--store-accent); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 82%, #000); }
.btn-light { background: var(--white); color: var(--store-text); border-color: var(--line); }
.btn-light:hover { border-color: var(--store-text); }
.btn-pill { border-radius: 999px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--white); color: var(--store-text);
	transition: border-color .2s, background .2s; position: relative;
}
.icon-btn:hover { border-color: var(--store-text); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn[aria-pressed="true"] { color: var(--store-primary-dark); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
.see-all {
	display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px;
	color: var(--store-text); white-space: nowrap;
}
.see-all:hover { color: var(--primary-ink); }

/* ---------------------------------------------------------------- عنوان القسم */
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.sec-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.sec-sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.sec-head.center { justify-content: center; text-align: center; }
.band-gray { background: var(--band); }

/* ---------------------------------------------------------------- التقييم والسعر ودائرة النوع */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 14px; height: 14px; }
.stars .off { color: #D9D9DE; }
.rating-lg .stars .icon { width: 18px; height: 18px; }
.rating-lg { font-size: 15px; }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-weight: 700; font-size: 17px; color: var(--store-text); }
.price del { font-weight: 400; font-size: 13px; color: var(--muted); }
.price-lg { font-size: 30px; }
.price-lg del { font-size: 17px; }
.type-dot {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	color: #FFFFFF; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); flex: none;
}
.type-dot .icon { width: 17px; height: 17px; stroke-width: 2; }
.type-dot[data-type="print"] { background: #DB7056; }
.type-dot[data-type="ebook"] { background: #5675A3; }
.type-dot[data-type="audio"] { background: #986AB0; }
.type-dot[data-type="educational"] { background: #3f8f6b; }
.badge {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
	font-size: 12.5px; font-weight: 700;
}
.badge-sale { background: var(--store-primary); color: var(--on-primary); }
.badge-new { background: var(--store-accent); color: var(--on-accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--cream-2); color: var(--store-text); font-size: 13.5px; font-weight: 500; }
.pill-accent { background: var(--store-accent); color: var(--on-accent); }

/* ---------------------------------------------------------------- الرأس */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(5, 7, 60, .07); }
.hdr { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 42px; height: 42px; }
.brand-name { font-weight: 800; font-size: 22px; color: var(--store-text); letter-spacing: -.01em; }
.hdr-search { position: relative; flex: 1 1 260px; max-width: 340px; }
.hdr-search input {
	width: 100%; height: 44px; border: 0; background: transparent; padding: 0 34px 0 8px; font-size: 15px;
	border-radius: var(--radius);
}
.hdr-search input::placeholder { color: var(--muted); }
.hdr-search input:focus { background: var(--band); outline: none; }
.hdr-search button { position: absolute; inset-inline-start: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 4px; display: grid; }
.hdr-nav { margin-inline-start: auto; }
.hdr-nav > ul { display: flex; align-items: center; gap: 4px; }
.hdr-nav a, .hdr-nav .drop-btn {
	display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 12px; border-radius: 10px;
	border: 0; background: none; font-size: 15px; font-weight: 500;
}
.hdr-nav a:hover, .hdr-nav .drop-btn:hover { background: var(--band); }
.has-drop { position: relative; }
.drop-btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-drop.open .drop-btn .icon { transform: rotate(180deg); }
.drop {
	position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 240px; padding: 10px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-drop:hover .drop, .has-drop.open .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: flex; height: 40px; padding: 0 12px; border-radius: 8px; width: 100%; }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-actions .icon-btn { border-color: transparent; }
.hdr-actions .icon-btn:hover { background: var(--band); }
.count {
	position: absolute; top: 2px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
	background: var(--store-accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.cart-pill { min-height: 44px; padding: 0 18px; gap: 8px; }
.cart-pill .cart-num { background: var(--white); color: var(--store-text); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.menu-btn { border-color: transparent; }
.search-toggle, .cart-icon { display: none; }
.m-search { display: none; padding: 0 20px 14px; }
.m-search .field-wrap { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- الدرج الجانبيّ */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5, 7, 60, .45); opacity: 0; visibility: hidden; transition: .25s; z-index: 60; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(360px, 88vw); background: var(--white); z-index: 61;
	transform: translateX(100%); transition: transform .3s; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px;
	visibility: hidden;
}
.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; }
.drawer-nav > li > a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-sub a { padding: 6px 12px; border-radius: 999px; background: var(--band); font-size: 14px; }
.drawer-card { background: var(--cream); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.drawer-card small { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- الواجهة */
.hero-wrap { padding-top: 4px; }
.hero-shell { position: relative; }
.hero {
	position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1600 / 780;
	min-height: 520px; max-height: 700px; width: 100%; background: #2B2F55;
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.slide:first-child, .slider-ready .slide.is-active { opacity: 1; visibility: visible; }
.slider-ready .slide:not(.is-active) { opacity: 0; visibility: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 60, .22) 0%, rgba(5, 7, 60, .4) 40%, rgba(5, 7, 60, .1) 100%); }
.slide-body {
	position: absolute; z-index: 1; inset-inline: 0; top: 24%; text-align: center; color: #FFFFFF; padding-inline: 24px;
	display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.slide-body h2 { font-size: clamp(32px, 5.2vw, 72px); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.slide-body p { font-size: clamp(15px, 1.3vw, 18px); max-width: 640px; }
.slide-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 2px; color: #FFFFFF; }
.hero-dots { position: absolute; z-index: 2; bottom: 44px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.hero-dots button, .track-dots button, .rv-dots button {
	width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); transition: width .25s, background .25s;
}
.hero-dots button[aria-current="true"] { width: 26px; background: #FFFFFF; }
.wave { position: absolute; display: block; pointer-events: none; z-index: 2; }
.wave path { fill: var(--store-bg); }
.wave-bottom { inset-inline: 0; bottom: -1px; width: 100%; height: 38px; }
body[data-wave-edges="straight"] .wave { display: none; }

.hero-search {
	position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: 62%;
	width: min(880px, calc(100% - 48px)); background: var(--white); border-radius: var(--radius-lg);
	box-shadow: 0 18px 40px rgba(5, 7, 60, .18); padding: 10px; display: flex; align-items: stretch; gap: 4px;
}
.hs-field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-inline-end: 1px solid var(--line); }
.hs-field:last-of-type { border-inline-end: 0; }
.hs-ico { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.hs-field label { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.hs-field input, .hs-field select { width: 100%; border: 0; background: transparent; padding: 2px 0; font-size: 14px; color: var(--muted); outline: none; appearance: none; }
.hs-field select { cursor: pointer; }
.hs-field .grow { min-width: 0; flex: 1; }
.hero-search .btn { min-height: 58px; padding: 0 30px; }
.hero-fallback { display: none; }
/* إن أخفى الناشر السلايدر: يبقى البحث وحده على خلفيّة كريميّة */
.hero-shell:not(:has(.hero)) { background: var(--cream); border-radius: 20px; padding: 56px 24px 64px; text-align: center; }
.hero-shell:not(:has(.hero)) .hero-fallback { display: block; margin-bottom: 26px; }
.hero-shell:not(:has(.hero)) .hero-fallback h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
.hero-shell:not(:has(.hero)) .hero-fallback p { color: var(--muted); margin-top: 8px; }
.hero-shell:not(:has(.hero)) .hero-search { position: static; transform: none; margin-inline: auto; text-align: start; }

/* ---------------------------------------------------------------- لماذا نحن (شريط الثقة) */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item .why-ico { color: var(--store-primary); margin-bottom: 18px; }
.why-item .why-ico .icon { width: 52px; height: 52px; stroke-width: 1.3; }
.why-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 15px; }
body[data-show-trust-bar="false"] .why { display: none; }

/* ---------------------------------------------------------------- مسارات الأفقيّة (دوائر التصنيفات وسلايدر البطاقات) */
.track-wrap { position: relative; }
.track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.track-dots { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.track-dots button { background: #C9C9D1; }
.track-dots button[aria-current="true"] { width: 26px; background: var(--store-text); }
.track-dots:empty { display: none; }
.track-arrow { position: absolute; top: 42%; z-index: 3; box-shadow: var(--shadow-sm); border-color: transparent; }
.track-arrow[data-dir="prev"] { inset-inline-start: -22px; }
.track-arrow[data-dir="next"] { inset-inline-end: -22px; }
.track-arrow[disabled] { opacity: .4; cursor: default; }

/* دوائر التصنيفات */
.cat-circle { flex: 0 0 calc((100% - 7 * var(--gap)) / 8); min-width: 128px; text-align: center; }
.cat-circle .cc-img { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; width: 100%; max-width: 136px; margin-inline: auto; transition: transform .3s; }
.cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .cc-img { transform: scale(1.04); }
.cat-circle h3 { font-size: 16px; font-weight: 500; margin-top: 14px; }
.cat-circle p { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- بطاقة الكتاب */
.book-grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: var(--gap); }
.bcard {
	position: relative; display: flex; flex-direction: column; background: var(--white);
	border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; transition: box-shadow .25s, border-color .25s;
}
.bcard:hover { box-shadow: var(--shadow); border-color: transparent; }
.bcard-media { position: relative; }
.bcard-cover { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--band); }
.bcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bcard:hover .bcard-cover img { transform: scale(1.04); }
.bcard .type-dot { position: absolute; top: 10px; inset-inline-start: 10px; }
.bcard-badges { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bcard .heart {
	position: absolute; bottom: -16px; inset-inline-end: 12px; width: 36px; height: 36px; border: 0;
	box-shadow: 0 3px 10px rgba(5, 7, 60, .15); z-index: 2;
}
.bcard .heart .icon { width: 17px; height: 17px; }
.stock-band {
	position: absolute; inset-inline: 0; bottom: 34%; background: rgba(5, 7, 60, .86); color: #FFFFFF; text-align: center;
	font-weight: 700; font-size: 14px; padding: 7px 0;
}
.bcard.is-out .bcard-cover img { filter: grayscale(.7); opacity: .8; }
.bcard-body { padding: 18px 6px 4px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bcard-author { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.bcard-author .icon { width: 14px; height: 14px; }
.bcard-author span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard-title { font-size: 16px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-title a:hover { color: var(--primary-ink); }
.bcard-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-mini { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--store-primary); color: var(--on-primary); display: grid; place-items: center; flex: none; }
.cart-mini:hover { background: var(--store-primary-dark); }
.cart-mini[disabled] { background: var(--band); color: var(--muted); cursor: not-allowed; }
.cart-mini .icon { width: 18px; height: 18px; }
/* شكل البطاقة */
body[data-card-style="plain"] .bcard { border-color: transparent; padding: 0; }
body[data-card-style="plain"] .bcard:hover { box-shadow: none; }
body[data-card-style="plain"] .bcard-foot { border-top: 0; padding-top: 6px; }
body[data-card-style="soft"] .bcard { border-color: transparent; box-shadow: var(--shadow-sm); }
/* داخل السلايدر */
.track .bcard { flex: 0 0 calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row)); }

/* البطاقة الأفقيّة (عرض القائمة في صفحة التصنيف) */
.book-grid.is-list, .listing .book-grid.is-list { grid-template-columns: 1fr; }
.is-list .bcard { flex-direction: row; gap: 22px; align-items: stretch; }
.is-list .bcard-media { width: 170px; flex: none; }
.is-list .bcard-body { padding: 8px 0; }
.is-list .bcard-title { font-size: 18px; }
.is-list .bcard-foot { border-top: 0; justify-content: flex-start; gap: 16px; }
.bcard-desc { display: none; color: var(--muted); font-size: 14.5px; }
.is-list .bcard-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- البانر النصفيّ */
.split-banner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); min-height: 520px; overflow: hidden; }
.split-text { position: relative; padding: 70px max(20px, calc((100vw - 1320px) / 2)); padding-inline-end: 60px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
@media (min-width: 1440px) { .split-text { padding-inline-start: 60px; } }
.split-text > * { position: relative; }
.contour { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contour path { fill: none; stroke: var(--store-primary); stroke-opacity: .16; stroke-width: 1.4; }
.split-text h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; line-height: 1.2; max-width: 520px; }
.split-text h2 em { font-style: normal; color: var(--primary-ink); }
.split-text p { color: var(--muted); font-size: 16px; max-width: 460px; }
.split-media { position: relative; min-height: 320px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wave-side { top: 0; bottom: 0; inset-inline-start: -1px; height: 100%; width: 46px; }
.wave-side path { fill: var(--cream); }
[dir="rtl"] .wave-side { transform: scaleX(-1); }

/* ---------------------------------------------------------------- فسيفساء التصنيفات */
.mosaic { display: grid; grid-template-columns: 1fr 1.25fr .8fr .8fr; grid-template-rows: 250px 250px; gap: var(--gap); }
.mtile { position: relative; border-radius: var(--radius); overflow: hidden; display: block; background: #2B2F55; }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mtile:hover img { transform: scale(1.05); }
.mtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 7, 60, .82) 0%, rgba(5, 7, 60, .25) 45%, rgba(5, 7, 60, 0) 70%); }
.mtile .mt-body { position: absolute; z-index: 1; inset-inline-start: 22px; bottom: 20px; color: #FFFFFF; }
.mtile h3 { font-size: 19px; font-weight: 700; }
.mtile p { font-size: 13.5px; opacity: .95; }
.mtile:nth-child(1) { grid-column: 1; grid-row: 1; }
.mtile:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.mtile:nth-child(3) { grid-column: 3 / 5; grid-row: 1; }
.mtile:nth-child(4) { grid-column: 1; grid-row: 2; }
.mtile:nth-child(5) { grid-column: 3; grid-row: 2; }
.mtile:nth-child(6) { grid-column: 4; grid-row: 2; }

/* ---------------------------------------------------------------- الأكثر رواجًا (شريط رماديّ) */
.band-gray .bcard { background: var(--white); }
.trend .track-arrow[data-dir="prev"] { inset-inline-start: -8px; }
.trend .track-arrow[data-dir="next"] { inset-inline-end: -8px; }
@media (min-width: 1440px) {
	.trend .track-arrow[data-dir="prev"] { inset-inline-start: -40px; }
	.trend .track-arrow[data-dir="next"] { inset-inline-end: -40px; }
}

/* ---------------------------------------------------------------- آراء القرّاء */
.reviews { text-align: center; }
.rv-stage { position: relative; max-width: 1000px; margin-inline: auto; padding: 10px 0 0; }
.rv-float { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; opacity: .5; background: var(--cream-2); color: var(--store-text); }
.rv-float:nth-child(1) { top: 0; inset-inline-start: 12%; width: 62px; height: 62px; }
.rv-float:nth-child(2) { top: 90px; inset-inline-start: 2%; width: 46px; height: 46px; }
.rv-float:nth-child(3) { top: 230px; inset-inline-start: 6%; }
.rv-float:nth-child(4) { top: 0; inset-inline-end: 6%; width: 64px; height: 64px; }
.rv-float:nth-child(5) { top: 110px; inset-inline-end: 15%; width: 44px; height: 44px; }
.rv-float:nth-child(6) { top: 240px; inset-inline-end: 3%; }
.rv-list { position: relative; display: grid; }
.rv-item { grid-area: 1 / 1; max-width: 680px; margin-inline: auto; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; padding-inline: 20px; }
.rv-item:first-child, .rv-ready .rv-item.is-active { opacity: 1; visibility: visible; }
.rv-ready .rv-item:not(.is-active) { opacity: 0; visibility: hidden; }
.rv-ava { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font-size: 36px; font-weight: 800; box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--line); }
.rv-quote { position: absolute; top: -4px; inset-inline-start: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--store-primary); color: var(--on-primary); display: grid; place-items: center; }
.rv-quote .icon { width: 16px; height: 16px; }
.rv-item .rating { justify-content: center; margin-bottom: 14px; }
.rv-item blockquote { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.9; }
.rv-who { margin-top: 18px; }
.rv-who b { display: block; font-weight: 700; }
.rv-who small { color: var(--muted); font-size: 14px; }
.rv-dots { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.rv-dots button { background: #C9C9D1; }
.rv-dots button[aria-current="true"] { width: 26px; background: var(--store-text); }
body[data-show-reviews="false"] .reviews, body[data-show-reviews="false"] .pdp-reviews { display: none; }

/* ---------------------------------------------------------------- شريط النشرة */
.news-band { position: relative; background: var(--store-accent); color: var(--on-accent); overflow: hidden; }
.news-lines { position: absolute; inset-block: 0; inset-inline-end: 0; width: 60%; height: 100%; pointer-events: none; }
.news-lines path { fill: none; stroke: var(--store-primary); stroke-width: 3; opacity: .85; }
.news-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 380px; padding-block: 50px; }
.news-grid:not(:has(.news-art)) { grid-template-columns: 1fr; min-height: 300px; }
.news-text h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 800; line-height: 1.25; max-width: 560px; }
.news-text p { margin-top: 12px; max-width: 520px; font-size: 16px; }
.news-form { display: flex; gap: 10px; margin-top: 28px; max-width: 520px; }
.news-form input { flex: 1; min-width: 0; height: 54px; border-radius: var(--radius); border: 0; padding: 0 18px; background: var(--white); color: var(--store-text); }
.news-form input::placeholder { color: var(--muted); }
.news-form .btn { background: var(--white); color: var(--store-text); min-height: 54px; }
.news-form .btn:hover { background: var(--band); }
.news-art img { width: 100%; height: auto; max-width: 520px; margin-inline-start: auto; border-radius: var(--radius-lg); aspect-ratio: 700 / 520; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); transform: rotate(-2deg); }
body[data-show-newsletter="false"] .news-band { display: none; }

/* ---------------------------------------------------------------- المؤلّفون */
.author-card { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }
.author-card .ac-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.author-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.author-card:hover img { transform: scale(1.04); }
.ac-tag { position: absolute; top: 16px; inset-inline-start: 16px; background: var(--white); color: var(--store-text); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 500; }
.author-card .ac-meta { color: var(--muted); font-size: 14px; margin-top: 16px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.author-card h3 { font-size: 19px; font-weight: 700; margin-top: 4px; }
.author-card h3 a:hover { color: var(--primary-ink); }

/* ---------------------------------------------------------------- التذييل */
.site-footer { padding: 40px 0 24px; }
.foot-shell { position: relative; border-radius: 26px; overflow: hidden; padding-top: 30px; }
.wave-top { top: 0; inset-inline: 0; width: 100%; height: 32px; }
.wave-top path { fill: var(--cream); }
.foot-box { background: var(--cream); padding: 22px 44px 26px; }
body[data-wave-edges="straight"] .foot-shell { padding-top: 0; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--store-primary) 18%, #FFFFFF); }
.foot-call { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.foot-call .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.foot-call a { color: var(--primary-ink); font-weight: 700; }
.foot-social { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.foot-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.foot-social a:hover { background: var(--cream-2); }
.foot-social .icon { width: 18px; height: 18px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px; padding: 36px 0 30px; }
.foot-cols h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.foot-cols li { margin-bottom: 10px; font-size: 14.5px; }
.foot-cols li a:hover { color: var(--primary-ink); }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--primary-ink); }
.foot-news p { font-size: 14.5px; margin-bottom: 14px; }
.foot-news .fnf { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; }
.foot-news input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; padding: 0 16px; outline: none; }
.foot-news input::placeholder { color: var(--muted); }
.foot-news button { border: 0; background: none; font-weight: 700; padding: 0 16px; height: 52px; color: var(--store-text); }
.foot-news button:hover { color: var(--primary-ink); }
.foot-track { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--store-primary) 18%, #FFFFFF); }
.to-top {
	position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 30; width: 48px; height: 48px; border-radius: 50%;
	background: var(--white); border: 0; box-shadow: var(--shadow); color: var(--primary-ink); display: grid; place-items: center;
	opacity: 0; visibility: hidden; transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- الصفحات الداخليّة: مسار وعنوان */
.page-head { padding-block: 26px 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: #A0A0AA; }
.breadcrumb a:hover { color: var(--store-text); }
.page-title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin-top: 14px; }
.page-sub { color: var(--muted); margin-top: 4px; }

/* شريط التصنيفات في صفحة التصنيف */
.strip .cat-circle { flex-basis: calc((100% - 9 * var(--gap)) / 10); min-width: 100px; }
.strip .cat-circle .cc-img { max-width: 96px; }
.strip .cat-circle h3 { font-size: 15px; margin-top: 10px; }

/* ---------------------------------------------------------------- صفحة التصنيف */
.listing { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; padding-bottom: 70px; }
.filters { display: flex; flex-direction: column; gap: 16px; }
.f-types { background: var(--store-primary); color: var(--on-primary); border-radius: var(--radius); padding: 20px; }
.f-types h3 { font-size: 17px; margin-bottom: 12px; }
.f-types label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; cursor: pointer; }
.f-types .type-dot { width: 28px; height: 28px; box-shadow: none; }
.f-types .type-dot .icon { width: 15px; height: 15px; }
.f-types input { accent-color: var(--store-text); width: 17px; height: 17px; margin-inline-start: auto; }
.f-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.f-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 700; cursor: pointer; }
.f-group summary::-webkit-details-marker { display: none; }
.f-group summary .icon { transition: transform .2s; width: 18px; height: 18px; }
.f-group[open] summary .icon { transform: rotate(180deg); }
.f-body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.f-body label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.f-body input[type="checkbox"], .f-body input[type="radio"] { accent-color: var(--store-primary-dark); width: 17px; height: 17px; }
.f-body .n { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.price-range { display: flex; gap: 10px; align-items: center; }
.price-range input { width: 100%; min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.range-bar { position: relative; height: 4px; background: var(--line); border-radius: 4px; margin: 8px 4px; }
.range-bar span { position: absolute; inset-inline: 15% 30%; top: 0; bottom: 0; background: var(--store-primary); border-radius: 4px; }
.range-bar span::before, .range-bar span::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--store-primary); transform: translateY(-50%); }
.range-bar span::before { inset-inline-start: -8px; }
.range-bar span::after { inset-inline-end: -8px; }
.filters-head { display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .count-text { color: var(--muted); }
.toolbar .count-text b { color: var(--store-text); }
.tool-end { display: flex; align-items: center; gap: 10px; }
.view-btn { width: 42px; height: 42px; border-radius: 10px; }
.view-btn[aria-pressed="true"] { background: var(--store-text); color: var(--white); border-color: var(--store-text); }
.select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--white); min-width: 180px; }
.filters-toggle { display: none; }
.listing .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; padding: 0 6px; }
.pagination a:hover { background: var(--band); }
.pagination [aria-current="page"] { background: var(--store-primary); color: var(--on-primary); font-weight: 700; }
.pagination .pg-arrow { border: 1px solid var(--line); }
.pager-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------------------------------------------------------------- صفحة الكتاب */
.pdp-top { padding-block: 22px 26px; }
.pdp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pdp-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-top: 12px; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 12px; font-size: 15px; }
.pdp-meta a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pdp-meta .wish-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-weight: 500; }
.pdp-meta .wish-link[aria-pressed="true"] .icon { fill: var(--store-primary-dark); color: var(--store-primary-dark); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-bottom: 40px; }
.gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.g-panel { position: relative; border-radius: var(--radius-lg); background: var(--cream); display: grid; place-items: center; padding: 34px; }
.g-panel img { border-radius: 8px; box-shadow: 0 20px 40px rgba(5, 7, 60, .22); width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.g-main img { max-width: 300px; }
.g-side { display: grid; gap: 16px; }
.g-side .g-panel { padding: 24px; }
.g-side img { max-width: 150px; }
.g-panel .type-dot { position: absolute; top: 16px; inset-inline-start: 16px; width: 40px; height: 40px; }
.g-panel .type-dot .icon { width: 20px; height: 20px; }
.g-note { border-radius: var(--radius-lg); border: 1px dashed color-mix(in srgb, var(--store-primary) 45%, #FFFFFF); padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.g-note b { font-size: 15px; }
.g-note p { color: var(--muted); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.fact { display: flex; gap: 12px; align-items: center; }
.fact .f-ico { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.fact small { display: block; color: var(--muted); font-size: 13px; }
.fact b { font-weight: 700; font-size: 15px; }
.pdp-sec { padding: 30px 0; border-bottom: 1px solid var(--line); }
.pdp-sec h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.prose p + p { margin-top: 12px; }
.prose { color: #2E3047; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 4px; }
.timeline li { position: relative; padding-inline-start: 46px; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 14px; top: 30px; bottom: -4px; border-inline-start: 2px dashed var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.timeline li:first-child .tl-dot, .timeline li:last-child .tl-dot { background: var(--store-primary); color: var(--on-primary); }
.timeline b { display: block; font-weight: 700; }
.timeline p { color: var(--muted); font-size: 14.5px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks .icon { width: 18px; height: 18px; color: #2F7D58; flex: none; transform: translateY(3px); }
.checks small { color: var(--muted); }
.buy-box { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); background: var(--white); display: flex; flex-direction: column; gap: 16px; }
.buy-box .bb-label { color: var(--muted); font-size: 14px; }
.buy-box .price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14.5px; color: #1F6B47; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bb-type { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--band); font-size: 14.5px; }
.bb-type .type-dot { width: 30px; height: 30px; box-shadow: none; }
.bb-actions { display: grid; gap: 10px; }
.bb-row { display: flex; gap: 10px; }
.bb-row .btn { flex: 1; }
.bb-row .icon-btn { width: 52px; height: 52px; border-radius: var(--radius); flex: none; }
.perks { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .icon { color: var(--primary-ink); }
.sample-bar { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--cream); }
.sample-bar .play { width: 42px; height: 42px; border-radius: 50%; background: var(--store-primary); color: var(--on-primary); border: 0; display: grid; place-items: center; flex: none; }
.sample-bar .wave-bars { flex: 1; height: 26px; display: flex; align-items: center; gap: 3px; }
.sample-bar .wave-bars i { flex: 1; background: color-mix(in srgb, var(--store-primary) 55%, #FFFFFF); border-radius: 2px; }
.sample-bar small { color: var(--muted); font-size: 13px; }

/* الآراء في صفحة الكتاب */
.pdp-reviews .rv-summary { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: var(--cream); border-radius: var(--radius-lg); padding: 24px; }
.rv-score { text-align: center; }
.rv-score strong { display: block; font-size: 52px; font-weight: 800; line-height: 1; }
.rv-score .rating { justify-content: center; margin-top: 8px; }
.rv-bars li { display: grid; grid-template-columns: 70px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.rv-bars .bar { height: 7px; border-radius: 9px; background: var(--white); overflow: hidden; }
.rv-bars .bar span { display: block; height: 100%; background: var(--store-primary); border-radius: 9px; }
.rv-items { margin-top: 26px; display: grid; gap: 24px; }
.rv-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.rv-card:last-child { border-bottom: 0; }
.rv-card .rv-av { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.rv-card .rv-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.rv-card .rv-head b { font-weight: 700; }
.rv-card .rv-head small { color: var(--muted); }
.rv-card p { margin-top: 8px; color: #2E3047; }
.rv-form { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px; }
.rv-form h3 { font-size: 19px; }
.rv-form p { color: var(--muted); font-size: 14px; }
.star-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #D9D9DE; }
.star-input label .icon { width: 26px; height: 26px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--store-accent); border-radius: 4px; }
.field { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--white); resize: vertical; }
.field:focus { outline: none; border-color: var(--store-text); }
.rv-form .btn { justify-self: start; }

/* شاهدتَه مؤخّرًا */
.mini-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.mini-card { display: flex; flex-direction: column; gap: 8px; }
.mini-card .mc-cover { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 2 / 3; }
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .type-dot { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; }
.mini-card .type-dot .icon { width: 14px; height: 14px; }
.mini-card h3 { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.mini-card .price { font-size: 14.5px; }

/* ---------------------------------------------------------------- صفحة المؤلّف */
.author-hero { background: var(--cream); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center; position: relative; overflow: hidden; margin-top: 18px; }
.author-hero .contour { opacity: .9; }
.ah-photo { position: relative; width: 210px; height: 210px; }
.ah-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--white); }
.ah-photo .rv-quote { width: 50px; height: 50px; top: 6px; inset-inline-start: 0; }
.ah-photo .rv-quote .icon { width: 22px; height: 22px; }
.author-hero > div { position: relative; }
.author-hero .eyebrow { color: var(--primary-ink); font-weight: 700; }
.author-hero h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-top: 6px; }
.ah-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.author-hero .bio { margin-top: 16px; max-width: 720px; color: #2E3047; }

/* ---------------------------------------------------------------- السلّة */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; align-items: start; padding-block: 10px 60px; }
.cart-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 26px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.cart-head h2 { font-size: 20px; }
.link-btn { border: 0; background: none; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; padding: 6px; }
.link-btn:hover { color: var(--store-text); }
.cart-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 2 / 3; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 { font-size: 16px; font-weight: 700; }
.cart-info p { color: var(--muted); font-size: 14px; }
.cart-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; }
.cart-type .type-dot { width: 22px; height: 22px; box-shadow: none; }
.cart-type .type-dot .icon { width: 12px; height: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 42px; }
.qty button { width: 38px; height: 40px; border: 0; background: none; display: grid; place-items: center; }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-total { font-weight: 700; min-width: 92px; text-align: end; }
.summary { position: sticky; top: 104px; border-radius: var(--radius-lg); background: var(--cream); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.summary h2 { font-size: 20px; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; background: var(--white); }
.coupon .btn { min-height: 48px; padding: 0 18px; }
.coupon-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px dashed var(--muted); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: 13.5px; align-self: flex-start; }
.coupon-chip button { border: 0; background: var(--band); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.coupon-chip button .icon { width: 14px; height: 14px; }
.sum-rows { display: grid; gap: 10px; padding: 14px 0; border-block: 1px solid color-mix(in srgb, var(--store-primary) 18%, #FFFFFF); }
.sum-rows div { display: flex; justify-content: space-between; font-size: 15px; }
.sum-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; }
.secure { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); justify-content: center; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty .icon { width: 60px; height: 60px; color: var(--primary-ink); stroke-width: 1.2; }
.cart-empty h2 { margin: 12px 0 6px; }
.cart-empty p { color: var(--muted); margin-bottom: 18px; }

/* ---------------------------------------------------------------- 404 */
.nf { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 40px 30px; }
.nf-art { background: var(--cream); border-radius: 24px; padding: 30px; }
.nf-art svg { width: 100%; height: auto; display: block; }
.nf .nf-code { color: var(--store-text); font-size: clamp(90px, 13vw, 180px); font-weight: 800; line-height: 1; letter-spacing: .02em; }
.nf-code span { color: var(--primary-ink); }
.nf h1 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 10px; }
.nf p { color: var(--muted); margin-top: 10px; max-width: 480px; }
.nf-search { display: flex; gap: 10px; margin-top: 24px; max-width: 480px; }
.nf-search input { flex: 1; min-width: 0; height: 52px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.nf-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- صفحة المكوّنات */
.kit-sec { padding: 40px 0; border-bottom: 1px solid var(--line); }
.kit-sec > .container > h2 { font-size: 22px; margin-bottom: 8px; }
.kit-sec > .container > p { color: var(--muted); margin-bottom: 22px; }
.kit-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kit-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.kit-cards > div > small { display: block; color: var(--muted); margin-bottom: 8px; font-size: 13px; }

/* ---------------------------------------------------------------- الحركة */
/* ==========================================================================
   ميزات المنصّة المعتمدة (SPEC، الملحق 8)
   ========================================================================== */
/* العدّاد في البانر النصفيّ */
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cd-label { font-size: 15px; font-weight: 700; color: var(--primary-ink); }
.cd-units { display: flex; gap: 8px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.cd-unit b { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 12px; color: var(--muted); }

/* شريط النشرة والتطبيق */
.nl-offer { margin-top: 12px; font-weight: 700; font-size: 15px; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.app-label { flex-basis: 100%; font-size: 14px; font-weight: 700; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 16px 6px 18px; border-radius: var(--radius); background: #05073C; color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.15; direction: ltr; }
.app-badge span { display: flex; flex-direction: column; text-align: left; }
.app-badge small { font-size: 11px; font-weight: 400; opacity: .85; direction: rtl; text-align: left; }
.app-badge .icon { width: 24px; height: 24px; }
.app-badge:hover { background: #000; }
.app-links-foot { margin-top: 18px; gap: 8px; }
.app-links-foot .app-badge { min-height: 44px; padding: 4px 12px 4px 14px; font-size: 14px; }
.news-art { position: relative; }
.news-art .coupon { position: absolute; bottom: -18px; inset-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--white); color: var(--store-text); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); border: 2px dashed var(--store-primary); }
.news-art .coupon-text { font-size: 13.5px; font-weight: 700; }
.news-art .coupon-row { display: flex; align-items: center; gap: 8px; }
.news-art .coupon code { padding: 4px 10px; border-radius: 8px; background: var(--cream-2); font: 800 17px/1.3 var(--font); letter-spacing: .08em; direction: ltr; }
.news-art .coupon button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--store-primary); color: var(--on-primary); font: 700 13.5px var(--font); cursor: pointer; }
.news-art .coupon button .icon { width: 16px; height: 16px; }

/* المدوّنة */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-media { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); }
.post-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.post-date { font-size: 14px; color: var(--muted); }
.post-title { font-size: 20px; font-weight: 700; line-height: 1.4; }
.post-title a:hover { color: var(--primary-ink); }
.post-excerpt { color: var(--muted); font-size: 15px; }
.post-more { margin-top: 4px; font-weight: 700; color: var(--primary-ink); }
.post-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-grid-page { row-gap: 44px; }
.post-narrow { max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.post-hero { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.post-content { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.9; }

/* الحجز المسبق */
.badge-pre { background: var(--store-text); color: var(--white); }
.bcard-release { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--primary-ink); }
.bcard-release .icon { width: 16px; height: 16px; }

/* الأسئلة الشائعة في صفحات الكتاب */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.faq-item[open] { border-color: var(--store-text); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--cream-2); transition: transform .25s; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--store-primary); color: var(--on-primary); }
.faq-item p { padding: 0 18px 16px; color: var(--muted); }

@media (max-width: 991px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid:not(.post-grid-page) .post-card:nth-child(3) { display: none; }
	.news-art .coupon { position: relative; z-index: 2; bottom: auto; inset-inline-start: auto; margin-top: -34px; margin-inline: 16px; }
	.bcard-release { font-size: 13px; }
}
@media (max-width: 599px) {
	.post-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.post-grid:not(.post-grid-page) .post-card:nth-child(3) { display: flex; }
	.post-grid:not(.post-grid-page) { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
	.post-grid:not(.post-grid-page)::-webkit-scrollbar { display: none; }
	.post-grid:not(.post-grid-page) .post-card { flex: 0 0 82%; scroll-snap-align: center; }
	.post-content { font-size: 16.5px; }
	.cd-unit { min-width: 52px; }
	.cd-unit b { font-size: 21px; }
	.app-badge { min-height: 46px; padding-inline: 12px; font-size: 14px; }
}

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

/* ---------------------------------------------------------------- العروض */
@media (max-width: 1200px) {
	.hdr-search { display: none; }
	.search-toggle { display: inline-grid; }
	.search-open .m-search { display: block; }
	.split-text { padding-inline: 40px; }
}
@media (max-width: 1100px) {
	.book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.track .bcard { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
	.pdp { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
	.listing { grid-template-columns: 250px 1fr; }
	.listing .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mini-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mini-row > :nth-child(n+5) { display: none; }
	.foot-cols { grid-template-columns: 1fr 1fr; }
	.facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.hdr-nav, .cart-pill .label, .hdr-actions .hide-md { display: none; }
	.hdr { gap: 6px; min-height: 68px; }
	.menu-btn { order: -1; }
	.brand { margin-inline: auto; }
	.brand img { width: 36px; height: 36px; }
	.brand-name { font-size: 19px; }
	.cart-pill { padding: 0 12px; }
	.why-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.split-banner { grid-template-columns: 1fr; }
	.split-text { padding: 48px 20px; }
	.split-media { min-height: 300px; order: -1; }
	.wave-side { display: none; }
	.mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 190px); }
	.mtile:nth-child(1) { grid-column: 1; grid-row: 1; }
	.mtile:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
	.mtile:nth-child(3) { grid-column: 1; grid-row: 2; }
	.mtile:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
	.mtile:nth-child(5) { grid-column: 1; grid-row: 4; }
	.mtile:nth-child(6) { grid-column: 2; grid-row: 4; }
	.news-grid { grid-template-columns: 1fr; }
	.news-art img { margin-inline: 0; max-width: 420px; }
	.author-card { flex-basis: calc((100% - var(--gap)) / 2); }
	.pdp { display: flex; flex-direction: column; gap: 0; }
	.pdp > div:first-child { display: contents; }
	.pdp > div:first-child > * { order: 2; }
	.pdp > div:first-child > .gallery { order: 0; }
	.buy-box { position: static; order: 1; margin-top: 24px; }
	.listing { grid-template-columns: 1fr; }
	.filters {
		position: fixed; inset-block: 0; inset-inline-start: 0; width: min(360px, 90vw); z-index: 61; background: var(--white);
		padding: 20px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s;
	}
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
	.filters-head { display: flex; justify-content: space-between; align-items: center; }
	.filters-toggle { display: inline-flex; }
	.listing .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.author-hero { grid-template-columns: 1fr; padding: 32px; gap: 24px; text-align: center; justify-items: center; }
	.ah-stats { justify-content: center; }
	.nf { grid-template-columns: 1fr; }
	.trend .track-arrow { display: none; }
	.kit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.section { padding-block: 48px; }
	.hero { aspect-ratio: auto; height: 330px; min-height: 0; border-radius: 16px; }
	.slide-body { top: 11%; gap: 8px; }
	.slide-body h2 { font-size: 32px; }
	.slide-body p { font-size: 14.5px; }
	.hero-dots { bottom: 40px; }
	.hero-search {
		position: relative; left: auto; top: auto; transform: none; margin: -28px auto 0; width: calc(100% - 24px);
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 6px; gap: 0;
	}
	.hs-field { padding: 8px 6px; gap: 8px; }
	.hs-field:first-child { grid-column: 1 / -1; border-inline-end: 0; border-bottom: 1px solid var(--line); }
	.hs-field:last-of-type { border-inline-end: 0; }
	.hs-ico { width: 36px; height: 36px; border-radius: 10px; }
	.hs-field label { font-size: 14px; }
	.hs-field input, .hs-field select { font-size: 13.5px; }
	.hero-search .btn { grid-column: 1 / -1; min-height: 48px; margin-top: 4px; }
	.hero-shell:not(:has(.hero)) { padding: 36px 14px; }
	.book-grid, .listing .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap: 14px; }
	.track .bcard { flex-basis: calc((100% - var(--gap)) / 2); }
	.track { --gap: 14px; }
	.bcard { padding: 8px; }
	.bcard-body { padding: 16px 2px 2px; }
	.bcard-title { font-size: 15px; }
	.price { font-size: 15.5px; }
	.price-lg { font-size: 26px; }
	.cat-circle { flex-basis: calc((100% - 2 * var(--gap)) / 3); min-width: 0; }
	.strip .cat-circle { flex-basis: calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
	.is-list .bcard-media { width: 110px; }
	.is-list .bcard { gap: 14px; }
	.rv-float { display: none; }
	.why.section { padding-block: 34px 6px; }
	.why .sec-head { margin-bottom: 14px; }
	.why-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
	.why-grid::-webkit-scrollbar { display: none; }
	.why-item { flex: 0 0 80%; scroll-snap-align: center; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
	.why-item .why-ico { grid-row: 1 / 3; margin: 2px 0 0; }
	.why-item .why-ico .icon { width: 34px; height: 34px; }
	.why-item h3 { font-size: 16px; margin: 0; }
	.why-item p { font-size: 13.5px; line-height: 1.55; }
	.news-form { flex-direction: column; }
	.news-form input { flex: none; width: 100%; }
	.news-art img { max-width: 300px; }
	.author-card { flex-basis: 82%; }
	.foot-box { padding: 20px 20px 22px; }
	.foot-cols { grid-template-columns: 1fr; gap: 26px; }
	.foot-call { font-size: 16px; flex-wrap: wrap; }
	.gallery { grid-template-columns: 1fr; }
	.g-side { grid-template-columns: 1fr 1fr; }
	.g-main img { max-width: 220px; }
	.checks { grid-template-columns: 1fr; }
	.pdp-reviews .rv-summary { grid-template-columns: 1fr; }
	.mini-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mini-row > :nth-child(n+4) { display: none; }
	.cart-box { padding: 6px 16px; }
	.cart-row { position: relative; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "t i i" "t q s"; gap: 10px 14px; }
	.cart-row .cart-info { padding-inline-end: 40px; }
	.cart-row .cart-thumb { grid-area: t; }
	.cart-row .cart-info { grid-area: i; }
	.cart-row .qty { grid-area: q; justify-self: start; }
	.cart-row .cart-total { grid-area: s; }
	.cart-row .rm { position: absolute; top: 14px; inset-inline-end: -8px; }
	.nf-search { flex-direction: column; }
	.kit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec-head { align-items: center; }
	.to-top { bottom: 16px; inset-inline-end: 16px; }
}
@media (max-width: 480px) {
	.facts { grid-template-columns: 1fr 1fr; }
	.fact { flex-direction: column; align-items: flex-start; gap: 8px; }
	.hdr-actions { gap: 0; }
	.hdr-actions .icon-btn { width: 40px; height: 40px; }
}

/* ---------------------------------------------------------------- النظرة السريعة على البطاقة */
/* تطفو بجانب المفضّلة على حافّة الغلاف، تظهر عند التحويم في الحاسوب ودائمًا في اللمس، ولا تحجز مكانًا */
.bcard .qv {
	position: absolute; bottom: -16px; inset-inline-end: 56px; width: 36px; height: 36px; border: 0; z-index: 2;
	box-shadow: 0 3px 10px rgba(5, 7, 60, .15); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.bcard .qv .icon { width: 17px; height: 17px; }
.bcard:hover .qv, .bcard:focus-within .qv { opacity: 1; transform: none; }
@media (hover: none) { .bcard .qv { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- تبويبات صفّ الكتب (القاعدة 16) */
.row-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -8px 0 26px; padding-block: 2px; }
.row-tabs::-webkit-scrollbar { display: none; }
.row-tab {
	flex: none; display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--white); color: var(--store-text); 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-text); border-color: var(--store-text); color: var(--white); }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

/* ---------------------------------------------------------------- كتاب الرحلة (كتابٌ واحد كبير) */
.feat-panel { position: relative; overflow: hidden; background: var(--cream); border-radius: 24px; padding: 40px 64px 52px; }
.feat-panel > :not(.contour) { position: relative; }
.feat-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 7px 16px 7px 18px; border-radius: 999px;
	background: var(--white); color: var(--primary-ink); font-size: 15px; font-weight: 700;
}
.feat-eyebrow .icon { width: 18px; height: 18px; }
.feat-book { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 64px; align-items: center; }
.feat-media { position: relative; }
.feat-cover { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px rgba(5, 7, 60, .25); transform: rotate(-2deg); transition: transform .3s; }
.feat-cover:hover { transform: rotate(0); }
.feat-cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.feat-media .type-dot { position: absolute; top: 14px; inset-inline-start: 14px; width: 38px; height: 38px; }
.feat-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 660px; }
.feat-author { color: var(--muted); font-size: 15px; }
.feat-author a { color: var(--store-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.feat-title { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1.2; }
.feat-title a:hover { color: var(--primary-ink); }
.feat-desc { color: #2E3047; font-size: 17px; line-height: 1.85; }
.feat-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-facts li { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--white); font-size: 14px; }
.feat-facts .icon { width: 16px; height: 16px; color: var(--primary-ink); }
.feat-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.feat-buy .price { margin-inline-end: 10px; }
.feat-wish { width: 54px; height: 54px; border-radius: var(--radius); }

/* ---------------------------------------------------------------- صفوفٌ كاملة في الرئيسيّة وصفحات الكتاب */
/* شبكات الصفوف (8 كتب أو 4) لا تنتهي بصفٍّ نصف فارغ أيًّا كان عدد الكتب في الصفّ */
@media (min-width: 1101px) {
	body[data-books-per-row="3"] .container > .book-grid > .bcard:nth-child(n+7),
	body[data-books-per-row="3"] .container > .book-grid > .bcard:nth-child(4):last-child,
	body[data-books-per-row="5"] .container > .book-grid > .bcard:nth-child(n+6) { display: none; }
	body[data-books-per-row="5"] .container > .book-grid:not(:has(> :nth-child(5))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1100px) {
	.container > .book-grid > .bcard:nth-child(n+7),
	.container > .book-grid > .bcard:nth-child(4):last-child { display: none; }
}

/* ---------------------------------------------------------------- صفّ الكتاب في الصفحة (اختيار الصيغة والكمّيّة والتوصيل) */
.formats-box { display: grid; gap: 8px; }
.formats-label { font-size: 14px; color: var(--muted); }
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.format-opt {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1.5px solid var(--line);
	border-radius: var(--radius); text-align: center; font-size: 13.5px; transition: border-color .2s;
}
.format-opt:hover { border-color: var(--store-text); }
.format-opt.is-current { border-color: var(--store-primary); background: var(--cream); }
.format-opt .type-dot { width: 28px; height: 28px; box-shadow: none; }
.format-opt .type-dot .icon { width: 15px; height: 15px; }
.format-name { font-weight: 700; }
.format-price { color: var(--muted); font-size: 13px; }
.bb-qty { display: flex; align-items: center; gap: 10px; }
.bb-qty .qty { height: 54px; }
.bb-qty .qty button { height: 52px; }
.bb-qty .btn { flex: 1; min-width: 0; padding-inline: 16px; }
.bcard-foot .price { line-height: 1.35; }
.qty .icon { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- صفحة التصنيف: التصفية المختارة */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 20px; }
.active-filters > span { font-size: 14px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--cream-2); font-size: 14px; font-weight: 500; }
.chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--white); display: grid; place-items: center; padding: 0; }
.chip button .icon { width: 12px; height: 12px; }
.clear-filters { border: 0; background: none; padding: 4px; font-weight: 700; font-size: 14px; color: var(--primary-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- أعمال المؤلّف: مسارٌ أفقيّ بلا صفٍّ نصف فارغ */
.works .track-arrow[data-dir="prev"] { inset-inline-start: -8px; }
.works .track-arrow[data-dir="next"] { inset-inline-end: -8px; }
@media (max-width: 900px) { .works .track-arrow { display: none; } }

@media (max-width: 1100px) {
	.feat-panel { padding: 34px 36px 40px; }
	.feat-book { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
	.buy-box { padding: 20px 16px; }
	.feat-panel { padding: 22px 16px 26px; border-radius: 18px; }
	.feat-eyebrow { margin-bottom: 18px; }
	.feat-book { grid-template-columns: 1fr; gap: 22px; }
	.feat-media { width: 170px; margin-inline: auto; }
	.feat-desc { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
	.feat-buy .btn { flex: 1; }
	.row-tabs { margin: -14px -20px 18px; padding-inline: 20px; }
	.row-tab { height: 40px; padding: 0 16px; 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; }
