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

:root {
	--store-primary: #5B6B1E;
	--store-primary-dark: #46531A;
	--store-accent: #C08A2B;
	--store-bg: #FFFFFF;
	--store-text: #1E2314;

	/* محايدة */
	--navy: #212E47;
	--navy-2: #2B3A57;
	--muted: #50574A;
	--line: #E2E5DC;
	--grey: #F0F2EC;
	--white: #FFFFFF;
	--gold: #E9A815;          /* النجوم: ذهبيّة دائمًا */
	--on-accent: #1E2314;     /* نصٌّ داكن على لون الحصاد */
	--soft: color-mix(in srgb, var(--store-primary) 9%, #FFFFFF);
	--soft-2: color-mix(in srgb, var(--store-primary) 16%, #FFFFFF);
	--accent-soft: color-mix(in srgb, var(--store-accent) 22%, #FFFFFF);

	--radius: 16px;
	--radius-sm: 10px;
	--radius-xs: 6px;
	--pill: 999px;
	--shadow: 0 6px 22px rgba(20, 28, 10, .08);
	--shadow-lg: 0 16px 40px rgba(20, 28, 10, .14);
	--container: 1200px;
	--gutter: 20px;
	--header-h: 68px;
	--per-row: 4;
	--font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[data-corners="sharp"] {
	--radius: 4px;
	--radius-sm: 3px;
	--radius-xs: 2px;
}

[data-books-per-row="3"] { --per-row: 3; }
[data-books-per-row="4"] { --per-row: 4; }
[data-books-per-row="5"] { --per-row: 5; }
[data-books-per-row="6"] { --per-row: 6; }

/* ------------------------------------------------------------------ أساس */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.7;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
[data-option]:empty { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-xs); }
.skip-link:focus { top: 10px; }

.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.section-grey { background: var(--grey); }

/* ------------------------------------------------------------------ الأزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px;
	border: 1.5px solid transparent; border-radius: var(--radius-sm);
	font-weight: 700; font-size: 14.5px; line-height: 1.2; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-pill { border-radius: var(--pill); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--store-primary); color: #fff; }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-accent { background: var(--store-accent); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 85%, #fff); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--store-text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--store-primary); color: var(--store-primary); }
.btn-light { background: #fff; color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--store-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-btn[aria-pressed="true"] .icon { fill: currentColor; }

.round-btn {
	width: 44px; height: 44px; flex: none;
	display: inline-grid; place-items: center;
	border-radius: 50%; border: 0;
	background: #DADDD6; color: #fff;
	transition: background .2s;
}
.round-btn .icon { stroke: var(--store-text); }
.round-btn:hover { background: var(--store-primary); }
.round-btn:hover .icon { stroke: #fff; }

.icon-btn {
	position: relative; width: 42px; height: 42px;
	display: inline-grid; place-items: center;
	border: 0; border-radius: 50%; background: transparent; color: var(--store-text);
}
.icon-btn:hover { background: var(--grey); }
.count-badge {
	position: absolute; top: 3px; inset-inline-end: 1px;
	min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: var(--pill); background: var(--store-primary); color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.field {
	width: 100%; min-height: 44px; padding: 0 14px;
	border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.field:focus { border-color: var(--store-primary); outline: none; }
.field-sm { min-height: 38px; width: auto; }
textarea.field { padding: 10px 14px; resize: vertical; }

/* ------------------------------------------------------------------ عنوان القسم */
.sec-head { text-align: center; margin-bottom: 32px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 7px;
	color: var(--store-primary); font-weight: 700; font-size: 14px; margin-bottom: 6px;
}
.eb-dot {
	width: 22px; height: 22px; border-radius: 50%;
	display: inline-grid; place-items: center;
	background: var(--store-accent); color: var(--on-accent);
}
.eb-dot .icon { width: 14px; height: 14px; stroke-width: 2; }
.sec-title { font-size: 30px; font-weight: 800; line-height: 1.3; }
.sec-more { text-align: center; margin-top: 36px; }

/* ------------------------------------------------------------------ الرأس */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-in {
	height: var(--header-h);
	display: flex; align-items: center; gap: 24px;
	padding-inline: 24px; max-width: 1440px; margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 20px; color: var(--store-text); }
.main-nav { margin-inline: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav button {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 8px 13px; border: 0; background: none;
	font-weight: 500; font-size: 15px; border-radius: var(--pill);
}
.main-nav a:hover, .main-nav button:hover { color: var(--store-primary); }
.main-nav .is-current { color: var(--store-primary); font-weight: 700; position: relative; }
.main-nav .is-current::after {
	content: ""; position: absolute; bottom: 0; inset-inline: 50%; width: 18px; height: 4px; margin-inline-start: -9px;
	background: radial-gradient(circle, var(--store-accent) 2px, transparent 2.5px) 0 0 / 6px 4px repeat-x;
}
.main-nav .icon { width: 15px; height: 15px; }
.has-drop { position: relative; }
.drop {
	position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 220px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 8px 12px; border-radius: var(--radius-xs); }
.drop a:hover { background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-cta { margin-inline-start: 8px; }
.menu-toggle { display: none; }
.header-search { display: none; border-top: 1px solid var(--line); background: #fff; }
.search-open .header-search { display: block; }
.hs-in { display: flex; gap: 10px; padding-block: 12px; }

/* الدرج */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 10, .45); z-index: 60; opacity: 0; visibility: hidden; transition: .25s; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 61;
	width: min(330px, 86vw); background: #fff; padding: 18px; overflow-y: auto;
	transform: translateX(100%); transition: transform .3s; visibility: hidden;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-open .drawer-backdrop:not(.filters-backdrop) { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-search { display: flex; gap: 6px; margin-bottom: 14px; }
.drawer-nav > li > a, .drawer-label { display: block; padding: 10px 4px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer-label { color: var(--muted); font-size: 13px; border: 0; padding-bottom: 2px; }
.drawer-cats { padding-inline-start: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.drawer-cats a { display: block; padding: 6px 4px; }
.drawer-contact { display: grid; gap: 10px; margin-top: 18px; }
.drawer-contact a { display: flex; align-items: center; gap: 8px; color: var(--muted); }

/* ------------------------------------------------------------------ السلايدر */
.hero {
	position: relative; height: 640px; overflow: hidden;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 82%);
	background: var(--navy);
}
.hero .slides, .hero .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.slide:first-child, .slider-ready .slide.is-active { opacity: 1; visibility: visible; }
.slider-ready .slide:first-child: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(10, 14, 6, .55) 0%, rgba(10, 14, 6, .35) 55%, rgba(10, 14, 6, .15) 100%); }
.slide-body {
	position: relative; z-index: 1; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding-bottom: 150px; color: #fff;
}
.slide-title { font-size: 54px; font-weight: 800; line-height: 1.2; max-width: 860px; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.slide-text { font-size: 17px; max-width: 640px; margin: 14px 0 24px; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-dots { position: absolute; z-index: 2; bottom: 170px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: var(--pill); border: 0; background: rgba(255, 255, 255, .55); transition: width .3s; }
.hero-dots button[aria-current="true"] { width: 28px; background: #fff; }

/* صندوق البحث: يركب الحافّة المائلة، أو يصير أوّل الصفحة إن أُخفي السلايدر */
.hero-search {
	position: relative; z-index: 3;
	background: var(--soft); padding: 48px 0 90px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 78%);
}
.hero:not([hidden]) + .hero-search { background: transparent; clip-path: none; margin-top: -150px; padding: 0; }
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px 24px 24px; }
.sc-title { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.sc-fields { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sc-box { flex: 1; padding: 12px 16px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sc-box:first-child { border-inline-start: 0; }
.sc-wide { flex: 2; }
.sc-box label { font-size: 13px; color: var(--muted); }
.sc-box input, .sc-box select { border: 0; padding: 0; background: transparent; font-weight: 700; font-size: 16px; min-height: 30px; width: 100%; }
.sc-box input:focus, .sc-box select:focus { outline: none; }
.sc-box:focus-within { background: var(--soft); }
.sc-btn { min-height: auto; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 32px; margin: -1px; }
[dir="rtl"] .sc-btn { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }

/* ------------------------------------------------------------------ التصنيفات البيضاويّة */
.scroller { position: relative; display: flex; align-items: center; gap: 18px; }
.cat-track {
	flex: 1; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; padding-block: 4px;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-oval {
	flex: 0 0 calc((100% - 3 * 24px) / 4); scroll-snap-align: start;
	display: flex; flex-direction: column; align-items: center; text-align: center;
}
.co-img { display: block; width: 100%; aspect-ratio: 5 / 3; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.co-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-oval:hover .co-img img { transform: scale(1.06); }
.cat-oval b { font-size: 18px; margin-top: 14px; }
.cat-oval small { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------------ شريط الثقة */
.trust-section { padding-bottom: 56px; }
.trust-bar {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
	background: var(--soft); border-radius: var(--radius); padding: 22px 26px;
}
.trust-bar li { display: flex; align-items: center; gap: 12px; }
.tb-icon {
	width: 48px; height: 48px; flex: none; border-radius: 50%;
	display: grid; place-items: center; background: #fff; color: var(--store-primary);
}
.tb-icon .icon { width: 24px; height: 24px; }
.trust-bar b { display: block; font-size: 15px; }
.trust-bar small { color: var(--muted); font-size: 13px; }
[data-show-trust-bar="false"] .trust-section { display: none; }

/* ------------------------------------------------------------------ بطاقة الكتاب */
.book-grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 24px; }
.book-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bc-media { position: relative; }
.bc-cover { display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--grey); }
.bc-cover img { width: 100%; height: 100%; object-fit: cover; }
.type-dot {
	position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.type-dot .icon { width: 18px; height: 18px; }
.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; }
.type-dot-sm { position: static; width: 24px; height: 24px; box-shadow: none; display: inline-grid; }
.type-dot-sm .icon { width: 14px; height: 14px; }
.badge {
	display: inline-flex; align-items: center; gap: 3px;
	padding: 3px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; line-height: 1.5;
}
.bc-media .badge { position: absolute; top: 54px; inset-inline-start: 10px; z-index: 2; }
.badge-sale { background: var(--store-primary); color: #fff; }
.badge-new { background: var(--store-accent); color: var(--on-accent); }
.bc-wish {
	position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
	width: 36px; height: 36px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: #fff; color: var(--store-text);
	box-shadow: var(--shadow); opacity: 0; transform: scale(.85); transition: .2s;
}
.book-card:hover .bc-wish, .bc-wish:focus-visible, .bc-wish[aria-pressed="true"] { opacity: 1; transform: none; }
.bc-wish[aria-pressed="true"] { color: #C0392B; }
.bc-wish[aria-pressed="true"] .icon { fill: currentColor; }
@media (hover: none) { .bc-wish { opacity: 1; transform: none; } }
.out-ribbon {
	position: absolute; inset-inline: 0; bottom: 36%; z-index: 2;
	background: var(--navy); color: #fff; text-align: center; font-weight: 700; font-size: 13.5px; padding: 6px;
}
.book-card.is-out .bc-cover img { filter: grayscale(.7); opacity: .8; }
/* كبسولة التقييم تركب حافّة الغلاف السفلى */
.rate-pill {
	position: absolute; bottom: 0; inset-inline-end: 12px; z-index: 3; transform: translateY(50%);
	display: inline-flex; align-items: center; gap: 4px;
	background: #fff; border-radius: var(--pill); padding: 3px 11px;
	box-shadow: 0 3px 12px rgba(20, 28, 10, .14); font-size: 13px; white-space: nowrap;
}
.rate-pill .icon { width: 14px; height: 14px; color: var(--gold); }
.rate-pill b { font-weight: 800; }
.rate-pill small { color: var(--muted); font-size: 12px; }
.rate-pill-static { position: static; transform: none; }
.bc-body { padding: 22px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.book-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.book-title a:hover { color: var(--store-primary); }
.book-author { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.book-author .icon { width: 15px; height: 15px; }
.book-author a { color: var(--store-primary); font-weight: 700; }
.bc-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line);
}
.bc-body .book-author { margin-bottom: 4px; }
.price-wrap { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-wrap small { color: var(--muted); font-size: 12.5px; }
.price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price [data-slot="book.price"] { color: var(--store-primary); font-weight: 800; font-size: 16.5px; }
.price del { color: #646B5C; font-size: 13.5px; }
.price-lg [data-slot="book.price"] { font-size: 28px; }
.price-lg del { font-size: 16px; }
.bc-add {
	width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: var(--store-primary); color: #fff;
}
.bc-add:hover { background: var(--store-primary-dark); }
.bc-add .icon { width: 18px; height: 18px; }
.bc-add:disabled { background: #B9BDB3; cursor: not-allowed; }

/* أشكال البطاقة */
[data-card-style="framed"] .book-card { box-shadow: none; border: 1.5px solid var(--line); padding: 10px; }
[data-card-style="framed"] .bc-cover { border-radius: var(--radius-sm); }
[data-card-style="framed"] .bc-body { padding: 22px 6px 4px; }
[data-card-style="minimal"] .book-card { background: transparent; box-shadow: none; }
[data-card-style="minimal"] .book-card:hover { transform: none; }
[data-card-style="minimal"] .bc-cover { border-radius: var(--radius); }
[data-card-style="minimal"] .bc-body { padding: 22px 2px 0; }
[data-card-style="minimal"] .bc-foot { border-top: 0; padding-top: 4px; }

/* ------------------------------------------------------------------ الشبكة المتفاوتة */
.mosaic:not(:has([data-region])) { display: none; }
.mosaic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.mosaic-item {
	position: relative; display: block; overflow: hidden; border-radius: var(--radius);
	grid-column: span 2; height: 300px; background: var(--grey);
}
.mosaic-item.mz-1 { grid-column: span 4; height: 360px; }
.mosaic-item.mz-2 { height: 360px; }
.mosaic-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic-item:hover img { transform: scale(1.05); }
.float-card {
	position: absolute; bottom: 18px; inset-inline-start: 18px; z-index: 1;
	display: flex; align-items: center; gap: 14px;
	width: min(320px, calc(100% - 36px));
	background: #fff; border-radius: var(--radius-sm); padding: 12px 12px 12px 14px; box-shadow: var(--shadow);
}
[dir="rtl"] .float-card { padding: 12px 14px 12px 12px; }
.fc-text { flex: 1; min-width: 0; }
.fc-text b { display: block; font-size: 17px; line-height: 1.35; }
.fc-text small { display: block; color: var(--muted); font-size: 13px; }
.circle-arrow {
	width: 40px; height: 40px; flex: none; border-radius: 50%;
	display: grid; place-items: center; background: var(--store-primary); color: #fff;
	transition: transform .25s;
}
.mosaic-item:hover .circle-arrow { transform: translateX(-4px); }

/* ------------------------------------------------------------------ المؤلّفون: كبسولات متفاوتة على خطوطٍ طبوغرافيّة */
.authors-sec {
	background-color: var(--soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420' fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='1.3'%3E%3Cpath d='M210 60c70 0 140 40 150 110s-40 150-120 160-170-30-180-110 80-160 150-160Z'/%3E%3Cpath d='M210 95c55 0 108 30 115 85s-30 112-92 120-130-22-138-84 60-121 115-121Z'/%3E%3Cpath d='M212 132c38 0 74 20 78 58s-22 76-64 82-88-15-93-58 41-82 79-82Z'/%3E%3Cpath d='M214 168c22 0 42 12 44 33s-13 42-36 45-49-8-51-32 21-46 43-46Z'/%3E%3Cpath d='M-20 20c60 10 90-30 150-20M290 400c50-20 100 10 150-10M-10 400c40-30 80-10 110-40'/%3E%3C/svg%3E");
	background-size: 420px 420px;
	padding-block: 72px;
}
.authors-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.authors-text .sec-title { font-size: 34px; margin-bottom: 14px; }
.authors-lead { color: var(--muted); font-size: 16px; margin-bottom: 26px; max-width: 520px; }
.cap-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 44px; gap: 14px;
}
.cap-author { position: relative; display: block; border-radius: var(--pill); overflow: hidden; background: var(--grey); box-shadow: var(--shadow); }
[data-corners="sharp"] .cap-author { border-radius: var(--radius); }
.cap-author img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cap-author:hover img { transform: scale(1.05); }
.cap-1 { grid-column: 3; grid-row: 3 / span 5; }
.cap-2 { grid-column: 2; grid-row: 1 / span 4; }
.cap-3 { grid-column: 2; grid-row: 5 / span 4; }
.cap-4 { grid-column: 1; grid-row: 2 / span 3; }
.cap-5 { grid-column: 1; grid-row: 5 / span 4; }
.cap-name {
	position: absolute; bottom: 14px; inset-inline: 10px; z-index: 1;
	background: #fff; border-radius: var(--pill); padding: 4px 10px; text-align: center; line-height: 1.35;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.cap-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-name small { display: block; color: var(--muted); font-size: 11.5px; }

/* ------------------------------------------------------------------ آراء القرّاء */
[data-show-reviews="false"] .reviews-home { display: none; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.review {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.rv-top { display: flex; align-items: center; gap: 8px; padding: 22px 22px 0; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars .icon { width: 17px; height: 17px; }
.stars .off { color: #D5D8CF; }
.rv-score { color: var(--muted); font-weight: 500; font-size: 14px; }
.rv-text { padding: 14px 22px 20px; color: var(--muted); flex: 1; }
.rv-who { display: flex; align-items: center; gap: 10px; background: var(--grey); padding: 14px 22px; }
.rv-avatar {
	width: 42px; height: 42px; flex: none; border-radius: 50%;
	display: grid; place-items: center; background: var(--accent-soft); color: var(--on-accent); font-weight: 800; font-size: 17px;
}
.rv-name { display: block; font-size: 15px; }
.rv-who small { display: block; color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ الشريط الزخرفيّ */
.shelf-strip {
	height: 92px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='92' viewBox='0 0 300 92' fill='%23E5E8DF'%3E%3Crect x='0' y='86' width='300' height='6'/%3E%3Crect x='12' y='30' width='16' height='56' rx='2'/%3E%3Crect x='30' y='18' width='20' height='68' rx='2'/%3E%3Crect x='52' y='38' width='14' height='48' rx='2'/%3E%3Cpath d='M70 86 86 26l14 4-16 60Z'/%3E%3Crect x='112' y='44' width='54' height='12' rx='2'/%3E%3Crect x='108' y='58' width='62' height='14' rx='2'/%3E%3Crect x='114' y='74' width='50' height='12' rx='2'/%3E%3Cpath d='M196 86h22l-3-22h-16Z'/%3E%3Cpath d='M207 64c-2-14-10-22-20-24 2 12 9 20 20 24Zm0 0c2-16 10-24 22-26-3 14-10 22-22 26Z'/%3E%3Crect x='240' y='24' width='18' height='62' rx='2'/%3E%3Crect x='260' y='34' width='14' height='52' rx='2'/%3E%3Crect x='276' y='14' width='16' height='72' rx='2'/%3E%3C/svg%3E") repeat-x bottom center / 300px 92px;
}

/* ------------------------------------------------------------------ البانر العريض الداكن */
.wide-sec { padding-top: 120px; }
.wide-banner {
	position: relative; display: flex; justify-content: flex-end; align-items: center;
	min-height: 290px; background: var(--navy); border-radius: var(--radius);
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1.4px, transparent 1.6px);
	background-size: 16px 16px;
}
.wb-img {
	position: absolute; bottom: 0; inset-inline: 0; width: 100%; height: auto; max-height: 410px;
	object-fit: contain; object-position: right bottom; pointer-events: none;
	border-radius: 0 0 var(--radius) var(--radius);
}
[dir="rtl"] .wb-img { object-position: right bottom; }
.wb-body {
	position: relative; z-index: 1; width: 50%; padding: 40px 48px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: #fff;
}
.wb-title { font-size: 30px; font-weight: 800; line-height: 1.3; }
.wb-text { color: #D9DEE7; font-size: 15.5px; }

/* ------------------------------------------------------------------ شاهدتَه مؤخّرًا */
.mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.mc-cover { position: relative; flex: none; width: 70px; aspect-ratio: 2 / 3; border-radius: var(--radius-xs); overflow: hidden; }
.mc-cover img { width: 100%; height: 100%; object-fit: cover; }
.mc-cover .type-dot { top: 4px; inset-inline-start: 4px; width: 22px; height: 22px; box-shadow: 0 0 0 2px #fff; }
.mc-cover .type-dot .icon { width: 13px; height: 13px; }
.mc-body { min-width: 0; }
.mc-body .book-title { font-size: 15px; }
.mc-body .book-author { margin-bottom: 4px; }
.mc-body .price [data-slot="book.price"] { font-size: 15px; }

/* ------------------------------------------------------------------ وصل حديثًا: أغلفةٌ متفاوتة الارتفاع */
.new-strip { padding-top: 56px; }
.new-strip .sec-head { margin-bottom: 28px; }
.tiles {
	display: flex; align-items: flex-end; gap: 18px;
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
	padding-inline: 18px; margin-bottom: -1px;
}
.tiles::-webkit-scrollbar { display: none; }
.tile {
	position: relative; flex: 0 0 236px; height: 300px; scroll-snap-align: center;
	border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--grey);
}
.tile:nth-child(4n + 2) { height: 262px; }
.tile:nth-child(4n + 3) { height: 336px; }
.tile:nth-child(4n) { height: 222px; }
.tile-cover, .tile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-cover img { transition: transform .5s; }
.tile:hover .tile-cover img { transform: scale(1.05); }
.tile .badge { position: absolute; top: 54px; inset-inline-start: 10px; z-index: 2; }
.tile-info {
	position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2;
	background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow);
	opacity: 0; transform: translateY(10px); transition: .25s;
}
.tile:hover .tile-info, .tile:focus-within .tile-info { opacity: 1; transform: none; }
@media (hover: none) { .tile-info { opacity: 1; transform: none; } }
.tile-info .book-title { font-size: 15px; }
.tile-info .book-author { font-size: 12.5px; margin: 0; }
.tile-info .bc-foot { padding-top: 5px; margin-top: 5px; }
.tile-info .bc-add { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ التذييل الداكن */
.site-footer { background: var(--navy); color: #C9D0DC; position: relative; overflow: hidden; }
.news-panel {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--radius); padding: 22px 26px; margin-top: 34px;
}
.np-text h2 { color: #fff; font-size: 22px; font-weight: 800; }
.np-text p { color: #C9D0DC; font-size: 14px; }
.np-field {
	display: flex; align-items: center; gap: 8px; flex: 0 1 480px;
	background: #fff; border-radius: var(--pill); padding: 5px 5px 5px 5px; padding-inline-start: 16px; color: #6A7280;
}
.np-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--store-text); min-height: 38px; }
.np-field input:focus { outline: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-block: 44px 20px; }
.brand-light .brand-name { color: #fff; }
.footer-brand p { margin: 14px 0 18px; font-size: 14px; max-width: 360px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 255, 255, .1); color: #fff;
}
.footer-social a:hover { background: var(--store-primary); }
.footer-social .icon { width: 17px; height: 17px; }
.footer-col h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 16px; position: relative; padding-bottom: 8px; }
.footer-col h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 2px; background: var(--store-accent); border-radius: 2px; }
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: 14.5px; color: #E2E7EF; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact li + li { margin-top: 12px; }
.fc-icon { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--store-primary); color: #fff; }
.fc-icon .icon { width: 18px; height: 18px; }
.footer-contact small { display: block; font-size: 12.5px; color: #B8C0CD; }
.footer-contact bdi, .footer-contact span > span { color: #fff; font-weight: 700; font-size: 14.5px; }
.footer-word {
	font-size: clamp(64px, 13vw, 200px); font-weight: 800; line-height: .82; text-align: center; white-space: nowrap;
	color: rgba(255, 255, 255, .055); margin-top: 6px; user-select: none; overflow: hidden;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); position: relative; }
.fb-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 16px; font-size: 13.5px; }
.fb-in b { color: #fff; }
.fb-in ul { display: flex; gap: 18px; }
.fb-in a:hover { color: #fff; }

/* ------------------------------------------------------------------ رؤوس الصفحات الداخليّة */
.page-band {
	background: var(--soft); padding: 40px 0 76px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}
.page-band-sm { padding: 18px 0 34px; }
.page-band-md { padding: 34px 0 64px; }
.pb-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 6px; }
.breadcrumb a:hover { color: var(--store-primary); }
.breadcrumb [aria-current] { color: var(--store-text); font-weight: 700; }
.pb-title { font-size: 36px; font-weight: 800; line-height: 1.25; margin-top: 8px; }
.pb-lead { color: var(--muted); font-size: 16px; margin-top: 6px; max-width: 620px; }
.pb-oval { flex: 0 0 300px; aspect-ratio: 5 / 3; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-lg); }
.pb-oval img { width: 100%; height: 100%; object-fit: cover; }

/* التصنيفات الفرعيّة */
.strip-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.sub-track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.sub-track::-webkit-scrollbar { display: none; }
.sub-oval {
	flex: none; display: flex; align-items: center; gap: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 18px 6px 6px;
}
[dir="rtl"] .sub-oval { padding: 6px 6px 6px 18px; }
.sub-oval:hover { border-color: var(--store-primary); }
.so-img { width: 70px; aspect-ratio: 5 / 3; border-radius: 50%; overflow: hidden; flex: none; }
.so-img img { width: 100%; height: 100%; object-fit: cover; }
.sub-oval b { display: block; font-size: 14.5px; line-height: 1.3; }
.sub-oval small { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ قائمة التصنيف */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 18px; font-weight: 800; }
.filters-head .icon-btn { display: none; }
.f-group { border-top: 1px solid var(--line); padding: 14px 0; }
.f-group legend { font-weight: 800; font-size: 15px; padding: 14px 0 8px; float: right; width: 100%; }
[dir="ltr"] .f-group legend { float: left; }
.f-group label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14.5px; clear: both; }
.f-group label small { color: var(--muted); }
.f-group input[type="checkbox"], .f-group input[type="radio"] { width: 17px; height: 17px; accent-color: var(--store-primary); }
.f-range { display: flex; align-items: center; gap: 8px; clear: both; }
.f-range .field { min-height: 38px; }
.stars-label .stars .icon { width: 14px; height: 14px; }
.filters > .btn { margin-top: 8px; display: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar p { color: var(--muted); }
.toolbar p b { color: var(--store-text); }
.toolbar-title { font-size: 22px; font-weight: 800; }
.toolbar-title small { color: var(--muted); font-size: 15px; }
.tb-tools { display: flex; align-items: center; gap: 10px; }
.filters-toggle { display: none; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle .round-btn { width: 38px; height: 38px; background: var(--grey); }
.view-toggle .round-btn[aria-pressed="true"] { background: var(--store-primary); }
.view-toggle .round-btn[aria-pressed="true"] .icon { stroke: #fff; }
.listing-grid { --per-row: 3; }
[data-books-per-row="4"] .listing-grid, [data-books-per-row="5"] .listing-grid, [data-books-per-row="6"] .listing-grid { --per-row: 3; }
[data-books-per-row="3"] .listing-grid { --per-row: 2; }
.listing-grid.is-list { grid-template-columns: 1fr; }
.listing-grid.is-list .book-card { flex-direction: row; }
.listing-grid.is-list .bc-media { width: 150px; flex: none; }
.listing-grid.is-list .bc-cover { border-radius: var(--radius) 0 0 var(--radius); height: 100%; }
[dir="rtl"] .listing-grid.is-list .bc-cover { border-radius: 0 var(--radius) var(--radius) 0; }
.listing-grid.is-list .bc-body { padding: 18px 20px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
	width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
	background: var(--grey); font-weight: 700;
}
.pagination span { background: none; }
.pagination a:hover { background: var(--soft-2); }
.pagination a[aria-current="page"] { background: var(--store-primary); color: #fff; }
.pagination .round-btn { background: #DADDD6; }

/* ------------------------------------------------------------------ صفحة الكتاب */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.pdp-top { display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-bottom: 28px; }
.gallery-main { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.gallery-main img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-main .rate-pill { left: 50%; right: auto; transform: translate(-50%, 50%); }
.thumbs { display: flex; gap: 10px; margin-top: 30px; justify-content: center; }
.thumbs button { width: 62px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-xs); overflow: hidden; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--store-primary); }
.thumbs img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.pdp-type { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.pdp-title { font-size: 34px; font-weight: 800; line-height: 1.3; margin: 6px 0 4px; }
.pdp-info .book-author { font-size: 15px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; }
.pdp-rating a { color: var(--muted); text-decoration: underline; }
.pdp-lead { color: var(--muted); font-size: 16px; }
.pdp-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.pdp-meta div { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 14px; }
.pdp-meta dt { color: var(--muted); font-size: 12.5px; }
.pdp-meta dd { font-weight: 700; font-size: 14.5px; }
.pd-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.box-title { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.box-sub { font-size: 16px; font-weight: 800; margin: 18px 0 8px; }
.prose p + p { margin-top: 10px; }
.prose { color: #3B4234; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.check-list .icon { color: var(--store-primary); width: 18px; height: 18px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.spec-grid div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-grid dt { color: var(--muted); }
.spec-grid dd { font-weight: 700; text-align: end; }
.reviews-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.rs-score { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rs-score strong { font-size: 44px; font-weight: 800; line-height: 1; }
.rs-score small { display: block; color: var(--muted); font-size: 13px; }
.rating-bars li { display: grid; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 2px 0; }
.bar { height: 8px; background: var(--grey); border-radius: var(--pill); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: var(--pill); }
.review-form { background: var(--soft); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 10px; }
.review-form h3 { font-size: 16px; font-weight: 800; }
.review-form p { color: var(--muted); font-size: 13.5px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { color: #CBCFC4; cursor: pointer; }
.star-input label .icon { width: 24px; height: 24px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--store-accent); border-radius: 4px; }
.review-form .btn { justify-self: start; }
.review-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-list .rv-top { padding: 16px 16px 0; }
.review-list .rv-text { padding: 10px 16px 14px; font-size: 14px; }
.review-list .rv-who { padding: 10px 16px; }
.review-list .rv-avatar { width: 36px; height: 36px; font-size: 15px; }

.buy-box {
	position: sticky; top: calc(var(--header-h) + 16px);
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px;
	display: grid; gap: 14px;
}
.bb-from { color: var(--muted); font-size: 13.5px; margin-bottom: -10px; }
.stock { display: flex; align-items: center; gap: 6px; color: var(--store-primary); font-weight: 700; font-size: 14px; }
.stock .icon { width: 18px; height: 18px; }
.bb-options { display: grid; gap: 12px; padding-block: 12px; border-block: 1px solid var(--line); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt-label { font-weight: 700; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: var(--pill); padding: 5px 12px; font-size: 13.5px; font-weight: 700; }
.chip .icon { width: 16px; height: 16px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.qty button { width: 36px; height: 38px; border: 0; background: none; font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--grey); }
.qty input { width: 44px; height: 38px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bb-buttons { display: grid; gap: 10px; }
.bb-trust { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.bb-trust li { display: flex; gap: 8px; align-items: flex-start; }
.bb-trust .icon { width: 18px; height: 18px; color: var(--store-primary); margin-top: 2px; }

/* ------------------------------------------------------------------ صفحة المؤلّف */
.author-hero {
	background-color: var(--soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420' fill='none' stroke='%23000' stroke-opacity='.07' stroke-width='1.3'%3E%3Cpath d='M210 60c70 0 140 40 150 110s-40 150-120 160-170-30-180-110 80-160 150-160Z'/%3E%3Cpath d='M210 95c55 0 108 30 115 85s-30 112-92 120-130-22-138-84 60-121 115-121Z'/%3E%3Cpath d='M212 132c38 0 74 20 78 58s-22 76-64 82-88-15-93-58 41-82 79-82Z'/%3E%3Cpath d='M214 168c22 0 42 12 44 33s-13 42-36 45-49-8-51-32 21-46 43-46Z'/%3E%3C/svg%3E");
	background-size: 420px 420px;
	padding: 48px 0 88px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%);
}
.ah-in { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.ah-photo { height: 320px; border-radius: var(--pill); overflow: hidden; box-shadow: var(--shadow-lg); }
[data-corners="sharp"] .ah-photo { border-radius: var(--radius); }
.ah-photo img { width: 100%; height: 100%; object-fit: cover; }
.ah-text .eyebrow { margin-top: 14px; }
.ah-text .pb-title { margin-top: 0; }
.ah-text .prose { color: var(--muted); font-size: 16px; max-width: 680px; margin-top: 8px; }
.ah-stats { display: flex; gap: 14px; margin-top: 18px; }
.ah-stats li { background: #fff; border-radius: var(--radius-sm); padding: 10px 18px; box-shadow: var(--shadow); }
.ah-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--store-primary); line-height: 1.2; }
.ah-stats small { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ السلّة */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
	display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.ci-cover { position: relative; display: block; border-radius: var(--radius-xs); overflow: hidden; }
.ci-cover img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.ci-cover .type-dot { top: 5px; inset-inline-start: 5px; width: 24px; height: 24px; box-shadow: 0 0 0 2px #fff; }
.ci-cover .type-dot .icon { width: 13px; height: 13px; }
.ci-type { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ci-info h3 { font-size: 17px; font-weight: 700; }
.ci-info .book-author { margin-bottom: 4px; }
.ci-side { display: flex; align-items: center; gap: 16px; }
.ci-total { min-width: 100px; text-align: end; font-size: 16px; }
.cart-under { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.empty-cart { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.empty-cart[hidden] { display: none; }
.empty-cart .tb-icon { background: var(--soft); }
.summary {
	position: sticky; top: calc(var(--header-h) + 16px);
	background: var(--navy); color: #D5DBE5; border-radius: var(--radius); padding: 24px;
	display: grid; gap: 16px;
}
.summary h2 { color: #fff; font-size: 21px; font-weight: 800; }
.coupon { display: flex; gap: 6px; background: rgba(255, 255, 255, .1); border-radius: var(--pill); padding: 5px; padding-inline-start: 14px; }
.coupon input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; }
.coupon input::placeholder { color: #B8C0CD; }
.coupon input:focus { outline: none; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.coupon-on b { color: #fff; }
.summary .link-btn { color: #fff; text-decoration: underline; font-weight: 500; }
.sum-rows div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sum-rows dd { color: #fff; font-weight: 700; }
.sum-total dt, .sum-total dd { color: #fff; font-size: 19px; font-weight: 800; }
.sum-total { border-bottom: 0 !important; }
.sum-trust { display: grid; gap: 8px; font-size: 13px; }
.sum-trust li { display: flex; gap: 8px; align-items: flex-start; }
.sum-trust .icon { width: 17px; height: 17px; margin-top: 2px; }

/* ------------------------------------------------------------------ 404 */
.nf-hero { background: var(--soft); padding-top: 56px; text-align: center; }
.nf-in { display: grid; justify-items: center; gap: 10px; padding-bottom: 28px; }
.nf-code { font-size: clamp(110px, 22vw, 200px); font-weight: 800; line-height: .9; color: var(--store-primary); letter-spacing: 4px; }
.nf-search { display: flex; gap: 6px; width: min(520px, 100%); background: #fff; border-radius: var(--pill); padding: 5px; padding-inline-start: 18px; box-shadow: var(--shadow); margin: 12px 0 6px; }
.nf-search input { flex: 1; min-width: 0; border: 0; background: transparent; }
.nf-search input:focus { outline: none; }
.nf-hero .shelf-strip { background-color: transparent; }

/* ------------------------------------------------------------------ components.html */
.kit-title { font-size: 20px; font-weight: 800; margin: 44px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.kit-title:first-child { margin-top: 0; }
.kit-label { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.kit-cards { --per-row: 4; }
.kit-cell { display: flex; flex-direction: column; }
.kit-cell .book-card { flex: 1; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kit-row .type-dot { position: static; }
.kit-dark { background: var(--navy); padding: 10px; border-radius: var(--radius-sm); }
.kit-opts { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.kit-opts div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kit-tiles { padding: 0; }
.kit-mosaic .mosaic-item { grid-column: span 3; }
.kit .pagination { margin-top: 0; }

/* ------------------------------------------------------------------ الاستجابة */
@media (max-width: 1180px) {
	.main-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.header-actions { margin-inline-start: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.pdp { grid-template-columns: minmax(0, 1fr) 300px; }
	.pdp-top { grid-template-columns: 240px 1fr; }
}

@media (max-width: 1023px) {
	.section { padding-block: 52px; }
	.hero { height: 560px; }
	.slide-title { font-size: 40px; }
	.book-grid { --per-row: 3 !important; }
	.listing-grid { --per-row: 3 !important; }
	.cat-oval { flex-basis: calc((100% - 2 * 24px) / 3); }
	.trust-bar { grid-template-columns: repeat(2, 1fr); }
	.mosaic-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.mosaic-item, .mosaic-item.mz-1, .mosaic-item.mz-2 { grid-column: span 1; height: 280px; }
	.mosaic-item.mz-1 { grid-column: span 2; }
	.authors-in { grid-template-columns: 1fr; gap: 36px; }
	.authors-text { text-align: center; }
	.authors-lead { margin-inline: auto; }
	.reviews-grid { grid-template-columns: repeat(2, 1fr); }
	.wb-body { width: 58%; padding: 32px; }
	.mini-row { grid-template-columns: repeat(2, 1fr); }
	.listing { grid-template-columns: 1fr; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 61; width: min(330px, 88vw);
		border-radius: 0; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s;
	}
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-open .filters-backdrop { opacity: 1; visibility: visible; }
	.filters-head .icon-btn, .filters > .btn, .filters-toggle { display: inline-flex; }
	.filters > .btn { display: flex; }
	.pdp { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.pdp-main { display: contents; }
	.pdp-top { order: 1; margin-bottom: 0; }
	.buy-box { order: 2; position: static; margin-top: 24px; }
	.pd-box { order: 3; }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.review-list { grid-template-columns: 1fr 1fr; }
	.kit-cards { --per-row: 2 !important; }
}

@media (max-width: 767px) {
	:root { --gutter: 16px; --header-h: 60px; }
	body { font-size: 14.5px; }
	.section { padding-block: 44px; }
	.section-tight { padding-block: 30px; }
	.header-in { gap: 10px; padding-inline: 12px; }
	.brand-name { font-size: 17px; }
	.brand img { width: 34px; height: 34px; }
	.header-cta, .hide-sm { display: none; }
	.icon-btn { width: 38px; height: 38px; }
	.sec-title { font-size: 24px; }
	.sec-head { margin-bottom: 24px; }
	.hero { height: 500px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%); }
	.slide-body { padding-bottom: 170px; }
	.slide-title { font-size: 29px; }
	.slide-text { font-size: 15px; margin: 10px 0 18px; }
	.hero-dots { bottom: 180px; }
	.hero:not([hidden]) + .hero-search { margin-top: -160px; }
	.hero-search { padding: 28px 0 56px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%); }
	.search-card { padding: 16px; }
	.sc-fields { flex-direction: column; }
	.sc-box { border-inline-start: 0; border-top: 1px solid var(--line); padding: 10px 14px; }
	.sc-box:first-child { border-top: 0; }
	.sc-btn, [dir="rtl"] .sc-btn { min-height: 46px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
	.sc-box:nth-child(3) { display: none; }
	.scroller { gap: 0; }
	.scroller .round-btn { display: none; }
	.cat-track { gap: 14px; }
	.cat-oval { flex-basis: 64%; }
	.cat-oval b { font-size: 16px; margin-top: 10px; }
	.trust-section { padding-bottom: 28px; }
	.book-grid, .listing-grid, .kit-cards { --per-row: 2 !important; gap: 14px; }
	.bc-body { padding: 20px 11px 12px; }
	.book-title { font-size: 14.5px; }
	.book-author { font-size: 12.5px; }
	.price-wrap small { display: none; }
	.price [data-slot="book.price"] { font-size: 15px; }
	.price del { font-size: 12px; }
	.price-lg [data-slot="book.price"] { font-size: 26px; }
	.price-lg del { font-size: 15px; }
	.bc-add { width: 34px; height: 34px; }
	.type-dot { width: 30px; height: 30px; top: 9px; inset-inline-start: 9px; }
	.type-dot .icon { width: 16px; height: 16px; }
	.bc-media .badge { top: 46px; inset-inline-start: 7px; font-size: 11.5px; padding: 2px 8px; }
	.bc-wish { top: 9px; inset-inline-end: 9px; width: 32px; height: 32px; }
	.rate-pill { inset-inline-end: 8px; padding: 2px 8px; font-size: 12px; }
	.rate-pill small { display: none; }
	.authors-sec { padding-block: 52px; }
	.authors-text .sec-title { font-size: 26px; }
	.cap-grid { grid-auto-rows: 34px; gap: 10px; }
	.cap-name { inset-inline: 6px; bottom: 10px; padding: 3px 6px; }
	.cap-name b { font-size: 12px; }
	.cap-name small { font-size: 10.5px; }
	.shelf-strip { height: 70px; background-size: 228px 70px; }
	.wide-sec { padding-top: 40px; }
	.wide-banner { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 180px; }
	.wb-img { top: 0; bottom: auto; height: 200px; max-height: none; object-fit: cover; object-position: 88% bottom; border-radius: var(--radius) var(--radius) 0 0; }
	[dir="rtl"] .wb-img { object-position: 88% bottom; }
	.wb-body { width: 100%; padding: 22px; }
	.wb-title { font-size: 23px; }
	.new-strip { padding-top: 40px; }
	.tiles { gap: 10px; padding-inline: 10px; }
	.tile { flex-basis: 168px; height: 240px; }
	.tile:nth-child(4n + 2) { height: 212px; }
	.tile:nth-child(4n + 3) { height: 262px; }
	.tile:nth-child(4n) { height: 190px; }
	.tile-info { inset-inline: 6px; bottom: 6px; padding: 8px; }
	.tile-info .book-title { font-size: 13.5px; }
	.tile-info .price [data-slot="book.price"] { font-size: 13.5px; }
	.tile-info .bc-add { width: 30px; height: 30px; }
	.tile-info .bc-add .icon { width: 15px; height: 15px; }
	.news-panel { flex-direction: column; align-items: stretch; padding: 18px; margin-top: 24px; }
	.np-field { flex-basis: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-block: 32px 14px; }
	.footer-brand, .footer-contact { grid-column: 1 / -1; }
	.fb-in { flex-direction: column; text-align: center; }
	.page-band { padding: 26px 0 56px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
	.page-band-sm { padding: 14px 0 30px; }
	.pb-in { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
	.pb-oval { flex: none; width: 70%; align-self: center; }
	.pb-title { font-size: 27px; }
	.pb-lead { font-size: 14.5px; }
	.toolbar p { width: 100%; }
	.tb-tools { flex-wrap: wrap; width: 100%; }
	.listing-grid.is-list .bc-media { width: 112px; }
	.pagination a, .pagination span { width: 38px; height: 38px; }
	.pagination .round-btn { width: 38px; height: 38px; }
	.pdp-top { grid-template-columns: 1fr; gap: 20px; }
	.gallery { max-width: 250px; margin-inline: auto; width: 100%; }
	.pdp-title { font-size: 26px; }
	.pdp-meta { grid-template-columns: 1fr; gap: 6px; }
	.pdp-meta div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; }
	.pd-box { padding: 18px; }
	.spec-grid { grid-template-columns: 1fr; }
	.reviews-layout { grid-template-columns: 1fr; }
	.review-list { grid-template-columns: 1fr; }
	.author-hero { padding: 32px 0 64px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%); }
	.ah-in { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
	.ah-photo { width: 170px; height: 240px; }
	.ah-text .breadcrumb, .ah-stats { justify-content: center; }
	.cart-item { grid-template-columns: 70px 1fr; gap: 12px; }
	.ci-side { grid-column: 1 / -1; justify-content: space-between; }
	.ci-total { min-width: 0; }
	.kit-mosaic .mosaic-item { grid-column: span 1; }
	.kit-opts { gap: 12px; }
}

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

/* ==================== تبويبات التصنيفات في صفّ المختارات (ميزة المنصّة) ==================== */
.tab-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -6px 0 30px; }
.tab-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 16px 5px 6px;
	background: var(--white); color: var(--store-text); border: 1px solid var(--line); border-radius: var(--pill);
	font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.tab-chip:hover { border-color: var(--store-primary); }
.tab-chip .tc-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft-2); color: var(--store-primary); }
.tab-chip .tc-dot .icon { width: 15px; height: 15px; }
.tab-chip img.tc-dot { object-fit: cover; background: none; }
.tab-chip[aria-selected="true"] { background: var(--store-primary); border-color: var(--store-primary); color: var(--white); }
.tab-chip[aria-selected="true"] .tc-dot { background: rgba(255, 255, 255, .2); color: var(--white); }
.book-card[hidden] { display: none; }
@media (max-width: 640px) {
	.tab-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.tab-chips::-webkit-scrollbar { display: none; }
	.tab-chip { flex: none; }
}

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

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

/* النظرة السريعة: تطفو تحت المفضّلة فوق الغلاف، ولا تحجز مكانًا */
.bc-quick {
	position: absolute; top: 56px; inset-inline-end: 12px; z-index: 2;
	width: 36px; height: 36px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: #fff; color: var(--store-text);
	box-shadow: var(--shadow); opacity: 0; transform: scale(.85); transition: .2s;
}
.bc-quick .icon { width: 19px; height: 19px; }
.book-card:hover .bc-quick, .bc-quick:focus-visible { opacity: 1; transform: none; }
.bc-quick:hover, .bc-wish:hover { color: var(--store-primary); }
@media (hover: none) { .bc-quick { opacity: 1; transform: none; } }

/* صفوفٌ كاملة دائمًا: rows-1 صفٌّ واحد، وrows-2 صفّان، أيًّا كان عدد الكتب في الصفّ */
@media (min-width: 1024px) {
	[data-books-per-row="3"] .rows-1 > :nth-child(n + 4),
	[data-books-per-row="4"] .rows-1 > :nth-child(n + 5),
	[data-books-per-row="5"] .rows-1 > :nth-child(n + 6),
	[data-books-per-row="3"] .rows-2 > :nth-child(n + 7),
	[data-books-per-row="4"] .rows-2 > :nth-child(n + 9),
	[data-books-per-row="5"] .rows-2 > :nth-child(n + 11) { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.rows-1 > :nth-child(n + 4), .rows-2 > :nth-child(n + 7) { display: none; }
}
@media (max-width: 767px) {
	.rows-1 > :nth-child(n + 5), .rows-2 > :nth-child(n + 7) { display: none; }
}

/* الصفّ الأفقيّ: يُمرَّر باللمس، وسهمان رماديّان في الحاسوب */
.book-scroll {
	flex: 1; min-width: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; padding: 6px 4px 14px; margin: -6px -4px -14px;
}
.book-scroll::-webkit-scrollbar { display: none; }
.book-scroll > .book-card { flex: 0 0 calc((100% - (var(--per-row) - 1) * 24px) / var(--per-row)); scroll-snap-align: start; }
.book-scroll > .book-card:hover { transform: none; }
.book-scroll .price-wrap small { display: none; }

/* عروض الحصاد: شريطٌ قمحيّ بحافّتين مائلتين، ولوحةٌ بلون المتجر فيها العدّاد */
.deal-sec {
	background: color-mix(in srgb, var(--store-accent) 20%, #FFFFFF);
	clip-path: polygon(0 0, 100% 56px, 100% 100%, 0 calc(100% - 56px));
	padding: 104px 0 108px;
}
.deal-in { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: stretch; }
.deal-panel {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
	background: var(--store-primary); color: #fff; border-radius: var(--radius); padding: 28px 24px 24px;
}
.deal-panel::before {
	content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
	inset-inline-end: -110px; bottom: -120px; border: 26px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 26px rgba(255, 255, 255, .05);
}
.deal-panel > * { position: relative; }
.deal-kicker { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.deal-title { font-size: 30px; font-weight: 800; line-height: 1.25; }
.deal-sub { font-size: 15px; opacity: .92; }
.countdown { display: grid; gap: 8px; margin-top: 6px; }
.countdown[hidden] { display: none; }
.cd-label { font-size: 13.5px; font-weight: 700; }
.cd-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-unit {
	display: grid; justify-items: center; align-content: center; gap: 0; padding: 10px 2px 8px;
	background: #fff; color: var(--store-text); border-radius: var(--pill); line-height: 1.1;
}
[data-corners="sharp"] .cd-unit { border-radius: var(--radius-sm); }
.cd-unit b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.deal-nav { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.deal-nav .btn { flex: 1; }
.deal-nav .round-btn { width: 40px; height: 40px; background: rgba(255, 255, 255, .16); }
.deal-nav .round-btn .icon { stroke: #fff; }
.deal-nav .round-btn:hover { background: rgba(255, 255, 255, .3); }
.deal-track > .book-card { flex-basis: 232px; }

/* كتاب الموسم: الغلاف أمام قرص شمسٍ قمحيّ بحلقةٍ منقّطة */
.spot {
	display: grid; grid-template-columns: minmax(0, 1fr) 460px; column-gap: 64px; align-items: center;
	grid-template-areas: "head media" "body media";
}
.spot-items, .spot-book { display: contents; }
.spot-head { grid-area: head; align-self: end; margin-bottom: 14px; }
.spot-head .sec-title { font-size: 34px; }
.spot-media { grid-area: media; position: relative; display: grid; place-items: center; padding: 34px 0 30px; }
.spot-media::before {
	content: ""; position: absolute; width: 420px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
	background: var(--accent-soft); box-shadow: 0 0 0 14px #fff, 0 0 0 16px color-mix(in srgb, var(--store-accent) 40%, #fff);
}
.spot-cover { position: relative; display: block; width: 236px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .3s; }
.spot-cover:hover { transform: none; }
.spot-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.spot-media .type-dot { top: 44px; inset-inline-start: calc(50% - 132px); }
.spot-media .rate-pill { bottom: 30px; inset-inline-end: auto; left: 50%; transform: translate(-50%, 50%); }
.spot-body { grid-area: body; align-self: start; }
.spot-title { font-size: 28px; font-weight: 800; line-height: 1.3; }
.spot-title a:hover { color: var(--store-primary); }
.spot-body .book-author { font-size: 15px; margin-top: 4px; }
.spot-desc { margin-top: 14px; font-size: 15.5px; max-width: 560px; }
.spot-price { margin-top: 10px; }
.spot-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* المقالات: صورةٌ بحافّةٍ سفليّة مائلة يركبها التاريخ */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pc-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .pc-media img { transform: scale(1.05); }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; flex: 1; }
.pc-date {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	margin-top: -14px; position: relative; z-index: 1;
	background: #fff; border-radius: var(--pill); padding: 3px 12px; box-shadow: 0 3px 12px rgba(20, 28, 10, .14);
	color: var(--muted); font-size: 13px;
}
.pc-date .icon { width: 15px; height: 15px; color: var(--store-primary); }
.pc-title { font-size: 18px; font-weight: 800; line-height: 1.45; }
.pc-title a:hover { color: var(--store-primary); }
.pc-excerpt { color: var(--muted); font-size: 14.5px; }
.pc-more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--store-primary); }
.pc-more .circle-arrow { width: 32px; height: 32px; }
.pc-more .circle-arrow .icon { width: 16px; height: 16px; }
.pc-more:hover .circle-arrow { transform: translateX(-4px); }

/* صفحة المدوّنة: أوّل مقالٍ عريض بصورةٍ جانبيّة، ثمّ ثلاثة */
.blog-grid > :first-child { grid-column: 1 / -1; flex-direction: row; }
.blog-grid > :first-child .pc-media { flex: 0 0 56%; aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
[dir="rtl"] .blog-grid > :first-child .pc-media { clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%); }
.blog-grid > :first-child .pc-body { justify-content: center; padding: 32px; gap: 12px; }
.blog-grid > :first-child .pc-date { margin-top: 0; }
.blog-grid > :first-child .pc-title { font-size: 26px; }
.blog-grid > :first-child .pc-excerpt { font-size: 16px; }
.blog-grid > :first-child .pc-more { margin-top: 6px; }

/* صفحة المقال */
.post-head { max-width: 860px; }
.post-head .pc-date { margin: 14px 0 0; }
.post-wrap { max-width: calc(860px + 2 * var(--gutter)); padding-block: 4px 64px; }
.post-figure { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-bottom: 30px; }
.post-body { font-size: 17px; line-height: 1.95; }
.post-body h2 { font-size: 23px; font-weight: 800; color: var(--store-text); margin: 28px 0 8px; }
.post-body p + p { margin-top: 14px; }
.post-body blockquote {
	margin: 26px 0 0; padding: 18px 22px; background: var(--soft); border-radius: var(--radius-sm);
	border-inline-start: 4px solid var(--store-accent); font-weight: 500;
}
.post-back { margin-top: 30px; }

/* اختيار الصيغة في بطاقة الشراء: يختفي إن لم تكن للعنوان غير صيغةٍ واحدة */
.formats { display: grid; gap: 8px; }
.fmt-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fmt {
	display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; text-align: center;
	border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; line-height: 1.3;
}
.fmt:hover { border-color: var(--store-primary); }
.fmt.is-current { border-color: var(--store-primary); background: var(--soft); }
.fmt-name { font-weight: 700; font-size: 13.5px; margin-top: 3px; }
.fmt-price { font-size: 12.5px; color: var(--muted); }
.fmt.is-current .fmt-price { color: var(--store-primary); font-weight: 700; }
[data-slot="book.formats"]:not(:has([data-repeat="format"] ~ [data-preview-copy])) { display: none; }

/* التصفية المطبّقة في صفحة التصنيف */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 22px; }
.af-label { color: var(--muted); font-size: 14px; }
.af-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 14px;
	background: var(--soft); border-radius: var(--pill); font-size: 13.5px; font-weight: 700;
}
[dir="rtl"] .af-chip { padding: 0 14px 0 10px; }
.af-chip .icon { width: 15px; height: 15px; }
.af-chip:hover { background: var(--soft-2); }
.af-clear { color: var(--store-primary); font-size: 13.5px; font-weight: 700; text-decoration: underline; }

/* أعمال المؤلّف صفٌّ أفقيّ بسهمين، فلا يبقى صفٌّ ناقص */
.works-scroller { align-items: center; }

/* components.html */
.kit-narrow { max-width: 360px; }

@media (max-width: 1180px) {
	.spot { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; }
	.spot-media::before { width: 360px; }
}

@media (max-width: 1023px) {
	.book-scroll { --per-row: 3; }
	.deal-sec { padding: 84px 0 88px; clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px)); }
	.deal-in { grid-template-columns: 1fr; gap: 20px; }
	.deal-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
	.deal-panel > :not(.countdown):not(.deal-nav) { grid-column: 1; }
	.deal-panel .countdown { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
	.deal-nav { grid-column: 1 / -1; margin-top: 4px; padding-top: 6px; }
	.deal-nav .btn { flex: 0 1 auto; }
	.spot { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; }
	.spot-media::before { width: 290px; }
	.spot-cover { width: 190px; }
	.spot-media .type-dot { inset-inline-start: calc(50% - 108px); }
	.post-grid { gap: 18px; }
	.pc-body { padding: 0 16px 16px; }
	.pc-title { font-size: 16.5px; }
	.blog-grid > :first-child .pc-body { padding: 22px; }
	.blog-grid > :first-child .pc-title { font-size: 21px; }
}

@media (max-width: 767px) {
	/* شريط الثقة شريطٌ واحد يُمرَّر */
	.trust-bar.swipe-sm { display: flex; gap: 8px; padding: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding-inline: var(--gutter); }
	.trust-bar.swipe-sm::-webkit-scrollbar { display: none; }
	.trust-bar.swipe-sm li { flex: none; scroll-snap-align: start; gap: 8px; background: #fff; border-radius: var(--pill); padding: 5px 16px 5px 5px; }
	[dir="rtl"] .trust-bar.swipe-sm li { padding: 5px 5px 5px 16px; }
	.trust-bar.swipe-sm .tb-icon { width: 36px; height: 36px; background: var(--soft); }
	.trust-bar.swipe-sm .tb-icon .icon { width: 19px; height: 19px; }
	.trust-bar.swipe-sm b { font-size: 13.5px; line-height: 1.3; white-space: nowrap; }
	.trust-bar.swipe-sm small { font-size: 12px; white-space: nowrap; display: block; line-height: 1.3; }
	/* الصفوف التي تتكدّس في الهاتف صارت تُمرَّر أفقيًّا */
	.swipe-sm:not(.trust-bar) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; }
	.swipe-sm::-webkit-scrollbar { display: none; }
	.reviews-grid.swipe-sm > * { flex: 0 0 84%; scroll-snap-align: center; }
	.mini-row.swipe-sm > * { flex: 0 0 78%; scroll-snap-align: start; }
	/* الشبكة المتفاوتة عمودان مدمجان */
	.mosaic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mosaic-item, .mosaic-item.mz-2 { grid-column: span 1; height: 172px; }
	.mosaic-item.mz-1 { grid-column: span 2; height: 196px; }
	.float-card { bottom: 8px; inset-inline-start: 8px; width: calc(100% - 16px); gap: 8px; padding: 8px 10px !important; }
	.fc-text b { font-size: 14px; }
	.fc-text small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mz-1 .fc-text small { white-space: normal; }
	.float-card .circle-arrow { width: 30px; height: 30px; }
	.float-card .circle-arrow .icon { width: 16px; height: 16px; }
	.bc-quick { top: 46px; inset-inline-end: 9px; width: 32px; height: 32px; }
	.bc-quick .icon { width: 17px; height: 17px; }
	.book-scroll { gap: 14px; --per-row: 2; }
	.book-scroll > .book-card { flex-basis: calc((100% - 14px) / 2.2); }
	.works-scroller .book-scroll { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.deal-sec { padding: 64px 0 70px; clip-path: polygon(0 0, 100% 28px, 100% 100%, 0 calc(100% - 28px)); }
	.deal-panel { display: flex; padding: 20px 18px 18px; }
	.deal-title { font-size: 24px; }
	.deal-sub { font-size: 14px; }
	.cd-unit b { font-size: 19px; }
	.deal-nav .round-btn { display: none; }
	.deal-nav .btn { flex: 1; }
	.deal-track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.deal-track > .book-card { flex-basis: 168px; }
	.spot { grid-template-columns: 1fr; grid-template-areas: "head" "media" "body"; }
	.spot-head { text-align: center; margin-bottom: 0; }
	.spot-head .sec-title { font-size: 24px; }
	.spot-media { padding: 26px 0 30px; }
	.spot-media::before { width: 250px; }
	.spot-cover { width: 160px; }
	.spot-media .type-dot { top: 36px; inset-inline-start: calc(50% - 92px); }
	.spot-media .rate-pill { bottom: 30px; }
	.spot-title { font-size: 23px; }
	.spot-desc { font-size: 14.5px; }
	.spot-price { margin-top: 10px; }
.spot-buy { gap: 12px 16px; }
	.spot-buy .btn { flex: 1 1 auto; }
	.post-grid:not(.blog-grid) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; }
	.post-grid:not(.blog-grid)::-webkit-scrollbar { display: none; }
	.post-grid:not(.blog-grid) > * { flex: 0 0 82%; scroll-snap-align: center; }
	.blog-grid { grid-template-columns: 1fr; gap: 16px; }
	.blog-grid > :first-child { flex-direction: column; }
	.blog-grid > :first-child .pc-media, [dir="rtl"] .blog-grid > :first-child .pc-media { flex: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 84%); }
	.blog-grid > :first-child .pc-body { padding: 0 16px 18px; }
	.blog-grid > :first-child .pc-date { margin-top: -14px; }
	.blog-grid > :first-child .pc-title { font-size: 19px; }
	.blog-grid > :first-child .pc-excerpt { font-size: 14.5px; }
	.post-body { font-size: 16px; }
	.post-body h2 { font-size: 20px; }
	.post-figure { margin-bottom: 22px; }
	.post-wrap { padding-bottom: 44px; }
	.active-filters { margin: 0 0 16px; }
}

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