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

:root {
	--store-primary: #0F7C8C;
	--store-primary-dark: #0A5A66;
	--store-accent: #212E47;
	--store-bg: #FFFFFF;
	--store-text: #111827;

	--muted: #4E5561;
	--line: #E4EBF1;
	--grey: #F5F8FA;
	--gold: #F5A524;
	--dark: var(--store-accent);
	--tint: color-mix(in srgb, var(--store-primary) 9%, #fff);
	--tint-2: color-mix(in srgb, var(--store-primary) 16%, #fff);
	--on-dark-hl: color-mix(in srgb, var(--store-primary) 40%, #fff);
	--sk-1: var(--store-primary);
	--sk-2: color-mix(in srgb, var(--store-primary) 45%, #fff);
	--sk-3: #E8DFD0;

	--radius: 16px;
	--radius-lg: 22px;
	--radius-sm: 10px;
	--pill: 999px;
	--shadow: 0 8px 28px rgba(17, 24, 39, .08);
	--shadow-lg: 0 18px 40px rgba(17, 24, 39, .14);
	--per-row: 4;
	--edge-h: 46px;
}

[data-corners="sharp"] {
	--radius: 4px;
	--radius-lg: 6px;
	--radius-sm: 3px;
	--pill: 6px;
}

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

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Tajawal", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--store-text);
	background: var(--store-bg);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--store-primary); outline-offset: 2px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

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

/* ------------------------------------------------------------------ torn paper edges */
.edge {
	position: absolute; left: 0; width: 100%; height: var(--edge-h);
	fill: currentColor; pointer-events: none; z-index: 3; display: block;
}
.edge-bottom { bottom: -1px; color: var(--store-bg); }
.edge-top { top: calc(1px - var(--edge-h)); color: var(--dark); }
[data-edges="straight"] .edge { display: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: var(--pill); border: 1.5px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.4; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--store-primary); color: #fff; }
.btn-primary:hover { background: var(--store-primary-dark); }
.btn-outline { background: #fff; color: var(--store-primary-dark); border-color: var(--store-primary); }
.btn-outline:hover { background: var(--tint); }
.btn-accent { background: var(--store-accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--store-accent) 85%, #000); }
.btn-light { background: #EEF3F6; color: var(--store-text); }
.btn-light:hover { background: var(--line); }
.btn-white { background: #fff; color: var(--store-text); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { background: #E9EDF1; color: var(--muted); cursor: not-allowed; }

.icon-btn {
	position: relative; display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--store-text);
}
.icon-btn:hover { background: var(--grey); }
.icon-btn .count {
	position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--store-primary); color: #fff; font-size: 11px; font-weight: 700;
	line-height: 18px; text-align: center;
}
.icon-btn-line { border: 1.5px solid var(--line); width: 52px; height: 52px; flex: none; }
.round-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: #fff; border: 1.5px solid var(--line); color: var(--store-text); transition: .2s;
}
.round-btn:hover:not([disabled]) { background: var(--store-primary); color: #fff; border-color: var(--store-primary); }
.round-btn[disabled] { opacity: .45; cursor: default; }
.add-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: var(--store-primary); color: #fff; flex: none; transition: .2s;
}
.add-btn .icon { width: 19px; height: 19px; }
.add-btn:hover { background: var(--store-primary-dark); }
.add-btn[disabled] { background: #E9EDF1; color: var(--muted); cursor: not-allowed; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-weight: 500; }
.link-btn:hover { color: var(--store-text); }
.link-btn .icon { width: 17px; height: 17px; }
.see-link { color: var(--store-primary-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.see-link.center { display: block; }

/* ------------------------------------------------------------------ small parts */
.type-dot {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .18); flex: none;
}
.type-dot .icon { width: 16px; height: 16px; }
.type-dot[data-type="print"] { background: #DB7056; }
.type-dot[data-type="ebook"] { background: #5675A3; }
.type-dot[data-type="audio"] { background: #986AB0; }
.type-dot[data-type="educational"] { background: #3f8f6b; }

.stars { display: inline-flex; gap: 1px; }
.stars .icon { width: 15px; height: 15px; color: var(--gold); }
.stars .icon.off { color: #D5DCE3; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.r-num { font-weight: 700; color: var(--store-text); }
.r-chip {
	display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 6px;
	background: #FFF1D0; color: #5A4100; font-weight: 700; font-size: 13px;
}
.r-chip .icon { width: 13px; height: 13px; color: var(--gold); }
.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 800; color: var(--store-primary-dark); }
.price del { font-weight: 500; font-size: .82em; color: var(--muted); }
.badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; line-height: 1.6; }
.badge-sale { background: #fff; color: #B42318; box-shadow: 0 2px 8px rgba(17, 24, 39, .12); }
.badge-new { background: var(--store-accent); color: #fff; }
.chip {
	display: inline-flex; align-items: center; padding: 3px 12px; border-radius: var(--pill);
	background: #EEF3F6; color: var(--store-text); font-size: 13px; font-weight: 500;
}
.chip-new { background: var(--store-accent); color: #fff; }
.chip-dark { background: rgba(255, 255, 255, .12); color: #fff; }
.stock-band {
	position: absolute; inset-inline: 0; top: 46%; z-index: 2; padding: 6px; text-align: center;
	background: rgba(17, 24, 39, .88); color: #fff; font-size: 13px; font-weight: 700;
}

.heart {
	position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--store-text);
	box-shadow: 0 2px 10px rgba(17, 24, 39, .12); transition: .2s;
}
.heart .icon { width: 18px; height: 18px; }
.heart[aria-pressed="true"] { color: #C2410C; }
.heart[aria-pressed="true"] .icon { fill: currentColor; }
.heart-line { position: static; box-shadow: none; border: 1.5px solid var(--line); width: 38px; height: 38px; }
@media (hover: hover) {
	.bcard .heart { opacity: 0; transform: scale(.85); }
	.bcard:hover .heart, .bcard .heart:focus-visible, .bcard .heart[aria-pressed="true"] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ section headings */
.section { position: relative; padding: 76px 0; }
.section-tight { position: relative; padding: 36px 0; }
.band-grey { background: var(--grey); }
.sec-head { margin-bottom: 38px; }
.sec-head.center { text-align: center; }
.sec-title { font-size: 36px; font-weight: 800; line-height: 1.35; letter-spacing: -.2px; }
.sec-title.big { font-size: 44px; }
.sec-sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.hl { position: relative; display: inline-block; color: var(--store-primary-dark); white-space: nowrap; }
.hl-wave {
	position: absolute; left: 0; bottom: -6px; width: 100%; height: 10px;
	fill: none; stroke: var(--store-primary); stroke-width: 2.4; stroke-linecap: round;
}
.on-dark .sec-title { color: #fff; }
.on-dark .hl { color: var(--on-dark-hl); }
.on-dark .hl-wave { stroke: var(--on-dark-hl); }
.on-dark .sec-sub { color: rgba(255, 255, 255, .78); }
.sec-more { margin-top: 36px; text-align: center; }
.mini-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; padding-top: 16px; }
/* يطفو فوق أوّل قسمٍ في الصفحة، ويبقى مثبّتًا أعلى الشاشة عند التمرير (ارتفاعه صفرٌ فلا يأخذ مكانًا) */
body:has(> main > :is(.hero, .page-band):first-child) .site-header { position: sticky; top: 0; height: 0; }
.hdr-box { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); }
[data-corners="sharp"] .hdr-box { border-radius: 6px; }
.hdr-top {
	display: flex; align-items: center; gap: 22px; padding: 7px 22px;
	border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.ht-item { display: inline-flex; align-items: center; gap: 6px; }
.ht-item .icon { width: 15px; height: 15px; color: var(--store-primary-dark); }
.ht-item a { color: var(--store-text); font-weight: 500; }
.ht-track { margin-inline-start: auto; color: var(--store-text); font-weight: 700; }
.ht-track:hover { color: var(--store-primary-dark); }
.hdr-main { display: flex; align-items: center; gap: 18px; padding: 10px 18px 10px 14px; min-height: 66px; }
.menu-btn { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--store-text); }
.brand-light .brand-name { color: #fff; }
.hdr-nav { margin-inline: auto; }
.hdr-nav > ul { display: flex; align-items: center; gap: 2px; }
.hdr-nav > ul > li > a, .drop-btn {
	display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: var(--pill);
	font-weight: 500; font-size: 15px; border: 0; background: none; transition: .2s;
}
.hdr-nav > ul > li > a:hover, .drop-btn:hover { background: var(--grey); }
.hdr-nav a.is-current { background: var(--store-primary); color: #fff; }
.hdr-nav a.is-current:hover { background: var(--store-primary-dark); }
.drop-btn .icon { width: 16px; height: 16px; transition: transform .2s; }
.has-drop { position: relative; }
.drop {
	position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 210px; padding: 8px;
	background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-drop:hover .drop, .has-drop.open .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop.open .drop-btn .icon { transform: rotate(180deg); }
.drop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.drop a:hover { background: var(--tint); color: var(--store-primary-dark); }
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.pill-btn {
	display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
	border-radius: var(--pill); font-weight: 700; font-size: 14px; transition: .2s;
}
.pill-btn .icon { width: 18px; height: 18px; }
.pill-cart { background: var(--store-primary); color: #fff; }
.pill-cart:hover { background: var(--store-primary-dark); }
.cart-num {
	display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
	background: #fff; color: var(--store-primary-dark); font-size: 12px;
}
.pill-account { background: var(--store-accent); color: #fff; }
.pill-account:hover { background: color-mix(in srgb, var(--store-accent) 85%, #000); }
.hdr-search { display: none; gap: 8px; padding: 0 18px 14px; }
.search-open .hdr-search { display: flex; }
.hdr-search input {
	flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 1.5px solid var(--line);
	border-radius: var(--pill); background: var(--grey);
}

/* drawer */
.drawer {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 90; width: min(320px, 86vw);
	background: #fff; padding: 18px; overflow-y: auto; transform: translateX(105%); transition: transform .3s;
	visibility: hidden;
}
.drawer-open .drawer { transform: none; visibility: visible; }
.drawer-backdrop {
	position: fixed; inset: 0; z-index: 80; background: rgba(17, 24, 39, .5);
	opacity: 0; visibility: hidden; transition: .3s;
}
.drawer-open .drawer-backdrop, .filters-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-nav li > a { display: block; padding: 11px 6px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-label { padding: 14px 6px 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.drawer-sub a { padding: 5px 12px; border-radius: var(--pill); background: var(--grey); font-size: 14px; }
.drawer-contact { display: grid; gap: 10px; margin-top: 20px; padding: 14px; border-radius: var(--radius); background: var(--tint); }
.drawer-contact a { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--store-text); }
.drawer-contact .icon { color: var(--store-primary-dark); }

/* ------------------------------------------------------------------ hero slider */
.hero {
	position: relative; isolation: isolate; overflow: hidden; background: #12303A;
	padding: 388px 0 140px; min-height: 760px;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(8, 18, 28, .62) 0%, rgba(8, 18, 28, .42) 45%, rgba(8, 18, 28, .58) 100%);
}
.slide-copy {
	position: absolute; z-index: 1; top: 178px; inset-inline: 0; margin-inline: auto; max-width: 900px;
	padding-inline: 24px; text-align: center; color: #fff; display: grid; gap: 12px;
}
.slide-title { font-size: 58px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.slide-title mark {
	background: none; color: #fff; text-decoration: underline wavy color-mix(in srgb, var(--store-primary) 50%, #fff);
	text-decoration-thickness: 3px; text-underline-offset: 14px;
}
.slide-text { font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.hero-search-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hs-tabs {
	display: flex; gap: 4px; padding: 8px 8px 0; background: #fff; border-radius: 16px 16px 0 0;
	max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.hs-tabs::-webkit-scrollbar { display: none; }
.hs-tab {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--pill);
	border: 0; background: none; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.hs-tab .icon { width: 16px; height: 16px; }
.hs-tab.is-on { background: var(--store-primary); color: #fff; }
.hero-search { width: 100%; background: #fff; border-radius: 18px; padding: 18px 20px 20px; box-shadow: var(--shadow-lg); }
[data-corners="sharp"] .hero-search, [data-corners="sharp"] .hs-tabs { border-radius: 6px; }
.hs-cap { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.hs-fields { display: flex; gap: 12px; align-items: stretch; }
.hs-field {
	display: flex; flex-direction: column; justify-content: center; padding: 8px 16px; min-width: 200px;
	border: 1px solid var(--line); border-radius: 12px;
}
.hs-grow { flex: 1; }
.hs-field label { font-size: 13px; color: var(--muted); }
.hs-field input, .hs-field select { border: 0; background: none; padding: 2px 0; font-weight: 700; font-size: 16px; width: 100%; outline: none; }
.hs-field:focus-within { border-color: var(--store-primary); }
.hs-go { border-radius: 12px; padding-inline: 30px; }
.hero-dots { position: absolute; z-index: 4; bottom: 66px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.hero-dots button[aria-pressed="true"] { width: 28px; background: #fff; }

/* ------------------------------------------------------------------ categories (staggered) */
.cats-sec { padding-bottom: 60px; }
.cat-wrap { position: relative; }
.cat-track {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 4px 16px 52px; align-items: flex-start;
}
.cat-track::-webkit-scrollbar { display: none; }
.ccard {
	position: relative; flex: 0 0 clamp(220px, 22.5vw, 330px); aspect-ratio: 500 / 640; border-radius: var(--radius);
	overflow: hidden; scroll-snap-align: center; color: #fff; isolation: isolate; background: #1D3B44;
}
.cat-track .ccard:nth-child(even) { transform: translateY(44px); }
.ccard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.ccard:hover img { transform: scale(1.05); }
.ccard::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(8, 15, 25, .72) 0%, rgba(8, 15, 25, .05) 34%, rgba(8, 15, 25, .05) 55%, rgba(8, 15, 25, .82) 100%);
}
.ccard-name { position: absolute; top: 18px; inset-inline-start: 20px; font-size: 21px; font-weight: 800; }
.ccard-foot { position: absolute; bottom: 18px; inset-inline: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ccard-count { display: grid; line-height: 1.35; }
.ccard-count small { font-size: 13px; color: rgba(255, 255, 255, .9); }
.ccard-count b { font-size: 20px; }
.ccard-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--store-text); transition: .2s; }
.ccard:hover .ccard-go { background: var(--store-primary); color: #fff; }
.track-arrows { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }

/* ------------------------------------------------------------------ book grid & vertical card */
.book-grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 24px; }
.book-grid.grid-3 { grid-template-columns: repeat(min(var(--per-row), 3), minmax(0, 1fr)); }
.ghosts { overflow: hidden; }
.ghosts::before, .ghosts::after {
	content: ""; position: absolute; width: 220px; height: 220px; opacity: .07; pointer-events: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23111827'%3E%3Crect x='8' y='30' width='14' height='62' rx='2'/%3E%3Crect x='25' y='18' width='12' height='74' rx='2'/%3E%3Crect x='40' y='38' width='16' height='54' rx='2'/%3E%3Crect x='58' y='26' width='11' height='66' rx='2' transform='rotate(-12 58 92)'/%3E%3Crect x='4' y='92' width='92' height='4'/%3E%3C/g%3E%3C/svg%3E");
}
.ghosts::before { top: 40px; inset-inline-start: -30px; }
.ghosts::after { bottom: 30px; inset-inline-end: -40px; transform: scaleX(-1); }
.ghosts > .container { position: relative; z-index: 1; }

.bcard {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
[data-card-style="framed"] .bcard { box-shadow: none; border: 1px solid var(--line); }
[data-card-style="framed"] .bcard:hover { border-color: var(--store-primary); box-shadow: none; }
[data-card-style="flat"] .bcard { box-shadow: none; background: transparent; overflow: visible; }
[data-card-style="flat"] .bcard:hover { transform: none; box-shadow: none; }
[data-card-style="flat"] .bcard-media { border-radius: var(--radius); }
[data-card-style="flat"] .bcard-body { padding-inline: 2px; }
.bcard-media { position: relative; background: var(--tint); padding: 22px 22% 30px; }
.bcard-cover img {
	width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px;
	box-shadow: 0 10px 22px rgba(17, 24, 39, .22); transition: transform .4s;
}
.bcard:hover .bcard-cover img { transform: translateY(-4px) rotate(-1.2deg); }
.bcard-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 16px; fill: #fff; }
[data-card-style="flat"] .bcard-wave { fill: var(--store-bg); }
.band-grey [data-card-style="flat"] .bcard-wave, [data-card-style="flat"] .band-grey .bcard-wave { fill: var(--grey); }
.bcard-media > .type-dot { position: absolute; bottom: 2px; inset-inline-end: 16px; z-index: 2; }
.bcard.is-out .bcard-cover img { filter: grayscale(.85); opacity: .75; }
.bcard-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px 16px; flex: 1; }
.bcard-title { font-size: 16px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-title a:hover { color: var(--store-primary-dark); }
.bcard-author { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.bcard-author .icon { width: 14px; height: 14px; }
.r-count { font-size: 13px; color: var(--muted); }
.bcard-foot {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line);
}
.bcard-foot .price { font-size: 17px; }

/* ------------------------------------------------------------------ horizontal card */
.hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hcard {
	display: grid; grid-template-columns: 36% 1fr; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s;
}
.hcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.hcard-media { position: relative; background: var(--tint); display: grid; place-items: center; padding: 26px 14%; }
.hcard-cover { width: 100%; }
.hcard-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: 0 10px 22px rgba(17, 24, 39, .22); }
.hcard-media > .type-dot { position: absolute; bottom: 12px; inset-inline-end: 12px; }
.hcard.is-out .hcard-cover img { filter: grayscale(.85); opacity: .75; }
.hcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 22px 22px 20px; min-width: 0; }
.hcard-title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.hcard-title a:hover { color: var(--store-primary-dark); }
.hcard-author { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.hcard-author .icon { width: 15px; height: 15px; }
.hcard-desc { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.hcard-foot .price { font-size: 18px; }
.hcard-actions { display: flex; align-items: center; gap: 8px; }
.hcard-actions .heart { position: static; }

/* ------------------------------------------------------------------ trust */
.trust { padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-card {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px;
	border-radius: var(--radius); border: 1px solid rgba(17, 24, 39, .06);
}
.tc-txt { display: grid; min-width: 0; line-height: 1.5; }
.tc-txt b { font-size: 16px; }
.tc-txt span { font-size: 13.5px; color: var(--muted); }
.tc-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; color: #fff; }
.tc-ico .icon { width: 22px; height: 22px; }
.tc-1 { background: color-mix(in srgb, var(--store-primary) 10%, #fff); }
.tc-1 .tc-ico { background: var(--store-primary); }
.tc-2 { background: color-mix(in srgb, var(--store-accent) 8%, #fff); }
.tc-2 .tc-ico { background: var(--store-accent); }
.tc-3 { background: color-mix(in srgb, var(--store-primary) 5%, #FDF4EC); }
.tc-3 .tc-ico { background: var(--store-primary-dark); }
.tc-4 { background: color-mix(in srgb, var(--store-accent) 4%, #F0F6EE); }
.tc-4 .tc-ico { background: color-mix(in srgb, var(--store-primary) 50%, var(--store-accent)); }

/* ------------------------------------------------------------------ cutout banner */
.cutout { position: relative; overflow: hidden; padding: 30px 0 100px; }
.cutout-in { position: relative; display: block; max-width: 1240px; margin-inline: auto; padding-inline: 24px; min-height: 420px; }
.cutout-word {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); white-space: nowrap;
	font-size: clamp(96px, 17vw, 250px); font-weight: 800; line-height: 1; letter-spacing: -2px;
	color: transparent; -webkit-text-stroke: 2px var(--store-primary); opacity: .9; pointer-events: none;
}
.cutout-copy {
	position: relative; z-index: 1; display: flex; align-items: center; gap: 26px;
	max-width: 520px; padding-top: 260px;
}
.cutout-text { font-size: 18px; font-weight: 700; color: var(--store-text); background: #fff; padding: 6px 0; }
.spin-badge { position: relative; flex: none; display: grid; place-items: center; width: 118px; height: 118px; }
.spin-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--store-primary); animation: jz-spin 16s linear infinite; }
.spin-core {
	display: grid; place-items: center; align-content: center; gap: 2px; width: 92px; height: 92px; border-radius: 50%;
	background: var(--store-primary); color: #fff; font-size: 15px; transition: .25s;
}
.cutout-in:hover .spin-core { background: var(--store-primary-dark); transform: scale(1.05); }
.cutout-img { position: absolute; z-index: 1; bottom: -20px; inset-inline-end: 24px; width: min(440px, 40%); height: auto; }
@keyframes jz-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ dark sections */
.dark-sec { position: relative; background: var(--dark); color: #fff; }
.types-sec { padding: 96px 0 100px; }
.types-sec::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: radial-gradient(60% 40% at 10% 20%, rgba(255, 255, 255, .06), transparent 70%),
		radial-gradient(40% 30% at 90% 80%, rgba(255, 255, 255, .05), transparent 70%);
}
.types-sec > .container { position: relative; }
.types-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.types-list { display: grid; gap: 14px; }
.type-row {
	display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); transition: .2s;
}
.type-row:hover { border-color: var(--on-dark-hl); background: rgba(255, 255, 255, .08); }
.type-row b { display: block; font-size: 18px; color: #fff; }
.type-row small { display: block; font-size: 14px; color: rgba(255, 255, 255, .78); }
.tr-ring { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); }
.tr-ring .type-dot { width: 44px; height: 44px; }
.tr-ring .type-dot .icon { width: 21px; height: 21px; }
.types-about { margin-top: 8px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.pair { position: relative; height: 540px; }
.pair a { position: absolute; overflow: hidden; display: block; }
.pair img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pair a:hover img { transform: scale(1.04); }
.pair-big { top: 0; inset-inline-end: 0; width: 74%; height: 86%; border-radius: var(--radius-lg); }
.pair-small {
	bottom: 0; inset-inline-start: 0; width: 46%; height: 58%; border-radius: var(--radius-lg);
	border: 6px solid var(--dark); box-shadow: var(--shadow-lg);
}
.pair-chip {
	position: absolute; bottom: 14px; inset-inline-start: 14px; padding: 5px 14px; border-radius: var(--pill);
	background: #fff; color: var(--store-text); font-weight: 700; font-size: 14px;
}

/* ------------------------------------------------------------------ reviews */
.reviews { overflow: hidden; }
.reviews::before {
	content: ""; position: absolute; inset: 30px 0 0; pointer-events: none;
	background: radial-gradient(circle, #C9D3DD 1.6px, transparent 2px) 0 0 / 16px 16px;
	-webkit-mask: radial-gradient(50% 55% at 50% 50%, #000 0%, transparent 100%);
	mask: radial-gradient(50% 55% at 50% 50%, #000 0%, transparent 100%);
}
.reviews .container { position: relative; }
.rv-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 18px; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-card {
	position: relative; flex: 0 0 calc(50% - 12px); scroll-snap-align: start; display: grid; gap: 14px; align-content: start;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px 24px;
}
.rv-card blockquote { margin: 0; font-size: 16px; line-height: 1.85; }
.rv-who { display: flex; align-items: center; gap: 12px; }
.rv-who small { display: block; font-size: 13px; color: var(--muted); }
.rv-ava {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; flex: none;
	background: var(--tint-2); color: var(--store-primary-dark); font-weight: 800; font-size: 18px;
}
.rv-mark { position: absolute; bottom: 22px; inset-inline-end: 24px; width: 54px; height: 54px; color: #E4EBF1; }

/* ------------------------------------------------------------------ marquee + statement */
.talk-sec { padding-bottom: 120px; }
.marquee { overflow: hidden; background: var(--store-primary); color: #fff; padding: 14px 0; }
.marquee:not(:has(.mq-item)) { display: none; }
.marquee-track { display: flex; width: max-content; gap: 44px; padding-inline: 22px; }
.marquee.is-running .marquee-track { animation: jz-marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.mq-item .icon { width: 24px; height: 24px; }
@keyframes jz-marquee { to { transform: translateX(50%); } }
.talk { text-align: center; padding-top: 76px; }
.talk-title { max-width: 920px; margin-inline: auto; font-size: 34px; font-weight: 800; line-height: 1.55; color: #fff; }
.talk-row { display: flex; align-items: center; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.talk-pill { display: block; width: 380px; max-width: 100%; aspect-ratio: 3 / 1; border-radius: var(--pill); overflow: hidden; border: 5px solid #fff; }
.talk-pill img { width: 100%; height: 100%; object-fit: cover; }
.talk-help { display: grid; gap: 10px; text-align: start; }
.talk-help > b { font-size: 18px; }
.th-line { display: flex; align-items: center; gap: 12px; }
.th-line small { display: block; font-size: 13px; color: rgba(255, 255, 255, .75); }
.th-line span span { font-weight: 700; }
.th-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--store-primary); color: #fff; flex: none; }

/* ------------------------------------------------------------------ authors */
.authors-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.acard { display: grid; justify-items: center; gap: 4px; text-align: center; }
.acard-ring { display: block; width: 168px; height: 168px; padding: 8px; border-radius: 50%; border: 2px dashed var(--store-primary); margin-bottom: 10px; transition: transform .3s; }
.acard:hover .acard-ring { transform: rotate(-6deg); }
.acard-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.acard b { font-size: 18px; }
.acard small { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ recently viewed */
.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini {
	display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius);
	border: 1px solid var(--line); background: #fff;
}
.mini-cover { position: relative; flex: none; width: 66px; }
.mini-cover img { width: 66px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 6px 6px 3px; }
.mini-cover .type-dot { position: absolute; bottom: -6px; inset-inline-end: -8px; width: 24px; height: 24px; }
.mini-cover .type-dot .icon { width: 12px; height: 12px; }
.mini h3 { font-size: 15px; font-weight: 700; line-height: 1.45; }
.mini p { font-size: 13px; color: var(--muted); }
.mini .price { font-size: 15px; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; margin-top: var(--edge-h); background: var(--dark); color: rgba(255, 255, 255, .8); padding-top: 60px; }
[data-edges="straight"] .site-footer { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.25fr 1fr .95fr; gap: 30px; align-items: stretch; }
.site-footer h3 { position: relative; color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 14px; padding-bottom: 8px; }
.site-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--on-dark-hl); }
.foot-box { padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.foot-about { margin: 14px 0 24px; font-size: 15px; }
.foot-box > p:not(.foot-about) { font-size: 14px; margin-top: -6px; margin-bottom: 12px; }
.foot-news { display: flex; align-items: center; gap: 8px; padding: 5px; padding-inline-start: 16px; background: #fff; border-radius: var(--pill); color: var(--muted); }
.foot-news input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--store-text); height: 38px; }
.foot-news button { border: 0; border-radius: var(--pill); background: var(--store-primary); color: #fff; font-weight: 700; padding: 8px 20px; }
.foot-news button:hover { background: var(--store-primary-dark); }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 8px; }
.foot-links li { margin-bottom: 9px; font-size: 15px; }
.foot-links a { color: rgba(255, 255, 255, .8); }
.foot-links a:hover { color: #fff; }
.foot-track {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	padding: 28px; border-radius: var(--radius-lg); color: #fff;
	background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%), var(--store-primary-dark);
}
.foot-track h3 { margin-bottom: 4px; }
.foot-track > p { font-size: 15px; color: rgba(255, 255, 255, .92); margin-bottom: 10px; }
.ft-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .16); margin-bottom: 6px; }
.ft-contact { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; font-size: 14px; color: #fff; }
.ft-contact > span { display: inline-flex; align-items: center; gap: 6px; }
.ft-contact .icon { width: 16px; height: 16px; }
.skyline-wrap { margin-top: 48px; line-height: 0; }
.skyline { display: block; width: 100%; height: 124px; }
.foot-bottom { background: rgba(0, 0, 0, .22); padding: 16px 0; font-size: 14px; }
.foot-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--store-text); transition: .2s; }
.foot-social a:hover { background: var(--on-dark-hl); }
.foot-social .icon { width: 17px; height: 17px; }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a:hover { color: #fff; }
.to-top {
	position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 50; display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--store-primary); color: #fff;
	box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------------------ inner page band */
.page-band { position: relative; isolation: isolate; background: var(--dark); color: #fff; padding: 196px 0 96px; overflow: hidden; }
.page-band::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(circle, rgba(255, 255, 255, .09) 1.5px, transparent 2px) 0 0 / 18px 18px;
	-webkit-mask: linear-gradient(90deg, #000, transparent 60%);
	mask: linear-gradient(90deg, #000, transparent 60%);
}
.band-photo .band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 28, .74), rgba(10, 16, 28, .66)); }
.band-short { padding-bottom: 70px; }
.band-in { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .8); margin-bottom: 10px; }
.breadcrumb li + li::before { content: "‹"; margin-inline-end: 6px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 700; }
.page-title { font-size: 42px; font-weight: 800; line-height: 1.3; }
.page-sub { margin-top: 8px; max-width: 640px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--on-dark-hl); }
.author-head { display: flex; align-items: center; gap: 28px; margin-top: 10px; }
.ah-photo { width: 160px; height: 160px; flex: none; border-radius: var(--radius-lg); overflow: hidden; border: 6px solid rgba(255, 255, 255, .14); }
.ah-photo img { width: 100%; height: 100%; object-fit: cover; }
.ah-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bio-box { display: grid; gap: 12px; font-size: 17px; line-height: 1.9; padding: 26px 28px; border-radius: var(--radius); background: var(--grey); border-inline-start: 4px solid var(--store-primary); }

/* ------------------------------------------------------------------ category listing */
.pill-track { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; }
.cat-pill {
	display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 6px 6px 6px 18px;
	border: 1px solid var(--line); border-radius: var(--pill); background: #fff; transition: .2s;
}
.cat-pill:hover { border-color: var(--store-primary); }
.cat-pill img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cat-pill b { display: block; font-size: 15px; line-height: 1.3; }
.cat-pill small { display: block; font-size: 12px; color: var(--muted); }
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 12px; padding-bottom: 76px; }
.filters { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.filters-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.filters-head .icon-btn { display: none; }
.f-group { border-bottom: 1px solid var(--line); padding: 4px 0; }
.f-group:last-child { border-bottom: 0; }
.f-group summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-weight: 700; cursor: pointer; list-style: none; }
.f-group summary::-webkit-details-marker { display: none; }
.f-group summary .icon { width: 17px; height: 17px; transition: transform .2s; }
.f-group[open] summary .icon { transform: rotate(180deg); }
.f-body { display: grid; gap: 8px; padding-bottom: 12px; font-size: 15px; }
.f-body label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.f-body input[type="checkbox"], .f-body input[type="radio"] { accent-color: var(--store-primary); width: 17px; height: 17px; }
.f-body .n { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.f-type .type-dot { width: 24px; height: 24px; border-width: 0; box-shadow: none; }
.f-type .type-dot .icon { width: 13px; height: 13px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.filters-toggle { display: none; }
.count-text { flex: 1; color: var(--muted); font-size: 15px; }
.count-text b { color: var(--store-text); }
.view-toggle { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--pill); }
.view-toggle .icon-btn { width: 36px; height: 36px; }
.view-toggle .is-on { background: var(--store-primary); color: #fff; }
.select { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; }
.listing[data-view="list"] .listing-grid { grid-template-columns: 1fr; }
.listing[data-view="list"] .bcard { flex-direction: row; }
.listing[data-view="list"] .bcard-media { width: 32%; flex: none; padding: 20px 7%; }
.listing[data-view="list"] .bcard-wave { display: none; }
.listing[data-view="list"] .bcard-body { padding: 20px 22px; }
.listing[data-view="list"] .bcard-title { font-size: 19px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination > * { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 6px; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; }
.pagination a:hover { border-color: var(--store-primary); color: var(--store-primary-dark); }
.pagination [aria-current] { background: var(--store-primary); border-color: var(--store-primary); color: #fff; }
.pagination .dots { border: 0; }
.pagination .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 30px; padding-bottom: 60px; }
.pdp-top { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }
.g-stage { position: relative; padding: 30px 30px 46px; background: var(--tint); border-radius: var(--radius-lg); overflow: hidden; }
.g-main { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 0 16px 34px rgba(17, 24, 39, .28); }
.g-stage > .type-dot { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 38px; height: 38px; }
.g-stage > .type-dot .icon { width: 19px; height: 19px; }
.g-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 30px; fill: var(--store-bg); }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.g-thumb { width: 64px; padding: 3px; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.g-thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.g-thumb.is-on { border-color: var(--store-primary); }
.pdp-head { display: grid; gap: 10px; align-content: start; }
.pdp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-title { font-size: 34px; font-weight: 800; line-height: 1.35; }
.pdp-by { color: var(--muted); }
.pdp-by a { color: var(--store-primary-dark); font-weight: 700; }
.pdp-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pdp-meta .rating { font-size: 14px; }
.pdp-lead { font-size: 16px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.fact { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.f-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tint); color: var(--store-primary-dark); }
.fact small { display: block; font-size: 12px; color: var(--muted); }
.fact b { display: block; font-size: 15px; }
.pdp-box { margin-top: 26px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pdp-box > h2 { position: relative; font-size: 21px; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; }
.pdp-box > h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--store-primary); }
.prose { display: grid; gap: 12px; font-size: 16px; line-height: 1.95; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 11px 4px; border-bottom: 1px dashed var(--line); text-align: start; }
.spec-table th { width: 38%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 700; }
.spec-table tr:last-child > * { border-bottom: 0; }
.rv-summary { display: flex; gap: 28px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--grey); margin-bottom: 10px; }
.rv-score { text-align: center; }
.rv-score strong { display: block; font-size: 42px; line-height: 1.1; }
.rv-score .muted { font-size: 13px; }
.rv-bars { flex: 1; display: grid; gap: 6px; font-size: 13px; }
.rv-bars li { display: grid; grid-template-columns: 56px 1fr 38px; align-items: center; gap: 10px; color: var(--muted); }
.bar { height: 7px; border-radius: 4px; background: #E3E9EE; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.rv-item { padding: 16px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 8px; }
.rv-item .rv-ava { width: 40px; height: 40px; font-size: 16px; }
.rv-item .rv-who .rating { margin-inline-start: auto; }
.rv-item p { font-size: 15px; }
.rv-form { margin-top: 20px; padding: 22px; border-radius: var(--radius); background: var(--tint); display: grid; gap: 10px; justify-items: start; }
.rv-form h3 { font-size: 18px; font-weight: 800; }
.rv-form > p { font-size: 14px; color: var(--muted); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; border: 0; margin: 0; padding: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #C5CED6; }
.star-input .icon { width: 26px; height: 26px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--store-primary); border-radius: 4px; }
.field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; resize: vertical; }
.buy-box { position: sticky; top: 140px; display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.bb-head { display: flex; align-items: center; justify-content: space-between; }
.bb-label { font-size: 14px; color: var(--muted); }
.price-lg { font-size: 30px; }
.stock { justify-self: start; padding: 3px 12px; border-radius: var(--pill); background: #E6F4EC; color: #1C6B43; font-size: 13px; font-weight: 700; }
.bb-type { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bb-type .type-dot { width: 30px; height: 30px; border-width: 0; box-shadow: none; }
.bb-actions { display: grid; gap: 10px; }
.bb-row { display: flex; gap: 10px; }
.bb-row .btn { flex: 1; }
.sample-bar { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: var(--pill); background: var(--tint); }
.sample-bar .play { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; background: var(--store-primary); color: #fff; }
.sample-bar .play .icon { width: 16px; height: 16px; }
.wave-bars { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; }
.wave-bars i { flex: 1; background: var(--store-primary); opacity: .55; border-radius: 2px; }
.sample-bar small { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ------------------------------------------------------------------ cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; padding-top: 30px; padding-bottom: 60px; }
.cart-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px 12px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 20px; font-weight: 800; }
.cart-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 110px auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb { position: relative; display: block; padding: 8px; background: var(--tint); border-radius: 12px; }
.cart-thumb img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 5px 5px 2px; }
.cart-thumb .type-dot { position: absolute; bottom: -6px; inset-inline-end: -6px; width: 26px; height: 26px; }
.cart-thumb .type-dot .icon { width: 13px; height: 13px; }
.cart-info h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.cart-info p { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--grey); font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--tint-2); }
.qty input { width: 42px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-total { font-size: 17px; text-align: end; }
.rm { color: var(--muted); }
.rm:hover { color: #B42318; background: #FEF1F0; }
.cart-empty { display: grid; justify-items: center; gap: 10px; padding: 50px 20px; text-align: center; }
.cart-empty[hidden] { display: none; }
.ce-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--tint); color: var(--store-primary-dark); }
.ce-ico .icon { width: 36px; height: 36px; }
.cart-empty h2 { font-size: 22px; font-weight: 800; }
.cart-empty p { color: var(--muted); }
.summary { position: sticky; top: 20px; display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--grey); }
.summary h2 { font-size: 20px; font-weight: 800; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; }
.coupon-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; padding-inline: 12px 6px; border-radius: var(--pill); background: #fff; border: 1px dashed var(--store-primary); color: var(--store-primary-dark); font-size: 13px; font-weight: 700; }
.coupon-chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--tint-2); color: var(--store-primary-dark); }
.coupon-chip .icon { width: 13px; height: 13px; }
.sum-rows { display: grid; gap: 10px; font-size: 15px; }
.sum-rows > div { display: flex; justify-content: space-between; }
.sum-rows span { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px dashed #CFD8E0; font-size: 21px; font-weight: 800; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.secure .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ 404 */
.band-404 { background: linear-gradient(180deg, var(--grey), #fff); color: var(--store-text); padding-bottom: 60px; }
.band-404::before { display: none; }
.nf { display: grid; justify-items: center; text-align: center; gap: 12px; }
.nf-code {
	font-size: clamp(130px, 22vw, 240px); font-weight: 800; line-height: .9; letter-spacing: -4px;
	color: transparent; -webkit-text-stroke: 3px var(--store-primary);
}
.nf-sea { position: relative; width: min(420px, 100%); height: 90px; margin-top: -40px; }
.nf-sea svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 50px; fill: var(--tint-2); }
.nf-book { position: absolute; z-index: 1; bottom: 26px; left: 50%; width: 90px; height: 46px; margin-left: -45px; display: flex; animation: jz-bob 3.2s ease-in-out infinite; }
.nf-book i { flex: 1; background: #fff; border: 3px solid var(--store-accent); }
.nf-book i:first-child { border-radius: 10px 2px 2px 10px; transform: skewY(8deg); }
.nf-book i:last-child { border-radius: 2px 10px 10px 2px; transform: skewY(-8deg); background: color-mix(in srgb, var(--store-primary) 12%, #fff); }
@keyframes jz-bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.nf h1 { font-size: 32px; font-weight: 800; margin-top: 10px; }
.nf-text { max-width: 560px; color: var(--muted); }
.nf-search { display: flex; gap: 8px; width: min(520px, 100%); margin-top: 10px; }
.nf-search input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; }
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ------------------------------------------------------------------ components page */
.kit-sec { padding: 44px 0; border-bottom: 1px solid var(--line); }
.kit-sec > .container > h2 { font-size: 24px; font-weight: 800; }
.kit-sec > .container > p { color: var(--muted); margin: 4px 0 22px; max-width: 760px; }
.kit-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kit-card { display: grid; gap: 8px; align-content: start; }
.kit-card > small { font-weight: 700; color: var(--muted); }
.kit-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.kit-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.kit-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 24px; }
.kit-cats .ccard { flex: none; }
.kit-buy { position: static; max-width: 380px; }
.kit-edge { position: relative; height: 90px; border-radius: var(--radius); overflow: hidden; background: var(--dark); }

/* ------------------------------------------------------------------ options */
[data-show-trust-bar="false"] .trust { display: none; }
[data-show-reviews="false"] .reviews { display: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
	.hdr-nav { display: none; }
	.menu-btn { display: inline-grid; }
	.hdr-main { gap: 10px; }
	.hdr-actions { margin-inline-start: auto; }
	.book-grid { grid-template-columns: repeat(min(var(--per-row), 4), minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.book-grid, .book-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hgrid { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-box { grid-column: 1 / -1; }
	.pdp { grid-template-columns: minmax(0, 1fr) 300px; }
	.pdp-top { grid-template-columns: 240px minmax(0, 1fr); }
	.listing { grid-template-columns: 1fr; }
	.filters {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 90; width: min(330px, 88vw);
		border-radius: 0; overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .3s;
	}
	.filters-open .filters { transform: none; visibility: visible; }
	.filters-head .icon-btn, .filters-toggle { display: inline-flex; }
	.slide-title { font-size: 46px; }
}
@media (max-width: 860px) {
	.hdr-top .ht-item:nth-child(2) { display: none; }
	.sec-title { font-size: 30px; }
	.sec-title.big { font-size: 34px; }
	.types-grid { grid-template-columns: 1fr; gap: 40px; }
	.pair { height: 460px; max-width: 560px; width: 100%; margin-inline: auto; }
	.authors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.mini-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pdp { grid-template-columns: 1fr; }
	.buy-box { position: static; order: -1; }
	.pdp-main { display: contents; }
	.pdp-top { order: -2; }
	.cart-layout { grid-template-columns: 1fr; }
	.summary { position: static; }
	.cutout-img { width: 300px; }
	.cutout-copy { padding-top: 230px; }
	.rv-card { flex-basis: 80%; }
	.talk-title { font-size: 28px; }
	.page-title { font-size: 34px; }
	.hs-fields { flex-wrap: wrap; }
	.hs-field { flex: 1 1 200px; }
	.hs-go { flex: 1 1 100%; padding-block: 12px; }
	.hero { padding-top: 360px; }
}
@media (max-width: 640px) {
	:root { --edge-h: 26px; }
	.container, .cutout-in { padding-inline: 16px; }
	.site-header { padding-top: 10px; }
	.hdr-top { display: none; }
	.hdr-main { padding: 8px 10px; min-height: 58px; }
	.brand img { width: 34px; height: 34px; }
	.brand-name { font-size: 17px; }
	.hide-sm, .pill-cart .label { display: none; }
	.pill-btn { padding: 0 12px; }
	.section { padding: 56px 0; }
	.sec-head { margin-bottom: 26px; }
	.sec-title { font-size: 25px; }
	.sec-title.big { font-size: 27px; }
	.sec-sub { font-size: 14px; }
	.hero { padding: 300px 0 100px; min-height: 0; }
	.slide-copy { top: 112px; padding-inline: 16px; gap: 8px; }
	.slide-title { font-size: 30px; }
	.slide-title mark { text-underline-offset: 9px; text-decoration-thickness: 2px; }
	.slide-text { font-size: 15px; }
	.hero-search { padding: 14px; }
	.hs-cap { display: none; }
	.hs-field { flex-basis: 100%; min-width: 0; }
	.hero-dots { bottom: 42px; }
	.cat-track { gap: 14px; padding-bottom: 40px; }
	.ccard { flex-basis: 62vw; }
	.cat-track .ccard:nth-child(even) { transform: translateY(28px); }
	.book-grid, .book-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.bcard-media { padding: 16px 18% 24px; }
	.bcard-body { padding: 10px 10px 12px; }
	.bcard-title { font-size: 14px; }
	.bcard-foot .price { font-size: 14px; gap: 4px; }
	.bcard-foot .price del { font-size: 12px; }
	.add-btn { position: relative; width: 34px; height: 34px; }
	.add-btn::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; } /* مساحة لمسٍ 40px حول الدائرة */
	.add-btn .icon { width: 16px; height: 16px; }
	.r-count { font-size: 12px; }
	.bcard-media > .type-dot { width: 28px; height: 28px; inset-inline-end: 10px; }
	.badges { top: 8px; inset-inline-start: 8px; }
	.heart { top: 8px; inset-inline-end: 8px; width: 32px; height: 32px; }
	.hcard { grid-template-columns: 38% 1fr; }
	.hcard-media { padding: 18px 10%; }
	.hcard-body { padding: 14px; gap: 5px; }
	.hcard-title { font-size: 16px; }
	.hcard-desc { display: none; }
	.hcard-actions .btn { padding: 7px 12px; font-size: 13px; }
	.cutout { padding-bottom: 70px; }
	.cutout-in { min-height: 0; padding-top: 10px; }
	.cutout-word { top: 70px; transform: translate(-50%, 0); font-size: 96px; }
	.cutout-copy { padding-top: 120px; flex-direction: column; align-items: flex-start; gap: 16px; }
	.cutout-img { position: relative; inset: auto; bottom: auto; width: 76%; margin: 10px auto -20px; }
	.types-sec { padding: 70px 0; }
	.type-row { padding: 12px 14px; gap: 12px; }
	.tr-ring { width: 52px; height: 52px; }
	.tr-ring .type-dot { width: 36px; height: 36px; }
	.pair { height: 380px; }
	.rv-card { flex-basis: 90%; padding: 20px; }
	.mq-item { font-size: 16px; }
	.talk { padding-top: 50px; }
	.talk-title { font-size: 21px; }
	.talk-row { gap: 26px; }
	.talk-sec { padding-bottom: 90px; }
	.authors-grid { gap: 16px; }
	.acard-ring { width: 128px; height: 128px; }
	.foot-grid { grid-template-columns: 1fr; }
	.foot-box { padding: 22px; }
	.skyline { height: 84px; }
	.foot-bottom-in { justify-content: center; text-align: center; }
	.page-band { padding: 120px 0 70px; }
	.page-title { font-size: 28px; }
	.author-head { flex-direction: column; align-items: flex-start; gap: 16px; }
	.ah-photo { width: 120px; height: 120px; }
	.pdp-top { grid-template-columns: 1fr; }
	.gallery { max-width: 270px; width: 100%; margin-inline: auto; }
	.pdp-title { font-size: 26px; }
	.pdp-box { padding: 18px; }
	.rv-summary { flex-direction: column; align-items: stretch; gap: 12px; }
	.cart-box { padding: 4px 14px 8px; }
	.cart-row { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "t i rm" "t q tot"; gap: 8px 12px; }
	.cart-thumb { grid-area: t; }
	.cart-info { grid-area: i; }
	.qty { grid-area: q; justify-self: start; }
	.cart-total { grid-area: tot; }
	.rm { grid-area: rm; }
	.kit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.kit-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nf-search { flex-direction: column; }
	.listing[data-view="list"] .bcard-media { width: 38%; padding: 14px 5%; }
	.listing[data-view="list"] .bcard-body { padding: 12px; }
	.listing[data-view="list"] .bcard-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.pair-big .pair-chip { top: 14px; bottom: auto; inset-inline-start: auto; inset-inline-end: 14px; }

/* روابط داخل الصفحة: لا يختفي الهدف تحت الرأس المثبّت */
#reviews { scroll-margin-top: 136px; }
@media (max-width: 640px) { #reviews { scroll-margin-top: 84px; } }

/* ================================================================ ميزات المنصّة المعتمدة */
/* تبويبات «الأكثر رواجًا» (section.tabs، القاعدة 16) */
.row-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.row-tab { height: 38px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; color: var(--store-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.row-tab:hover { border-color: var(--store-primary); color: var(--store-primary-dark); }
.row-tab[aria-selected="true"] { background: var(--store-accent); border-color: var(--store-accent); color: #fff; }

/* المدوّنة (home_latest_posts وblog وpost) */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.pcard:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard-media { display: block; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 20px; flex: 1; }
.pcard-title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.pcard-title a:hover { color: var(--store-primary-dark); }
.pcard-text { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.pcard-date { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); width: 100%; font-size: 13.5px; color: var(--muted); }
.pcard-date .icon { width: 16px; height: 16px; }
/* في الرئيسيّة: مقالٌ كبير ومقالان أفقيّان كبطاقتَي «أحدث القصص» في المرجع */
.post-grid-home { grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; }
.post-grid-home .pcard:first-child { grid-row: span 2; }
.post-grid-home .pcard:not(:first-child) { display: grid; grid-template-columns: 42% 1fr; }
.post-grid-home .pcard:not(:first-child) .pcard-media { aspect-ratio: auto; height: 100%; }
.post-grid-home .pcard:not(:first-child) .pcard-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-grid-home .pcard:first-child .pcard-title { font-size: 23px; }
.post-date { display: flex; align-items: center; gap: 6px; }
.post-date .icon { width: 17px; height: 17px; }
.post-wrap { max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.post-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.post-text { display: grid; gap: 16px; font-size: 17.5px; line-height: 1.95; }
.post-text p:first-child { font-size: 19px; font-weight: 500; }
@media (max-width: 1024px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid-home { grid-template-columns: minmax(0, 1fr); }
	.post-grid-home .pcard:first-child { grid-row: auto; }
}
@media (max-width: 640px) {
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.post-grid-home .pcard:not(:first-child) { grid-template-columns: 38% 1fr; }
	.post-grid-home .pcard:not(:first-child) .pcard-body { padding: 14px; }
	.post-grid-home .pcard:not(:first-child) .pcard-title { font-size: 16px; }
	.post-grid-home .pcard:not(:first-child) .pcard-text { display: none; }
	.post-text { font-size: 16.5px; }
}

/* ================================================================ تطوير 2026: أقسامٌ وحالاتٌ جديدة */
/* النظرة السريعة: تطفو تحت المفضّلة فوق الغلاف، ولا تحجز مكانًا */
.bcard .card-qv { top: 56px; }

/* عرض الأسبوع: كتابٌ واحد بغلافٍ كبير وعدّادٌ واحد للقسم */
.deal-sec { background: var(--tint); overflow: hidden; }
.deal { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 48px; align-items: center; }
.deal-kicker {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 5px 14px; border-radius: var(--pill);
	background: var(--store-accent); color: #fff; font-size: 14px; font-weight: 700;
}
.deal-kicker .icon { width: 16px; height: 16px; }
.countdown { display: grid; gap: 10px; margin-top: 26px; }
.countdown[hidden] { display: none; }
.cd-label { font-size: 15px; font-weight: 700; }
.cd-units { display: flex; gap: 10px; }
.cd-unit {
	display: grid; justify-items: center; min-width: 74px; padding: 10px 6px 8px; border-radius: var(--radius-sm);
	background: #fff; box-shadow: var(--shadow); line-height: 1.3;
}
.cd-unit b { font-size: 28px; font-weight: 800; color: var(--store-accent); font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 13px; color: var(--muted); }
.feature { display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.feature-media { position: relative; display: grid; place-items: center; padding: 30px 34px 48px; background: var(--tint-2); }
.feature-cover { display: block; width: 100%; }
.feature-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 0 16px 34px rgba(17, 24, 39, .28); transition: transform .4s; }
.feature:hover .feature-cover img { transform: translateY(-4px) rotate(-1.2deg); }
.feature-media .g-wave { fill: #fff; }
.feature-media > .type-dot { position: absolute; bottom: 8px; inset-inline-end: 22px; z-index: 2; width: 38px; height: 38px; }
.feature-media > .type-dot .icon { width: 19px; height: 19px; }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 30px; min-width: 0; }
.feature-title { font-size: 26px; font-weight: 800; line-height: 1.35; }
.feature-title a:hover { color: var(--store-primary-dark); }
.feature-desc { display: grid; gap: 8px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.feature-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; width: 100%; margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--line); }
.feature-actions { display: flex; align-items: center; gap: 8px; }
.feature-actions .heart { width: 44px; height: 44px; }

/* رأس قسمٍ أفقيّ: العنوان في جانب، والرابط والسهمان في الآخر */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.row-head-end { display: flex; align-items: center; gap: 10px; }
.row-head-end .see-link { margin-inline-end: 8px; }

/* وصل حديثًا: صفٌّ أفقيّ يُمرَّر، بعدد الكتب في الصفّ نفسه */
.book-track {
	display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 6px 4px 22px; margin: -6px -4px -22px;
}
.book-track::-webkit-scrollbar { display: none; }
.book-track > .bcard { flex: 0 0 calc((100% - 24px * (var(--per-row) - 1)) / var(--per-row)); scroll-snap-align: start; }

/* صفحة التصنيف: التصفية المطبّقة */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; }
.active-filters .chip { gap: 6px; padding: 4px 6px 4px 12px; padding-inline: 12px 6px; background: var(--tint); color: var(--store-primary-dark); font-weight: 700; }
.active-filters .chip button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #fff; color: var(--store-text); }
.active-filters .chip .icon { width: 13px; height: 13px; }
.af-clear { border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.af-clear:hover { color: var(--store-text); }

/* صفحات الكتاب: اختيار الصيغة، والكمّيّة، وصندوق التوصيل والدفع */
.formats-box { display: grid; gap: 8px; }
.formats-label { font-size: 14px; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.format-opt {
	display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; flex: 1 1 120px;
	padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s;
}
.format-opt:hover { border-color: var(--store-primary); }
.format-opt.is-current { border-color: var(--store-primary); background: var(--tint); }
.format-opt .type-dot { grid-row: span 2; width: 28px; height: 28px; border-width: 0; box-shadow: none; }
.format-opt .type-dot .icon { width: 14px; height: 14px; }
.format-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.format-price { font-size: 13px; color: var(--store-primary-dark); font-weight: 700; line-height: 1.3; }
.bb-buy { display: flex; gap: 10px; }
.bb-buy .btn { flex: 1; padding-inline: 14px; }
.bb-buy .qty { flex: none; }
.bb-buy .qty button { width: 38px; height: 38px; }
.bb-info { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--grey); }
.bb-info li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.bb-info .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--store-primary-dark); }
.bb-info b { display: block; font-size: 14px; }
.bb-info small { display: block; font-size: 13px; color: var(--muted); }

@media (max-width: 1180px) {
	.book-track > .bcard { flex-basis: calc((100% - 48px) / 3); }
	.deal { gap: 32px; }
	.feature { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
	.deal { grid-template-columns: 1fr; text-align: center; }
	.deal-head { display: grid; justify-items: center; }
	.feature { text-align: start; }
}
@media (max-width: 1024px) {
	/* صفوف الكتب الثمانية: أربعةٌ في الصفّ ثمّ اثنان، فلا يبقى صفٌّ ناقص */
	.book-grid:not(.grid-3) { grid-template-columns: repeat(min(var(--per-row), 4), minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 860px) {
	.trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.book-grid:not(.grid-3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cutout-img { width: 250px; }
	.cutout-copy { max-width: calc(100% - 270px); }
}
@media (max-width: 640px) {
	.trust { padding: 28px 0; }
	.trust-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.trust-grid::-webkit-scrollbar { display: none; }
	.trust-card { flex: 0 0 76%; scroll-snap-align: center; padding: 12px 14px; gap: 12px; }
	.tc-ico { width: 42px; height: 42px; }
	.tc-ico .icon { width: 20px; height: 20px; }
	.bcard .card-qv { top: 46px; }
	.book-track { gap: 12px; }
	.book-track > .bcard { flex-basis: 46%; }
	.row-head-end .round-btn { display: none; }
	.row-head { align-items: center; }
	.cd-unit { min-width: 62px; }
	.cd-unit b { font-size: 23px; }
	.feature { grid-template-columns: 1fr; }
	.feature-body { padding: 18px; }
	.feature-title { font-size: 21px; }
	.feature-foot .btn { padding-inline: 14px; }
	/* الواجهة في الهاتف: الصورة شريطٌ واضح فوق العنوان لا خلفه */
	.hero { padding: 0 0 70px; }
	.hero-slides { position: relative; height: 352px; }
	.slide img { height: 214px; bottom: auto; }
	.slide::after { bottom: auto; height: 214px; background: linear-gradient(180deg, rgba(8, 18, 28, .35) 0%, rgba(8, 18, 28, 0) 45%); }
	.slide-copy { top: 228px; }
	.hero-search-wrap { margin-top: 6px; }
	.hs-fields .hs-field:not(.hs-grow) { display: none; }
	/* التصنيفات أصغر حتّى يظهر أوّل صفّ كتبٍ مبكّرًا */
	.cats-sec { padding-top: 44px; padding-bottom: 26px; }
	.ccard { flex-basis: 46vw; }
	.cat-track { padding-bottom: 30px; }
	.cat-track .ccard:nth-child(even) { transform: translateY(22px); }
	.ccard-name { top: 12px; inset-inline-start: 14px; font-size: 17px; }
	.ccard-foot { bottom: 12px; inset-inline: 14px; }
	.ccard-count small { font-size: 12px; }
	.ccard-count b { font-size: 16px; }
	.ccard-go { width: 36px; height: 36px; }
	.cats-sec .track-arrows { display: none; }
	.row-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.row-tabs::-webkit-scrollbar { display: none; }
	.row-tab { flex: none; }
	.band-grey.ghosts { padding-top: 44px; }
	.feature-media { padding: 22px 30% 40px; }
	.cutout-copy { max-width: none; }
	.book-grid:not(.grid-3) { gap: 12px; }
	/* بانر الكلمة المفرّغة أقصر في الهاتف */
	.cutout { padding: 20px 0 56px; }
	.cutout-word { top: 30px; font-size: 78px; }
	.cutout-copy { padding-top: 92px; flex-direction: row; align-items: center; gap: 14px; }
	.cutout-text { font-size: 16px; }
	.spin-badge { width: 92px; height: 92px; }
	.spin-core { width: 72px; height: 72px; font-size: 13px; }
	.cutout-img { width: 58%; margin: 6px auto -20px; }
	/* شاهدتَه مؤخّرًا: شريطٌ يُمرَّر بدل عمودٍ طويل */
	.mini-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
	.mini-row::-webkit-scrollbar { display: none; }
	.mini-row > .mini { flex: 0 0 78%; scroll-snap-align: center; }
}

/* صفوف الرئيسيّة بلا صفٍّ ناقص مهما كان عدد الكتب في الصفّ: يُخفى الزائد */
body[data-books-per-row="3"] .book-grid:not(.grid-3) > :nth-child(n+7) { display: none; }
@media (min-width: 861px) {
	body[data-books-per-row="3"] .book-grid:not(.grid-3):not(:has(> :nth-child(5))) > :nth-child(n+4) { display: none; }
}
@media (min-width: 1181px) {
	body[data-books-per-row="5"] .book-grid:not(.grid-3) > :nth-child(n+6),
	body[data-books-per-row="6"] .book-grid:not(.grid-3) > :nth-child(n+7) { display: none; }
	.book-grid:not(.grid-3):not(:has(> :nth-child(5))) { grid-template-columns: repeat(min(var(--per-row), 4), minmax(0, 1fr)); }
}

/* تبويبات صفّ الكتب (القاعدة 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; }
