/* ==================================================================
   براعم — قالب متجر كتب أطفال ووسائل تعليميّة لمنصّة «ناشر»
   كلّ التنسيق هنا، بلا مكتبات. ألوان الهويّة في :root وحدها.
   ================================================================== */

:root {
	--store-primary: #035392;
	--store-primary-dark: #023E6E;
	--store-accent: #CF2E35;
	--store-bg: #FFFFFF;
	--store-text: #3F3F46;

	/* محايدات وثوابت */
	--ink: #17171C;          /* العناوين */
	--muted: #5E5E66;        /* النصّ الثانويّ */
	--line: #E4E4E9;
	--soft: #F5F5F6;         /* رماديّ الأقسام واللوحات */
	--paper-yellow: #FBF7D6; /* بطاقات الآراء */
	--star: #F2A900;         /* الذهبيّ الثابت: النجوم واللون الثالث الزخرفيّ، ونصّه داكن */
	--on-star: #1E1E24;

	/* مشتقّات من ألوان المتجر */
	--tint: color-mix(in srgb, var(--store-primary) 9%, #fff);
	--tint-2: color-mix(in srgb, var(--store-primary) 18%, #fff);
	--rule: color-mix(in srgb, var(--store-primary) 16%, #fff);   /* سطور ورق الدفتر */
	--margin: color-mix(in srgb, var(--store-accent) 45%, #fff); /* خطّ الهامش الأحمر */

	--r-sm: 8px;
	--r: 12px;
	--r-lg: 18px;
	--blob: 58% 42% 52% 48% / 48% 56% 44% 52%;
	--shadow: 0 6px 22px rgba(18, 28, 56, .08);
	--shadow-lg: 0 14px 40px rgba(18, 28, 56, .14);
	--container: 1200px;
	--bpr: 4;
}

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; }
body[data-corners="sharp"] { --r-sm: 2px; --r: 3px; --r-lg: 4px; --blob: 4px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: "Lemonada", Tahoma, sans-serif;
	font-size: 14px;
	line-height: 1.9;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.55; }
:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin-inline: auto; padding-inline: 16px; }
.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(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-arrow { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ أزرار */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 8px 24px; border-radius: 999px;
	font-weight: 700; font-size: 13.5px; line-height: 1.5; white-space: nowrap;
	border: 2px solid transparent; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 12.5px; }
.btn-lg { min-height: 52px; padding: 10px 30px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--store-accent); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--store-accent) 30%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 85%, #000); }
.btn-primary { background: var(--store-primary); color: #fff; }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-gold { background: var(--star); color: var(--on-star); }
.btn-outline { border-color: var(--store-primary); color: var(--store-primary); background: #fff; }
.btn-outline:hover { background: var(--store-primary); color: #fff; }
.btn-ghost { color: var(--muted); background: var(--soft); }
.btn:disabled { background: #E6E6EA; color: #55555C; box-shadow: none; cursor: not-allowed; transform: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--tint); color: var(--store-primary); }
.icon-btn-lg { width: 52px; height: 52px; border: 2px solid var(--line); }
.icon-btn[aria-pressed="true"] { color: var(--store-accent); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
.round-arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--star); color: var(--on-star); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: transform .2s; }
.round-arrow .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.round-arrow:hover { transform: scale(1.08); }
.field { width: 100%; min-height: 44px; padding: 8px 14px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; font-size: 13.5px; }
.field:focus { border-color: var(--store-primary); outline: none; }

/* ------------------------------------------------------------------ الشريط العلويّ */
.topbar { background: var(--store-accent); color: #fff; font-size: 12px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.tb-info { display: flex; gap: 26px; flex-wrap: wrap; }
.tb-info li, .tb-track { display: inline-flex; align-items: center; gap: 7px; }
.tb-info .icon, .tb-track .icon { width: 15px; height: 15px; color: var(--star); }
.tb-end { display: flex; align-items: center; gap: 18px; }
.tb-track { font-weight: 600; }
.tb-track:hover, .tb-info a:hover { text-decoration: underline; }
.tb-social { display: flex; gap: 4px; }
.tb-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.tb-social a:hover { background: rgba(255, 255, 255, .18); }
.tb-social .icon { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ الرأس */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.hd { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.menu-toggle { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--store-primary); line-height: 1.3; }
.hd-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: stretch; gap: 4px; }
.nav-list > li { position: relative; display: flex; }
.nav-list > li > a, .nav-list > li > button { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; min-height: 76px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nav-list > li > a::after, .nav-list > li > button::after { content: ""; position: absolute; inset-inline: 8px; bottom: 0; height: 5px; border-radius: 4px 4px 0 0; background: var(--star); transform: scaleX(0); transition: transform .25s; }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .has-drop:hover > button::after { transform: scaleX(1); }
.nav-list > li > a[aria-current="page"] { color: var(--store-primary); }
.chev { width: 15px; height: 15px; transition: transform .2s; }
.drop { position: absolute; top: 100%; inset-inline-start: 0; min-width: 230px; padding: 10px; background: #fff; border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-lg); border-top: 4px solid var(--star); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.drop a { display: block; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; }
.drop a:hover { background: var(--tint); color: var(--store-primary); }
.has-drop:hover .drop, .has-drop.open .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop.open .chev { transform: rotate(180deg); }
.hd-icons { display: flex; align-items: center; gap: 2px; }
.bubble { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--store-accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--soft); }
.search-open .search-panel { display: block; }
.sp-in { display: flex; gap: 10px; padding-block: 14px; }
.sp-in .field { border-radius: 999px; }

/* الدرج الجانبيّ */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10, 20, 40, .45); opacity: 0; visibility: hidden; transition: .25s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 61; width: min(320px, 86vw); padding: 18px; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .3s; visibility: hidden; }
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 3px solid var(--star); }
.drawer-head .brand-name { font-size: 16px; }
.drawer-nav a, .drawer-cats a { display: block; padding: 10px 6px; font-weight: 600; font-size: 14px; border-bottom: 1px dashed var(--line); }
.drawer-nav-sm a { font-weight: 500; font-size: 13px; }
.drawer-label { margin-top: 16px; font-size: 12px; color: var(--muted); }
.drawer-cats a { color: var(--store-primary); font-weight: 500; }
.drawer-phone { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px; border-radius: var(--r); background: var(--store-primary); color: #fff; font-weight: 700; }

/* ------------------------------------------------------------------ الأقسام والعناوين */
.section { padding-block: 64px; }
.section-tight { padding-block: 36px; }
.section-top-0 { padding-top: 0; }
.shead { text-align: center; margin-bottom: 40px; }
.shead h2 { font-size: clamp(25px, 3.1vw, 40px); line-height: 1.5; }
.shead p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.pencil-rule { display: block; width: 140px; height: 22px; margin: 6px auto 0; color: var(--store-primary); }
.pr-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 2 3; }
.pr-body, .pr-end { fill: currentColor; }
.pr-tip { fill: #F3D3A0; }
.shead-light h2, .shead-light p { color: #fff; }
.shead-light .pencil-rule { color: var(--star); }
.shead-dark h2 { color: var(--on-star); }
.shead-dark p { color: var(--on-star); }
.shead-dark .pencil-rule { color: var(--store-primary-dark); }
.center-cta { margin-top: 34px; text-align: center; }

/* الرسوم الزخرفيّة (تخفيها data-show-stickers="false") */
.st { position: absolute; pointer-events: none; z-index: 2; }
body[data-show-stickers="false"] .st, body[data-show-stickers="false"] .doodles { display: none !important; }
.sun-rays { fill: color-mix(in srgb, var(--star) 70%, #fff); }
.sun-face { fill: var(--star); }
.sun-ink, .cl-ink, .wh-ink { fill: none; stroke: #4A3300; stroke-width: 4; stroke-linecap: round; }
.cl-ink, .wh-ink { stroke: #33415C; stroke-width: 3.4; }
.sun-cheek { fill: var(--store-accent); opacity: .35; }
.cl { fill: #fff; }
.cl-out { stroke: #33415C; stroke-width: 3; }
.bf-a { fill: var(--store-accent); }
.bf-b { fill: var(--star); }
.bf-ink { fill: none; stroke: #33415C; stroke-width: 2; stroke-linecap: round; }
.rb-1 { fill: var(--store-accent); }
.rb-2 { fill: var(--star); }
.rb-3 { fill: var(--store-primary); }
.wh-body { fill: color-mix(in srgb, var(--store-primary) 55%, #fff); }
.wh-belly { fill: color-mix(in srgb, var(--store-primary) 22%, #fff); }
.wh-cheek { fill: var(--store-accent); opacity: .4; }
.wh-spout { fill: none; stroke: color-mix(in srgb, var(--store-primary) 45%, #fff); stroke-width: 4; stroke-linecap: round; }

/* الحوافّ المتموّجة */
.blue-sec { position: relative; background: var(--store-primary); color: #fff; overflow-x: clip; }
.wavy-top::before, .wavy-bottom::after {
	content: ""; position: absolute; inset-inline: 0; height: 34px; background: var(--store-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 34'%3E%3Cpath d='M0 20C30 4 60 4 90 18s60 14 90 0 45-12 60-4V34H0Z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 34px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 34'%3E%3Cpath d='M0 20C30 4 60 4 90 18s60 14 90 0 45-12 60-4V34H0Z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 34px;
}
.wavy-top::before { bottom: calc(100% - 1px); }
.wavy-bottom::after { top: calc(100% - 1px); transform: scaleY(-1); }

/* ------------------------------------------------------------------ السلايدر */
.hero { position: relative; background: var(--tint); }
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 560px; display: flex; align-items: center; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.slide-in { position: relative; z-index: 3; display: flex; padding-bottom: 110px; }
.slide-body { position: relative; width: min(520px, 100%); text-align: center; padding: 24px; }
.slide-body::before { content: ""; position: absolute; inset: -30px -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
.slide-eyebrow { display: block; font-size: clamp(18px, 2vw, 26px); font-weight: 600; color: var(--ink); }
.slide-body h2 { font-size: clamp(28px, 4vw, 50px); line-height: 1.45; color: var(--ink); }
.slide-body p { margin: 12px auto 22px; max-width: 430px; color: #3A3A42; font-size: 14px; }
.st-sun { width: 180px; top: 40px; inset-inline-end: 7%; }
.hero-cloud-1 { width: 170px; top: 70px; inset-inline-start: 5%; opacity: .95; }
.hero-cloud-2 { width: 120px; top: 230px; inset-inline-end: 24%; opacity: .9; }
.hero-bf-1 { width: 54px; top: 50px; inset-inline-start: 26%; transform: rotate(-12deg); }
.hero-bf-2 { width: 44px; top: 200px; inset-inline-end: 40%; transform: rotate(14deg); }
.slider-prev, .slider-next { position: absolute; top: 42%; z-index: 4; }
.slider-prev { inset-inline-start: 18px; }
.slider-next { inset-inline-end: 18px; }
.slider-dots { position: absolute; bottom: 130px; inset-inline: 0; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--store-primary) inset; }
.slider-dots button[aria-current="true"] { background: var(--store-accent); box-shadow: none; width: 26px; border-radius: 6px; }
.hills { position: absolute; bottom: -1px; inset-inline: 0; z-index: 3; width: 100%; height: 120px; pointer-events: none; }
.hill-3 { fill: color-mix(in srgb, var(--store-primary) 30%, #fff); }
.hill-2 { fill: color-mix(in srgb, var(--store-primary) 16%, #fff); }
.hill-1 { fill: #fff; }

/* ------------------------------------------------------------------ البطاقات الملوّنة الثلاث */
.trio-sec { position: relative; z-index: 5; padding-top: 40px; }
.hero + .trio-sec { margin-top: -120px; padding-top: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio-pair { display: contents; }
.tcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transition: transform .25s; }
.tcard:hover { transform: translateY(-6px); }
.tcard-blue { background: var(--store-primary); color: #fff; }
.tcard-red { background: var(--store-accent); color: #fff; }
.tcard-gold { background: var(--star); color: var(--on-star); }
.tcard-body { display: flex; flex-direction: column; gap: 4px; padding: 28px 30px 18px; }
.tcard-title { font-size: 19px; font-weight: 700; }
.tcard-text { font-size: 13px; line-height: 1.85; }
.tcard-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; font-weight: 700; }
.tcard img { width: 100%; aspect-ratio: 360 / 200; object-fit: cover; margin-top: auto; border-radius: 50% 50% 0 0 / 26% 26% 0 0; }

/* ------------------------------------------------------------------ من نحن */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-text h3 { font-size: 24px; margin-bottom: 12px; }
.about-text p { margin-bottom: 12px; color: var(--muted); }
.checks { margin: 16px 0 26px; display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.checks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 5px; background: var(--star); color: var(--on-star); stroke-width: 3; }
.about-media { position: relative; display: block; }
.about-media img { width: 100%; aspect-ratio: 700 / 460; object-fit: cover; border-radius: var(--r-lg); }
.about-tag { position: absolute; top: 16px; inset-inline-start: 16px; padding: 4px 14px; border-radius: 999px; background: #fff; color: var(--store-primary); font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow); }
.about-media .st-rainbow { width: 170px; bottom: -40px; inset-inline-end: -36px; }

/* ------------------------------------------------------------------ دوّارات بأسهمٍ ذهبيّة */
.carousel { position: relative; }
.carousel > .round-arrow { position: absolute; top: 45%; z-index: 4; }
.ca-prev { inset-inline-start: -19px; }
.ca-next { inset-inline-end: -19px; }
.review-row, .author-row, .book-row { display: grid; grid-auto-flow: column; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 18px; }
.review-row::-webkit-scrollbar, .author-row::-webkit-scrollbar, .book-row::-webkit-scrollbar { display: none; }
.review-row > *, .author-row > *, .book-row > * { scroll-snap-align: start; }
.review-row { grid-auto-columns: calc((100% - 22px) / 2); }
.author-row { grid-auto-columns: calc((100% - 66px) / 4); }
.book-row { grid-auto-columns: calc((100% - 22px * (var(--bpr) - 1)) / var(--bpr)); }

/* ------------------------------------------------------------------ آراء الآباء */
.review { position: relative; padding: 34px 36px 26px; background: var(--paper-yellow); border-radius: 0 var(--r) var(--r) var(--r); }
.review::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 38px; height: 38px; background: linear-gradient(225deg, #fff 50%, #E2DEB7 50%); box-shadow: -3px 3px 6px rgba(0, 0, 0, .06); }
.review-q { width: 34px; height: 34px; fill: var(--store-primary); stroke: none; }
.review-text { margin: 6px 0 18px; color: #45454C; font-size: 13.5px; }
.review-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-who > div { flex: 1; min-width: 140px; }
.review-who b { display: block; color: var(--ink); font-size: 14px; }
.review-who small { color: var(--muted); font-size: 11.5px; }
.review-avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--blob); background: var(--store-primary); color: #fff; font-weight: 700; font-size: 20px; }
body[data-show-reviews="false"] .reviews-sec { display: none; }

/* ------------------------------------------------------------------ القسم الأزرق: شريط الثقة */
.features-sec { padding-block: 64px 70px; margin-top: 40px; }
.features-sec .st-whale { width: 130px; top: -96px; inset-inline-start: 7%; }
.why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; text-align: center; }
.feature-ic { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 42% 58% 46% 54% / 55% 45% 55% 45%; background: #fff; color: var(--store-accent); }
.feature-ic .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.feature h3 { color: #fff; font-size: 16px; }
.feature p { color: #fff; opacity: .9; font-size: 12.5px; max-width: 250px; margin-inline: auto; }
.why-media { position: relative; display: block; }
.why-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 520 / 460; object-fit: cover; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.st-chalk { inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); z-index: 0; fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.why-cap { position: absolute; z-index: 2; bottom: 6%; inset-inline: 12%; display: flex; flex-direction: column; padding: 12px 18px; border-radius: var(--r); background: #fff; color: var(--store-text); text-align: center; box-shadow: var(--shadow-lg); }
.why-cap b { color: var(--store-primary); font-size: 14.5px; }
.why-cap span { font-size: 12px; color: var(--muted); }
body[data-show-trust-bar="false"] .features-sec .features,
body[data-show-trust-bar="false"] .features-sec .shead { display: none; }
body[data-show-trust-bar="false"] .why { grid-template-columns: minmax(0, 520px); justify-content: center; }

/* ------------------------------------------------------------------ تبويبات التصنيفات العموديّة */
.ctabs { position: relative; }
.ctab { display: contents; }
.ctab-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 250px; min-height: 60px; margin-bottom: 12px; padding: 8px 16px; border-start-start-radius: var(--r); border-end-start-radius: var(--r); background: var(--star); color: var(--on-star); font-weight: 700; font-size: 14px; transition: background .2s; }
.ctab-btn .icon { width: 24px; height: 24px; }
.ctab-btn:hover { background: color-mix(in srgb, var(--star) 80%, #fff); }
.ctab.is-active .ctab-btn { background: var(--store-primary); color: #fff; }
.ctab-panel { display: none; position: absolute; top: 0; inset-inline-start: 250px; inset-inline-end: 0; min-height: 100%; padding: 34px; background: var(--soft); border-radius: 0 var(--r-lg) var(--r-lg) 0; box-shadow: var(--shadow-lg); gap: 28px; grid-template-columns: 290px 1fr; align-items: start; }
.ctab.is-active .ctab-panel { display: grid; }
.ctab-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.ctab-info h3 { font-size: 24px; }
.ctab-info p { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.ctab-kids { display: grid; gap: 4px; margin-bottom: 20px; }
.ctab-kids li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ctab-kids .icon { width: 16px; height: 16px; color: var(--store-primary); fill: var(--store-primary); stroke: none; }
.ctab-kids a:hover { color: var(--store-primary); text-decoration: underline; }
.ctabs-rainbow { width: 150px; bottom: -34px; inset-inline-end: -30px; z-index: 3; }

/* ------------------------------------------------------------------ بطاقة الكتاب */
.book-grid { display: grid; grid-template-columns: repeat(var(--bpr), minmax(0, 1fr)); gap: 24px 22px; }
.grid-side { grid-template-columns: repeat(max(2, calc(var(--bpr) - 1)), minmax(0, 1fr)); }
.bcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px; transition: transform .25s, box-shadow .25s; }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
body[data-card-style="dashed"] .bcard { box-shadow: none; border: 2px dashed var(--tint-2); }
body[data-card-style="plain"] .bcard { background: transparent; box-shadow: none; padding: 0; }
body[data-card-style="plain"] .gold-sec .bcard { background: #fff; padding: 12px; }
.bcard-media { position: relative; }
.bcard-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 8% 8%; background: var(--soft); }
body[data-corners="sharp"] .bcard-cover img { border-radius: var(--r); }
.type-dot { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; box-shadow: 0 0 0 3px #fff; }
.type-dot .icon { width: 17px; height: 17px; }
.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: 26px; height: 26px; top: 6px; inset-inline-start: 6px; }
.type-dot-sm .icon { width: 14px; height: 14px; }
.type-dot-xs { position: static; width: 22px; height: 22px; box-shadow: none; }
.type-dot-xs .icon { width: 12px; height: 12px; }
.bcard-badges { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 4px 10px; border-radius: var(--blob); font-size: 12px; font-weight: 700; line-height: 1.5; }
.badge-sale { background: var(--store-accent); color: #fff; }
.badge-new { background: var(--star); color: var(--on-star); }
.bcard-wish { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--store-accent); box-shadow: var(--shadow); opacity: 0; transform: scale(.8); transition: .2s; }
.bcard:hover .bcard-wish, .bcard-wish:focus-visible, .bcard-wish[aria-pressed="true"] { opacity: 1; transform: none; }
.bcard-wish[aria-pressed="true"] .icon { fill: currentColor; }
@media (hover: none) { .bcard-wish { opacity: 1; transform: none; } }
.stock-band { position: absolute; inset-inline: 0; top: 46%; z-index: 2; padding: 4px; background: rgba(23, 23, 28, .82); color: #fff; text-align: center; font-weight: 700; font-size: 12.5px; }
.is-out .bcard-cover img { filter: grayscale(.7); opacity: .8; }
.bcard-body { display: flex; flex-direction: column; flex: 1; padding: 12px 4px 2px; }
.age-pill { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-bottom: 6px; padding: 1px 10px; border-radius: var(--blob); background: color-mix(in srgb, #3f8f6b 14%, #fff); color: #24573F; font-size: 11.5px; font-weight: 700; }
.age-pill .icon { width: 15px; height: 15px; }
.bcard-title { font-size: 14.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-title a:hover { color: var(--store-primary); }
.bcard-author { font-size: 12px; color: var(--muted); }
.bcard-rate { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.count { font-size: 11.5px; color: var(--muted); }
.rating { display: inline-flex; gap: 1px; }
.rating .star { width: 15px; height: 15px; fill: var(--star); stroke: none; }
.rating .star.off { fill: #D9D9DE; }
.rating-lg .star { width: 22px; height: 22px; }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.price b { color: var(--store-primary); font-size: 16px; font-weight: 700; }
.price del { color: var(--muted); font-size: 12.5px; }
.price-lg b { font-size: 26px; }
.price-lg del { font-size: 16px; }
.bcard-body > .price { margin-top: auto; }
.bcard-body > .price + .bcard-add { margin-top: 0; }

/* البطاقة الصغيرة */
.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { display: flex; gap: 14px; align-items: center; padding: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.mini-cover { position: relative; flex: none; width: 74px; }
.mini-cover img { width: 74px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); }
.mini-body { min-width: 0; }
.mini .bcard-title { font-size: 13px; }
.mini .price { margin: 2px 0 0; }
.mini .price b { font-size: 14px; }
.recent-sec { background: var(--soft); }

/* ------------------------------------------------------------------ المؤلّفون: بطاقة الدفتر */
.note-card {
	position: relative; background-color: #FAFAFB;
	background-image: linear-gradient(to left, transparent 30px, var(--margin) 30px, var(--margin) 32px, transparent 32px), repeating-linear-gradient(to bottom, transparent 0 27px, var(--rule) 27px 28px);
	border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow);
}
.acard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 46px 40px 22px; padding-inline: 48px 22px; transition: transform .25s; }
.acard:hover { transform: translateY(-5px); }
.acard-photo { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: var(--shadow); }
.acard-photo img { width: 100%; height: 100% !important; object-fit: cover; }
.acard-name { margin-top: 14px; color: var(--ink); font-size: 16px; }
.acard-count { font-size: 12.5px; color: var(--muted); font-weight: 600; text-decoration: underline 2px var(--store-accent); text-underline-offset: 6px; }
.acard-bio { margin-top: 12px; font-size: 12.5px; line-height: 2.2; color: var(--store-text); }
.note-pencil { position: absolute; bottom: 10px; inset-inline-end: 12px; width: 26px; height: 26px; color: var(--store-accent); fill: color-mix(in srgb, var(--store-accent) 25%, #fff); }

/* ------------------------------------------------------------------ القسم الذهبيّ */
.gold-sec { padding-block: 64px; background: var(--star); }

/* شريط الرسوم المدرسيّة */
.doodles { overflow: hidden; }
.doodles svg { width: 100%; min-width: 900px; height: 90px; fill: none; stroke: #C8C8CF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ البانر بصندوقه المتداخل */
.box-sec { padding-top: 40px; }
.box-banner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.box-banner img { grid-column: 1; grid-row: 1; width: 100%; aspect-ratio: 880 / 620; object-fit: cover; border-radius: var(--r-sm); }
.box-panel { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 46px 40px; background: var(--store-primary); color: #fff; box-shadow: var(--shadow-lg); border-radius: var(--r-sm); }
.box-title { font-size: 25px; font-weight: 700; }
.box-text { font-size: 13.5px; opacity: .95; }

/* ------------------------------------------------------------------ تواصل معنا */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin-inline: auto; }
.ccard { position: relative; padding: 34px 22px 26px; border-radius: var(--r); background: var(--store-primary); color: #fff; text-align: center; }
.ccard h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.ccard a:hover { text-decoration: underline; }
.ccard-ic { position: absolute; top: -18px; inset-inline-start: -12px; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--star); box-shadow: 0 0 0 6px #fff; }
.ccard-ic .icon { width: 30px; height: 30px; fill: currentColor; stroke: #fff; stroke-width: 1.2; }

/* ------------------------------------------------------------------ التذييل */
.site-footer { position: relative; margin-top: 56px; padding-top: 50px; background: var(--store-primary); color: #fff; font-size: 13px; }
.site-footer::before {
	content: ""; position: absolute; bottom: calc(100% - 1px); inset-inline: 0; height: 56px; background: var(--store-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q720 -10 1440 40V56H0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 20Q720 -10 1440 40V56H0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 36px; }
.ft-col h2 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.brand-light .brand-name { color: #fff; }
.ft-brand .brand { margin-bottom: 16px; }
.ft-brand h2 { margin-bottom: 2px; }
.ft-brand p { opacity: .9; margin-bottom: 12px; font-size: 12.5px; }
.newsletter { display: flex; max-width: 380px; }
.newsletter input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 14px; border: 3px solid var(--star); border-inline-end: 0; border-radius: 0 999px 999px 0; background: #fff; color: var(--store-text); }
.newsletter .btn { border-radius: 999px 0 0 999px; min-height: 46px; }
.ft-contact { display: grid; gap: 8px; }
.ft-contact li { display: flex; align-items: center; gap: 8px; }
.ft-contact .icon { width: 17px; height: 17px; }
.ft-contact a:hover, .ft-links a:hover { text-decoration: underline; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.social a:hover { background: var(--star); color: var(--on-star); }
.social .icon { width: 17px; height: 17px; }
.ft-hours { line-height: 2.3; }
.ft-links { display: grid; gap: 6px; }
.ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 12px; }

/* ------------------------------------------------------------------ رأس الصفحات الداخليّة */
.page-head { position: relative; overflow: hidden; padding: 40px 0 64px; margin-bottom: 30px; background: var(--store-primary); color: #fff; text-align: center; }
.page-head::after {
	content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 34px; background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 34'%3E%3Cpath d='M0 20C30 4 60 4 90 18s60 14 90 0 45-12 60-4V34H0Z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 34px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 34'%3E%3Cpath d='M0 20C30 4 60 4 90 18s60 14 90 0 45-12 60-4V34H0Z'/%3E%3C/svg%3E") repeat-x left bottom / 240px 34px;
}
.page-head .container { position: relative; z-index: 3; }
.page-head h1 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); }
.page-head p { max-width: 640px; margin: 4px auto 0; font-size: 13.5px; }
.ph-eyebrow { font-weight: 700; color: #fff; text-decoration: underline 3px var(--star); text-underline-offset: 8px; }
.ph-cloud-1 { width: 150px; top: 30px; inset-inline-start: 6%; opacity: .95; }
.ph-cloud-2 { width: 110px; bottom: 50px; inset-inline-end: 8%; opacity: .5; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .8; }
.breadcrumb a:hover { text-decoration: underline; }
.pdp-sec .breadcrumb { justify-content: flex-start; color: var(--muted); margin-bottom: 22px; }

/* شريط التصنيفات الفرعيّة */
.chip-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.chip-cat { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; padding-inline: 8px 18px; border-radius: 999px; background: var(--star); color: var(--on-star); font-weight: 700; font-size: 13px; }
.chip-cat:first-child { background: var(--store-primary); color: #fff; }
.chip-cat img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chip-cat small { min-width: 26px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 11px; text-align: center; }

/* التصفية والقائمة */
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: start; }
.filters { padding: 22px 22px 22px 22px; padding-inline: 48px 20px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 17px; }
.filters-head .icon-btn { display: none; }
.fbox { padding-block: 12px; border-bottom: 1px dashed var(--line); }
.fbox:last-of-type { border: 0; margin-bottom: 12px; }
.fbox h3 { font-size: 14px; margin-bottom: 6px; }
.fbox h3 small { font-weight: 400; color: var(--muted); font-size: 11px; }
.fcats a { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.fcats a[aria-current="page"] { color: var(--store-primary); font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; cursor: pointer; }
.check .count { margin-inline-start: auto; }
.check input, .age-chips input { accent-color: var(--store-primary); width: 16px; height: 16px; }
.age-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.age-chips label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; cursor: pointer; }
.price-range { display: flex; align-items: center; gap: 8px; }
.toolbar, .list-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; padding: 10px 16px; border-radius: 999px; background: var(--soft); }
.toolbar p, .list-head p { font-size: 13px; color: var(--muted); }
.toolbar b, .list-head b { color: var(--ink); }
.list-title { font-size: 18px; margin-inline-end: auto; }
.sort { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: 13px; }
.sort .field { width: auto; min-height: 38px; border-radius: 999px; padding-block: 4px; }
.filters-toggle { display: none; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--star); color: var(--on-star); font-weight: 700; }
.pagination span { background: none; }
.pagination a[aria-current="page"] { background: var(--store-accent); color: #fff; }
.pagination a:hover { background: var(--store-primary); color: #fff; }

/* ------------------------------------------------------------------ صفحة الكتاب */
.pdp-sec { padding-top: 30px; }
.pdp { display: grid; grid-template-columns: 420px 1fr; gap: 54px; align-items: start; }
.gallery { position: relative; padding: 30px 30px 20px; border-radius: 44% 56% 40% 60% / 34% 30% 70% 66%; background: var(--paper-yellow); }
.gal-main { position: relative; width: 78%; margin-inline: auto; }
.gal-main img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 9% 9%; box-shadow: var(--shadow-lg); }
.gal-main .type-dot { width: 40px; height: 40px; top: 12px; inset-inline-start: 12px; }
.gal-thumbs { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.gal-thumbs button { width: 60px; border-radius: var(--r-sm); overflow: hidden; border: 3px solid transparent; }
.gal-thumbs button[aria-pressed="true"] { border-color: var(--store-primary); }
.gal-thumbs img { aspect-ratio: 2 / 3; object-fit: cover; }
.gal-rainbow { width: 120px; bottom: -14px; inset-inline-start: -20px; }
.pdp-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tag { padding: 1px 12px; border-radius: 999px; background: var(--tint); color: var(--store-primary-dark); font-size: 12px; font-weight: 700; }
.pdp-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pdp-title { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.pdp-title h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.45; }
.age-blob { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--blob); background: var(--star); color: var(--on-star); }
.age-blob .icon { width: 30px; height: 30px; }
.age-blob small { display: block; font-size: 11px; line-height: 1.3; }
.age-blob b { font-size: 15px; line-height: 1.4; }
.pdp-author { margin-top: 2px; color: var(--muted); }
.pdp-author a { color: var(--store-primary); font-weight: 700; }
.pdp-rate { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.pdp-price { display: flex; align-items: center; gap: 14px; }
.pdp-price .price { margin: 0; }
.pdp-lead { margin: 14px 0; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; color: #23704F; font-weight: 700; font-size: 13px; }
.stock .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.buy-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 20px; }
.perks { display: grid; gap: 6px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks .icon { color: var(--store-primary); }

.quick-sec { margin-block: 50px 40px; padding-block: 34px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.q-ic { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 8px; border-radius: 42% 58% 46% 54% / 55% 45% 55% 45%; background: #fff; color: var(--store-accent); }
.q-ic .icon { width: 28px; height: 28px; }
.quick small { font-size: 12px; color: #fff; opacity: .9; }
.quick b { font-size: 15px; color: #fff; }

.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab-list button { min-height: 46px; padding: 6px 24px; border-radius: 999px; background: var(--star); color: var(--on-star); font-weight: 700; font-size: 14px; }
.tab-list button[aria-selected="true"] { background: var(--store-primary); color: #fff; }
.prose { max-width: 820px; margin-inline: auto; font-size: 14.5px; line-height: 2.1; }
.prose p + p { margin-top: 12px; }
.spec-table { width: 100%; max-width: 760px; margin-inline: auto; border-collapse: separate; border-spacing: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 10px 18px; text-align: start; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 36%; background: var(--soft); color: var(--ink); }
.reviews-layout { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.rev-summary { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--soft); }
.rev-summary strong { font-size: 42px; color: var(--ink); line-height: 1.3; }
.rev-summary span { font-size: 12.5px; color: var(--muted); }
.rating-bars { display: grid; gap: 6px; margin: 18px 0; font-size: 12px; }
.rating-bars li { display: grid; grid-template-columns: 58px 1fr 38px; align-items: center; gap: 8px; }
.bar { height: 9px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--star); }
.review-form { padding: 22px 20px 24px; padding-inline: 48px 20px; }
.review-form h3 { font-size: 17px; }
.review-form p { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.review-form .field { margin: 10px 0 14px; resize: vertical; }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; }
.star-pick .star { width: 28px; height: 28px; fill: #D9D9DE; stroke: none; }
.star-pick input:checked ~ label .star, .star-pick label:hover .star, .star-pick label:hover ~ label .star { fill: var(--star); }
.star-pick input:focus-visible + label { outline: 3px solid var(--store-primary); border-radius: 4px; }
.review-list { display: grid; gap: 18px; }

/* ------------------------------------------------------------------ المؤلّف */
.author-head { padding-bottom: 80px; }
.ah-in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ah-photo { width: 170px; height: 170px; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: 0 0 0 6px var(--star); }
.ah-photo img { width: 100%; height: 100% !important; object-fit: cover; }
.ah-count { display: inline-flex; align-items: center; gap: 6px; padding: 2px 16px; border-radius: 999px; background: var(--star); color: var(--on-star); font-size: 13px; }
.ah-bio { max-width: 880px; margin: -10px auto 0; padding: 28px 30px 38px; padding-inline: 58px 30px; }
.ah-bio h2 { font-size: 18px; margin-bottom: 6px; }
.ah-bio p { line-height: 2.2; }

/* ------------------------------------------------------------------ السلّة */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-row { display: grid; grid-template-columns: 80px 1fr auto auto auto auto; align-items: center; gap: 18px; padding: 14px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.cart-cover img { width: 80px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); }
.cart-info h3 { font-size: 15px; }
.cart-info p { font-size: 12px; color: var(--muted); }
.cart-price .price { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 36px; font-size: 18px; font-weight: 700; color: var(--store-primary); }
.qty input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-total { color: var(--ink); white-space: nowrap; }
.cart-remove { color: var(--store-accent); }
.cart-under { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.empty-cart { margin-top: 20px; padding: 34px; text-align: center; }
.empty-cart h2 { font-size: 20px; }
.empty-cart p { margin: 6px 0 16px; color: var(--muted); }
.empty-whale { width: 140px; margin: 0 auto 8px; }
.summary { position: sticky; top: 100px; padding: 26px 24px; border-radius: var(--r-sm); background: var(--store-primary); color: #fff; box-shadow: var(--shadow-lg); }
.summary h2 { color: #fff; font-size: 19px; margin-bottom: 14px; }
.coupon { display: flex; gap: 8px; }
.coupon .field { border-color: transparent; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 8px; padding: 6px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .14); font-size: 12px; }
.coupon-applied button { text-decoration: underline; font-size: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .3); font-size: 13.5px; }
.summary-total { border: 0; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.summary .note { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; }
.summary .note .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ 404 */
.nf { position: relative; overflow: hidden; padding: 60px 0 150px; background: var(--tint); text-align: center; }
.nf-in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf-art { position: relative; }
.nf-code { display: block; font-size: clamp(90px, 14vw, 170px); font-weight: 700; line-height: 1.1; color: var(--store-primary); }
.nf-whale { position: absolute; width: 150px; bottom: -20px; inset-inline-end: -110px; }
.nf h1 { font-size: clamp(22px, 2.8vw, 32px); }
.nf p { max-width: 520px; color: var(--muted); }
.nf-search { display: flex; gap: 8px; width: min(520px, 100%); }
.nf-search .field { border-radius: 999px; }
.nf-cloud-1 { width: 160px; top: 40px; inset-inline-start: 8%; }
.nf-cloud-2 { width: 120px; top: 140px; inset-inline-end: 10%; }
.nf .hills { height: 100px; }

/* ------------------------------------------------------------------ صفحة المكوّنات */
.kit { padding-block: 40px; border-bottom: 1px dashed var(--line); }
.kit-title { font-size: 20px; margin-bottom: 18px; }
.kit-note { margin: -10px 0 18px; color: var(--muted); font-size: 13px; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.kit-row .type-dot { position: static; }
.kit-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.kit-blue { margin-top: 20px; padding: 30px 16px 4px; border-radius: var(--r); background: var(--store-primary); }
.kit-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kit-authors { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.kit-reviews { grid-template-columns: repeat(2, 1fr); }
.kit-wave { margin-top: 70px; border-radius: 0 0 var(--r) var(--r); }
.kit-wave .st-whale { width: 110px; top: -80px; inset-inline-start: 6%; }
.kit-pad { padding: 30px 20px; }

/* ------------------------------------------------------------------ الجهاز اللوحيّ */
@media (max-width: 1100px) {
	.hd-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.hd { gap: 10px; min-height: 66px; }
	.hd-icons { margin-inline-start: auto; }
	.brand-name { font-size: 17px; }
	body, body[data-books-per-row] { --bpr: 3; }
	.author-row { grid-auto-columns: calc((100% - 44px) / 3); }
	.ft-grid { grid-template-columns: 1fr 1fr; }
	.pdp { grid-template-columns: 340px 1fr; gap: 34px; }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.ca-prev { inset-inline-start: -6px; }
	.ca-next { inset-inline-end: -6px; }
}

@media (max-width: 900px) {
	.hide-md { display: none !important; }
	.section { padding-block: 54px; }
	.slide { min-height: 480px; }
	.st-sun { width: 120px; top: 24px; inset-inline-end: 4%; }
	.hero-cloud-2, .hero-bf-2 { display: none; }
	.trio { grid-template-columns: repeat(2, 1fr); }
	.trio > :last-child { grid-column: 1 / -1; }
	.trio > .tcard:last-child { flex-direction: row; align-items: stretch; }
	.trio > .tcard:last-child img { width: 45%; aspect-ratio: auto; border-radius: 50% 0 0 50% / 50% 0 0 50%; }
	.about, .why { grid-template-columns: 1fr; gap: 40px; }
	.about-media .st-rainbow { inset-inline-end: 6px; width: 140px; }
	.about-media { max-width: 520px; width: 100%; margin-inline: auto; }
	.contact-cards { gap: 26px 18px; }
	.why-media { max-width: 460px; margin-inline: auto; width: 100%; }
	.ctabs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
	.ctab-btn { width: auto; flex: 1 1 auto; min-height: 48px; margin: 0; border-radius: 999px; font-size: 13px; }
	.ctab-panel { position: static; order: 2; flex: 1 1 100%; margin-top: 10px; grid-template-columns: 220px 1fr; padding: 24px; border-radius: var(--r-lg); }
	.ctabs-rainbow { display: none; }
	.listing { grid-template-columns: 1fr; }
	.filters { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 61; width: min(320px, 88vw); overflow-y: auto; border-radius: 0; transform: translateX(100%); visibility: hidden; transition: transform .3s; }
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
	.filters-head .icon-btn, .filters-toggle { display: inline-flex; }
	.grid-side { grid-template-columns: repeat(var(--bpr), minmax(0, 1fr)); }
	.pdp { grid-template-columns: 1fr; }
	.gallery { max-width: 420px; width: 100%; margin-inline: auto; }
	.quick { grid-template-columns: repeat(2, 1fr); }
	.reviews-layout { grid-template-columns: 1fr; }
	.box-banner { grid-template-columns: 1fr; }
	.box-panel { grid-column: 1; grid-row: 2; margin: -60px 20px 0; position: relative; }
	.mini-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ الهاتف */
@media (max-width: 640px) {
	.hide-sm { display: none !important; }
	body { font-size: 13.5px; }
	body, body[data-books-per-row] { --bpr: 2; }
	.topbar-in { justify-content: space-between; gap: 8px; }
	.tb-track { display: none; }
	.brand img { width: 38px; height: 38px; }
	.brand-name { font-size: 15px; }
	.icon-btn { width: 38px; height: 38px; }
	.section, .gold-sec { padding-block: 44px; }
	.shead { margin-bottom: 28px; }
	.slide { min-height: 500px; align-items: flex-start; }
	.slide-in { padding-top: 36px; padding-bottom: 150px; justify-content: center; }
	.slide-body { padding: 10px; }
	.slide-body h2 { font-size: 27px; }
	.slide-body p { font-size: 13px; }
	.st-sun { width: 84px; top: 12px; inset-inline-end: 2%; }
	.hero-cloud-1, .hero-bf-1 { display: none; }
	.slider-prev, .slider-next { top: auto; bottom: 120px; }
	.slider-dots { bottom: 132px; }
	.hills { height: 80px; }
	.hero + .trio-sec { margin-top: -70px; }
	.trio { grid-template-columns: 1fr; }
	.trio > .tcard:last-child { flex-direction: column; }
	.trio > .tcard:last-child img { width: 100%; aspect-ratio: 360 / 200; border-radius: 50% 50% 0 0 / 26% 26% 0 0; }
	.review-row { grid-auto-columns: 88%; }
	.review { padding: 30px 22px 22px; }
	.author-row { grid-auto-columns: 78%; }
	.book-row { grid-auto-columns: calc((100% - 14px) / 2.2); gap: 14px; }
	.carousel > .round-arrow { display: none; }
	.features { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
	.features-sec .st-whale { width: 96px; top: -72px; }
	.ctab-panel { grid-template-columns: 1fr; padding: 18px; }
	.ctab-img img { aspect-ratio: 16 / 10; }
	.book-grid { gap: 16px 12px; }
	.bcard { padding: 8px; border-radius: var(--r); }
	.bcard-title { font-size: 13px; }
	.bcard-add { font-size: 11.5px; padding-inline: 8px; }
	.bcard-add .icon { display: none; }
	.price b { font-size: 14.5px; }
	.bcard .price { gap: 2px 6px; }
	.book-row .bcard .price { flex-wrap: nowrap; white-space: nowrap; }
	.book-row .bcard .price b { font-size: 13.5px; }
	.bcard .price del { font-size: 11px; }
	.box-panel { margin: -40px 10px 0; padding: 28px 22px; }
	.box-title { font-size: 20px; }
	.contact-cards { grid-template-columns: 1fr; gap: 26px; padding-inline-start: 12px; }
	.ccard { padding: 22px 18px 16px; }
	.mini-row { grid-template-columns: 1fr; }
	.ft-grid { grid-template-columns: 1fr; gap: 26px; }
	.toolbar, .list-head { border-radius: var(--r); }
	.sort { margin-inline-start: 0; }
	.quick-sec { margin-block: 40px 30px; }
	.cart-row { grid-template-columns: 64px 1fr auto; gap: 10px 12px; padding: 12px; }
	.cart-cover { grid-row: span 3; }
	.cart-cover img { width: 64px; }
	.cart-info { grid-column: 2 / 4; }
	.cart-price { grid-column: 2 / 4; }
	.qty { grid-column: 2; justify-self: start; }
	.cart-total { grid-column: 3; }
	.cart-remove { position: absolute; }
	.cart-row { position: relative; }
	.cart-remove { top: 6px; inset-inline-end: 6px; }
	.nf-whale { width: 100px; inset-inline-end: -60px; }
	.nf-search { flex-direction: column; }
	.kit-authors { grid-template-columns: 1fr; }
	.kit-reviews { grid-template-columns: 1fr; }
	.ah-bio { padding-inline: 50px 20px; }
	.pdp-title h1 { font-size: 24px; }
	.gal-rainbow { width: 96px; inset-inline-start: 0; }
	.pagination a, .pagination span { width: 40px; height: 40px; }
}

/* ==========================================================================
   ميزات المنصّة المعتمدة (SPEC، الملحق 8)
   ========================================================================== */
/* تبويبات التصنيفات فوق الشبكة الذهبيّة */
.tab-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -14px 0 30px; }
.tab-pill { min-height: 40px; padding: 6px 20px; border-radius: 999px; background: #fff; color: var(--on-star); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s; }
.tab-pill:hover { transform: translateY(-2px); }
.tab-pill[aria-selected="true"] { background: var(--store-primary); color: #fff; }

/* المدوّنة */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-media { display: block; background: var(--soft); }
.post-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px 22px 24px; }
.post-date { position: absolute; top: -20px; inset-inline-start: 18px; padding: 8px 16px; border-radius: var(--blob); background: var(--star); color: var(--on-star); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.post-title { font-size: 16px; line-height: 1.6; color: var(--ink); }
.post-title a:hover { color: var(--store-primary); }
.post-excerpt { font-size: 13px; color: var(--muted); }
.post-more { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; padding: 6px 18px; border-radius: 999px; background: var(--store-primary); color: #fff; font-size: 12.5px; font-weight: 700; }
.post-more:hover { background: var(--store-primary-dark); }
.post-all { margin-top: 34px; text-align: center; }
.post-grid-page { row-gap: 40px; }
.post-narrow { max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.post-content { display: flex; flex-direction: column; gap: 16px; font-size: 15.5px; line-height: 2; }

@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) {
	.tab-pills { gap: 8px; margin-top: -20px; }
	.tab-pill { padding: 6px 14px; font-size: 12px; }
	.post-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.post-grid:not(.post-grid-page) .post-card:nth-child(3) { display: flex; }
	.post-content { font-size: 14.5px; }
}

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

/* ==========================================================================
   تطوير أكتوبر 2026: متجرٌ أغنى بلا فراغات
   ========================================================================== */
.ctabs-sec, .about-sec, .deal-sec { overflow-x: clip; }
.bg-soft { background: var(--soft); }
.bg-tint { background: var(--tint); }
.section + .doodles { margin-top: -20px; }

/* عنوانٌ جانبيّ للدوّار: العنوان يمينًا والرابط يسارًا */
.shead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: start; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 3px dotted var(--tint-2); }
.shead-row h2 { position: relative; }
.shead-row h2::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 2px; border-radius: 6px; background: var(--star); }
.link-more { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; background: var(--star); color: var(--on-star); font-size: 12.5px; font-weight: 700; transition: background .2s; }
.link-more:hover { background: color-mix(in srgb, var(--star) 80%, #fff); }

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

/* وصل حديثًا: دوّارٌ أفقيّ */
.newin-sec { padding-top: 56px; }
.newin-sec .book-row { padding-block: 6px 22px; }

/* عرض الأسبوع: كتابٌ واحد كبير على ورقة دفتر، بعدّادٍ واحد */
.deal { position: relative; padding: 38px 40px 38px 40px; padding-inline: 70px 40px; }
.deal-book { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: center; }
.deal-media { position: relative; padding: 26px 30px 18px; border-radius: 44% 56% 40% 60% / 34% 30% 70% 66%; background: var(--paper-yellow); }
.deal-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 9% 9%; box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .3s; }
.deal-cover:hover img { transform: rotate(0); }
.deal-media .type-dot { top: 30px; inset-inline-start: 34px; width: 38px; height: 38px; }
.deal-media .bcard-badges { top: 30px; inset-inline-end: 34px; }
.deal-rainbow { width: 120px; bottom: -22px; inset-inline-end: -34px; }
.deal-body { display: flex; flex-direction: column; align-items: flex-start; }
.deal-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px; border-radius: var(--blob); background: var(--store-accent); color: #fff; font-size: 13px; font-weight: 700; }
.deal-kicker .icon { width: 16px; height: 16px; fill: var(--star); stroke: none; }
.deal-title { margin-top: 10px; font-size: clamp(26px, 3vw, 38px); line-height: 1.4; }
.deal-title a:hover { color: var(--store-primary); }
.deal-desc { max-width: 620px; margin-bottom: 18px; color: var(--muted); font-size: 13.5px; }
.deal-desc p + p { margin-top: 6px; }
.deal-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; margin: 8px 0 14px; }
.deal-buy .price { margin: 0; }
.countdown { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cd-label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.cd-label .icon { width: 18px; height: 18px; color: var(--store-accent); }
.cd-unit { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 6px 4px 4px; border-radius: 42% 58% 46% 54% / 55% 45% 55% 45%; background: var(--store-primary); color: #fff; line-height: 1.25; }
.cd-unit b { font-size: 20px; }
.cd-unit small { font-size: 10.5px; }
.deal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.deal .note-pencil { bottom: 14px; inset-inline-end: 16px; }

/* صفوف ممتلئة: لا يبقى صفٌّ نصف فارغ في أيّ عددٍ للكتب في الصفّ */
.edu-sec .book-grid > :nth-child(n + 5) { display: none; }
body[data-books-per-row="3"] .edu-sec .book-grid > :nth-child(n + 4) { display: none; }
body[data-books-per-row="5"] .edu-sec .book-grid > :nth-child(5),
body[data-books-per-row="6"] .edu-sec .book-grid > :nth-child(5) { display: flex; }
body[data-books-per-row="6"] .edu-sec .book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body[data-books-per-row="3"] .gold-sec .book-grid > :nth-child(n + 7),
body[data-books-per-row="5"] .gold-sec .book-grid > :nth-child(n + 6),
body[data-books-per-row="6"] .gold-sec .book-grid > :nth-child(n + 7) { display: none; }
body[data-books-per-row="6"] .grid-side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-works { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }

@media (max-width: 1100px) {
	.edu-sec .book-grid, body[data-books-per-row="6"] .edu-sec .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body[data-books-per-row] .edu-sec .book-grid > :nth-child(n + 4),
	body[data-books-per-row] .gold-sec .book-grid > :nth-child(n + 7) { display: none; }
	.grid-works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.deal { padding-inline: 60px 28px; }
	.deal-book { grid-template-columns: 250px 1fr; gap: 32px; }
}
@media (max-width: 900px) {
	.deal-book { grid-template-columns: 210px 1fr; gap: 26px; }
	.deal-media { padding: 18px 20px 12px; }
	.deal-media .type-dot { top: 22px; inset-inline-start: 24px; }
	.deal-media .bcard-badges { top: 22px; inset-inline-end: 24px; }
}
@media (max-width: 640px) {
	.edu-sec .book-grid, body[data-books-per-row="6"] .edu-sec .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body[data-books-per-row] .edu-sec .book-grid > :nth-child(-n + 4) { display: flex; }
	.grid-4, .grid-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.shead-row { margin-bottom: 18px; }
	.shead-row h2 { font-size: 23px; }
	.link-more { padding-inline: 14px; font-size: 12px; }
	.bcard-qv { bottom: 52px; inset-inline-end: 8px; width: 36px; height: 36px; }
	.bcard-wish { width: 36px; height: 36px; inset-inline-end: 8px; bottom: 8px; }
	.deal { padding: 22px 16px 26px; padding-inline: 46px 16px; }
	.deal-book { grid-template-columns: 1fr; gap: 18px; }
	.deal-media { width: min(230px, 80%); margin-inline: auto; }
	.deal-title { font-size: 24px; }
	.cd-unit { min-width: 50px; }
	.cd-unit b { font-size: 17px; }
	.deal-actions .btn-lg { min-height: 46px; padding-inline: 20px; font-size: 13.5px; }
}

/* صفحة الكتاب: اختيار الصيغة، والكمّيّة، وصندوق التوصيل والدفع */
.formats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 14px 0 2px; }
.formats-label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.fmt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fmt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 14px 5px 8px; padding-inline: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; transition: border-color .2s, background .2s; }
.fmt:hover { border-color: var(--store-primary); }
.fmt.is-current { border-color: var(--store-primary); background: var(--tint); }
.fmt-name { font-weight: 700; color: var(--ink); }
.fmt-price { color: var(--store-primary); font-size: 12.5px; }
.buy-btns .qty { min-height: 52px; background: #fff; }
.buy-btns .qty button { width: 40px; height: 48px; }
.buy-btns .qty input { width: 38px; font-weight: 700; }
.perks { gap: 4px; padding: 12px 16px; border: 0; border-radius: var(--r); background: var(--tint); color: var(--store-text); }
.perks .icon { width: 18px; height: 18px; }

/* صفحة التصنيف: التصفية المختارة، والشبكة والقائمة */
.view-switch { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #fff; }
.view-switch button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--store-primary); color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 8px 3px 14px; padding-inline: 14px 8px; border-radius: var(--blob); background: var(--star); color: var(--on-star); font-size: 12px; font-weight: 700; }
.fchip .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.fchip:hover { background: var(--store-primary); color: #fff; }
.fchip-clear { font-size: 12px; font-weight: 700; color: var(--store-accent); text-decoration: underline; text-underline-offset: 4px; }
.fbox .check .rating .star { width: 14px; height: 14px; }
.kit-posts { grid-template-columns: minmax(0, 380px); }
.kit-deal .deal + .kit-note { margin-top: 26px; }
@media (min-width: 901px) { .filters { position: sticky; top: 96px; } }
.grid-side.is-list { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
.grid-side.is-list .bcard { flex-direction: row; gap: 18px; padding: 12px; }
.grid-side.is-list .bcard-media { width: 130px; flex: none; }
.grid-side.is-list .bcard-body { padding: 4px 0; }
.grid-side.is-list .bcard-title { font-size: 16px; }
.grid-side.is-list .bcard-body > .price { margin-top: 6px; }
.grid-side.is-list .bcard-add { width: auto; align-self: flex-start; padding-inline: 22px; }
@media (max-width: 640px) {
	.view-switch { margin-inline-start: auto; }
	.grid-side.is-list .bcard-media { width: 96px; }
	.grid-side.is-list .bcard { gap: 12px; }
	.buy-btns .qty { min-height: 48px; }
	.formats { width: 100%; }
	.fmt-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
	.fmt { flex-direction: column; justify-content: center; gap: 0; padding: 6px 4px; border-radius: var(--r); text-align: center; line-height: 1.5; }
	.fmt .type-dot-xs { display: none; }
	.buy-btns .btn-lg { min-height: 48px; padding-inline: 18px; font-size: 13.5px; }
}

/* الهاتف: الصورة تحت العنوان لا خلفه، والبطاقات الملوّنة وشريط الثقة و«شاهدتَه مؤخّرًا» شرائط تُمرَّر */
@media (max-width: 640px) {
	.slide { flex-direction: column; align-items: stretch; min-height: 0; }
	.slide > img { position: relative; inset: auto; order: 2; height: 200px !important; object-position: 0% 70%; }
	.slide-in { padding: 22px 16px 26px; }
	.slide-body::before { display: none; }
	.slide-eyebrow { font-size: 16px; }
	.slide-body p { margin: 6px auto 14px; }
	.slider-prev, .slider-next, .hero .st-sun { display: none; }
	.slider-dots { bottom: 212px; }
	.hills { height: 46px; }
	.hero + .trio-sec { margin-top: -26px; }
	.trio { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 12px; }
	.trio::-webkit-scrollbar { display: none; }
	.trio > .tcard, .trio-pair > .tcard, .trio > .tcard:last-child { flex: 0 0 82%; flex-direction: row; align-items: stretch; scroll-snap-align: center; box-shadow: var(--shadow); }
	.tcard-body { flex: 1; padding: 14px 16px; gap: 2px; }
	.tcard-title { font-size: 16px; }
	.tcard-text { font-size: 11.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.tcard img, .trio > .tcard:last-child img { width: 38%; aspect-ratio: auto; margin: 0; object-fit: cover; border-radius: 0 50% 50% 0 / 0 50% 50% 0; }
	.features-sec { padding-block: 44px 40px; }
	.features { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; text-align: start; }
	.features::-webkit-scrollbar { display: none; }
	.feature { flex: 0 0 74%; scroll-snap-align: center; display: grid; grid-template-columns: 46px 1fr; gap: 0 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .1); }
	.feature-ic { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
	.feature-ic .icon { width: 23px; height: 23px; }
	.feature h3 { font-size: 13.5px; }
	.feature p { margin: 0; max-width: none; font-size: 11.5px; }
	.why { gap: 28px; }
	.why-media { max-width: 290px; }
	.mini-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 14px; }
	.mini-row::-webkit-scrollbar { display: none; }
	.mini { flex: 0 0 80%; scroll-snap-align: center; }
	.ctab-btn { min-height: 44px; }
	.new-sec .post-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 22px 16px 12px; }
	.new-sec .post-grid::-webkit-scrollbar { display: none; }
	.new-sec .post-card { flex: 0 0 82%; scroll-snap-align: center; }
	.new-sec .post-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	body[data-books-per-row] .gold-sec .book-grid > :nth-child(n + 7) { display: none; }
}
.contact-sec + .recent-sec { background: #fff; }

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

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