/* ==================================================================
   قالب «نَضارة» (nadara) لمنصّة ناشر
   هادئٌ دافئ: خلفيّاتٌ كريميّة، وعناوين ضخمة رفيعة، وإطاراتٌ مقوّسة،
   وأزرارٌ كبسوليّة، ورأسٌ عائم، وتذييلٌ كحليّ واحد.
   ألوان الهويّة متغيّراتٌ يختارها الناشر، وكلّ ما عداها محايد أو مشتقّ منها.
   ================================================================== */

:root {
	--store-primary: #68513F;
	--store-primary-dark: #4E3C2E;
	--store-accent: #09132E;
	--store-bg: #F6F1EB;
	--store-text: #1A1A1A;

	/* محايدات مشتقّة من ألوان المتجر */
	--tone: color-mix(in srgb, var(--store-bg) 93%, var(--store-primary));
	--tone-2: color-mix(in srgb, var(--store-bg) 85%, var(--store-primary));
	--surface: #fff;
	--muted: color-mix(in srgb, var(--store-text) 76%, var(--store-bg));
	--line: color-mix(in srgb, var(--store-text) 14%, transparent);
	--line-strong: color-mix(in srgb, var(--store-text) 42%, transparent);
	--on-dark: rgba(255, 255, 255, .8);
	--gold: #D9A21B;
	--gold-off: #D9CFC4;
	--ok: #2E6B4A;

	/* أنواع الكتب (ثابتة، القاعدة 6) */
	--type-print: #DB7056;
	--type-ebook: #5675A3;
	--type-audio: #986AB0;
	--type-edu: #3f8f6b;

	--font: "Tajawal", system-ui, sans-serif;
	--r-card: 14px;
	--r-sm: 10px;
	--arch: 999px;
	--head-h: 88px;
	--per-row: 4;
	--list-cols: 3;
}

body[data-books-per-row="3"] { --per-row: 3; --list-cols: 2; }
body[data-books-per-row="4"] { --per-row: 4; --list-cols: 3; }
body[data-books-per-row="5"] { --per-row: 5; --list-cols: 4; }
body[data-frame-shape="rounded"] { --arch: 28px; }

/* ------------------------------------------------------------------ الأساس */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--store-accent); outline-offset: 3px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section-tone { background: var(--tone); }

.icon {
	width: 20px; height: 20px; flex: none;
	stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }
.icon-flip { transform: scaleX(-1); }

/* ------------------------------------------------------------------ الأزرار والوسوم */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
	font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.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: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 82%, #fff); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--store-text); }
.btn-outline:hover { border-color: var(--store-text); background: var(--surface); }
.btn-light { background: #fff; color: var(--store-accent); }
.btn-light:hover { background: var(--store-bg); }
.btn[disabled] { cursor: not-allowed; }

.icon-btn {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
	background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: inherit; padding: 0;
}
.icon-btn:hover { border-color: var(--store-text); }
.icon-btn[aria-pressed="true"] { color: var(--store-primary); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }

.round-go {
	width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
	background: var(--store-accent); color: #fff;
}
.round-go .icon { width: 18px; height: 18px; }

.tag {
	display: inline-flex; align-items: center; padding: 3px 16px; border-radius: 999px;
	border: 1px solid var(--store-text); font-size: 14px; color: var(--store-text);
}
.sec-head.center { text-align: center; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.sec-title {
	font-size: clamp(28px, 3.3vw, 46px); font-weight: 400; line-height: 1.25;
	margin: 16px 0 0; color: var(--store-accent);
}
.sec-head.center .sec-title { max-width: 660px; margin-inline: auto; }
.sec-lead { max-width: 440px; margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ النجوم والسعر ونوع الكتاب */
.rating { display: inline-flex; align-items: center; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .icon { width: 15px; height: 15px; }
.stars .off { color: var(--gold-off); }
.rate-count { font-size: 13px; color: var(--muted); }
.price { color: var(--store-primary); font-weight: 700; font-size: 16px; }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-inline-start: 6px; }
.price-lg { display: block; font-size: 34px; font-weight: 400; color: var(--store-text); margin: 4px 0; }
.price-lg del { font-size: 22px; }

.type-dot {
	position: absolute; top: -10px; inset-inline-start: -10px; z-index: 2;
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.type-dot .icon { width: 15px; height: 15px; }
.type-dot[data-type="print"] { background: var(--type-print); }
.type-dot[data-type="ebook"] { background: var(--type-ebook); }
.type-dot[data-type="audio"] { background: var(--type-audio); }
.type-dot[data-type="educational"] { background: var(--type-edu); }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-sale { background: var(--store-primary); color: #fff; }
.badge-new { background: #fff; color: var(--store-text); border: 1px solid var(--store-text); }

/* ------------------------------------------------------------------ الرأس العائم */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--head-h);
	padding-top: 14px; pointer-events: none;
}
.site-header .container > * { pointer-events: auto; }
.header-bar {
	display: flex; align-items: center; gap: 16px;
	background: var(--surface); border-radius: 999px; padding: 8px 8px 8px 8px; padding-inline-start: 22px;
	box-shadow: 0 8px 28px -12px rgba(40, 25, 10, .22);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--store-text); white-space: nowrap; }
.main-nav { margin-inline: auto; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav button {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border: 0; background: none;
	font-size: 15px; font-weight: 500; cursor: pointer; border-radius: 999px; color: var(--store-text);
}
.main-nav a:hover, .main-nav button:hover { color: var(--store-primary); }
.main-nav button .icon { width: 16px; height: 16px; }
.has-drop { position: relative; }
.drop { position: absolute; top: 100%; inset-inline-start: 0; padding-top: 14px; display: none; z-index: 5; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { display: block; }
.drop ul {
	list-style: none; margin: 0; padding: 10px; min-width: 220px; background: var(--surface);
	border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(40, 25, 10, .3);
}
.drop a { display: block; padding: 9px 14px; border-radius: 10px; }
.drop a:hover { background: var(--tone); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.cart-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 8px; padding-inline-start: 16px;
	border-radius: 999px; background: var(--store-accent); color: #fff; font-size: 14px; font-weight: 500;
}
.cart-pill .icon { width: 18px; height: 18px; }
.cart-count {
	min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--store-accent);
	display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.track-btn { height: 42px; }
.menu-toggle { display: none; }
.header-search {
	display: none; gap: 6px; margin-top: 10px; margin-inline-start: auto; max-width: 560px;
	background: var(--surface); border-radius: 999px; padding: 6px; box-shadow: 0 12px 30px -14px rgba(40, 25, 10, .3);
}
.search-open .header-search { display: flex; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; outline-offset: 0; }

/* أوّل قسمٍ في كلّ صفحة يمتدّ خلف الرأس العائم */
main > :first-child { margin-top: calc(-1 * var(--head-h)); }

/* ------------------------------------------------------------------ الدرج الجانبيّ */
.drawer-backdrop {
	position: fixed; inset: 0; z-index: 90; background: rgba(9, 19, 46, .45);
	opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-open .drawer-backdrop, .filters-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100; width: min(330px, 88vw);
	background: var(--surface); padding: 20px; overflow-y: auto;
	transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head .brand-name { font-size: 18px; }
.drawer-search { display: flex; gap: 6px; margin: 18px 0 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; }
.drawer-search .icon-btn { width: 38px; height: 38px; border: 0; background: var(--store-accent); color: #fff; }
.drawer-nav { list-style: none; padding: 0; margin: 0; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav > li > a, .drawer-label { display: block; padding: 13px 4px; font-weight: 500; }
.drawer-label { color: var(--muted); font-size: 14px; padding-bottom: 4px; }
.drawer-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 14px; }
.drawer-cats a { padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }
.drawer-contact { display: grid; gap: 10px; margin-top: 18px; }
.drawer-contact a { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* ------------------------------------------------------------------ الهيرو: عنوانٌ ضخم وثلاثة أقواس */
.hero {
	background: linear-gradient(180deg, var(--tone) 0%, var(--store-bg) 100%);
	padding-top: calc(var(--head-h) + 20px);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.hero-grid {
	display: grid; grid-template-columns: 1fr 1.12fr .82fr; grid-template-rows: auto auto auto;
	column-gap: 32px; row-gap: 22px;
}
.hero-slider {
	grid-column: 1 / -1; grid-row: 1 / -1; position: relative;
	display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
}
.slides { display: contents; }
.slide {
	grid-column: 1 / -1; grid-row: 1 / -1;
	display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
	visibility: hidden; opacity: 0; transition: opacity .6s, visibility .6s;
}
.slide:first-child, .slider-ready .slide.is-active { visibility: visible; opacity: 1; }
.slider-ready .slide:first-child:not(.is-active) { visibility: hidden; opacity: 0; }
.hero-title {
	grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1;
	margin: 0; padding: 18px 0 4px; font-size: clamp(44px, 7.6vw, 116px); font-weight: 300;
	line-height: 1.08; color: var(--store-text); letter-spacing: -.01em;
}
.hero-copy { grid-column: 1; grid-row: 2; align-self: start; position: relative; z-index: 1; }
.hero-copy p { max-width: 360px; margin: 0 0 22px; font-size: 17px; color: var(--muted); line-height: 1.85; }
.hero-arch {
	grid-column: 2; grid-row: 2 / 4; margin: 0; height: 540px; align-self: end;
	border-radius: var(--arch) var(--arch) 0 0; overflow: hidden; background: var(--tone-2);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-line {
	position: absolute; top: 6px; inset-inline: 3% 2%; width: 95%; height: 170px; z-index: 2; pointer-events: none;
	fill: none; stroke: var(--store-text); stroke-width: 1.4;
}
.hero-line .hl-dot { stroke: none; }
.hero-line .hl-dot.a { fill: var(--store-primary); }
.hero-line .hl-dot.b { fill: color-mix(in srgb, var(--store-primary) 45%, var(--store-bg)); }
.slider-dots {
	grid-column: 2; grid-row: 3; align-self: end; justify-self: center; z-index: 3;
	display: flex; gap: 8px; margin-bottom: 22px;
}
.slider-dots button {
	width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
	background: rgba(255, 255, 255, .75); transition: width .3s;
}
.slider-dots button[aria-current="true"] { width: 28px; background: var(--store-accent); }

.hero-card {
	grid-column: 1; grid-row: 3; align-self: end; z-index: 2; position: relative;
	display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
	height: 330px; padding: 26px 26px 22px;
	border: 1px solid var(--line-strong); border-bottom: 0;
	border-radius: var(--arch) var(--arch) 0 0;
}
.hc-media { flex: 1; display: grid; place-items: center; min-height: 0; }
.hc-media img {
	height: 100%; max-height: 200px; aspect-ratio: 1; object-fit: cover;
	border-radius: var(--arch) var(--arch) 16px 16px;
}
.hc-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-caption b { font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--store-text); }
.hero-card:hover .round-go { background: var(--store-primary); }

.hero-side {
	grid-column: 3; grid-row: 2 / 4; align-self: end; z-index: 2;
	display: flex; flex-direction: column; gap: 16px; padding-bottom: 30px;
}
.hs-media { display: block; aspect-ratio: 320 / 360; border-radius: var(--arch) var(--arch) 18px 18px; overflow: hidden; background: var(--tone-2); }
.hs-media img { width: 100%; height: 100%; object-fit: cover; }
.hs-caption { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hs-caption b { font-size: 34px; font-weight: 500; color: var(--store-accent); line-height: 1.1; }
.hs-caption span { font-size: 15px; color: var(--muted); }

/* إن أخفى الناشر السلايدر تبقى البطاقتان متجاورتين */
.hero-grid:not(:has(.hero-slider)) { grid-template-columns: 1fr 1fr; grid-template-rows: auto; padding-top: 24px; }
.hero-grid:not(:has(.hero-slider)) .hero-card,
.hero-grid:not(:has(.hero-slider)) .hero-side { grid-column: auto; grid-row: auto; }

/* ------------------------------------------------------------------ شريط التصنيفات المتحرّك */
.marquee { padding: 26px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-list li { display: flex; align-items: center; }
.marquee-list li::before { content: "✦"; font-size: 14px; color: var(--store-primary); margin: 0 34px; }
.marquee-list a { font-size: 30px; font-weight: 500; color: var(--store-primary); white-space: nowrap; }
.marquee-list a:hover { color: var(--store-accent); }
.marquee.is-looping .marquee-track { animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ------------------------------------------------------------------ من نحن */
.about-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: end; }
.about-big { margin: 20px 0 0; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.5; color: var(--store-accent); }
.about-top:not(:has(.about-media)) { grid-template-columns: 1fr; }
.about-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-card); background: var(--tone-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-bottom { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.stamp { position: relative; width: 124px; height: 124px; display: grid; place-items: center; color: var(--store-accent); }
.stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp-ring text { font-size: 12.5px; fill: currentColor; font-family: var(--font); font-weight: 500; letter-spacing: .5px; }
.stamp-arrow { width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-copy { max-width: 560px; }
.about-copy p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }

/* ------------------------------------------------------------------ شريط الثقة */
.trust-section { padding-top: 0; }
.trust-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px;
	grid-template-areas: "a f b" "c f d";
}
.trust-grid > :nth-child(1) { grid-area: a; }
.trust-grid > :nth-child(2) { grid-area: b; }
.trust-grid > :nth-child(3) { grid-area: f; }
.trust-grid > :nth-child(4) { grid-area: c; }
.trust-grid > :nth-child(5) { grid-area: d; }
.trust-item { background: var(--tone); border-radius: var(--r-card); padding: 30px 24px; text-align: center; }
.trust-icon {
	width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong);
	display: inline-grid; place-items: center; color: var(--store-accent); margin-bottom: 12px;
}
.trust-icon .icon { width: 24px; height: 24px; }
.trust-item h3, .trust-feature h3 { margin: 0 0 6px; font-size: 19px; font-weight: 500; }
.trust-item p { margin: 0; font-size: 14px; color: var(--muted); }
.trust-feature {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: var(--store-accent); color: #fff; border-radius: var(--r-card); padding: 30px 8px 8px;
}
.trust-feature .trust-icon { color: #fff; border-color: rgba(255, 255, 255, .35); }
.tf-text { font-size: 14px; color: var(--on-dark); padding: 0 20px; }
.tf-media { display: block; width: 100%; margin-top: auto; padding-top: 18px; }
.tf-media img { width: 100%; aspect-ratio: 400 / 280; object-fit: cover; border-radius: var(--r-sm); }
.trust-grid:not(:has(.trust-feature)) { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: none; }
.trust-grid:not(:has(.trust-feature)) > * { grid-area: auto; }

/* ------------------------------------------------------------------ التصنيفات المتراكمة */
.stack-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: 56px; margin-top: 48px; align-items: start; }
.stack-intro {
	position: sticky; top: calc(var(--head-h) + 16px);
	border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 34px 30px;
}
.stack-intro h3 { margin: 0 0 12px; font-size: clamp(30px, 3vw, 42px); font-weight: 400; color: var(--store-accent); }
.stack-intro p { margin: 0 0 24px; color: var(--muted); }
.stack-cards { display: flex; flex-direction: column; gap: 24px; }
.stack-card {
	position: sticky; top: calc(var(--head-h) + 16px); display: block;
	background: var(--store-bg); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
	box-shadow: 0 -12px 30px -22px rgba(40, 25, 10, .4);
}
.stack-card:nth-child(2) { top: calc(var(--head-h) + 32px); }
.stack-card:nth-child(3) { top: calc(var(--head-h) + 48px); }
.stack-card:nth-child(4) { top: calc(var(--head-h) + 64px); }
.stack-card:nth-child(5) { top: calc(var(--head-h) + 80px); }
.stack-media { display: block; aspect-ratio: 7 / 3; overflow: hidden; background: var(--tone-2); }
.stack-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.stack-card:hover .stack-media img { transform: scale(1.03); }
.stack-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; }
.stack-text { display: block; }
.stack-text h3 { margin: 0; font-size: 24px; font-weight: 500; }
.stack-count { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ بطاقة الكتاب (العنوان فوق الغلاف) */
.book-row { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
body[data-books-per-row="3"] .book-row > .book-card:nth-child(n+4),
body[data-books-per-row="4"] .book-row > .book-card:nth-child(n+5) { display: none; }

.book-card {
	position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
	background: var(--tone); border-radius: var(--r-card); padding: 20px 20px 16px;
	transition: box-shadow .25s, transform .25s;
}
.book-card:hover { box-shadow: 0 18px 40px -26px rgba(40, 25, 10, .5); }
.section-tone .book-card { background: var(--store-bg); }
.bc-head .book-title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; }
.bc-head .book-title a:hover { color: var(--store-primary); }
.book-author { margin: 2px 0 6px; font-size: 14px; color: var(--muted); }
.bc-media { position: relative; display: flex; justify-content: center; padding: 10px 0 4px; }
.bc-cover { position: relative; width: 58%; }
.bc-cover img {
	width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px;
	box-shadow: 0 14px 24px -14px rgba(40, 25, 10, .55), 0 2px 4px rgba(0, 0, 0, .08);
}
.bc-badges { position: absolute; bottom: 6px; inset-inline-start: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bc-wish {
	position: absolute; top: 0; inset-inline-end: 0; z-index: 3; width: 36px; height: 36px;
	background: var(--surface); border-color: transparent; opacity: 0; transition: opacity .2s;
}
.bc-wish .icon { width: 18px; height: 18px; }
.bc-quick {
	position: absolute; top: 44px; inset-inline-end: 0; z-index: 3; width: 36px; height: 36px;
	background: var(--surface); border-color: transparent; opacity: 0; transition: opacity .2s;
}
.bc-quick .icon { width: 18px; height: 18px; }
.book-card:hover :is(.bc-wish, .bc-quick), :is(.bc-wish, .bc-quick):focus-visible, .bc-wish[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .bc-wish, .bc-quick { opacity: 1; } }
.stock-band {
	position: absolute; inset-inline: 6px; bottom: 12px; z-index: 2; padding: 3px 4px; border-radius: 999px; white-space: nowrap;
	background: #fff; color: var(--store-text); font-size: 11px; font-weight: 700; text-align: center;
}
.is-out .bc-cover img { opacity: .5; filter: grayscale(.5); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.bc-rate { display: inline-flex; align-items: center; gap: 6px; }
.bc-add {
	position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none; padding: 0;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 1px solid var(--line-strong); background: transparent; color: var(--store-text); cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.bc-add .icon { width: 17px; height: 17px; }
.bc-add:not([disabled]):hover { background: var(--store-accent); border-color: var(--store-accent); color: #fff; }
.bc-add[disabled] { cursor: not-allowed; border-style: dashed; }
.bc-add-label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- نسخة «الغلاف أوّلًا» (صفحة المتجر في المرجع) */
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) {
	padding: 6px 6px 16px; gap: 12px; border: 1px solid var(--line);
}
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-media {
	order: -1; padding: 26px 0; border-radius: var(--r-sm); background: var(--tone-2);
}
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-cover { width: 50%; }
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-badges { inset-inline-start: 10px; bottom: 10px; }
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-wish { top: 10px; inset-inline-end: 10px; }
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-quick { top: 54px; inset-inline-end: 10px; }
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-head,
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-foot { padding: 0 12px; }
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-foot { flex-wrap: wrap; row-gap: 12px; }
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-add {
	width: 100%; height: 42px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-add-label {
	position: static; width: auto; height: auto; overflow: visible; clip: auto;
}

/* ------------------------------------------------------------------ المؤلّفون: أقواسٌ تتّسع */
.author-row { display: flex; gap: 18px; height: 440px; margin-top: 44px; }
.author-card {
	position: relative; flex: 1 1 0; min-width: 0; display: block; overflow: hidden;
	border-radius: var(--arch); background: var(--tone-2); transition: flex-grow .5s, border-radius .5s;
}
.author-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-info {
	position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; padding: 70px 24px 24px;
	background: linear-gradient(to top, color-mix(in srgb, var(--store-accent) 92%, transparent) 30%, transparent);
	color: #fff; opacity: 0; transition: opacity .35s;
}
.author-info b { font-size: 22px; font-weight: 500; white-space: nowrap; }
.author-info small { font-size: 14px; color: var(--on-dark); }
.author-row:not(:hover):not(:focus-within) .author-card:first-child,
.author-card:hover, .author-card:focus-visible, .author-card.is-open { flex-grow: 2.5; border-radius: var(--r-card); }
.author-row:not(:hover):not(:focus-within) .author-card:first-child .author-info,
.author-card:hover .author-info, .author-card:focus-visible .author-info, .author-card.is-open .author-info { opacity: 1; }

/* ------------------------------------------------------------------ آراء القرّاء */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.review-card {
	display: flex; flex-direction: column; gap: 18px; padding: 26px;
	border: 1px solid var(--line-strong); border-radius: var(--r-card);
}
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-avatar {
	width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
	background: var(--tone-2); color: var(--store-primary-dark); font-weight: 700; font-size: 18px;
}
.rv-score { display: inline-flex; align-items: center; gap: 6px; }
.rv-score b { font-size: 14px; font-weight: 500; }
.rv-text { margin: 0; flex: 1; font-size: 16px; line-height: 1.95; }
.rv-who b { display: block; font-weight: 700; }
.rv-who small { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ وصل حديثًا مع بانرٍ جانبيّ */
.new-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: stretch; }
.new-books .sec-title { margin-bottom: 28px; }
.book-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.side-banner {
	position: relative; display: block; min-height: 560px; overflow: hidden;
	border-radius: var(--arch) var(--arch) var(--r-card) var(--r-card); background: var(--tone-2);
}
.side-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.side-banner:hover img { transform: scale(1.03); }
.sb-caption {
	position: absolute; inset-inline: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 4px;
	background: var(--surface); border-radius: var(--r-card); padding: 20px 24px;
}
.sb-kicker { font-size: 13px; font-weight: 700; color: var(--store-primary); }
.sb-caption b { font-size: 22px; font-weight: 500; color: var(--store-text); }
.sb-caption span:last-child { color: var(--muted); font-size: 15px; }
.new-layout:not(:has(.side-banner)) { grid-template-columns: 1fr; }
.new-layout:not(:has(.side-banner)) .book-grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ شاهدتَه مؤخّرًا */
.recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.recent-card {
	display: grid; grid-template-columns: 124px 1fr; gap: 22px; align-items: center;
	background: var(--tone); border-radius: var(--r-card); padding: 14px; padding-inline-end: 22px;
}
.section-tone .recent-card { background: var(--store-bg); }
.rc-media { position: relative; }
.rc-media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.rc-media .type-dot { top: 8px; inset-inline-start: 8px; width: 28px; height: 28px; }
.rc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.rc-body .book-title { margin: 8px 0 2px; font-size: 19px; font-weight: 500; }
.rc-body .book-author { margin-bottom: 0; }
.rc-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px;
	align-items: flex-start;
}
.rc-foot .price { line-height: 1.4; }

/* ------------------------------------------------------------------ شريط التواصل */
.contact-band {
	position: relative; overflow: hidden; padding: 56px 0; color: #fff; background-color: var(--store-primary);
	background-image: radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .1) 0 22%, transparent 22.2%),
		radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .08) 0 26%, transparent 26.2%);
}
.cb-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.contact-band h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 400; }
.contact-band p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); }
.cb-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ التذييل */
.site-footer { position: relative; overflow: hidden; background: var(--store-accent); color: #fff; padding: 60px 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand::before, .footer-brand::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .18); }
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 4px; }
.site-footer .brand-name { color: #fff; }
.footer-grid {
	position: relative; z-index: 1; display: grid; gap: 36px; margin-top: 44px;
	grid-template-columns: 1.4fr .8fr .85fr 1fr 1.4fr;
}
.footer-grid h3 { margin: 0 0 16px; font-size: 18px; font-weight: 500; }
.footer-grid p, .footer-grid li { color: var(--on-dark); font-size: 15px; }
.footer-about p { margin: 0 0 16px; }
.footer-col ul, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; }
.social-list { gap: 0 !important; }
.social-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.social-list .icon { width: 18px; height: 18px; }
.social-list .go { margin-inline-start: auto; width: 15px; height: 15px; }
.footer-news p { margin: 0 0 14px; }
.newsletter { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 14px; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .72); }
.footer-mark {
	margin: 26px 0 -14px; text-align: center; white-space: nowrap; overflow: hidden; user-select: none;
	font-size: clamp(56px, 11vw, 160px); font-weight: 700; line-height: 1.1; color: rgba(255, 255, 255, .05);
}
.footer-bottom {
	position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap;
	border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; font-size: 14px; color: var(--on-dark);
}

/* ------------------------------------------------------------------ رأس الصفحات الداخليّة */
.page-head { background: var(--tone-2); padding: calc(var(--head-h) + 50px) 0 58px; text-align: center; }
.ph-title { margin: 0; font-size: clamp(34px, 5vw, 62px); font-weight: 300; line-height: 1.15; color: var(--store-text); }
.ph-lead { margin: 10px auto 0; max-width: 560px; color: var(--muted); }
.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.breadcrumb li + li::before { content: "-"; margin-inline-end: 8px; color: var(--muted); }
.breadcrumb a:hover { color: var(--store-primary); }
.breadcrumb [aria-current] { color: var(--muted); }
.sub-strip { margin-top: 28px; }
.sub-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.sub-chip {
	display: inline-flex; align-items: center; gap: 10px; padding: 5px; padding-inline-end: 18px;
	border: 1px solid var(--line-strong); border-radius: 999px; background: var(--store-bg); font-weight: 500; font-size: 15px;
}
.sub-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sub-chip small { color: var(--muted); font-size: 13px; }
.sub-chip:hover { border-color: var(--store-text); }

/* ------------------------------------------------------------------ قائمة التصنيف */
.listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; margin-top: 44px; align-items: start; }
.filters { position: sticky; top: calc(var(--head-h) + 12px); background: var(--tone); border-radius: var(--r-card); padding: 22px 24px 24px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { margin: 0; font-size: 22px; font-weight: 500; }
.filters-head .icon-btn { display: none; }
.filter-box { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-box:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.filter-box h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.pill-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-check { position: relative; }
.pill-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill-check span { display: inline-block; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; background: var(--store-bg); }
.pill-check input:checked + span { background: var(--store-primary); border-color: var(--store-primary); color: #fff; }
.pill-check input:focus-visible + span { outline: 2px solid var(--store-accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.check input { accent-color: var(--store-primary); width: 16px; height: 16px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.field {
	width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px;
	background: var(--surface); color: var(--store-text);
}
textarea.field { height: auto; border-radius: 16px; padding: 12px 16px; resize: vertical; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar p { margin: 0; color: var(--muted); }
.toolbar p b { color: var(--store-text); font-weight: 500; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.toolbar-actions select { width: auto; min-width: 190px; }
.filters-toggle { display: none; }
.listing-grid { display: grid; grid-template-columns: repeat(var(--list-cols), minmax(0, 1fr)); gap: 20px; }
.works-grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line-strong); font-weight: 500;
}
.pagination a:hover { border-color: var(--store-text); }
.pagination [aria-current] { background: var(--store-primary); border-color: var(--store-primary); color: #fff; }
.pagination .gap { border: 0; width: 24px; }
.pagination .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ صفحة الكتاب */
.pdp-section { padding-top: 72px; }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; }
.gallery-main {
	position: relative; display: grid; place-items: center; padding: 50px 0; min-height: 100%;
	background: var(--tone-2); border-radius: var(--r-card);
}
.gallery-main img {
	width: 56%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px;
	box-shadow: 0 24px 40px -22px rgba(40, 25, 10, .6), 0 3px 6px rgba(0, 0, 0, .1);
}
.gallery-main .type-dot { top: 22px; inset-inline-start: 22px; width: 40px; height: 40px; }
.gallery-main .type-dot .icon { width: 19px; height: 19px; }
.thumbs { display: flex; flex-direction: column; gap: 12px; }
.thumbs button { padding: 14px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--tone-2); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--store-primary); }
.thumbs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; }
.pdp-type { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.pdp-type .type-dot { position: static; width: 26px; height: 26px; border: 0; box-shadow: none; }
.pdp-type .type-dot .icon { width: 13px; height: 13px; }
.pdp-info h1 { margin: 10px 0 4px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 400; line-height: 1.2; }
.pdp-author { margin: 0; color: var(--muted); }
.pdp-author a { color: var(--store-primary); font-weight: 500; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; font-size: 14px; color: var(--muted); }
.pdp-lead { margin: 0 0 14px; color: var(--muted); line-height: 1.9; }
.pdp-options { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 22px 0; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt-label { font-size: 14px; font-weight: 500; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button {
	width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: var(--store-primary); color: #fff; font-size: 18px; line-height: 1;
}
.qty button:hover { background: var(--store-primary-dark); }
.qty input { width: 44px; border: 0; background: transparent; text-align: center; font-size: 17px; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }
.pill.is-on { border-color: var(--store-text); }
.pill .icon { width: 16px; height: 16px; }
.pdp-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pdp-buttons .btn-lg { min-width: 170px; }
.pdp-wish { width: 52px; height: 52px; }
.stock { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--ok); font-weight: 500; font-size: 15px; }
.stock .icon { width: 18px; height: 18px; }
.pdp-meta {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
	margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
}
.pdp-meta dt { font-size: 13px; color: var(--muted); }
.pdp-meta dd { margin: 2px 0 0; font-weight: 500; }
.sample-box {
	display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 8px; padding-inline-end: 22px;
	background: var(--tone); border-radius: 999px;
}
.sample-play { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--store-primary); color: #fff; cursor: pointer; flex: none; }
.sample-info b { display: block; font-weight: 500; }
.sample-info span { font-size: 13px; color: var(--muted); }
.wave { display: flex; align-items: center; gap: 3px; margin-inline-start: auto; }
.wave span { width: 3px; border-radius: 2px; background: color-mix(in srgb, var(--store-primary) 55%, var(--store-bg)); }

/* التبويبات */
.tabs { margin-top: 72px; padding: 0 40px 40px; background: var(--tone); border: 1px solid var(--line); border-radius: var(--r-card); }
.tab-list { display: flex; width: max-content; max-width: 100%; margin: 0 auto 34px; }
.tab-list button { padding: 12px 24px; border: 0; background: var(--tone-2); font-size: 14px; font-weight: 500; cursor: pointer; color: var(--store-text); }
.tab-list button[aria-selected="true"] { background: var(--store-primary); color: #fff; }
.prose h2 { margin: 0 0 14px; font-size: 26px; font-weight: 400; }
.prose h3 { margin: 30px 0 14px; font-size: 22px; font-weight: 400; }
.prose p { margin: 0 0 12px; line-height: 1.95; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-list .icon { color: var(--store-primary); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.spec-table th { width: 200px; font-weight: 500; color: var(--muted); }
.reviews-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.reviews-summary { display: flex; align-items: center; gap: 14px; }
.reviews-summary strong { font-size: 56px; font-weight: 300; line-height: 1; }
.reviews-summary small { display: block; font-size: 14px; color: var(--muted); }
.rating-bars { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 13px; }
.rating-bars li { display: grid; grid-template-columns: 56px 1fr 38px; align-items: center; gap: 10px; }
.bar { height: 6px; border-radius: 6px; background: var(--tone-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); }
.review-form { margin-top: 24px; padding: 22px; background: var(--store-bg); border-radius: var(--r-card); }
.review-form h3 { margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.review-form p { margin: 0; font-size: 14px; color: var(--muted); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 12px 0; padding: 0; border: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: var(--gold-off); }
.star-input label .icon { width: 26px; height: 26px; }
.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 { margin-top: 12px; }
.review-list { display: grid; gap: 16px; }
.review-card-flat { background: var(--store-bg); border: 0; }

/* ------------------------------------------------------------------ صفحة المؤلّف */
.author-hero { background: var(--tone-2); padding: calc(var(--head-h) + 44px) 0 64px; }
.author-hero-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: center; }
.ah-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch) var(--arch) var(--r-card) var(--r-card); background: var(--tone); }
.ah-photo img { width: 100%; height: 100%; object-fit: cover; }
.ah-info .breadcrumb { justify-content: flex-start; margin: 0 0 22px; }
.ah-info h1 { margin: 14px 0 18px; font-size: clamp(40px, 6vw, 86px); font-weight: 300; line-height: 1.1; color: var(--store-accent); }
.ah-bio p { margin: 0 0 12px; max-width: 640px; color: var(--muted); line-height: 1.95; }
.ah-stats { display: flex; gap: 44px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.ah-stats b { display: block; font-size: 36px; font-weight: 400; line-height: 1.2; }
.ah-stats span { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ السلّة */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-item {
	display: grid; grid-template-columns: 84px minmax(0, 1fr) 120px auto 120px 42px; gap: 18px; align-items: center;
	background: var(--tone); border-radius: var(--r-card); padding: 14px; padding-inline-end: 18px;
}
.ci-cover { position: relative; display: block; }
.ci-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.ci-cover .type-dot { top: -8px; inset-inline-start: -8px; width: 26px; height: 26px; }
.ci-cover .type-dot .icon { width: 13px; height: 13px; }
.ci-info h3 { margin: 0; font-size: 18px; font-weight: 500; }
.ci-info p { margin: 0; font-size: 14px; color: var(--muted); }
.ci-type { display: inline-block; margin-top: 6px; font-size: 13px; padding: 2px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.ci-price small, .ci-total small { display: block; font-size: 12px; color: var(--muted); }
.ci-total b { font-size: 16px; }
.ci-remove { border-color: transparent; }
.cart-under { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.empty-cart { text-align: center; padding: 48px 20px; background: var(--tone); border-radius: var(--r-card); }
.summary { position: sticky; top: calc(var(--head-h) + 12px); padding: 26px; background: var(--tone); border-radius: var(--r-card); }
.summary h2 { margin: 0 0 18px; font-size: 24px; font-weight: 400; }
.coupon { display: flex; gap: 8px; }
.coupon .btn { height: 44px; }
.coupon-applied {
	display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 6px;
	padding: 10px 14px; border-radius: var(--r-sm); background: var(--store-bg); font-size: 14px;
}
.coupon-applied button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--store-primary-dark); text-decoration: underline; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-total { border-bottom: 0; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.note .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ 404 */
.nf-hero { background: linear-gradient(180deg, var(--tone), var(--store-bg)); padding-top: calc(var(--head-h) + 30px); border-bottom: 1px solid var(--line); overflow: hidden; }
.nf-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.nf-copy { padding-bottom: 64px; }
.nf-code { position: relative; font-size: clamp(110px, 16vw, 230px); font-weight: 300; line-height: 1; color: var(--store-accent); }
.nf-code .hero-line { top: 10%; inset-inline: 0; width: 100%; height: 80%; }
.nf-copy h1 { margin: 10px 0 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 400; }
.nf-copy p { margin: 0; color: var(--muted); max-width: 520px; }
.nf-search { display: flex; gap: 8px; max-width: 480px; margin: 24px 0 16px; }
.nf-media { height: 520px; overflow: hidden; border-radius: var(--arch) var(--arch) 0 0; background: var(--tone-2); }
.nf-media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ صفحة المكوّنات */
.kit-stack { display: grid; gap: 28px; }
.kit-stack > * { min-width: 0; }
.kit-block { background: var(--surface); border-radius: var(--r-card); padding: 28px; }
.kit-title { margin: 0 0 14px; font-size: 20px; font-weight: 500; }
.kit-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.kit-row .type-dot { position: static; }
.kit-dark { margin-top: 14px; padding: 20px; border-radius: var(--r-card); background: var(--store-accent); }
.kit-display { margin: 10px 0 0; font-size: clamp(44px, 6vw, 72px); padding: 0; }
.kit-cards { margin-top: 18px; }
.kit .book-row { --per-row: 4; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch span { display: block; height: 64px; border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 6px; }
.swatch code { font-size: 12px; direction: ltr; display: block; text-align: start; }

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

/* ------------------------------------------------------------------ الشاشات الأصغر */
@media (max-width: 1180px) {
	.main-nav, .track-btn { display: none; }
	.menu-toggle { display: inline-grid; }
	.main-nav + .header-actions { margin-inline-start: auto; }
	.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-about { grid-column: span 3; }
	.footer-about p { max-width: 560px; }
}

@media (max-width: 1024px) {
	.book-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.book-row > .book-card:nth-child(n+4) { display: none; }
	.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stack-layout { grid-template-columns: 1fr; gap: 28px; }
	.stack-intro { position: static; }
	.trust-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "f f" "c d"; }
	.trust-grid:not(:has(.trust-feature)) { grid-template-columns: 1fr 1fr; }
	.review-grid { grid-template-columns: 1fr 1fr; }
	.review-grid > :nth-child(3) { display: none; }
	.new-layout { grid-template-columns: 1fr; gap: 36px; }
	.side-banner { min-height: 440px; order: -1; }
	.pdp { gap: 36px; }
	.reviews-layout { grid-template-columns: 1fr; }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.author-row { height: 380px; }
}

@media (max-width: 860px) {
	.header-bar { padding-inline-start: 14px; }
	:root { --head-h: 80px; }
	.section { padding: 72px 0; }
	.hero { padding-top: calc(var(--head-h) + 10px); }
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 20px; }
	.hero-slider { grid-column: 1 / -1; grid-row: auto; display: block; }
	.slides { display: grid; }
	.slide { grid-area: 1 / 1; display: block; }
	.hero-title { padding-top: 10px; }
	.hero-copy p { max-width: 520px; }
	.hero-arch { height: 400px; margin-top: 26px; border-radius: var(--arch) var(--arch) var(--r-card) var(--r-card); }
	.hero-line { height: 110px; }
	.slider-dots { position: absolute; bottom: 0; left: 0; right: 0; justify-content: center; margin-bottom: 18px; }
	.hero-card { grid-column: 1; grid-row: auto; height: 300px; padding: 20px 18px 18px; border-bottom: 1px solid var(--line-strong); border-radius: var(--arch) var(--arch) var(--r-card) var(--r-card); margin-bottom: 28px; }
	.hero-side { grid-column: 2; grid-row: auto; padding-bottom: 28px; }
	.about-top { grid-template-columns: 1fr; gap: 32px; }
	.about-bottom { gap: 28px; margin-top: 36px; }
	.listing { grid-template-columns: 1fr; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100; width: min(340px, 88vw);
		border-radius: 0; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
	}
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-head .icon-btn, .filters-toggle { display: inline-flex; }
	.pdp { grid-template-columns: 1fr; }
	.gallery { max-width: 560px; }
	.author-hero-grid { grid-template-columns: 1fr; gap: 32px; }
	.ah-photo { width: min(320px, 80%); }
	.nf-grid { grid-template-columns: 1fr; gap: 0; }
	.nf-copy { padding-bottom: 40px; }
	.nf-media { height: 320px; }
	.tabs { padding: 0 22px 28px; }
}

@media (max-width: 640px) {
	.container { padding-inline: 16px; }
	.section { padding: 60px 0; }
	.header-bar { gap: 8px; padding-inline-start: 14px; }
	.brand-name { font-size: 17px; }
	.brand img { width: 34px; height: 34px; }
	.header-actions { gap: 6px; }
	.header-actions .icon-btn { width: 38px; height: 38px; }
	.cart-pill { height: 38px; padding-inline-start: 12px; }
	.cart-word { display: none; }
	.hero-title { font-size: clamp(40px, 11vw, 60px); }
	.hero-arch { height: 340px; }
	.hero-card { height: 250px; }
	.hc-caption b { font-size: 16px; }
	.round-go { width: 34px; height: 34px; }
	.hs-caption b { font-size: 26px; }
	.marquee-list a { font-size: 22px; }
	.marquee-list li::before { margin: 0 20px; }
	.about-bottom { grid-template-columns: 1fr; justify-items: start; }
	.stamp { width: 104px; height: 104px; }
	.trust-grid { grid-template-columns: 1fr; grid-template-areas: "a" "b" "f" "c" "d"; }
	.trust-grid:not(:has(.trust-feature)) { grid-template-columns: 1fr; }
	.book-row {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; gap: 14px;
	}
	.book-row > .book-card { scroll-snap-align: start; }
	.book-row > .book-card:nth-child(n+4) { display: flex; }
	body[data-books-per-row] .book-row > .book-card:nth-child(n+4) { display: flex; }
	.book-card { padding: 16px 14px 14px; }
	.listing-grid, .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.book-grid-2 { gap: 12px; }
	.new-layout:not(:has(.side-banner)) .book-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.side-banner { min-height: 380px; }
	.bc-head .book-title { font-size: 15px; }
	:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-head,
	:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) .bc-foot { padding: 0 6px; }
	:is(body[data-card-style="shop"] .book-card, body[data-card-style="mixed"] .grid-shop .book-card) { padding: 5px 5px 12px; }
	.author-row {
		height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px;
	}
	.author-card, .author-row:not(:hover):not(:focus-within) .author-card:first-child, .author-card:hover {
		flex: 0 0 58%; aspect-ratio: 3 / 4; scroll-snap-align: start; border-radius: var(--arch);
	}
	.author-card .author-info { opacity: 1; padding: 60px 18px 22px; }
	.author-info b { font-size: 18px; }
	.review-grid { grid-template-columns: 1fr; }
	.review-grid > :nth-child(3) { display: flex; }
	.recent-grid { grid-template-columns: 1fr; }
	.recent-card { grid-template-columns: 96px 1fr; gap: 16px; padding-inline-end: 16px; }
	.rc-body .book-title { font-size: 17px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
	.footer-about, .footer-news { grid-column: 1 / -1; }
	.sec-head.split { align-items: flex-start; }
	.page-head { padding-bottom: 44px; }
	.sub-chip { font-size: 14px; }
	.gallery { grid-template-columns: minmax(0, 1fr) 76px; }
	.thumbs button { padding: 8px; }
	.pdp-buttons .btn-lg { flex: 1 1 100%; min-width: 0; }
	.pdp-wish { margin-inline-start: auto; }
	.wave { display: none; }
	.tab-list { width: 100%; }
	.tab-list button { flex: 1; padding: 12px 8px; }
	.spec-table th { width: 40%; }
	.cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; }
	.ci-cover { grid-row: 1 / 4; }
	.ci-info { grid-column: 2; grid-row: 1; }
	.ci-remove { grid-column: 3; grid-row: 1; }
	.ci-price { grid-column: 2; grid-row: 2; }
	.cart-item .qty { grid-column: 2; grid-row: 3; }
	.ci-total { grid-column: 3; grid-row: 2 / 4; align-self: end; text-align: end; }
	.ah-stats { gap: 28px; }
	.nf-search { flex-direction: column; }
	.kit-block { padding: 20px 16px; }
}

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

/* ------------------------------------------------------------------ ميزات المنصّة */
/* المدوّنة: بطاقةٌ بخلفيّةٍ هادئة، صورةٌ ثمّ التاريخ بين معقوفين والعنوان و«اقرأ المزيد» */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.post-card { display: flex; flex-direction: column; background: var(--tone); border-radius: var(--r-card); padding: 8px 8px 18px; }
.section-tone .post-card { background: var(--store-bg); }
.pc-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: var(--tone-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .pc-media img { transform: scale(1.04); }
.pc-meta { margin: 16px 12px 0; font-size: 13px; color: var(--muted); }
.pc-title { margin: 8px 12px 0; font-size: 19px; font-weight: 500; line-height: 1.45; }
.pc-title a:hover { color: var(--store-primary); }
.pc-excerpt { margin: 6px 12px 0; font-size: 14.5px; color: var(--muted); }
.pc-foot { margin: 14px 12px 0; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.post-card .pc-excerpt + .pc-foot { margin-top: 14px; }
.posts-more { text-align: center; margin-top: 36px; }
.blog-grid { margin-top: 0; row-gap: 28px; }
.post { max-width: 940px; }
.post-hero { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: var(--tone-2); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 740px; margin: 36px auto 0; font-size: 17px; line-height: 2; }
.post-body p { margin: 0; }
.post-body p + p { margin-top: 18px; }

@media (max-width: 991px) {
	.post-grid { gap: 14px; }
	.pc-title { font-size: 17px; }
}
@media (max-width: 640px) {
	.post-grid { grid-template-columns: 1fr; }
	.post-body { font-size: 16px; margin-top: 26px; }
}

/* ------------------------------------------------------------------ تبويبات صفّ الكتب (القاعدة 16) */
.row-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.row-tab {
	height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong);
	background: transparent; color: var(--store-text); font-size: 15px; font-weight: 500; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.row-tab:hover { border-color: var(--store-text); }
.row-tab[aria-selected="true"] { background: var(--store-primary); border-color: var(--store-primary); color: #fff; }
.row-tabs + .book-row { margin-top: 26px; }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

/* ------------------------------------------------------------------ عرض الموسم: كتابٌ واحد كبير وعدّاد */
.deal { background: var(--store-accent); color: #fff; }
.deal .tag { border-color: rgba(255, 255, 255, .6); color: #fff; }
.deal .sec-title { color: #fff; }
.deal-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
.deal-sub { margin: 14px 0 0; color: var(--on-dark); max-width: 380px; }
.countdown { margin-top: 28px; }
.cd-label { display: block; font-size: 14px; color: var(--on-dark); margin-bottom: 10px; }
.cd-units { display: flex; gap: 10px; }
.cd-unit {
	display: grid; place-items: center; width: 74px; height: 86px; border-radius: 999px 999px 18px 18px;
	border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
}
body[data-frame-shape="rounded"] .cd-unit { border-radius: 18px; }
.cd-unit b { font-size: 28px; font-weight: 400; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 12px; color: var(--on-dark); margin-top: -10px; }
.deal-book { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 44px; align-items: center; }
.deal-media {
	position: relative; display: grid; place-items: center; padding: 54px 40px 36px;
	border-radius: var(--arch) var(--arch) var(--r-card) var(--r-card);
	background: color-mix(in srgb, var(--store-bg) 90%, var(--store-primary));
}
.deal-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 22px 34px -18px rgba(0, 0, 0, .55); }
.deal-media .type-dot { top: auto; bottom: 16px; inset-inline-start: 16px; }
.deal-badge { position: absolute; bottom: 18px; inset-inline-end: 16px; }
.deal-title { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.2; }
.deal-title a:hover { text-decoration: underline; text-underline-offset: 6px; }
.deal-author { margin: 6px 0 10px; color: var(--on-dark); }
.deal .rate-count { color: var(--on-dark); }
.deal-desc { margin-top: 16px; color: var(--on-dark); max-width: 520px; }
.deal-desc p { margin: 0 0 8px; line-height: 1.9; }
.deal-price { display: block; margin-top: 4px; line-height: 1.25; color: #fff; font-size: 30px; font-weight: 400; }
.deal-price del { color: var(--on-dark); font-size: 18px; }
.deal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.deal-wish { width: 46px; height: 46px; color: #fff; border-color: rgba(255, 255, 255, .45); }
.deal-wish:hover { border-color: #fff; }
.deal-wish[aria-pressed="true"] { color: #fff; }
.deal-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 2px; }
.deal-link .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ قائمة التصنيف: الفلاتر المختارة وطريقة العرض */
.listing-section { padding-top: 48px; }
.listing-section .listing { margin-top: 0; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 20px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px;
	background: var(--tone-2); font-size: 14px; border: 1px solid transparent;
}
.chip:hover { border-color: var(--store-text); }
.chip .icon { width: 15px; height: 15px; }
.chip-clear { font-size: 14px; color: var(--store-primary-dark); text-decoration: underline; text-underline-offset: 4px; }
.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.view-switch button { width: 36px; height: 34px; border: 0; border-radius: 999px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--store-text); }
.view-switch button[aria-pressed="true"] { background: var(--store-primary); color: #fff; }
.view-switch .icon { width: 18px; height: 18px; }
.listing-grid.is-list { grid-template-columns: 1fr; }
.listing-grid.is-list .book-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; column-gap: 24px; padding: 6px; }
.listing-grid.is-list .book-card .bc-media { order: 0; grid-column: 1; grid-row: 1; padding: 16px 0; }
.listing-grid.is-list .book-card .bc-cover { width: 62%; }
.listing-grid.is-list .book-card .bc-head { grid-column: 2; grid-row: 1; padding: 0; }
.listing-grid.is-list .book-card .bc-foot { grid-column: 3; grid-row: 1; flex-direction: column; align-items: stretch; margin: 0; padding: 0 16px 0 0; min-width: 200px; }

/* ------------------------------------------------------------------ صفحة الكتاب: الصيغ والتوصيل */
.formats { margin: 4px 0 18px; }
.formats-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.format-list { display: flex; flex-wrap: wrap; gap: 10px; }
.format-opt {
	display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; row-gap: 0;
	padding: 8px 18px 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--store-bg);
}
.format-opt:hover { border-color: var(--store-text); }
.format-opt .type-dot { position: static; grid-row: span 2; width: 30px; height: 30px; border: 0; box-shadow: none; }
.format-opt .type-dot .icon { width: 14px; height: 14px; }
.format-opt b { font-size: 14px; font-weight: 500; line-height: 1.3; }
.format-opt small { font-size: 13px; color: var(--store-primary); font-weight: 700; line-height: 1.3; }
.format-opt[aria-current="page"] { border-color: var(--store-primary); box-shadow: inset 0 0 0 1px var(--store-primary); background: var(--tone); }
.perks { list-style: none; margin: 18px 0 0; padding: 14px 18px; display: grid; gap: 10px; background: var(--tone); border-radius: var(--r-card); }
.perks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.perks .icon { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--store-primary); }
.perks b { font-weight: 500; }

/* ------------------------------------------------------------------ تطوير الإصدار الثاني: الجوّال والجهاز اللوحيّ */
@media (min-width: 1025px) {
	.works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.deal-grid { grid-template-columns: 1fr; gap: 36px; }
	.deal-book { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; }
	.works-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3.2);
		overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
	}
	.works-grid > * { scroll-snap-align: start; }
}
@media (min-width: 641px) and (max-width: 1024px) {
	.trust-feature {
		display: grid; grid-template-columns: auto minmax(0, 1fr) 44%; grid-template-areas: "i h m" "i t m";
		align-items: center; column-gap: 18px; text-align: start; padding: 14px;
	}
	.trust-feature .trust-icon { grid-area: i; margin: 0 0 0 4px; }
	.trust-feature h3 { grid-area: h; align-self: end; }
	.tf-text { grid-area: t; align-self: start; padding: 0; }
	.tf-media { grid-area: m; margin: 0; padding: 0; }
	.tf-media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
	.stack-media { aspect-ratio: 16 / 7; }
	.stack-card { top: calc(var(--head-h) + 8px); }
}
@media (max-width: 640px) {
	/* الهيرو أقصر، فيبدأ أوّل صفّ كتبٍ في الشاشة الثانية */
	.hero-title { padding-top: 4px; }
	.hero-copy p { font-size: 15.5px; margin-bottom: 16px; }
	.hero-arch { height: 280px; margin-top: 18px; }
	.hero-grid { row-gap: 14px; }
	.hero-card { height: 196px; padding: 14px 14px 12px; margin-bottom: 18px; }
	.hc-media img { max-height: 120px; }
	.hero-side { padding-bottom: 18px; gap: 8px; }
	.hs-media { aspect-ratio: 320 / 300; }
	.marquee { padding: 16px 0; }
	/* شريط الثقة: شريطٌ واحد يُمرَّر أفقيًّا */
	.trust-section .sec-title { font-size: 24px; }
	.trust-grid {
		display: flex; grid-template-areas: none; overflow-x: auto; scroll-snap-type: x mandatory;
		gap: 10px; margin: 22px -16px 0; padding: 0 16px 6px; scrollbar-width: none;
	}
	.trust-grid::-webkit-scrollbar { display: none; }
	.trust-grid > * { flex: 0 0 76%; scroll-snap-align: start; }
	.trust-item, .trust-feature {
		display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; align-content: center;
		text-align: start; padding: 14px 16px;
	}
	.trust-item .trust-icon, .trust-feature .trust-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
	.trust-item h3, .trust-feature h3 { font-size: 16px; margin: 0; }
	.trust-item p, .tf-text { font-size: 13px; padding: 0; }
	.tf-media { display: none; }
	.row-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 20px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
	.row-tab { flex: none; height: 38px; padding: 0 16px; }
	.review-grid, .post-grid {
		display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
		overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 8px; gap: 12px;
	}
	.review-grid > *, .post-grid > * { scroll-snap-align: start; }
	.deal-book { grid-template-columns: 1fr; gap: 24px; }
	.deal-media { width: min(260px, 78%); margin-inline: auto; padding: 40px 30px 26px; }
	.cd-units { gap: 8px; }
	.cd-unit { width: 64px; height: 76px; }
	.cd-unit b { font-size: 24px; }
	.works-grid { grid-auto-columns: 46%; gap: 12px; }
	.listing-grid.is-list .book-card { grid-template-columns: 110px minmax(0, 1fr); row-gap: 10px; }
	.listing-grid.is-list .book-card .bc-foot { grid-column: 2; grid-row: 2; min-width: 0; padding: 0 0 8px; }
	.format-opt { padding: 6px 14px 6px 8px; }
	.listing-main { min-width: 0; }
	.sub-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.sub-chip { flex: none; }
	.pdp-buttons .btn-lg { padding: 0 14px; }
	.pdp-buttons .btn-outline { flex: 1 1 0; }
	.pdp-buttons .pdp-wish { margin-inline-start: 0; }
	.toolbar-actions { width: 100%; }
	.toolbar-actions select { min-width: 0; flex: 1; }
	.sec-head.split > .btn { 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; }
