/* ==========================================================================
   زيتونة — قالب متجر كتب لمنصّة «ناشر»
   كلّ ألوان الهويّة من المتغيّرات الخمسة؛ وما سواها رماديّاتٌ محايدة.
   ========================================================================== */

:root {
	--store-primary: #07544F;
	--store-primary-dark: #043B37;
	--store-accent: #FFBA0A;
	--store-bg: #F3FAF8;
	--store-text: #1F2A2A;

	/* محايدة */
	--white: #FFFFFF;
	--muted: #586462;
	--line: #DCE5E2;
	--red: #C62828;
	--gold: #F5A623;
	--ink-footer: #202326;

	/* مشتقّة من لون المتجر */
	--tint: color-mix(in srgb, var(--store-primary) 6%, var(--store-bg));
	--tint-strong: color-mix(in srgb, var(--store-primary) 12%, var(--store-bg));
	--on-accent: var(--store-primary-dark);

	--r: 10px;
	--r-sm: 7px;
	--gap: 14px;
	--bpr: 5;
	--shadow: 0 2px 10px rgb(16 40 38 / 8%);
	--font: "Tajawal", system-ui, sans-serif;
}

body[data-corners="sharp"] { --r: 2px; --r-sm: 2px; }
body[data-books-per-row="3"] { --bpr: 3; }
body[data-books-per-row="4"] { --bpr: 4; }
body[data-books-per-row="5"] { --bpr: 5; }
body[data-books-per-row="6"] { --bpr: 6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 146px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--store-text);
	background: var(--white);
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--store-primary); color: var(--white); padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--store-primary); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }

/* --------------------------------------------------------------- الأزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: var(--r-sm); border: 1.5px solid transparent;
	font-weight: 700; font-size: 14.5px; line-height: 1.2; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-accent { background: var(--store-accent); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 85%, #000); }
.btn-primary { background: var(--store-primary); color: var(--white); }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-outline { background: var(--white); border-color: var(--store-primary); color: var(--store-primary); }
.btn-outline:hover { background: var(--store-primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-xs { padding: 6px 12px; font-size: 12.5px; gap: 6px; }
.btn-xs .icon { width: 15px; height: 15px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.link-btn:hover { color: var(--red); }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: none; border: 0; color: var(--store-text); }
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn:hover { color: var(--store-primary); }
.count {
	position: absolute; top: 1px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* العبارة الزخرفيّة فوق عناوين الواجهة والبانرات */
.eyebrow { position: relative; display: inline-block; padding-bottom: 7px; color: var(--store-primary); font-weight: 500; font-size: 15px; }
.swash { position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 8px; fill: none; stroke: var(--store-accent); stroke-width: 2.6; stroke-linecap: round; }

/* --------------------------------------------------------------- الشريط العلويّ */
.topbar { background: var(--store-primary); color: var(--white); font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.tb-social { display: flex; gap: 12px; }
.tb-social .icon { width: 16px; height: 16px; }
.tb-note b { color: var(--store-accent); font-weight: 700; }
.tb-links { display: flex; gap: 18px; }
.tb-links a:hover, .tb-social a:hover { color: var(--store-accent); }
[data-option="topbar_text"]:empty { display: none; }

/* --------------------------------------------------------------- الرأس */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 30; }
.hd { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--store-primary); }
.menu-toggle { display: none; }
.hd-search { flex: 1; max-width: 640px; display: flex; border: 1px solid #CFD9D6; border-radius: var(--r-sm); overflow: hidden; background: var(--white); }
.hd-search input { flex: 1; min-width: 0; border: 0; padding: 12px 16px; background: none; outline: none; }
.hd-search input::placeholder { color: var(--muted); }
.hd-search button { border: 0; background: var(--tint); color: var(--store-primary); padding: 0 16px; }
.hd-search:focus-within { border-color: var(--store-primary); }
.hd-phone { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.hd-phone .icon { width: 30px; height: 30px; color: var(--store-primary); stroke-width: 1.5; }
.hd-phone small { display: block; font-size: 12.5px; color: var(--muted); }
.hd-phone b { display: block; font-size: 15px; }
.hd-icons { display: flex; gap: 4px; }

.nav-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; }
.cat-menu { position: relative; }
.cat-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 0;
	background: var(--store-accent); color: var(--on-accent); font-weight: 700; font-size: 15px; min-width: 236px;
	border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.cat-btn.static { border-radius: var(--r-sm); min-width: 0; }
.cat-btn .icon:last-child { width: 16px; height: 16px; margin-inline-start: auto; }
.cat-drop {
	position: absolute; top: 100%; inset-inline-start: 0; width: 236px; background: var(--white);
	border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: 6px 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.cat-menu:hover .cat-drop, .cat-menu:focus-within .cat-drop, .cat-menu.open .cat-drop { opacity: 1; visibility: visible; transform: none; }
.cat-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14.5px; }
.cat-drop a .icon { width: 18px; height: 18px; color: var(--store-primary); }
.cat-drop a:hover { background: var(--tint); color: var(--store-primary); }
.main-nav { flex: 1; display: flex; align-items: center; gap: 26px; font-weight: 500; }
.main-nav a { padding-block: 13px; position: relative; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--store-primary); }
.main-nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 2px; background: var(--store-accent); }
.main-nav .nav-end { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.main-nav .nav-end .icon { color: var(--store-primary); }

/* الدرج الجانبيّ للهاتف */
.drawer-backdrop, .filter-backdrop { position: fixed; inset: 0; background: rgb(15 25 24 / 45%); z-index: 60; opacity: 0; visibility: hidden; transition: .2s; }
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(310px, 86vw); background: var(--white); z-index: 70;
	transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; overflow-y: auto; padding: 16px;
}
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-backdrop, body.filters-open .filter-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-head .brand img { width: 38px; height: 38px; }
.drawer-head .brand-name { font-size: 19px; }
.drawer-nav a { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-label { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 700; }
.drawer-cats { display: grid; gap: 2px; margin-top: 6px; }
.drawer-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--tint); }
.drawer-cats .icon { width: 18px; height: 18px; color: var(--store-primary); }
.drawer-phone { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--store-primary); }

/* --------------------------------------------------------------- الصناديق وعناوين الأقسام */
.box { background: var(--tint); border-radius: var(--r); padding: 16px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sec-title { font-size: 20px; font-weight: 700; color: var(--store-text); }
.sec-head .more { display: inline-flex; align-items: center; gap: 4px; color: var(--store-primary); font-weight: 700; font-size: 14px; }
.sec-head .more .icon { width: 16px; height: 16px; }
.arrows { display: inline-flex; gap: 8px; margin-inline-start: auto; }
.arrow-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); border: 0; background: var(--white); color: var(--store-text); box-shadow: var(--shadow); }
.arrow-btn .icon { width: 18px; height: 18px; }
.arrow-btn:hover:not(:disabled) { background: var(--store-primary); color: var(--white); }
.arrow-btn:disabled { color: #9AA6A3; cursor: default; box-shadow: none; }

.track {
	--n: var(--bpr);
	display: grid; grid-auto-flow: column; gap: var(--gap);
	grid-auto-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; min-width: 0; }
.track.two-rows { grid-template-rows: auto auto; }
.container > .row-box, .container > .recent-box { margin-top: 26px; }
.home > * + * { margin-top: 24px; }
.container > .row-box .track { --n: calc(var(--bpr) + 1); }

/* --------------------------------------------------------------- بطاقة الكتاب */
.bcard { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); padding: 12px; transition: box-shadow .2s; }
.bcard:hover { box-shadow: var(--shadow); }
body[data-card-style="framed"] .bcard { border: 1px solid var(--line); box-shadow: none; }
body[data-card-style="plain"] .bcard { background: transparent; padding: 0; }
body[data-card-style="plain"] .bcard:hover { box-shadow: none; }
.bcard-media { position: relative; }
.bcard-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--tint); }
.badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.badge-off, .badge-new { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 700; color: var(--white); line-height: 1.5; }
.badge-off { background: var(--red); }
.badge-new { background: var(--store-primary); }
.type-dot { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--white); color: var(--white); box-shadow: 0 1px 4px rgb(0 0 0 / 18%); }
.type-dot .icon { width: 15px; height: 15px; stroke-width: 2; }
.type-dot[data-type="print"] { background: #DB7056; }
.type-dot[data-type="ebook"] { background: #5675A3; }
.type-dot[data-type="audio"] { background: #986AB0; }
.type-dot[data-type="educational"] { background: #3f8f6b; }
.wish {
	position: absolute; top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: var(--white); color: var(--store-text); box-shadow: var(--shadow);
	opacity: 0; transform: scale(.85); transition: .2s;
}
.wish .icon { width: 17px; height: 17px; }
.bcard:hover .wish, .wish:focus-visible, .wish[aria-pressed="true"] { opacity: 1; transform: none; }
.wish[aria-pressed="true"] { color: var(--red); }
.wish[aria-pressed="true"] .icon { fill: currentColor; }
@media (hover: none) { .wish { opacity: 1; transform: none; } }
.stock-band { position: absolute; inset-inline: 0; top: 44%; background: rgb(31 42 42 / 88%); color: var(--white); text-align: center; font-size: 13px; font-weight: 700; padding: 5px; }
.bcard.is-out .bcard-cover img { filter: grayscale(.6); opacity: .8; }
.bcard-body { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; flex: 1; }
.bcard-cat { font-size: 12.5px; color: var(--muted); }
.bcard-title { font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--store-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-title a:hover { text-decoration: underline; }
.bcard-author { font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .off { color: #D5DCDA; }
.rate { display: inline-flex; align-items: center; gap: 6px; }
.rcount { font-size: 12.5px; color: var(--muted); }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14.5px; }
.price .now { color: var(--red); font-weight: 700; }
.price del { color: var(--muted); font-size: 13px; }
.cart-mini { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--store-accent); color: var(--on-accent); }
.cart-mini .icon { width: 18px; height: 18px; }
.cart-mini:hover:not(:disabled) { background: var(--store-primary); color: var(--white); }
.cart-mini:disabled { background: #E3E8E6; color: #66716F; cursor: not-allowed; }

/* البطاقة الأفقيّة */
.hcard { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.hcard + .hcard { border-top: 1px solid var(--line); }
.hcard-cover { position: relative; }
.hcard-cover img { width: 74px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.hcard-cover .type-dot { width: 24px; height: 24px; bottom: -6px; inset-inline-end: -6px; }
.hcard-cover .type-dot .icon { width: 12px; height: 12px; }
.hcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hcard-foot .cart-mini { width: 30px; height: 30px; }
.hcard-foot .cart-mini .icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------- الواجهة: شريحتان متجاورتان */
.hero { position: relative; margin-top: 22px; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 8px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; aspect-ratio: 1200 / 760; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; background: var(--tint); }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-copy { position: absolute; inset-block: 0; inset-inline-start: 0; width: 56%; padding: 8% 6% 6%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.slide-copy h1, .slide-copy h2 { font-size: clamp(22px, 2.5vw, 36px); font-weight: 800; color: var(--store-text); line-height: 1.2; }
.slide-chip { background: var(--store-primary); color: var(--white); font-weight: 700; font-size: clamp(14px, 1.35vw, 19px); padding: 4px 12px; border-radius: 4px; }
.slide-copy p { font-size: 13.5px; color: #3E4A48; max-width: 34ch; }
.slide-copy .btn { margin-top: 4px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--white); color: var(--store-text); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; }
.hero-arrow.prev { inset-inline-start: -14px; }
.hero-arrow.next { inset-inline-end: -14px; }
.hero-arrow:disabled { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------- الرئيسيّة: عمودان */
.home-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: stretch; margin-top: 24px; }
.home-side .side-pair.tall { flex: 1; }
.side-pair.tall .side-banner { flex: 1; display: flex; }
.side-pair.tall .side-banner img { height: 100%; min-height: 330px; object-fit: cover; object-position: bottom; }
.home-side, .home-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.side-cats { background: var(--tint); border-radius: var(--r); padding: 10px 0; }
.side-title { font-size: 15px; font-weight: 700; padding: 6px 18px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--store-primary); }
.side-cats a { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 14.5px; }
.side-cats a .icon { width: 19px; height: 19px; color: var(--store-primary); }
.side-cats a .chev { width: 15px; height: 15px; margin-inline-start: auto; color: var(--muted); }
.side-cats a:hover { color: var(--store-primary); background: var(--tint-strong); }

.side-pair { display: flex; flex-direction: column; gap: 22px; }
.side-banner, .trio-banner, .wide-banner { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.side-banner img, .trio-banner img, .wide-banner img { width: 100%; transition: transform .4s; }
.side-banner:hover img, .trio-banner:hover img, .wide-banner:hover img { transform: scale(1.03); }
.sb-copy { position: absolute; top: 0; inset-inline: 0; padding: 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sb-title { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--store-text); }
.sb-text { font-size: 13px; color: #3E4A48; }
.sb-copy .btn, .tb-copy .btn { margin-top: 4px; }

.deal { background: var(--tint); border-radius: var(--r); padding: 18px 16px; text-align: center; }
.deal-head { display: grid; gap: 8px; justify-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.deal-title { display: flex; align-items: center; gap: 10px; justify-content: center; width: 100%; font-size: 20px; font-weight: 800; color: var(--store-primary); }
.deal-title::before, .deal-title::after { content: ""; flex: 1; max-width: 40px; height: 2px; background: var(--store-accent); }
.deal-name { font-size: 16px; font-weight: 700; color: var(--store-text); }
.deal .price { justify-content: center; font-size: 17px; }

.trust-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 6px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding-inline: 18px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-icon { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--tint-strong); color: var(--store-primary); stroke-width: 1.6; }
.trust-item h3 { font-size: 15px; font-weight: 700; }
.trust-item p { font-size: 13px; color: var(--muted); line-height: 1.45; }

.wide-banner .wb-copy { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 5%; max-width: 50%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wb-title { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; color: var(--store-primary-dark); line-height: 1.2; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo:has(> :only-child) { grid-template-columns: 1fr; }
.duo-box:not(:has([data-region])) { display: none; }
.cat-panel { background: var(--white); border-radius: var(--r); overflow: hidden; }
.cp-head { position: relative; display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 0 16px; background: linear-gradient(to left, #EEF2F1, #E2E9E7); }
.cp-head h3 { position: relative; z-index: 1; font-size: 18px; font-weight: 700; }
.cp-head a { position: relative; z-index: 1; font-size: 13.5px; color: var(--store-primary); font-weight: 700; }
.cp-head a:hover { text-decoration: underline; }
.cp-head img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to left, #000 45%, transparent); mask-image: linear-gradient(to left, #000 45%, transparent); }
.cat-panel.list .cp-body { padding: 4px 16px; }
.cat-panel.grid .cp-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-panel.grid .bcard { background: transparent; border: 0; border-radius: 0; padding: 12px; }
.cat-panel.grid .bcard:hover { box-shadow: none; }
.cat-panel.grid .bcard:not(:nth-child(3n)) { border-inline-end: 1px solid var(--line); }
.cat-panel.grid .bcard:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.cat-panel.grid .cart-mini { width: 30px; height: 30px; }

.cat-track { --n: 6; }
.ctile { position: relative; display: block; border-radius: var(--r); overflow: hidden; }
.ctile-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.ctile:hover .ctile-img img { transform: scale(1.05); }
.ctile-name { position: absolute; bottom: 0; inset-inline: 9%; background: var(--white); border-radius: 14px 14px 0 0; text-align: center; font-weight: 500; font-size: 14.5px; padding: 6px 4px 4px; }

.trio { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.trio:has(> :only-child) { grid-template-columns: 1fr; }
.trio-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-copy { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 0; width: 56%; padding: 0 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.tb-copy .sb-title { font-size: 16.5px; }

.author-track { --n: 5; }
.atile { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--white); border-radius: var(--r); padding: 18px 10px 14px; text-align: center; transition: box-shadow .2s; }
.atile:hover { box-shadow: var(--shadow); }
.atile img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; border: 3px solid var(--tint-strong); }
.atile b { font-size: 15px; font-weight: 700; }
.atile small { font-size: 13px; color: var(--muted); }

.recent-track { --n: 7; }
.rtile { display: flex; flex-direction: column; gap: 4px; background: var(--white); border-radius: var(--r); padding: 10px; }
.rtile-cover { position: relative; }
.rtile-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.rtile-cover .type-dot { width: 24px; height: 24px; bottom: 6px; inset-inline-end: 6px; }
.rtile-cover .type-dot .icon { width: 12px; height: 12px; }
.rtile b { font-size: 13.5px; font-weight: 500; color: var(--store-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rtile .price { font-size: 13.5px; margin-top: auto; }
.rtile .price del { font-size: 12px; }

/* خيارات الإظهار */
body[data-show-trust-bar="false"] .trust-box { display: none; }
body[data-show-newsletter="false"] .news { display: none; }

/* --------------------------------------------------------------- شريط عنوان الصفحات الداخليّة */
.page-band { position: relative; margin-top: 22px; }
.band-in { position: relative; background: var(--tint); border-radius: var(--r); padding: 26px 30px; overflow: hidden; }
.page-band h1 { font-size: 27px; font-weight: 800; color: var(--store-primary-dark); }
.band-sub { color: var(--muted); margin-top: 4px; }
.band-branch { position: absolute; inset-inline-end: 34px; top: 50%; transform: translateY(-50%); width: 190px; height: auto; pointer-events: none; }
.band-branch path { fill: none; stroke: var(--store-primary); stroke-width: 3; opacity: .45; }
.band-branch ellipse { fill: var(--store-primary); opacity: .22; }
.band-branch .olive { fill: var(--store-accent); opacity: .9; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 4px; color: #9AA6A3; }
.crumbs a:hover { color: var(--store-primary); }
.crumbs [aria-current] { color: var(--store-text); }
.container > nav > .crumbs { margin-block: 18px 14px; }

/* --------------------------------------------------------------- صفحة التصنيف */
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 22px; }
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters-head { display: none; }
.f-box { background: var(--tint); border-radius: var(--r); padding: 4px 18px; }
.f-panel { padding-block: 16px; }
.f-panel + .f-panel { border-top: 1px solid var(--line); }
.f-panel h3 { font-size: 15.5px; font-weight: 700; color: var(--store-primary-dark); margin-bottom: 10px; }
.f-list { display: grid; gap: 8px; }
.f-list label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.f-list input { accent-color: var(--store-primary); width: 16px; height: 16px; }
.f-list .type-dot { position: static; width: 22px; height: 22px; border-width: 0; box-shadow: none; }
.f-list .type-dot .icon { width: 12px; height: 12px; }
.f-count { margin-inline-start: auto; background: var(--white); border-radius: 20px; padding: 0 8px; font-size: 12.5px; color: var(--muted); }
.f-price { display: flex; gap: 10px; }
.f-price label { flex: 1; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.f-price input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.f-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.cat-visual { position: relative; border-radius: var(--r); overflow: hidden; }
.cat-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cv-copy { position: absolute; inset-inline: 12px; bottom: 12px; background: var(--white); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cv-copy b { font-size: 15px; }
.shop-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.filter-toggle { display: none; }
.shop-count { color: var(--muted); font-size: 14px; margin-inline-end: auto; }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.shop-sort select { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--store-text); }
.bgrid { display: grid; grid-template-columns: repeat(var(--bpr), minmax(0, 1fr)); gap: var(--gap); }
.bgrid.wide { grid-template-columns: repeat(var(--bpr), minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.pagination.start { justify-content: flex-start; margin-top: 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.pagination span { border: 0; }
.pagination a:hover { border-color: var(--store-primary); color: var(--store-primary); }
.pagination a[aria-current] { background: var(--store-primary); color: var(--white); border-color: var(--store-primary); }
.pagination .icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------- صفحة الكتاب */
.pdp { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 14px; }
.g-main { position: relative; background: var(--tint); border-radius: var(--r); padding: 34px 54px; }
.g-main img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); box-shadow: 0 14px 28px rgb(16 40 38 / 20%); }
.g-main .type-dot { width: 40px; height: 40px; bottom: 18px; inset-inline-end: 18px; }
.g-main .type-dot .icon { width: 20px; height: 20px; }
.g-main .badge-off { position: absolute; top: 18px; inset-inline-start: 18px; font-size: 14px; padding: 3px 12px; }
.g-back { display: flex; align-items: center; gap: 14px; background: var(--tint); border-radius: var(--r); padding: 12px; }
.g-back img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.g-back span { font-size: 14px; color: var(--muted); }
.pdp-info { display: flex; flex-direction: column; gap: 12px; }
.pdp-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pdp-kind .type-dot { position: static; width: 26px; height: 26px; border: 0; box-shadow: none; }
.pdp-kind .type-dot .icon { width: 14px; height: 14px; }
.pdp-info h1 { font-size: 30px; font-weight: 800; color: var(--store-primary); }
.pdp-author { color: var(--muted); }
.pdp-author a { color: var(--store-primary); font-weight: 700; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pdp-rating .stars .icon { width: 17px; height: 17px; }
.pdp-price { font-size: 26px; }
.pdp-price del { font-size: 17px; }
.pdp-lead { color: #3E4A48; max-width: 62ch; }
.pdp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 4px 0 0; }
.pdp-facts div { background: var(--white); padding: 10px 14px; }
.pdp-facts dt { font-size: 12.5px; color: var(--muted); }
.pdp-facts dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.stock { display: inline-flex; align-items: center; gap: 6px; color: var(--store-primary); font-weight: 700; font-size: 14.5px; }
.buy-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.buy-line .grow { flex: 1; min-width: 160px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #CFD9D6; border-radius: var(--r-sm); background: var(--white); }
.qty button { width: 38px; height: 42px; border: 0; background: none; font-size: 18px; }
.qty input { width: 44px; border: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wish-lg { border: 1px solid #CFD9D6; border-radius: var(--r-sm); width: 46px; height: auto; }
.wish-lg[aria-pressed="true"] { color: var(--red); }
.wish-lg[aria-pressed="true"] .icon { fill: currentColor; }
.perks { display: grid; gap: 8px; background: var(--tint); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .icon { color: var(--store-primary); }
.sample-player { display: flex; align-items: center; gap: 14px; background: var(--tint); border-radius: var(--r); padding: 12px 14px; flex-wrap: wrap; }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--store-primary); color: var(--white); display: grid; place-items: center; }
.play .icon { fill: currentColor; }
.sp-body { flex: 1; min-width: 160px; display: grid; gap: 4px; font-size: 14px; }
.sp-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sp-bar span { display: block; width: 28%; height: 100%; background: var(--store-primary); }
.sp-time { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.sp-dur { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.edu-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.edu-badges span { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); border-radius: 30px; padding: 8px 14px; font-size: 14px; }
.edu-badges .icon { color: var(--store-primary); }
.pdp-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 34px 0 18px; overflow-x: auto; }
.pdp-tabs a { padding: 10px 2px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.pdp-tabs a[aria-current] { color: var(--store-primary); border-color: var(--store-accent); }
.pdp-block { margin-bottom: 18px; padding: 22px; }
.pdp-block h2 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.prose { display: grid; gap: 10px; color: #33403E; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-sm); overflow: hidden; }
.spec-table th, .spec-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 500; }
.reviews-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.rev-summary { background: var(--white); border-radius: var(--r); padding: 18px; text-align: center; }
.rev-summary strong { display: block; font-size: 44px; line-height: 1.1; color: var(--store-primary); }
.rev-summary .stars .icon { width: 18px; height: 18px; }
.rev-summary p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.bars { display: grid; gap: 6px; font-size: 13px; }
.bars li { display: grid; grid-template-columns: 12px 1fr 34px; gap: 8px; align-items: center; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); }
.review-list { display: grid; gap: 12px; }
.review { background: var(--white); border-radius: var(--r); padding: 14px 16px; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-top .stars { margin-inline-start: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--store-primary); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.review-top b { display: block; font-size: 14.5px; }
.review-date { font-size: 12.5px; color: var(--muted); }
.review p { font-size: 14.5px; color: #33403E; }
.review-form { margin-top: 14px; background: var(--white); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; justify-items: start; }
.review-form h3 { font-size: 16.5px; }
.note { font-size: 13px; color: var(--muted); }
.star-pick { display: flex; gap: 2px; }
.star-pick button { border: 0; background: none; padding: 2px; color: #C9D1CF; }
.star-pick button .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.star-pick button[aria-pressed="true"] { color: var(--gold); }
.review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; resize: vertical; }

/* --------------------------------------------------------------- صفحة المؤلّف */
.author-head { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; align-items: center; background: var(--tint); border-radius: var(--r); padding: 30px; overflow: hidden; margin-bottom: 22px; }
.author-head > img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 5px solid var(--white); box-shadow: var(--shadow); }
.author-copy { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; max-width: 70ch; }
.author-copy h1 { font-size: 30px; font-weight: 800; color: var(--store-primary-dark); }
.author-meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.author-meta .icon { color: var(--store-primary); }
.author-head .band-branch { top: 20%; transform: none; }

/* --------------------------------------------------------------- السلّة */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 22px; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; }
.cart-table th { text-align: start; font-size: 13.5px; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ci-book { display: flex; align-items: center; gap: 14px; }
.ci-thumb img { width: 62px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.ci-book > div { display: flex; flex-direction: column; gap: 2px; }
.ci-title { font-weight: 700; color: var(--store-primary); }
.ci-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ci-type .type-dot { position: static; width: 20px; height: 20px; border: 0; box-shadow: none; }
.ci-type .type-dot .icon { width: 11px; height: 11px; }
.ci-price { display: table-cell; }
.ci-total { font-weight: 700; }
.ci-remove .icon-btn { color: var(--muted); }
.ci-remove .icon-btn:hover { color: var(--red); }
.cart-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.coupon { display: flex; gap: 8px; }
.coupon input { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; background: var(--white); min-width: 0; width: 180px; }
.coupon-on { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px dashed var(--store-primary); color: var(--store-primary); border-radius: 30px; padding: 4px 6px 4px 12px; font-size: 13.5px; font-weight: 700; }
.coupon-on .icon { width: 16px; height: 16px; }
.coupon-on button { border: 0; background: none; color: inherit; display: grid; place-items: center; padding: 2px; }
.cart-tools .link-btn { margin-inline-start: auto; }
.cart-empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 30px 16px; }
.cart-empty[hidden] { display: none; }
.empty-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--store-primary); }
.empty-icon .icon { width: 32px; height: 32px; }
.cart-empty p { color: var(--muted); }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; position: sticky; top: 150px; }
.summary h2 { font-size: 19px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; font-size: 14.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary .minus { color: var(--red); }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; }
.summary .total dt { color: var(--store-text); font-weight: 700; }
.summary-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.summary-note .icon { color: var(--store-primary); width: 18px; height: 18px; }
.continue { display: inline-flex; align-items: center; gap: 6px; color: var(--store-primary); font-weight: 700; font-size: 14.5px; justify-self: center; }
.continue .icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------- 404 */
.nf { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 0 10px; }
.nf-art { width: 260px; height: auto; }
.nf-stem { fill: none; stroke: var(--store-primary-dark); stroke-width: 5; stroke-linecap: round; }
.nf-leaves ellipse { fill: var(--store-primary); }
.nf-leaves ellipse:nth-child(even) { fill: color-mix(in srgb, var(--store-primary) 60%, #fff); }
.nf-olive { fill: var(--store-text); }
.nf-fall { fill: var(--store-accent); }
.nf-code { font-size: 76px; font-weight: 800; line-height: 1; color: var(--store-primary); }
.nf h1 { font-size: 26px; font-weight: 800; }
.nf > p { color: var(--muted); max-width: 52ch; }
.nf-search { display: flex; gap: 8px; width: min(520px, 100%); margin-top: 6px; }
.nf-search input { flex: 1; min-width: 0; border: 1px solid #CFD9D6; border-radius: var(--r-sm); padding: 10px 14px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

/* --------------------------------------------------------------- صفحة المكوّنات */
.kit { display: grid; gap: 22px; margin-top: 22px; }
.kit > * { min-width: 0; }
.kit-title { font-size: 17px; font-weight: 700; margin: 18px 0 12px; color: var(--store-primary-dark); }
.kit-title:first-child { margin-top: 0; }
.kit-note { color: var(--muted); font-size: 14px; margin-bottom: 14px; max-width: 80ch; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.kit-cards { --bpr: 4; }
.kit-col { display: grid; gap: 16px; align-content: start; }
.hcard-solo { background: var(--white); border-radius: var(--r); padding: 0 16px; }
.kit-tiles { display: grid; grid-template-columns: repeat(2, 150px); gap: 14px; }
.kit-tiles .atile { width: 150px; }
.kit-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.kit-dot .type-dot { position: static; }
.cart-empty.shown { background: var(--white); border-radius: var(--r); }

/* --------------------------------------------------------------- التذييل */
.site-footer { background: var(--ink-footer); color: #C5CCCA; margin-top: 44px; font-size: 14.5px; }
.news { display: flex; align-items: center; gap: 18px; padding: 26px 0; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.news-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--store-accent); color: var(--on-accent); flex: none; }
.news-icon .icon { width: 26px; height: 26px; }
.news-copy h2 { font-size: 19px; color: var(--white); }
.news-field { display: flex; gap: 8px; margin-inline-start: auto; width: min(440px, 100%); }
.news-field input { flex: 1; min-width: 0; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 6%); border-radius: var(--r-sm); padding: 11px 14px; color: var(--white); }
.news-field input::placeholder { color: #AEB7B5; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; padding: 34px 0; }
.site-footer h3 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a:hover { color: var(--store-accent); }
.contact li { display: flex; align-items: flex-start; gap: 10px; }
.contact .icon { width: 18px; height: 18px; color: var(--store-accent); margin-top: 2px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 8%); color: var(--white); }
.social .icon { width: 17px; height: 17px; }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / 10%); }
.foot-bottom-in { display: flex; align-items: center; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.foot-bottom .brand-name { color: var(--white); font-size: 20px; }
.foot-bottom .brand img { width: 40px; height: 40px; }
.foot-bottom p { flex: 1; min-width: 240px; font-size: 13.5px; }
.foot-bottom .copy { flex: none; min-width: 0; }

/* ==========================================================================
   العروض الأصغر
   ========================================================================== */
@media (max-width: 1100px) {
	.hd-phone { display: none; }
	.main-nav { gap: 18px; }
	.cat-btn { min-width: 0; }
}

@media (max-width: 1199px) {
	/* العمود الجانبيّ يذوب في الصفحة ويُرتَّب بين الأقسام */
	.home-layout { display: flex; flex-direction: column; gap: 22px; }
	.home-side, .home-main { display: contents; }
	.side-cats { display: none; }
	.side-pair, .side-pair.tall { flex-direction: row; gap: 14px; }
	.side-pair > * { flex: 1; min-width: 0; }
	.mo-1 { order: 1; } .mo-2 { order: 2; } .mo-3 { order: 3; } .mo-4 { order: 4; } .mo-5 { order: 5; } .mo-6 { order: 6; }
	.mo-7 { order: 7; } .mo-8 { order: 8; } .mo-9 { order: 9; } .mo-10 { order: 10; } .mo-11 { order: 11; } .mo-12 { order: 12; }
}

@media (max-width: 992px) {
	.tb-links, .tb-social { display: none; }
	.topbar-in { justify-content: center; text-align: center; }
	.menu-toggle { display: inline-grid; margin-inline-start: -8px; }
	.hd { flex-wrap: wrap; gap: 10px 14px; padding-block: 12px; }
	.hd-icons { margin-inline-start: auto; }
	.hd-search { order: 5; flex-basis: 100%; max-width: none; }
	.nav-row { display: none; }

	.track { --n: min(var(--bpr), 3); }
	.container > .row-box .track { --n: 3; }
	.cat-track, .author-track { --n: 4; }
	.recent-track { --n: 4; }

	.shop { grid-template-columns: 1fr; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 88vw); z-index: 70; background: var(--white);
		overflow-y: auto; padding: 16px; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
	}
	body.filters-open .filters { transform: none; visibility: visible; }
	.filters-head { display: flex; align-items: center; justify-content: space-between; }
	.filters-head h2 { font-size: 18px; }
	.filter-toggle { display: inline-flex; }
	.bgrid, .bgrid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.pdp { grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
	.g-main { padding: 22px 34px; }
	.pdp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.foot-cols { grid-template-columns: 1fr 1fr 1fr; }
	.foot-about { grid-column: 1 / -1; }
	.reviews-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.hero-track { grid-auto-columns: 100%; }
	.hero-arrow.prev { inset-inline-start: 6px; }
	.hero-arrow.next { inset-inline-end: 6px; }
	.duo { grid-template-columns: 1fr; }
	.trio { grid-template-columns: 1fr; }
	.pdp { grid-template-columns: 1fr; }
	.gallery { position: static; flex-direction: row; align-items: stretch; }
	.g-main { flex: 1; padding: 20px 50px; }
	.g-back { flex-direction: column; justify-content: center; width: 100px; text-align: center; }
	.news { flex-wrap: wrap; }
	.news-field { margin-inline-start: 0; width: 100%; }
	.band-branch { width: 120px; opacity: .6; }
}

@media (max-width: 600px) {
	body { font-size: 14.5px; }
	.container { padding-inline: 16px; }
	.brand-name { font-size: 19px; }
	.brand img { width: 38px; height: 38px; }
	.box { padding: 12px; }
	.sec-title { font-size: 18px; }
	.track, .container > .row-box .track { --n: 2; --gap: 10px; }
	.cat-track { --n: 3; }
	.author-track { --n: 2.4; }
	.recent-track { --n: 3; }
	.bcard { padding: 8px; }
	.bcard-title { font-size: 14px; }
	.slide { aspect-ratio: auto; min-height: 250px; }
	.slide-img { object-position: left center; }
	.slide-copy { width: 60%; padding: 18px 14px; gap: 7px; }
	.slide-copy h1, .slide-copy h2 { font-size: 20px; }
	.slide-chip { font-size: 13px; }
	.slide-copy p { display: none; }
	.trust-box { grid-template-columns: 1fr; padding: 14px 4px; row-gap: 14px; }
	.trust-item { padding-inline: 14px; }
	.trust-item:nth-child(odd) { border-inline-end: 0; }
	.wide-banner { display: flex; flex-direction: column; }
	.wide-banner img { aspect-ratio: 1300 / 340; object-fit: cover; }
	.wide-banner .wb-copy { position: static; transform: none; max-width: none; padding: 14px 16px 18px; }
	.sb-copy { padding: 12px 10px; gap: 4px; }
	.sb-title { font-size: 15px; }
	.trio-pair { grid-template-columns: 1fr; }
	.cat-panel.grid .cp-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-panel.grid .bcard:not(:nth-child(3n)) { border-inline-end: 0; }
	.cat-panel.grid .bcard:nth-child(-n+3) { border-bottom: 0; }
	.cat-panel.grid .bcard:nth-child(odd) { border-inline-end: 1px solid var(--line); }
	.cat-panel.grid .bcard:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
	.bgrid, .bgrid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.page-band h1 { font-size: 23px; }
	.band-in { padding: 20px; }
	.band-branch { display: none; }
	.shop-bar { padding: 8px 10px; }
	.shop-count { flex-basis: 100%; order: 3; }
	.pdp-info h1 { font-size: 25px; }
	.g-main { padding: 16px 30px; }
	.pdp-block { padding: 16px; }
	.author-head { grid-template-columns: 1fr; padding: 20px; text-align: start; gap: 16px; }
	.author-head > img { width: 120px; height: 120px; }
	.cart-table thead { display: none; }
	.cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
	.cart-table tr { position: relative; padding: 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.cart-table td { border: 0; padding: 0; }
	.cart-table td.ci-book { grid-column: 1 / -1; padding-inline-end: 40px; }
	.cart-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--muted); }
	.cart-table .ci-remove { position: absolute; top: 8px; inset-inline-end: 4px; }
	.coupon { width: 100%; }
	.coupon input { flex: 1; width: auto; }
	.cart-tools .link-btn { margin-inline-start: 0; }
	.foot-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
	.kit-cards { --bpr: 2; }
	.kit-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kit-tiles .atile { width: auto; }
	.nf-code { font-size: 60px; }
}

/* ==========================================================================
   ميزات المنصّة المعتمدة (SPEC، الملحق 8)
   ========================================================================== */
/* النظرة السريعة تحت زرّ المفضّلة */
.quick {
	position: absolute; top: 46px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0;
	display: grid; place-items: center; background: var(--white); color: var(--store-text); box-shadow: var(--shadow);
	opacity: 0; transform: scale(.85); transition: .2s;
}
.quick .icon { width: 17px; height: 17px; }
.quick:hover { color: var(--store-primary); }
.bcard:hover .quick, .quick:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .quick { opacity: 1; transform: none; } }

/* وسم التصنيف */
.cat-badge { padding: 1px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 700; line-height: 1.6; color: var(--white); }
.cat-badge[data-badge="trending"] { background: var(--red); }
.cat-badge[data-badge="new"] { background: var(--store-primary); }

/* «عرض اليوم»: باقاتٌ بعدّاد */
.bundle-list { display: grid; gap: 18px; }
.bundle { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bundle + .bundle { padding-top: 18px; border-top: 1px dashed var(--line); }
.bundle-covers { display: flex; justify-content: center; align-items: flex-end; width: 100%; padding: 8px 0 6px; margin-bottom: 4px; }
.bundle-covers img { width: 30%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); box-shadow: 0 8px 18px rgb(16 40 38 / 18%); }
.bundle-covers img + img { margin-inline-start: -8%; }
.bundle-covers img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-8px); }
.bundle-save { display: inline-block; padding: 2px 10px; border-radius: 20px; background: var(--red); color: var(--white); font-size: 12.5px; font-weight: 700; }
.deal-cd { margin-top: 6px; }
.deal-cd .cd-units { display: flex; justify-content: center; gap: 6px; }
.deal-cd .cd-unit { display: grid; justify-items: center; min-width: 46px; padding: 6px 4px; border-radius: var(--r-sm); background: var(--white); box-shadow: var(--shadow); }
.deal-cd .cd-unit b { font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--store-primary); font-variant-numeric: tabular-nums; }
.deal-cd .cd-unit small { font-size: 11px; color: var(--muted); }
.qty-deal { display: inline-flex; align-self: flex-start; padding: 3px 12px; border-radius: 20px; background: var(--tint-strong); color: var(--store-text); font-size: 14px; font-weight: 700; }

/* المدوّنة */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); padding: 10px; transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-media { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); }
.post-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 4px 4px; }
.post-date { font-size: 13px; color: var(--muted); }
.post-title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.post-title a:hover { color: var(--store-primary); }
.post-excerpt { font-size: 14px; color: var(--muted); }
.post-more, .more-link { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--store-primary); }
.post-more:hover, .more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-page { display: grid; gap: 18px; margin-top: 18px; }
.post-narrow { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.post-content { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.9; }

/* الأسئلة الشائعة */
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--white); border-radius: var(--r-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tint-strong); color: var(--store-primary); transition: transform .2s; }
.faq-item[open] .faq-ic { transform: rotate(45deg); }
.faq-item p { padding: 0 16px 14px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 991px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid:not(.post-grid-page) .post-card:nth-child(3) { display: none; }
}
@media (max-width: 599px) {
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.post-grid:not(.post-grid-page) .post-card:nth-child(3) { display: flex; }
	.post-content { font-size: 16px; }
}

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

/* ==========================================================================
   تطوير الواجهة (أكتوبر 2026): تبويبات، كتاب الأسبوع، آراء القرّاء، الأسئلة،
   صيغ الكتاب، وعرض القائمة في التصنيف
   ========================================================================== */
/* تبويبات «مختاراتنا» (القاعدة 16) */
.tabs { display: flex; gap: 6px; margin-inline-start: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; min-height: 38px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); color: var(--store-text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs [role="tab"]:hover { border-color: var(--store-primary); color: var(--store-primary); }
.tabs [role="tab"][aria-selected="true"] { background: var(--store-primary); border-color: var(--store-primary); color: var(--white); }
[data-slot="section.tabs"]:not(:has([data-repeat="tab"] ~ [role="tab"])) { display: none; }

/* «عرض اليوم»: الباقة بنصّها */
.bundle-body { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
.bundle-body .btn { margin-top: 6px; max-width: 100%; white-space: normal; }
.bundle-body { min-width: 0; }
.cd-label { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* كتاب الأسبوع: كتابٌ واحد بغلافٍ كبير على شريطٍ داكن */
.pick { position: relative; overflow: hidden; background: var(--store-primary-dark); color: var(--white); border-radius: var(--r); padding: 32px; }
.pick-book { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 36px; align-items: center; }
.pick-cover { position: relative; display: block; }
.pick-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); box-shadow: 0 18px 34px rgb(0 0 0 / 35%); }
.pick-cover .type-dot { bottom: 10px; inset-inline-end: 10px; width: 36px; height: 36px; }
.pick-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pick .eyebrow { color: var(--store-accent); }
.pick-kicker h2 { font-size: 15px; font-weight: 700; }
.pick-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.2; }
.pick-author { color: color-mix(in srgb, var(--white) 84%, var(--store-primary-dark)); }
.pick-author a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pick .rcount { color: color-mix(in srgb, var(--white) 80%, var(--store-primary-dark)); }
.pick-desc { display: grid; gap: 8px; max-width: 62ch; color: color-mix(in srgb, var(--white) 88%, var(--store-primary-dark)); }
.pick-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.pick .price { font-size: 24px; }
.pick .price .now { color: var(--store-accent); }
.pick .price del { color: color-mix(in srgb, var(--white) 78%, var(--store-primary-dark)); font-size: 16px; }
.pick-wish { color: var(--white); border: 1px solid color-mix(in srgb, var(--white) 35%, var(--store-primary-dark)); border-radius: var(--r-sm); width: 44px; height: 44px; }
.pick-wish:hover { color: var(--store-accent); }
.pick-wish[aria-pressed="true"] .icon { fill: currentColor; }
.pick-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pick-facts div { flex: 1 1 100%; background: color-mix(in srgb, var(--white) 9%, var(--store-primary-dark)); border-radius: var(--r-sm); padding: 10px 14px; }
.pick-facts dt { font-size: 12.5px; color: color-mix(in srgb, var(--white) 78%, var(--store-primary-dark)); }
.pick-facts dd { margin: 0; font-weight: 700; }

/* آراء القرّاء في الرئيسيّة (عن كتبٍ اشتروها) */
.home-reviews .sec-head { flex-wrap: wrap; }
.store-score { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; background: var(--tint); }
.store-score b { font-size: 18px; color: var(--store-primary); }
.store-score small { font-size: 13px; color: var(--muted); }
.hrev-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hrev { position: relative; margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.hrev-q { position: absolute; top: 16px; inset-inline-end: 16px; width: 30px; height: 22px; fill: var(--store-accent); }
.hrev blockquote { margin: 0; font-size: 14.5px; color: #33403E; }
.hrev figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.hrev figcaption b { display: block; font-size: 14.5px; }
.hrev figcaption small { font-size: 13px; color: var(--muted); }
body[data-show-reviews="false"] .home-reviews { display: none; }

/* الأسئلة الشائعة: تمهيدٌ بجانب القائمة */
.faq-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; }
.faq-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: var(--tint); border-radius: var(--r); padding: 22px 22px 110px; }
.faq-intro p { color: var(--muted); font-size: 14.5px; }
.faq-intro .band-branch { inset-inline-end: auto; inset-inline-start: 18px; top: auto; bottom: 16px; transform: none; width: 170px; }
.faq-sec .faq-list { align-content: start; }
.faq-sec .faq-item { background: var(--tint); }
.faq-sec .faq-ic { background: var(--white); }

/* صيغ الكتاب (book.formats) */
.formats-box { display: grid; gap: 8px; }
.formats-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.format-opt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.format-opt:hover { border-color: var(--store-primary); }
.format-opt.is-current { border-color: var(--store-primary); background: var(--tint); }
.format-opt .type-dot { position: static; width: 26px; height: 26px; border: 0; box-shadow: none; }
.format-opt .type-dot .icon { width: 13px; height: 13px; }
.format-name { font-weight: 700; font-size: 14px; }
.format-price { font-size: 13.5px; color: var(--muted); }
[data-slot="book.formats"]:not(:has([data-repeat="format"] ~ [data-preview-copy])) { display: none; }

/* التوصيل والدفع في صفحة الكتاب */
.ship-box { background: var(--tint); border-radius: var(--r); padding: 14px 16px; }
.ship-box h2 { font-size: 15px; font-weight: 700; color: var(--store-primary-dark); margin-bottom: 8px; }
.ship-box .perks { grid-template-columns: 1fr 1fr; gap: 8px 16px; background: none; padding: 0; }
.ship-box .perks li { align-items: flex-start; font-size: 13.5px; }
.ship-box .perks .icon { width: 18px; height: 18px; margin-top: 2px; }

/* صفحة التصنيف: المرشّحات المختارة، والتبديل بين الشبكة والقائمة */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.active-filters:not(:has(.fchip)) { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px 4px 14px; border-radius: 30px; background: var(--tint-strong); color: var(--store-primary-dark); font-size: 13.5px; font-weight: 700; }
.fchip .icon { width: 14px; height: 14px; }
.fchip:hover { background: var(--store-primary); color: var(--white); }
.fclear { font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.view-switch { display: inline-flex; gap: 4px; }
.view-switch button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--store-primary); border-color: var(--store-primary); color: var(--white); }
.bgrid.is-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bgrid.is-list .bcard { flex-direction: row; gap: 14px; }
.bgrid.is-list .bcard-media { flex: none; width: 96px; }
.bgrid.is-list .bcard-body { margin-top: 0; min-width: 0; }
.bgrid.is-list .bcard-title { font-size: 15.5px; }
.bgrid.is-list .wish, .bgrid.is-list .quick { width: 30px; height: 30px; top: 6px; inset-inline-end: 6px; }
.bgrid.is-list .quick { top: 42px; }
.bgrid.is-list .type-dot { width: 26px; height: 26px; bottom: 6px; inset-inline-end: 6px; }
.filters { align-self: stretch; }
.cat-visual { flex: 1; display: flex; flex-direction: column; min-height: 260px; }
.cat-visual img { flex: 1; height: 100%; aspect-ratio: auto; }
@media (min-width: 993px) {
	body[data-books-per-row="5"] .bgrid:not(.is-list) > .bcard:nth-child(n+11) { display: none; }
}

/* أعمال المؤلّف: صفٌّ يُمرَّر بلا صفٍّ ناقص */
.works-track { --n: calc(var(--bpr) + 1); }

@media (max-width: 1199px) {
	.faq-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
	/* البانرات الجانبيّة أفقيّة: النصّ بجانب الصورة */
	.side-banner, .side-pair.tall .side-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
	.side-banner .sb-copy { position: static; grid-column: 1; grid-row: 1; justify-content: center; padding: 18px; }
	.side-banner img, .side-pair.tall .side-banner img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: 50% 88%; }
	.deal { text-align: start; }
	.deal-head { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
	.deal-title { width: auto; }
	.deal-title::before { display: none; }
	.deal-cd { justify-self: end; margin: 0; display: flex; align-items: center; gap: 10px; }
	.deal-cd .cd-label { margin: 0; }
	.bundle-list { grid-template-columns: 1fr 1fr; }
	.bundle { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; gap: 14px; }
	.bundle + .bundle { padding: 0 0 0 0; border-top: 0; padding-inline-start: 18px; border-inline-start: 1px dashed var(--line); }
	.bundle-body { align-items: flex-start; }
	.bundle .price { justify-content: flex-start; }
	.bundle-body .btn { width: auto; }
	.pick-book { grid-template-columns: 200px minmax(0, 1fr); gap: 22px 30px; }
	.pick-facts { grid-column: 1 / -1; }
	.pick-facts div { flex: 1 1 150px; }
	.hrev-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
	.cat-visual { flex: none; min-height: 0; }
	.duo:has(.cat-panel.grid) { grid-template-columns: 1fr; }
	.bgrid.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-visual img { aspect-ratio: 1; }
	.works-track { --n: 3; }
}
@media (max-width: 760px) {
	.trust-box { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 74%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 4px; }
	.trust-box::-webkit-scrollbar { display: none; }
	.trust-item { scroll-snap-align: start; padding-inline: 14px; }
	.row-box .sec-head { flex-wrap: wrap; row-gap: 10px; }
	.row-box .tabs { order: 3; flex-basis: 100%; margin: 0; }
	.pick { padding: 22px 18px; }
	.pick-book { grid-template-columns: 130px minmax(0, 1fr); gap: 16px 18px; align-items: start; }
	.pick-body { display: contents; }
	.pick-cover { grid-row: span 6; }
	.pick-title { font-size: 24px; }
	.pick-desc, .pick-buy { grid-column: 1 / -1; }
	.hrev-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.hrev-row::-webkit-scrollbar { display: none; }
	.hrev { scroll-snap-align: start; }
	.faq-sec { grid-template-columns: 1fr; }
	.faq-intro { padding-bottom: 22px; padding-inline-end: 120px; }
	.faq-intro .band-branch { inset-inline-start: auto; inset-inline-end: -20px; bottom: 10px; width: 140px; }
}
@media (max-width: 600px) {
	.bundle-list { grid-template-columns: 1fr; }
	.side-pair, .side-pair.tall { flex-direction: column; }
	.side-banner .sb-copy { padding: 14px; }
	.bundle { grid-template-columns: 42% 1fr; }
	.bundle + .bundle { padding: 14px 0 0; border-inline-start: 0; border-top: 1px dashed var(--line); }
	.deal-head { grid-template-columns: 1fr; justify-items: center; }
	.deal-cd { justify-self: center; flex-direction: column; gap: 4px; }
	.arrow-btn { width: 40px; height: 40px; }
	.cart-mini, .hcard-foot .cart-mini { width: 40px; height: 40px; }
	.cat-panel.grid .cart-mini { width: 38px; height: 38px; }
	.ship-box .perks { grid-template-columns: 1fr; }
	.bgrid.is-list { grid-template-columns: 1fr; }
	.shop-bar .view-switch { margin-inline-start: auto; }
}

/* صفحة الكتاب: صندوق التوصيل تحت المعرض في الحاسوب، والمواصفات في عمودين */
.pdp { grid-template-rows: auto 1fr; row-gap: 14px; }
.pdp > .gallery { grid-column: 1; grid-row: 1; }
.pdp > .pdp-info { grid-column: 2; grid-row: 1 / span 2; }
.pdp > .ship-box { grid-column: 1; grid-row: 2; align-self: start; }
.spec-table tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.spec-table tr { display: grid; grid-template-columns: 38% 1fr; }
.spec-table th { width: auto; }
@media (max-width: 1199px) {
	.pdp > .ship-box .perks { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.pdp > .gallery, .pdp > .pdp-info, .pdp > .ship-box { grid-column: auto; grid-row: auto; }
	.pdp > .ship-box .perks { grid-template-columns: 1fr 1fr; }
	.spec-table tbody { grid-template-columns: 1fr; }
}

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