/* ==========================================================================
   قالب «سحابة» — sahaba · منصّة ناشر
   ألوان الهويّة الخمسة في :root، وكلّ لونٍ آخر محايد أو مشتقٌّ منها بـ color-mix.
   ========================================================================== */

:root {
	--store-primary: #749A48;
	--store-primary-dark: #56782F;
	--store-accent: #141A10;
	--store-bg: #FFFFFF;
	--store-text: #232323;

	/* مشتقّات من ألوان المتجر */
	--sb-tint: color-mix(in srgb, var(--store-primary) 12%, #fff);
	--sb-tint-2: color-mix(in srgb, var(--store-primary) 24%, #fff);
	--sb-top: color-mix(in srgb, var(--store-primary) 7%, #fff);
	--sb-ink: color-mix(in srgb, var(--store-primary-dark) 70%, #000);

	/* محايدة */
	--sb-muted: #5C6057;
	--sb-line: #E6E7E1;
	--sb-soft: #F5F5F2;
	--sb-gray-bg: #F7F7F5;
	--sb-gold: #F4B400;
	--sb-star-off: #D5D6CF;
	--sb-sale: #D42A1E;

	--sb-r: 14px;
	--sb-r-sm: 10px;
	--sb-pill: 999px;
	--sb-shadow: 0 10px 30px rgba(20, 26, 16, .08);
	--cols: 5;
	--cols-list: 4;
}

body[data-books-per-row="4"] { --cols: 4; --cols-list: 3; }
body[data-books-per-row="5"] { --cols: 5; }
body[data-books-per-row="6"] { --cols: 6; --cols-list: 4; }
body[data-corners="sharp"] { --sb-r: 0px; --sb-r-sm: 0px; --sb-pill: 0px; }

/* ---------------------------------------------------------------- الأساس */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 170px; }
body {
	margin: 0;
	font-family: "Tajawal", system-ui, sans-serif;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--store-primary-dark); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.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;
}
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--store-accent); color: #fff; padding: 8px 14px; border-radius: var(--sb-r-sm); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--sb-muted); }
code { font-size: .9em; background: var(--sb-soft); padding: 1px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- الأزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 22px; border-radius: var(--sb-pill);
	border: 1px solid transparent; font-weight: 700; font-size: 15px;
	cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--store-primary-dark); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--store-primary-dark) 82%, #000); }
.btn-dark { background: var(--store-accent); color: #fff; }
.btn-dark:hover { background: color-mix(in srgb, var(--store-accent) 80%, #fff); }
.btn-outline { background: #fff; color: var(--store-primary-dark); border-color: var(--store-primary-dark); }
.btn-outline:hover { background: var(--sb-tint); color: var(--sb-ink); }
.btn-soft { background: var(--sb-tint); color: var(--sb-ink); }
.btn-soft:hover { background: var(--sb-tint-2); }
.btn-ghost { background: var(--sb-soft); color: var(--store-text); }
.btn-ghost:hover { background: var(--sb-line); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { background: #EBEBE6; color: var(--sb-muted); cursor: not-allowed; }
[data-action="wishlist"][aria-pressed="true"] .icon { fill: currentColor; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--store-primary-dark); font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.more-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.more-link:hover .icon { transform: translateX(-4px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--sb-sale); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------------------------------------------------------------- الرأس */
/* الرأس مثبّت أعلى الشاشة */
.site-header { position: sticky; top: 0; background: var(--sb-top); overflow-x: clip; padding-bottom: 16px; z-index: 30; }
.leaf-deco { position: absolute; display: none; width: 38px; height: 20px; border-radius: 0 100% 0 100%; background: color-mix(in srgb, var(--store-primary) 55%, #fff); pointer-events: none; }
.leaf-a { inset-inline-end: 1.6%; top: 58px; transform: rotate(-28deg); }
.leaf-b { inset-inline-end: 3.2%; top: 128px; width: 46px; height: 24px; transform: rotate(18deg); background: color-mix(in srgb, var(--store-primary) 80%, #fff); }
.header-top {
	display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "search brand icons";
	align-items: center; gap: 16px; padding-block: 20px 16px;
}
.icon-link.burger { display: none; grid-area: burger; }
.header-search {
	grid-area: search; justify-self: start; width: 100%; max-width: 330px;
	display: flex; align-items: center; gap: 8px; height: 46px; padding-inline: 16px 6px;
	background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-pill);
}
.header-search > .icon { color: var(--sb-muted); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14.5px; }
.header-search input::placeholder { color: #6A6E65; }
.search-go { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--sb-tint); color: var(--sb-ink); display: grid; place-items: center; cursor: pointer; }
.search-go .icon { width: 17px; height: 17px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 25px; color: var(--store-text); white-space: nowrap; }
.brand img { width: 42px; height: 42px; }
.header-icons { grid-area: icons; justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-link { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--store-text); cursor: pointer; }
.icon-link:hover { background: #fff; }
.icon-link .icon { width: 23px; height: 23px; }
.count {
	position: absolute; top: 1px; inset-inline-end: 0; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 10px; background: var(--store-primary-dark); color: #fff; font-size: 11.5px; font-weight: 700;
	display: grid; place-items: center; line-height: 1;
}
.icon-link.search-toggle { display: none; }
.login-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding-inline: 8px; }
.login-link .icon { width: 22px; height: 22px; }

.nav-bar { background: var(--store-primary-dark); border-radius: var(--sb-r-sm); }
.nav-list { list-style: none; margin: 0; padding: 0 12px; display: flex; justify-content: center; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a, .drop-btn {
	display: inline-flex; align-items: center; gap: 4px; height: 56px; padding: 0 16px;
	color: #fff; font-weight: 500; font-size: 15.5px; background: none; border: 0; cursor: pointer;
}
.nav-list > li > a:hover, .drop-btn:hover { background: rgba(255, 255, 255, .1); }
.drop-btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.drop {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; margin: 0; padding: 8px;
	list-style: none; background: #fff; border-radius: var(--sb-r-sm); box-shadow: var(--sb-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 40;
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover .drop-btn .icon, .has-drop.open .drop-btn .icon { transform: rotate(180deg); }
.drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--store-text); }
.drop a:hover { background: var(--sb-tint); }

/* الدرج الجانبيّ */
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(330px, 86vw); z-index: 70;
	background: #fff; padding: 16px 18px 30px; overflow-y: auto;
	transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(20, 26, 16, .5); opacity: 0; visibility: hidden; transition: .3s; }
.drawer-open .drawer-backdrop, .filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--sb-line); }
.brand-sm { font-size: 19px; }
.brand-sm img { width: 34px; height: 34px; }
.drawer-label { margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--sb-muted); }
.drawer-cats { list-style: none; margin: 0; padding: 0; }
.drawer-link, .drawer-cats a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--sb-line); font-weight: 500; }

/* ---------------------------------------------------------------- الواجهة */
.hero { position: relative; background: linear-gradient(180deg, var(--sb-top) 0%, #fff 100%); padding-top: 18px; }
.hero-track { position: relative; }
.slide { display: none; grid-template-columns: 1.04fr 1fr; align-items: center; gap: 28px; min-height: 520px; }
.slide.is-active { display: grid; animation: sb-fade .6s ease; }
@keyframes sb-fade { from { opacity: 0; } to { opacity: 1; } }
.slide-text { padding-block: 30px; }
.hero-tag {
	display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 18px; padding-inline: 5px 18px;
	border-radius: var(--sb-pill); font-weight: 500; font-size: 15px;
	background: linear-gradient(to left, var(--sb-tint-2), rgba(255, 255, 255, 0));
}
.hero-tag-ic { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--store-primary-dark); display: grid; place-items: center; }
.hero-tag-ic .icon { width: 18px; height: 18px; }
.hero-title { font-size: clamp(34px, 4.4vw, 62px); font-weight: 800; line-height: 1.22; margin: 22px 0 18px; letter-spacing: -.5px; }
.hero-title em { font-style: normal; color: var(--store-primary-dark); }
.hero-text { font-size: 17px; color: var(--sb-muted); max-width: 520px; margin: 0 0 30px; }
.slide-media { display: flex; justify-content: center; }
.slide-media img { width: 100%; max-width: 640px; height: auto; display: block; }
.hero-dots { display: flex; gap: 8px; padding-bottom: 26px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: #CBD1C3; cursor: pointer; transition: width .3s, background .3s; }
.dot.is-active { width: 28px; background: var(--store-primary-dark); }
.hero-social { display: none; position: absolute; inset-inline-start: 22px; top: 50%; transform: translateY(-50%); flex-direction: column; align-items: center; gap: 16px; z-index: 2; }
.hero-social a { color: var(--store-primary-dark); display: grid; }
.hero-social .icon { width: 20px; height: 20px; }
.hero-social-label { writing-mode: vertical-rl; font-size: 14px; color: var(--sb-ink); padding-bottom: 70px; position: relative; }
.hero-social-label::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 50%; width: 1px; height: 60px; background: var(--store-primary-dark); }

/* شريط الثقة: شريطٌ فاتح ممتدّ إلى الحافّة، والمزايا بفواصل رأسيّة */
.trust-bar { position: relative; padding: 24px 0 26px; }
.trust-bar::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 39%; height: 30px; background: var(--sb-tint-2); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: flex-end; }
.trust-list li { display: flex; align-items: center; gap: 14px; padding: 6px 34px; border-inline-start: 1px solid var(--sb-line); }
.trust-list li:first-child { border-inline-start: 0; }
.trust-list li:last-child { padding-inline-end: 0; }
.trust-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--sb-tint); color: var(--store-primary-dark); display: grid; place-items: center; flex-shrink: 0; }
.trust-ic .icon { width: 24px; height: 24px; }
.trust-list b { display: block; font-size: 18px; font-weight: 800; }
.trust-list span { font-size: 14px; color: var(--sb-muted); }

/* ---------------------------------------------------------------- الأقسام */
.section { padding: 34px 0; }
.section-tight { padding: 22px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: clamp(25px, 2.6vw, 37px); font-weight: 800; margin: 0; letter-spacing: -.3px; }
.eyebrow { display: block; color: var(--sb-muted); font-size: 15px; margin-bottom: 4px; }

/* التصنيفات */
.cat-wrap { position: relative; }
.cat-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-card {
	scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 22px 16px 8px; border-radius: var(--sb-r); background: var(--sb-tint); transition: transform .25s;
}
.cat-card:nth-child(4n+2) { background: color-mix(in srgb, var(--store-primary) 9%, #FBF3DD); }
.cat-card:nth-child(4n+3) { background: color-mix(in srgb, var(--store-primary) 6%, #F3EFEA); }
.cat-card:nth-child(4n+4) { background: color-mix(in srgb, var(--store-primary) 18%, #fff); }
.cat-card:hover { transform: translateY(-4px); }
.cat-name { font-size: 19px; font-weight: 700; }
.cat-count { font-size: 14px; color: var(--sb-muted); }
.cat-card img { width: 84%; height: auto; aspect-ratio: 1; margin-top: 4px; transition: transform .3s; }
.cat-card:hover img { transform: scale(1.04); }
.scroll-btn {
	position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
	border: 0; background: #fff; color: var(--store-text); box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	display: grid; place-items: center; cursor: pointer;
}
.scroll-btn.prev { inset-inline-start: -23px; }
.scroll-btn.next { inset-inline-end: -23px; }

/* ---------------------------------------------------------------- بطاقة الكتاب */
.book-row, .book-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 20px; }
.book-card {
	position: relative; display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 9px; transition: box-shadow .25s, border-color .25s;
}
.book-card:hover { box-shadow: var(--sb-shadow); border-color: color-mix(in srgb, var(--store-primary) 35%, var(--sb-line)); }
body[data-card-style="shadow"] .book-card { border-color: transparent; box-shadow: 0 6px 24px rgba(20, 26, 16, .08); }
body[data-card-style="plain"] .book-card { border-color: transparent; padding: 0; background: transparent; box-shadow: none; }
.book-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.08; background: var(--sb-soft); border-radius: var(--sb-r-sm); overflow: hidden; }
.book-cover { display: block; width: 58%; transition: transform .3s; }
.book-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 12px 20px rgba(0, 0, 0, .18); }
.book-card:hover .book-cover { transform: translateY(-4px); }
.book-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 2px 8px; border-radius: 6px; }
.badge-sale { background: var(--sb-sale); color: #fff; }
.badge-new { background: var(--store-primary-dark); color: #fff; }
.wish-btn {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: #fff; color: var(--store-primary-dark); display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.wish-btn .icon { width: 18px; height: 18px; }
.type-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; flex-shrink: 0; }
.type-dot .icon { width: 16px; height: 16px; }
.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 { width: 22px; height: 22px; }
.type-dot.sm .icon { width: 12px; height: 12px; }
.type-dot.lg { width: 54px; height: 54px; }
.type-dot.lg .icon { width: 26px; height: 26px; }
.book-media > .type-dot { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; box-shadow: 0 0 0 3px #fff; }
.stock-ribbon {
	position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%); z-index: 2;
	background: rgba(20, 26, 16, .88); color: #fff; text-align: center; font-size: 13.5px; font-weight: 700; padding: 6px;
}
.is-out .book-cover img { filter: grayscale(.7); opacity: .75; }
.book-body { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 12px 4px 4px; }
.book-cat { font-size: 13px; color: var(--sb-muted); }
.book-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book-title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.45; min-width: 0; }
.book-line .book-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-title a:hover { color: var(--store-primary-dark); }
.rating { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; flex-shrink: 0; }
.rating b { font-weight: 500; }
.star { width: 16px; height: 16px; color: var(--sb-gold); flex-shrink: 0; }
.star.off { color: var(--sb-star-off); }
.stars-row { display: inline-flex; gap: 2px; vertical-align: middle; }
.book-author { margin: 0; font-size: 14px; color: var(--sb-muted); }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: var(--store-primary-dark); font-weight: 800; font-size: 17px; }
.price del { color: #6B6D66; font-weight: 500; font-size: 14px; }
.book-body .price { margin: 4px 0 12px; }
.btn-cart { margin-top: auto; height: 42px; width: 100%; font-size: 14.5px; background: var(--store-primary-dark); color: #fff; }
.btn-cart:hover { background: color-mix(in srgb, var(--store-primary-dark) 82%, #000); }

/* بانران متجاوران */
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-card { position: relative; overflow: hidden; border-radius: var(--sb-r); aspect-ratio: 2 / 1; background: var(--sb-tint); }
.promo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .5s; }
.promo-card:hover > img { transform: scale(1.03); }
.promo-text { position: relative; z-index: 1; height: 100%; max-width: 56%; padding: 24px 46px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.promo-small { font-size: 14.5px; color: var(--sb-muted); }
.promo-title { font-size: clamp(21px, 2vw, 28px); font-weight: 800; margin: 6px 0 18px; }

/* قصّتنا */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 46px 0; }
.story-media { align-self: stretch; }
.story-media img { display: block; width: 100%; height: 100%; min-height: 470px; object-fit: cover; border-start-end-radius: 28px; border-end-end-radius: 28px; }
body[data-corners="sharp"] .story-media img { border-radius: 0; }
.story-text { padding-inline-end: max(24px, calc((100vw - 1296px) / 2)); padding-block: 10px; }
.story-text > p { color: var(--sb-muted); font-size: 16.5px; max-width: 560px; margin: 14px 0 0; }
.type-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 28px; max-width: 600px; }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: var(--sb-r-sm); background: var(--sb-tint); font-size: 14.5px; text-align: center; transition: background .2s; }
.type-tile:hover { background: var(--sb-tint-2); }

/* البانر العريض */
.wide-banner { position: relative; overflow: hidden; border-radius: var(--sb-r); background: #FBF6E7; }
.wide-banner > img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 300; object-fit: cover; }
.wide-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 28%; text-align: center; }
.wide-title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; margin: 0 0 12px; }

/* آراء القرّاء */
.reviews-section { background: var(--sb-gray-bg); padding: 56px 0; margin: 30px 0; }
.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { position: relative; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 24px 26px; overflow: hidden; }
.review-card::after { content: "”"; position: absolute; top: -18px; inset-inline-end: 18px; font-size: 120px; line-height: 1; color: var(--sb-soft); font-family: Georgia, serif; pointer-events: none; }
.review-row .review-card:nth-child(2) { border-color: color-mix(in srgb, var(--store-primary) 50%, #fff); box-shadow: inset 0 -5px 0 var(--store-primary); }
.review-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 12px; background: var(--sb-tint-2); color: var(--sb-ink); display: grid; place-items: center; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.review-head b { display: block; font-size: 18px; font-weight: 700; }
.review-date { font-size: 14px; color: var(--sb-muted); }
.review-card .stars-row .star { width: 17px; height: 17px; }
.review-card p { position: relative; z-index: 1; color: var(--sb-muted); margin: 10px 0 0; }

/* المؤلّفون */
.author-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.author-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 9px; }
.author-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--sb-r-sm); }
.author-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .4s; }
.author-card:hover .author-media img { transform: scale(1.05); }
.count-badge { position: absolute; bottom: 10px; inset-inline-end: 10px; display: flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--sb-ink); font-size: 12px; font-weight: 700; }
.count-badge b { font-size: 18px; font-weight: 800; }
.author-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 12px 6px 6px; }
.author-name { margin: 0; font-size: 19px; font-weight: 700; }
.author-body p { margin: 4px 0 14px; font-size: 14.5px; color: var(--sb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-body .btn { margin-top: auto; border-radius: var(--sb-r-sm); }

/* شاهدتَه مؤخّرًا */
.section-recent .section-title { font-size: clamp(21px, 2vw, 27px); }
.mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-card { display: flex; align-items: center; gap: 14px; padding: 10px; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.mini-cover { position: relative; display: block; width: 64px; flex-shrink: 0; }
.mini-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 5px 5px 3px; box-shadow: 0 6px 12px rgba(0, 0, 0, .14); }
.mini-cover .type-dot { position: absolute; bottom: -6px; inset-inline-start: -6px; width: 24px; height: 24px; box-shadow: 0 0 0 2px #fff; }
.mini-cover .type-dot .icon { width: 13px; height: 13px; }
.mini-card .book-title { font-size: 15px; }
.mini-card .price { font-size: 15px; }

/* ---------------------------------------------------------------- التذييل */
.site-footer {
	margin-top: 46px; padding-top: 52px; color: #C6CBC0;
	background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--store-primary) 22%, transparent), transparent 55%), radial-gradient(ellipse at 10% 100%, color-mix(in srgb, var(--store-primary) 14%, transparent), transparent 50%), var(--store-accent);
}
.news-box {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; padding: 30px 34px;
	border: 1px solid rgba(255, 255, 255, .1); border-radius: calc(var(--sb-r) + 6px); background: rgba(255, 255, 255, .03);
}
.news-box h2 { margin: 0 0 6px; color: #fff; font-size: clamp(23px, 2.4vw, 32px); font-weight: 800; }
.news-box p { margin: 0; }
.news-field { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: var(--sb-pill); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.news-field input { flex: 1; min-width: 0; height: 46px; padding-inline: 18px; border: 0; outline: 0; background: none; color: #fff; }
.news-field input::placeholder { color: #AEB4A8; }
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr 1.6fr; gap: 32px; padding: 44px 0 36px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); }
.brand-foot { color: #fff; font-size: 24px; margin-bottom: 14px; }
.footer-about p { margin: 0 0 18px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 9px; color: #fff; transition: background .2s; }
.social a:hover { background: var(--store-primary-dark); border-color: transparent; }
.social .icon { width: 18px; height: 18px; }
.footer-title { position: relative; margin: 0 0 18px; padding-bottom: 10px; color: #fff; font-size: 19px; font-weight: 700; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 2px; background: var(--store-primary); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 4px 0; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.fc-ic { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: rgba(255, 255, 255, .07); color: var(--store-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14.5px; }
.footer-bottom p { margin: 0; }
.footer-bottom b { color: #fff; }
.secure { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .secure .icon { color: var(--store-primary); }

/* ---------------------------------------------------------------- الصفحات الداخليّة */
.page-band { position: relative; overflow: hidden; padding: 34px 0 40px; text-align: center; background: color-mix(in srgb, var(--store-primary) 10%, #fff); }
.page-band::before, .page-band::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--store-primary) 45%, transparent); pointer-events: none; }
.page-band::before { width: 420px; height: 420px; top: -260px; inset-inline-start: -120px; }
.page-band::after { width: 620px; height: 620px; top: -460px; inset-inline-end: -180px; }
.crumbs { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--sb-muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--sb-muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--sb-ink); font-weight: 700; }
.crumbs .icon { width: 17px; height: 17px; }
.page-title { position: relative; margin: 6px 0 0; font-size: clamp(26px, 3vw, 36px); font-weight: 800; }

/* التصنيف */
.listing-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 30px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 16px; }
.filters-head { display: none; }
.f-panel { padding: 14px; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.f-panel summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; padding: 10px 14px; border-radius: var(--sb-r-sm); background: var(--sb-soft); font-weight: 700; font-size: 16.5px; }
.f-panel summary::-webkit-details-marker { display: none; }
.f-panel summary .icon { width: 18px; height: 18px; }
.f-list { list-style: none; margin: 0; padding: 12px 4px 2px; display: flex; flex-direction: column; gap: 10px; }
.f-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.f-check { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.f-check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.f-box { width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid #B9BEB2; border-radius: 4px; display: grid; place-items: center; background: #fff; }
.f-check input:checked + .f-box { background: var(--store-primary-dark); border-color: var(--store-primary-dark); }
.f-check input:checked + .f-box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(0, -1px); }
.f-check input:focus-visible + .f-box { outline: 2px solid var(--store-primary-dark); outline-offset: 2px; }
.f-count { color: var(--sb-muted); font-size: 14px; }
.f-plus { color: var(--sb-muted); font-size: 14px; }
.f-search { display: flex; align-items: center; gap: 8px; height: 42px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); }
.f-search .icon { width: 18px; height: 18px; color: var(--sb-muted); }
.f-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14.5px; }
.range { position: relative; height: 4px; margin: 26px 10px 20px; border-radius: 4px; background: #E1E4DC; }
.range-fill { position: absolute; inset-block: 0; inset-inline-start: 22%; inset-inline-end: 30%; background: var(--store-primary-dark); border-radius: 4px; }
.knob { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--store-primary-dark); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.k1 { inset-inline-start: calc(22% - 9px); }
.k2 { inset-inline-end: calc(30% - 9px); }
.range-inputs { display: flex; align-items: center; gap: 10px; }
.range-inputs input { width: 100%; height: 40px; text-align: center; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); background: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip { padding: 7px 16px; border: 1px solid var(--sb-line); border-radius: var(--sb-pill); background: #fff; font-size: 14.5px; transition: border-color .2s; }
.chip small { color: var(--sb-muted); font-size: 13px; }
.chip:hover { border-color: var(--store-primary-dark); }
.listing-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--sb-line); }
.listing-count { margin: 0; font-size: 15.5px; }
.filters-toggle { display: none; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sort select { height: 42px; padding: 0 14px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); background: #fff; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0 20px; font-size: 15px; }
.f-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); background: var(--sb-soft); font-size: 14px; }
.f-chip button { display: grid; padding: 0; border: 0; background: none; cursor: pointer; }
.f-chip .icon { width: 14px; height: 14px; }
.clear-all { display: inline-flex; align-items: center; gap: 4px; color: var(--sb-sale); font-weight: 700; font-size: 14.5px; }
.clear-all .icon { width: 16px; height: 16px; }
.listing .book-grid { grid-template-columns: repeat(var(--cols-list), minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 6px; display: grid; place-items: center; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); font-weight: 700; background: #fff; }
.pagination span { border-color: transparent; }
.pagination a:hover { border-color: var(--store-primary-dark); }
.pagination [aria-current="page"] { background: var(--store-primary-dark); border-color: var(--store-primary-dark); color: #fff; }
.pagination .icon { width: 18px; height: 18px; }

/* صفحة الكتاب */
.pdp-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
.pdp-gallery { position: sticky; top: 174px; }
.gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.1; background: var(--sb-soft); border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.gallery-main > img { width: 62%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 18px 30px rgba(0, 0, 0, .2); }
.gallery-main > .type-dot { position: absolute; bottom: 14px; inset-inline-start: 14px; width: 40px; height: 40px; }
.gallery-main > .type-dot .icon { width: 20px; height: 20px; }
.gallery-main .book-badges { top: 14px; inset-inline-start: 14px; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumb { width: 88px; aspect-ratio: 1; padding: 8px; display: grid; place-items: center; background: var(--sb-soft); border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); cursor: pointer; }
.thumb img { height: 100%; width: auto; border-radius: 2px; }
.thumb.is-active { border: 2px solid var(--store-primary-dark); }
.pdp-cat { display: inline-block; color: var(--store-primary-dark); font-weight: 700; font-size: 15px; }
.pdp-title { margin: 4px 0 6px; font-size: clamp(25px, 2.4vw, 33px); font-weight: 800; }
.pdp-author { margin: 0 0 10px; color: var(--sb-muted); }
.pdp-author a { color: var(--store-primary-dark); font-weight: 700; }
.pdp-lead { margin: 0 0 14px; color: var(--sb-muted); font-size: 16px; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; padding-bottom: 16px; border-bottom: 1px solid var(--sb-line); font-size: 15px; }
.pdp-meta > span { display: inline-flex; align-items: center; gap: 6px; padding-inline: 14px; border-inline-start: 1px solid var(--sb-line); }
.pdp-meta > span:first-child { padding-inline-start: 0; border: 0; }
.rating-lg { display: inline-flex; align-items: center; gap: 8px; }
.rating-lg .star { width: 18px; height: 18px; }
.pdp-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.pdp-type .type-dot { width: 26px; height: 26px; }
.pdp-type .type-dot .icon { width: 14px; height: 14px; }
.quick-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.quick-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--sb-pill); background: var(--sb-tint); color: var(--sb-ink); font-weight: 700; font-size: 14.5px; }
.quick-facts .icon { width: 18px; height: 18px; }
.player { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--sb-r); background: var(--sb-soft); }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--store-primary-dark); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.player-track { position: relative; flex: 1; height: 6px; border-radius: 6px; background: #D9DCD3; }
.player-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 28%; border-radius: 6px; background: var(--store-primary-dark); }
.player-time { font-size: 13.5px; color: var(--sb-muted); }
.pdp-block { padding: 20px 0; border-top: 1px solid var(--sb-line); }
.pdp-block h3 { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 0; }
.spec { display: flex; gap: 10px; font-size: 15px; }
.spec dt { min-width: 104px; color: var(--sb-muted); }
.spec dd { margin: 0; font-weight: 700; }
.prose p { margin: 0 0 10px; color: #44473F; }
.reviews-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reviews-top h3 { margin: 0; }
.review-summary { display: flex; align-items: center; gap: 16px; margin: 14px 0 4px; padding: 16px 18px; border-radius: var(--sb-r); background: var(--sb-soft); }
.review-summary > b { font-size: 40px; font-weight: 800; line-height: 1; }
.review-summary span { display: block; font-size: 14px; color: var(--sb-muted); }
.review-flat { padding: 18px 0; border: 0; border-bottom: 1px solid var(--sb-line); border-radius: 0; box-shadow: none; }
.review-flat::after { display: none; }
.review-form { margin-top: 18px; padding: 20px; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.review-form h3 { margin: 0; }
.review-form .muted { margin: 2px 0 8px; font-size: 14px; }
.rate-input { display: flex; gap: 2px; }
.rate-pick { padding: 2px; border: 0; background: none; cursor: pointer; display: grid; }
.rate-pick .star { width: 26px; height: 26px; color: var(--sb-star-off); }
.rate-input:hover .rate-pick .star { color: var(--sb-gold); }
.rate-pick:hover ~ .rate-pick .star { color: var(--sb-star-off); }
.review-form textarea { display: block; width: 100%; margin: 10px 0 12px; padding: 12px 14px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); resize: vertical; }
.pdp-side { display: flex; flex-direction: column; gap: 20px; }
.buy-box { overflow: hidden; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.buy-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--store-primary-dark); color: #fff; font-size: 14.5px; }
.buy-top b { font-size: 20px; font-weight: 800; }
.buy-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.buy-row { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--sb-line); }
.buy-row img { width: 52px; height: auto; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .14); }
.buy-row small { display: block; color: var(--sb-muted); font-size: 13px; }
.buy-row b { font-size: 15.5px; }
.buy-price { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.price-lg { font-size: 25px; }
.price-lg del { font-size: 16px; }
.perks { list-style: none; margin: 0; padding: 0 16px; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.perks li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sb-line); }
.perks li:last-child { border-bottom: 0; }
.perks .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--sb-tint); color: var(--store-primary-dark); }
.perks b { display: block; font-size: 15px; }
.perks span { font-size: 13.5px; color: var(--sb-muted); }
.side-box { padding: 16px 18px 6px; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.side-title { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.side-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sb-line); }
.side-cover { position: relative; display: block; width: 60px; flex-shrink: 0; }
.side-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .14); }
.side-cover .type-dot { position: absolute; bottom: -5px; inset-inline-start: -5px; width: 22px; height: 22px; box-shadow: 0 0 0 2px #fff; }
.side-cover .type-dot .icon { width: 12px; height: 12px; }
.side-item .book-title { font-size: 15px; }
.side-item .price { font-size: 15px; display: flex; }
.side-item .star { width: 14px; height: 14px; }
.buybar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: #fff; box-shadow: 0 -8px 30px rgba(0, 0, 0, .1); transform: translateY(110%); visibility: hidden; transition: transform .3s, visibility .3s; }
.buybar-on .buybar { transform: none; visibility: visible; }
.buybar-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.buybar-in img { width: 40px; height: auto; border-radius: 3px; }
.buybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.buybar-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .price { font-size: 15px; }

/* المؤلّف */
.author-hero {
	display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin-bottom: 44px; padding: 24px;
	border: 1px solid var(--sb-line); border-radius: var(--sb-r); background: linear-gradient(to left, var(--sb-tint), #fff 65%);
}
.author-hero > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--sb-r-sm); }
.author-title { margin: 0; font-size: clamp(27px, 3vw, 38px); font-weight: 800; }
.author-count { margin: 4px 0 12px; color: var(--sb-ink); font-weight: 700; }
.author-count b { font-size: 20px; }
.author-bio { margin: 0 0 16px; color: #44473F; font-size: 16px; max-width: 760px; }
.author-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.author-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--sb-pill); background: #fff; border: 1px solid var(--sb-line); font-weight: 700; font-size: 14.5px; }
.author-facts .icon { width: 18px; height: 18px; color: var(--store-primary-dark); }

/* السلّة */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sb-line); border-radius: var(--sb-r); overflow: hidden; }
.cart-table th { padding: 14px 16px; text-align: start; font-size: 15px; font-weight: 700; background: var(--sb-soft); }
.cart-table td { padding: 16px; border-top: 1px solid var(--sb-line); vertical-align: middle; }
.cart-book { display: flex; align-items: center; gap: 14px; }
.cart-book img { width: 70px; height: auto; border-radius: 3px; box-shadow: 0 6px 12px rgba(0, 0, 0, .14); display: block; }
.cart-book h3 { margin: 0; font-size: 16.5px; }
.cart-book p { margin: 2px 0 6px; font-size: 14px; color: var(--sb-muted); }
.cart-book .type-dot { width: 22px; height: 22px; }
.cart-book .type-dot .icon { width: 12px; height: 12px; }
.save { display: block; color: var(--store-primary-dark); font-size: 13px; font-weight: 700; }
.qty { display: inline-flex; align-items: center; height: 42px; border: 1px solid var(--sb-line); border-radius: var(--sb-pill); overflow: hidden; }
.qty button { width: 38px; height: 100%; display: grid; place-items: center; border: 0; background: var(--sb-soft); cursor: pointer; }
.qty .icon { width: 16px; height: 16px; }
.qty input { width: 46px; height: 100%; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: #fff; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-remove { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--sb-line); background: #fff; color: var(--sb-sale); cursor: pointer; }
.cart-remove .icon { width: 18px; height: 18px; }
.cart-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cart-empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--sb-line); border-radius: var(--sb-r); }
.empty-ic { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--sb-tint); color: var(--store-primary-dark); }
.cart-side { display: flex; flex-direction: column; gap: 20px; }
.coupon-box, .summary { padding: 20px; border: 1px solid var(--sb-line); border-radius: var(--sb-r); }
.coupon-box h2, .summary h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.coupon-field { display: flex; gap: 8px; }
.coupon-field input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 1px solid var(--sb-line); border-radius: var(--sb-pill); }
.coupon-field .btn { height: 42px; }
.coupon-applied { margin: 10px 0 0; font-size: 14px; color: var(--sb-muted); }
.summary dl { margin: 0 0 16px; }
.summary dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--sb-line); }
.summary dt { color: var(--sb-muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary .minus { color: var(--store-primary-dark); }
.summary .total { border-bottom: 0; font-size: 19px; }
.summary .total dt { color: var(--store-text); font-weight: 800; }
.summary .total dd { color: var(--store-primary-dark); font-weight: 800; }
.summary .secure { display: flex; justify-content: center; margin: 12px 0 0; font-size: 13.5px; color: var(--sb-muted); }
.summary .secure .icon { width: 16px; height: 16px; color: var(--store-primary-dark); }

/* 404 */
.nf-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 20px; }
.nf-art { position: relative; display: grid; place-items: center; width: min(560px, 100%); height: 240px; }
.nf-num { font-size: clamp(130px, 18vw, 220px); font-weight: 800; line-height: 1; letter-spacing: 6px; color: color-mix(in srgb, var(--store-primary) 18%, #fff); }
.nf-book { position: absolute; bottom: 38px; left: 50%; display: flex; width: 190px; height: 120px; margin-left: -95px; }
.nf-book span { flex: 1; background: #fff repeating-linear-gradient(180deg, transparent 0 18px, var(--sb-line) 18px 20px); background-clip: content-box; padding: 18px 16px; border: 4px solid var(--store-primary-dark); }
.nf-book span:first-child { border-radius: 10px 0 0 10px; transform: skewY(6deg); transform-origin: right bottom; border-right-width: 2px; }
.nf-book span:last-child { border-radius: 0 10px 10px 0; transform: skewY(-6deg); transform-origin: left bottom; border-left-width: 2px; }
.nf-title { margin: 10px 0 6px; font-size: clamp(25px, 3vw, 34px); font-weight: 800; }
.nf-text { margin: 0; max-width: 540px; color: var(--sb-muted); font-size: 16.5px; }
.nf-search { display: flex; gap: 8px; width: min(540px, 100%); margin: 24px 0 14px; }
.nf-search input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border: 1px solid var(--sb-line); border-radius: var(--sb-pill); }
.nf-search .btn { height: 50px; }

/* صفحة المكوّنات */
.kit { padding-block: 20px 40px; }
.kit-block { padding: 26px 0; border-bottom: 1px solid var(--sb-line); }
.kit-title { margin: 0 0 6px; font-size: 23px; font-weight: 800; }
.kit-note { margin: 0 0 16px; color: var(--sb-muted); }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.kit-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.kit-cards { --cols: 4; max-width: 1100px; }
.kit-band { margin: 0; padding: 26px 0; border-radius: var(--sb-r); }

/* ---------------------------------------------------------------- خيارات الناشر */
body[data-show-trust-bar="false"] .trust-bar { display: none; }
body[data-show-reviews="false"] .reviews-section,
body[data-show-reviews="false"] .reviews-block { display: none; }

/* ---------------------------------------------------------------- العروض */
@media (min-width: 1200px) {
	body[data-books-per-row="4"] .book-row:not(.book-carousel) > :nth-child(n+5) { display: none; }
	body[data-books-per-row="5"] .book-row:not(.book-carousel) > :nth-child(n+6) { display: none; }
	body[data-books-per-row="6"] .book-row:not(.book-carousel) > :nth-child(n+7) { display: none; }
}
@media (min-width: 1400px) {
	.leaf-deco { display: block; }
	.hero-social { display: flex; }
}
@media (max-width: 1199px) {
	.book-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
	.book-row > * { scroll-snap-align: start; }
	.book-grid { --cols: 3; gap: 16px; }
	.cat-row { grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; }
	.author-row { grid-template-columns: repeat(2, 1fr); }
	.mini-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 290px; overflow-x: auto; padding-bottom: 6px; }
	.footer-cols { grid-template-columns: repeat(3, 1fr); }
	.footer-about { grid-column: 1 / -1; max-width: 640px; }
	.pdp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.pdp-gallery { position: static; grid-column: 1; grid-row: 1; }
	.pdp-side { grid-column: 2; grid-row: 1; }
	.pdp-info { grid-column: 1 / -1; grid-row: 2; }
	.pdp-reviews { grid-column: 1 / -1; grid-row: 3; }
	.trust-list li { padding-inline: 22px; }
	.slide { min-height: 440px; }
}
@media (max-width: 991px) {
	.header-top { grid-template-columns: auto 1fr auto; grid-template-areas: "burger brand icons" "search search search"; gap: 10px 8px; padding-block: 14px 0; }
	.icon-link.burger { display: inline-grid; justify-self: start; }
	.brand { justify-self: start; }
	.header-search { display: none; max-width: none; }
	.site-header.search-open .header-search { display: flex; }
	.icon-link.search-toggle { display: inline-grid; }
	.login-link { display: none; }
	.nav-bar { display: none; }
	.site-header { padding-bottom: 14px; }
	.slide { grid-template-columns: 1fr; min-height: 0; gap: 0; text-align: center; }
	.slide-text { padding-block: 16px 6px; display: flex; flex-direction: column; align-items: center; }
	.hero-text { margin-inline: auto; }
	.slide-media img { max-width: 440px; }
	.hero-dots { justify-content: center; }
	.trust-list { justify-content: center; }
	.promo-pair { grid-template-columns: 1fr; gap: 18px; }
	.promo-card { aspect-ratio: 2.6 / 1; }
	.slide { min-height: 0; }
	.promo-text { padding: 20px 28px; }
	.story { grid-template-columns: 1fr; gap: 26px; }
	.story-media img { min-height: 0; height: 300px; border-radius: 0 0 28px 28px; }
	.story-text { padding-inline: 24px; }
	.wide-banner > img { aspect-ratio: auto; height: 230px; }
	.wide-text { padding: 0 22%; }
	.review-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
	.review-row > * { scroll-snap-align: start; }
	.news-box { grid-template-columns: 1fr; }
	.listing-grid { grid-template-columns: minmax(0, 1fr); }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 70; width: min(340px, 88vw);
		padding: 16px; overflow-y: auto; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s;
	}
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-head { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
	.filters-toggle { display: inline-flex; }
	.cart-grid { grid-template-columns: minmax(0, 1fr); }
	.author-hero { grid-template-columns: 220px 1fr; gap: 26px; }
}
@media (max-width: 767px) {
	.container { padding-inline: 16px; }
	body { font-size: 15px; }
	.brand { font-size: 19px; gap: 8px; }
	.brand img { width: 34px; height: 34px; }
	.icon-link { width: 38px; height: 38px; }
	.header-icons { gap: 0; }
	.hero-title { font-size: 32px; }
	.hero-text { font-size: 15.5px; margin-bottom: 22px; }
	.trust-bar { padding-top: 26px; }
	.trust-bar::before { width: 55%; height: 14px; }
	.trust-bar { padding-bottom: 8px; }
	.trust-list { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.trust-list::-webkit-scrollbar { display: none; }
	.trust-list li { flex: 0 0 auto; gap: 10px; padding: 2px 16px; scroll-snap-align: start; }
	.trust-list li:first-child { padding-inline-start: 0; }
	.trust-list li:last-child { padding-inline-end: 16px; }
	.trust-ic { width: 40px; height: 40px; }
	.trust-ic .icon { width: 20px; height: 20px; }
	.trust-list b { font-size: 15px; }
	.trust-list span { font-size: 12.5px; display: block; line-height: 1.5; }
	.section { padding: 26px 0; }
	.section-head { margin-bottom: 16px; }
	.cat-row { grid-auto-columns: 44%; gap: 12px; }
	.cat-card { padding: 16px 10px 6px; }
	.cat-name { font-size: 17px; }
	.scroll-btn { display: none; }
	.book-row { grid-auto-columns: 47%; gap: 12px; }
	.book-grid { --cols: 2; gap: 12px; }
	.listing .book-grid { --cols-list: 2; }
	.book-card { padding: 7px; }
	.book-title { font-size: 15px; }
	.book-line { flex-direction: column; align-items: flex-start; gap: 0; }
	.book-line .book-title { max-width: 100%; }
	.price { font-size: 15.5px; }
	.price del { font-size: 13px; }
	.btn-cart { height: 38px; font-size: 13.5px; gap: 6px; padding: 0 8px; }
	.btn-cart .icon { width: 16px; height: 16px; }
	.promo-pair { gap: 16px; }
	.promo-card { aspect-ratio: 2 / 1; }
	.promo-text { max-width: 62%; padding: 16px 20px; }
	.promo-title { font-size: 19px; margin-bottom: 12px; }
	.story-media img { height: 230px; }
	.story-text { padding-inline: 16px; }
	.type-tiles { grid-template-columns: repeat(2, 1fr); }
	.wide-banner > img { height: 250px; }
	.wide-text { padding: 0 18px; }
	.reviews-section { padding: 40px 0; }
	.review-row { grid-auto-columns: 88%; gap: 14px; }
	.author-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
	.mini-row { grid-auto-columns: 82%; }
	.news-box { padding: 24px 18px; }
	.news-field .btn { padding: 0 18px; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
	.footer-cols > :last-child { grid-column: 1 / -1; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.page-band { padding: 24px 0 28px; }
	.listing-bar { gap: 10px; }
	.listing-count { width: 100%; }
	.pdp-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.pdp-gallery, .pdp-side, .pdp-info, .pdp-reviews { grid-column: 1; grid-row: auto; }
	.gallery-main { aspect-ratio: 1 / 1; }
	.gallery-main > img { width: 52%; }
	.specs { grid-template-columns: 1fr; }
	.author-hero { grid-template-columns: 1fr; text-align: center; background: var(--sb-tint); }
	.author-hero > img { max-width: 220px; margin: 0 auto; }
	.author-facts { justify-content: center; }
	.cart-table thead { display: none; }
	.cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
	.cart-table tr { position: relative; padding: 14px; border-top: 1px solid var(--sb-line); }
	.cart-table tbody tr:first-child { border-top: 0; }
	.cart-table td { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border: 0; }
	.cart-table td:first-child { padding-inline-end: 44px; }
	.cart-table td[data-label]::before { content: attr(data-label); color: var(--sb-muted); font-size: 14px; }
	.cart-table td[data-label] { gap: 10px; }
	.cart-table td[data-label] .price { justify-content: flex-end; }
	.cell-remove { position: absolute; top: 12px; inset-inline-end: 12px; padding: 0 !important; }
	.nf-art { height: 190px; }
	.nf-book { width: 150px; height: 96px; margin-left: -75px; bottom: 30px; }
	.nf-search { flex-direction: column; }
	.kit-cards { --cols: 2; }
	.buybar-in .btn { padding: 0 14px; font-size: 14px; }
	.buybar-in .btn .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

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

/* عدّاد «عروض الأسبوع»: كبسولةٌ فاتحة فيها أربع دوائر */
.deals-head { flex-wrap: wrap; align-items: center; }
.deals-head .more-link { order: 3; }
.deal-timer { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; padding: 5px; border-radius: var(--sb-pill); background: var(--sb-tint); border: 1px solid var(--sb-tint-2); }
.deal-timer[hidden] { display: none; }
.deal-timer span { display: inline-flex; align-items: baseline; justify-content: center; gap: 2px; min-width: 52px; height: 40px; align-items: center; padding: 0 8px; border-radius: var(--sb-pill); background: #fff; color: var(--sb-ink); }
.deal-timer b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.deal-timer small { font-size: 11.5px; font-weight: 700; color: var(--sb-muted); }
.deal-timer i { font-style: normal; font-weight: 700; color: var(--sb-ink); }

/* النظرة السريعة: تحت زرّ المفضّلة */
.qv-btn {
	position: absolute; top: 50px; inset-inline-end: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: #fff; color: var(--store-primary-dark); display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s;
}
.qv-btn .icon { width: 18px; height: 18px; }
.book-card:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .qv-btn { opacity: 1; transform: none; } }

/* الكمّيّة في صفحة الكتاب وشريط الشراء الثابت */
.qty-card, .qty-bar { flex: none; height: 42px; }
.qty-card button, .qty-bar button { width: 30px; }
.qty-card input, .qty-bar input { width: 30px; font-size: 14.5px; }
.qty-card .icon, .qty-bar .icon { width: 14px; height: 14px; }
.buy-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.buy-qty .qty-card button { width: 38px; }
.buy-qty .qty-card input { width: 46px; }

/* قسيمة الترحيب تحت حقل النشرة */
.news-form { display: grid; gap: 10px; }
.news-offer { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-inline: 18px; font-size: 14px; color: #E9ECE4; }
.news-offer .icon { width: 16px; height: 16px; color: var(--store-primary); flex: none; }

/* المدوّنة */
.post-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-r); padding: 9px; min-width: 0; transition: box-shadow .25s; }
.post-card:hover { box-shadow: var(--sb-shadow); }
.post-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--sb-r-sm); background: var(--sb-soft); }
.post-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-media img { transform: scale(1.05); }
.date-badge { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 5px 10px; border-radius: 8px; background: #fff; color: var(--sb-ink); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.post-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 12px 6px 6px; }
.post-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
.post-title a:hover { color: var(--store-primary-dark); }
.post-body p { margin: 4px 0 14px; font-size: 14.5px; color: var(--sb-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .btn { margin-top: auto; border-radius: var(--sb-r-sm); }
.post-row-page { margin-bottom: 34px; }
.post-meta { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--sb-muted); font-size: 14.5px; }
.post-meta .icon { width: 16px; height: 16px; }
.post-article { max-width: 820px; margin-inline: auto; }
.post-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--sb-r); }
.post-content { margin-top: 26px; font-size: 17px; line-height: 2; }
.post-content p { margin: 0; }
.post-content p + p { margin-top: 16px; }
.post-back { margin-top: 28px; }

@media (max-width: 991px) {
	.post-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-row > .post-card:nth-child(3):last-child { display: none; }
}
@media (max-width: 767px) {
	.post-row { grid-template-columns: minmax(0, 1fr); }
	.post-row > .post-card:nth-child(3):last-child { display: flex; }
	.deal-timer { margin-inline-start: 0; order: 4; flex-basis: 100%; justify-content: space-between; }
	.deal-timer span { min-width: 0; flex: 1; padding: 0 4px; }
	.post-content { font-size: 16px; }
}
.review-book { display: block; }

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

/* تبويبات «الأكثر مبيعًا»: كبسولةٌ فاتحة كعدّاد العروض، والمختار بلون شريط القوائم */
.has-tabs { flex-wrap: wrap; align-items: center; }
.row-tabs { display: inline-flex; gap: 4px; max-width: 100%; margin-inline-start: auto; padding: 5px; overflow-x: auto; scrollbar-width: none; border-radius: var(--sb-pill); background: var(--sb-tint); border: 1px solid var(--sb-tint-2); }
.row-tabs::-webkit-scrollbar { display: none; }
.row-tab { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: var(--sb-pill); background: transparent; color: var(--sb-ink); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.row-tab:hover { background: #fff; }
.row-tab[aria-selected="true"] { background: var(--store-primary-dark); color: #fff; }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

/* عروض الأسبوع: شريطٌ فاتح بعرض الصفحة، وصفٌّ يدور بسهمين */
.deals-band { margin: 30px 0; padding: 50px 0; background: var(--sb-tint); }
.deals-band .deal-timer { background: #fff; border-color: #fff; }
.deals-band .deal-timer span { background: var(--sb-tint); }
.carousel { position: relative; }
.book-carousel { grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.book-carousel::-webkit-scrollbar { display: none; }
.book-carousel > * { scroll-snap-align: start; }
.carousel .scroll-btn { top: 38%; }
@media (min-width: 1200px) { .book-carousel { grid-auto-columns: calc((100% - (var(--cols) - 1) * 20px) / var(--cols)); } }

/* كتاب الأسبوع: غلافٌ كبير على دائرةٍ فاتحة كدائرة الواجهة */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); column-gap: 56px; align-items: center; }
.featured-head { grid-column: 1; grid-row: 1; align-self: end; }
.featured-head .section-title { margin-top: 16px; }
.featured-items, .feature-book { display: contents; }
.feature-body { grid-column: 1; grid-row: 2; align-self: start; padding-top: 14px; }
.feature-media { position: relative; grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; min-height: 440px; }
.feature-media::before { content: ""; position: absolute; width: min(430px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--sb-tint-2); }
.feature-media::after { content: ""; position: absolute; width: min(500px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--store-primary) 45%, #fff); }
.feature-cover { position: relative; z-index: 1; width: min(240px, 52%); transform: rotate(-4deg); transition: transform .3s; }
.feature-cover:hover { transform: rotate(0); }
.feature-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 24px 40px rgba(20, 26, 16, .28); }
.feature-media .book-badges { top: 12%; inset-inline-start: auto; inset-inline-end: 14%; }
.feature-media > .type-dot { position: absolute; z-index: 2; bottom: 16%; inset-inline-end: 22%; box-shadow: 0 0 0 4px #fff; }
.feature-title { margin: 6px 0 4px; font-size: clamp(27px, 2.8vw, 40px); font-weight: 800; line-height: 1.25; }
.feature-title a:hover { color: var(--store-primary-dark); }
.feature-meta { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 15px; color: var(--sb-muted); }
.feature-meta b { color: var(--store-text); }
.feature-desc { max-width: 600px; color: var(--sb-muted); font-size: 16.5px; }
.feature-desc p { margin: 0 0 10px; }
.feature-body .price { margin: 0 0 14px; }
.feature-desc { margin-bottom: 22px; }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.wish-inline { position: static; width: 50px; height: 50px; border: 1px solid var(--sb-line); box-shadow: none; }

/* اختيار الصيغة في صفحات الكتاب */
.formats-box { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.formats-label { font-weight: 700; font-size: 14.5px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.format-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 138px; padding: 9px 16px 9px 14px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); background: #fff; transition: border-color .2s; }
.format-opt:hover { border-color: var(--store-primary-dark); }
.format-opt .type-dot { grid-row: 1 / span 2; }
.format-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.format-price { font-size: 13.5px; font-weight: 800; line-height: 1.35; color: var(--store-primary-dark); }
.format-opt.is-current { border: 2px solid var(--store-primary-dark); padding: 8px 15px 8px 13px; background: var(--sb-tint); }
.format-opt.is-current .format-price { color: var(--sb-ink); }
[data-slot="book.formats"]:not(:has([data-repeat="format"] ~ [data-preview-copy])) { display: none; }

/* آراء صفحة الكتاب: تحت الصورة والتفاصيل معًا */
.pdp-reviews { padding-top: 22px; border-top: 1px solid var(--sb-line); }
@media (min-width: 1200px) {
	.pdp-gallery { grid-column: 1; grid-row: 1; }
	.pdp-info { grid-column: 2; grid-row: 1; }
	.pdp-side { grid-column: 3; grid-row: 1 / span 2; }
	.pdp-reviews { grid-column: 1 / 3; grid-row: 2; }
}
@media (min-width: 768px) {
	.pdp-reviews .review-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
}

/* الشبكة والقائمة في صفحة التصنيف */
.view-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--sb-line); border-radius: var(--sb-r-sm); }
.view-switch button { display: grid; place-items: center; width: 40px; height: 36px; border: 0; border-radius: calc(var(--sb-r-sm) - 3px); background: transparent; color: var(--sb-muted); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--store-primary-dark); color: #fff; }
.listing-tools { display: flex; align-items: center; gap: 12px; }
.listing .book-grid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book-grid.is-list .book-card { flex-direction: row; gap: 16px; align-items: center; }
.book-grid.is-list .book-media { flex: 0 0 150px; align-self: stretch; aspect-ratio: auto; min-height: 170px; }
.book-grid.is-list .book-body { padding: 8px 4px; }
.book-grid.is-list .book-line { justify-content: flex-start; gap: 14px; }
.book-grid.is-list .book-body .price { margin-bottom: 10px; }
.book-grid.is-list .btn-cart { width: auto; margin-top: 0; align-self: flex-start; padding-inline: 22px; }

@media (max-width: 1199px) {
	.listing .book-grid.is-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991px) {
	.featured { grid-template-columns: minmax(0, 1fr); }
	.featured-head { grid-row: 1; text-align: center; }
	.feature-media { grid-column: 1; grid-row: 2; min-height: 420px; margin-top: 10px; }
	.feature-media::before { width: 340px; }
	.feature-media::after { width: 395px; }
	.feature-cover { width: 205px; }
	.feature-media .book-badges { top: 70px; inset-inline-end: calc(50% - 140px); }
	.feature-body { grid-row: 3; }
	.deals-band { padding: 36px 0; }
}
@media (max-width: 767px) {
	.row-tabs { order: 3; flex-basis: 100%; margin-inline-start: 0; }
	.has-tabs .more-link { order: 2; }
	.feature-media { min-height: 330px; }
	.feature-media::before { width: min(280px, 82%); }
	.feature-media::after { width: min(320px, 94%); }
	.feature-cover { width: 170px; }
	.feature-actions .btn-primary { flex: 1; }
	.deals-band { margin: 20px 0; padding: 30px 0; }
	.view-switch { display: none; }
	.formats { flex-wrap: nowrap; gap: 8px; }
	.format-opt { flex: 1 1 0; min-width: 0; column-gap: 7px; padding: 8px 10px; }
	.format-opt.is-current { padding: 7px 9px; }
	.listing .book-grid.is-list { grid-template-columns: minmax(0, 1fr); }
	.book-grid.is-list .book-media { flex-basis: 120px; min-height: 0; }
	.book-grid.is-list .book-card { gap: 12px; }
	.wide-banner > img { height: 150px; object-position: 100% center; }
	.wide-text { position: static; padding: 4px 18px 26px; }
	.feature-media .book-badges { inset-inline-end: calc(50% - 112px); }
	.story { margin: 20px 0; }
}

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