/* ==========================================================================
   دار السحاب — طبقة المكوّنات v3 (Premium Editorial)
   تعتمد كلياً على المتغيّرات المعرّفة في أول style.css.
   هذا الملف هو المرجع الوحيد للمكوّنات المذكورة فيه؛ لا تُعرَّف في ملف آخر.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0) الأساس
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

button, input, select, textarea, optgroup { font: inherit; color: inherit; }

body { line-height: 1.75; font-size: 16px; }
body::before { content: none; }
body { background-image: none; }

::selection { background: #F2DCCF; color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }

/* اتجاه اللغة الإنجليزية */
html[dir="ltr"] body { text-align: left; }
html[dir="ltr"] .fa-arrow-left, html[dir="ltr"] .fa-chevron-left, html[dir="ltr"] .fa-chevron-right,
html[dir="ltr"] .fa-angle-left { transform: scaleX(-1); }

.section-space { padding: clamp(56px, 7vw, 96px) 0; }

/* --------------------------------------------------------------------------
   1) العناوين والفواصل
   -------------------------------------------------------------------------- */
.eyebrow-ornament, .section-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--gold); font-family: var(--font-body);
    font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; margin-bottom: 10px;
}
.eyebrow-ornament::before {
    content: ""; width: 32px; height: 1px; border-radius: 0; background: currentColor; opacity: .8;
}
.section-eyebrow-center { display: flex; justify-content: center; }

.section-title {
    font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
    color: var(--text); text-align: center; margin-bottom: 44px; line-height: 1.25;
}
.section-title::after {
    content: ""; display: block; width: 48px; height: 2px; border-radius: 0;
    margin: 16px auto 0; background: var(--terracotta);
}
.section-title-inline { text-align: start; margin: 0; }
.section-title-inline::after { display: none; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.section-head-copy { display: flex; flex-direction: column; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; color: var(--text);
    font-weight: 700; font-size: var(--fs-sm); white-space: nowrap;
    padding: 0 0 3px; border-radius: 0; background: none; color: var(--text); border-bottom: 1px solid var(--terracotta);
}
.link-arrow i { color: var(--gold); transition: transform var(--dur-2) var(--ease); font-size: .8em; }
.link-arrow:hover i { transform: translateX(-4px); }
html[dir="ltr"] .link-arrow:hover i { transform: scaleX(-1) translateX(-4px); }

/* --------------------------------------------------------------------------
   2) الأزرار — مؤسسية هادئة
   -------------------------------------------------------------------------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; min-height: 48px;
    background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .01em;
    box-shadow: none; cursor: pointer; transition: var(--transition);
}
.btn::after { content: none; }
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: none; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn i { font-size: .85em; transition: transform var(--dur-2) var(--ease); }
.btn:hover .fa-arrow-left { transform: translateX(-4px); }
html[dir="ltr"] .btn:hover .fa-arrow-left { transform: scaleX(-1) translateX(-4px); }
.btn-lg { padding: 16px 32px; min-height: 56px; font-size: 16px; }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: 13.5px; }

.btn-gold { background: var(--terracotta); border-color: var(--terracotta); }
.btn-gold:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--text); box-shadow: none; }
.btn-outline:hover { background: var(--text); color: var(--bg-color); border-color: var(--text); box-shadow: none; }

.btn-ghost { background: transparent; color: var(--text); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: transparent; color: var(--terracotta); border-color: transparent; }

[data-theme="dark"] .btn:not(.btn-outline):not(.btn-ghost) { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
[data-theme="dark"] .btn:not(.btn-outline):not(.btn-ghost):hover { background: var(--terracotta-2); border-color: var(--terracotta-2); }

/* --------------------------------------------------------------------------
   3) الهيدر — نظيف بخط فاصل رفيع
   -------------------------------------------------------------------------- */
.top-bar { background: var(--ink); font-size: 12.5px; letter-spacing: .01em; }
.top-bar a { opacity: .78; color: #fff; }
.top-bar a:hover { opacity: 1; color: #fff; }
.top-contact i, .top-bar a i { color: var(--terracotta-2) !important; opacity: 1; }
.header { background: var(--surface-glass); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header.scrolled { box-shadow: 0 1px 0 var(--border), 0 12px 30px -24px rgba(20,33,61,.4); }
.logo-image { max-height: 52px; width: auto; }
.brand-logo-mark { width: 46px; height: 46px; display: block; filter: none; transition: transform var(--dur-2) var(--ease); }
.logo:hover .brand-logo-mark { transform: none; }
.logo .logo-text { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.logo .logo-text b { font-weight: 700; color: var(--terracotta); background: none; -webkit-background-clip: initial; background-clip: initial; }
.logo-lockup small { color: var(--text-light); font-weight: 600; letter-spacing: .04em; }
.nav-links a {
    position: relative; color: var(--text-light); font-weight: 600; font-size: 15px;
    padding: 8px 2px; border-radius: 0; background: none;
}
.nav-links a:hover { color: var(--text); background: none; }
.nav-links a.active { color: var(--text); background: none; box-shadow: none; }
.nav-links a::after {
    content: ""; display: block; position: absolute; inset-inline: 0; bottom: 0; height: 2px; width: auto;
    background: var(--terracotta); transform: scaleX(0); transform-origin: center; transition: transform var(--dur-2) var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); width: auto; }
.nav-icon-btn, .cart-icon {
    border: 1px solid var(--border); border-radius: var(--radius); background: transparent; color: var(--text);
    transition: var(--transition);
}
.nav-icon-btn:hover, .cart-icon:hover { border-color: var(--text); background: transparent; color: var(--text); transform: none; }
.cart-count { background: var(--terracotta); color: #fff; border-color: var(--surface); font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   4) الهيرو — صفحة غلاف مجلة أدبية
   -------------------------------------------------------------------------- */
.hero-editorial {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 8vw, 112px);
    background: var(--bg-color);
    border-bottom: 1px solid var(--border);
}
.hero-editorial::before, .hero-editorial::after { content: none; }
.hero-ed-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud-ornament { fill: currentColor; }
/* سحابة خطّية واحدة كعلامة مائية للهوية */
.hero-ed-cloud { display: none; }
.hero-ed-cloud.c1 { width: min(520px, 60vw); top: -40px; inset-inline-end: 32%; }
.hero-ed-cloud.c2, .hero-ed-cloud.c3, .hero-sparkles { display: none; }
[data-theme="dark"] .hero-ed-cloud { color: #fff; opacity: .03; }

.hero-ed-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero-ed-copy { position: relative; }
.hero-ed-copy .eyebrow-ornament {
    background: none; backdrop-filter: none; padding: 0; border-radius: 0; box-shadow: none; border: 0;
    color: var(--terracotta); letter-spacing: .06em;
}
.hero-ed-copy .eyebrow-ornament::before { width: 36px; height: 1px; border-radius: 0; background: currentColor; }
.hero-ed-title {
    font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xl); line-height: 1.18;
    margin: 18px 0 26px; max-width: 13ch; text-wrap: balance;
    color: var(--text); background: none; -webkit-background-clip: initial; background-clip: initial;
}
[data-theme="dark"] .hero-ed-title { background: none; color: var(--text); }
.hero-ed-lead {
    font-size: var(--fs-lg); color: var(--text-light); max-width: 50ch; line-height: 2; margin-bottom: 36px;
    padding-inline-start: 18px; border-inline-start: 2px solid var(--terracotta);
}
.hero-ed-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-ed-actions .btn-ghost { background: none; backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--text); border-radius: 0; padding-inline: 2px; min-height: 0; padding-block: 6px; }

.hero-ed-stats {
    display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
    margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 520px;
}
.hero-ed-stats div {
    display: flex; flex-direction: column-reverse; gap: 2px; padding: 0 28px; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
}
.hero-ed-stats div:first-child { padding-inline-start: 0; }
.hero-ed-stats div + div { border-inline-start: 1px solid var(--border); }
html[dir="ltr"] .hero-ed-stats div { flex-direction: column-reverse; }
.hero-ed-stats dd {
    font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 700; line-height: 1.1;
    color: var(--text); background: none !important; -webkit-background-clip: initial; background-clip: initial; font-variant-numeric: tabular-nums;
}
.hero-ed-stats dt { color: var(--text-light); font-size: var(--fs-sm); font-weight: 600; }

/* لوحة الغلاف: صفيحة ملوّنة خلف مكدّس الكتب */
.hero-ed-feature { position: relative; display: grid; justify-items: center; margin: 0; padding: 48px 0 0; }
.hero-ed-feature::before {
    content: ""; position: absolute; inset: 0 8% 18% 8%; z-index: -1; border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
        var(--ink);
    filter: none; opacity: 1; animation: none; aspect-ratio: auto; width: auto; top: 0;
}
.hero-ed-feature::after {
    /* خطوط رفيعة كزخرفة غلاف */
    content: ""; position: absolute; inset: 14px calc(8% + 14px) calc(18% + 14px) calc(8% + 14px); z-index: -1;
    border: 1px solid rgba(255,255,255,.14); border-radius: 6px; pointer-events: none;
}
.hero-stack { position: relative; display: grid; place-items: center; perspective: 1600px; }
.hero-stack .stack-back { position: absolute; width: clamp(150px, 16vw, 210px); top: 10%; pointer-events: none; opacity: 1; transition: transform var(--dur-3) var(--ease); }
.hero-stack .stack-back.b1 { transform: translateX(-42%) rotate(-7deg) scale(.86); }
.hero-stack .stack-back.b2 { transform: translateX(42%) rotate(7deg) scale(.86); }
.hero-stack:hover .stack-back.b1 { transform: translateX(-50%) rotate(-9deg) scale(.86); }
.hero-stack:hover .stack-back.b2 { transform: translateX(50%) rotate(9deg) scale(.86); }
.hero-ed-book { position: relative; z-index: 2; display: block; perspective: 1600px; }
.hero-ed-book .book-object { transform: none; transition: transform var(--dur-3) var(--ease); }
.hero-ed-book:hover .book-object { transform: translateY(-6px); }
.hero-ed-caption {
    position: relative; margin-top: -20px; z-index: 3;
    background: var(--surface); backdrop-filter: none; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 26px; min-width: min(300px, 90%);
    display: grid; gap: 2px; text-align: center;
}
[data-theme="dark"] .hero-ed-caption { border-color: var(--border); }
.caption-kicker {
    justify-self: center; display: inline-flex; align-items: center; gap: 6px;
    background: none; color: var(--terracotta); font-size: 11.5px; font-weight: 800; padding: 0; border-radius: 0; letter-spacing: .06em;
}
.caption-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--text); line-height: 1.35; margin-top: 2px; }
.caption-title:hover { color: var(--terracotta); }
.caption-author { color: var(--text-light); font-size: var(--fs-sm); }
.hero-ed-caption .price { justify-content: center; margin-top: 4px; }
.hero-wave { display: none; }

/* --------------------------------------------------------------------------
   5) مجسّم الكتاب والغلاف المولّد
   -------------------------------------------------------------------------- */
.book-object {
    position: relative; display: block; aspect-ratio: 2 / 3; width: 100%;
    border-radius: 3px 8px 8px 3px; overflow: hidden;
    background: var(--surface-2); box-shadow: var(--shadow-book);
    transform-style: preserve-3d;
}
html[dir="rtl"] .book-object { border-radius: 8px 3px 3px 8px; }
.book-object > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* كعب الكتاب + لمعة الورق المقوّى */
.book-object::before {
    content: ""; position: absolute; inset-block: 0; right: 0; left: auto; width: 7%; z-index: 2; pointer-events: none;
    background: linear-gradient(to left, rgba(0,0,0,.28), rgba(255,255,255,.18) 40%, rgba(0,0,0,.08) 70%, transparent);
}
html[dir="ltr"] .book-object::before { background: linear-gradient(to right, rgba(0,0,0,.28), rgba(255,255,255,.18) 40%, rgba(0,0,0,.08) 70%, transparent); right: auto; left: 0; }
.book-object::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.16), transparent 35%, transparent 70%, rgba(0,0,0,.08));
}
.book-object--xl { width: clamp(220px, 26vw, 330px); }
.book-object--sm { width: 72px; }

.gen-cover {
    position: absolute; inset: 0; display: grid; padding: 9%;
    --c1: #0F1A30; --c2: #14213D; --fg: #EBDCC8;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.08), transparent 60%),
        linear-gradient(160deg, var(--c2), var(--c1));
    color: var(--fg);
}
.gen-cover--wine   { --c1: #8E3E1C; --c2: #B4532A; --fg: #F7EBDD; }
.gen-cover--forest { --c1: #3F5A43; --c2: #5F7A61; --fg: #F1EEDF; }
.gen-cover--sky    { --c1: #2B4C66; --c2: #3E6A8A; --fg: #EEF2F4; }
.gen-cover--sand   { --c1: #E7DCC8; --c2: #F2EADB; --fg: #2A2418; }
.gen-cover--plum   { --c1: #4F2A40; --c2: #6D3B57; --fg: #F3E6EC; }
.gen-cover-frame {
    border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
    outline: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); outline-offset: -6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 10px; padding: 12% 8%; overflow: hidden;
}
.gen-cover-mark { font-size: .9em; opacity: .8; }
.gen-cover-title {
    font-family: var(--font-display); font-weight: 700; line-height: 1.35;
    font-size: clamp(15px, 1.5vw, 22px); text-wrap: balance;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.book-object--xl .gen-cover-title { font-size: clamp(22px, 2.4vw, 32px); }
.book-object--sm .gen-cover-title { font-size: 9px; -webkit-line-clamp: 3; }
.book-object--sm .gen-cover-author, .book-object--sm .gen-cover-house, .book-object--sm .gen-cover-mark { display: none; }
.gen-cover-author { font-size: .78em; opacity: .85; }
.gen-cover-house { margin-top: auto; font-size: .62em; letter-spacing: .12em; opacity: .65; }

/* --------------------------------------------------------------------------
   6) كارت الكتاب
   -------------------------------------------------------------------------- */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: clamp(18px, 2.4vw, 34px) clamp(14px, 2vw, 28px); }

.book-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
    transition: none; transform: none;
}
.book-card:hover { transform: none; box-shadow: none; border: 0; }

.book-cover {
    position: relative; padding: 0; overflow: visible; background: transparent;
    --pastel: var(--surface-2);
    border-radius: var(--radius); padding: 22px 22px 0;
    background: linear-gradient(180deg, transparent 0 20%, var(--pastel) 20%);
    transition: background var(--dur-2) var(--ease);
}

.book-cover-link { position: static; display: block; perspective: 1200px; }
.book-cover .book-object { transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease); }
.book-card:hover .book-cover .book-object { transform: translateY(-8px) rotateY(-6deg); box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 28px -10px rgba(14,26,43,.4), 0 38px 60px -24px rgba(14,26,43,.5); }
html[dir="ltr"] .book-card:hover .book-cover .book-object { transform: translateY(-8px) rotateY(6deg); }
.book-cover img { position: static; transform: none !important; transition: opacity .4s ease; }
.book-cover::after { display: none; }
.book-cover-fallback { display: none; }

.book-badge {
    position: absolute; top: 28px; inset-inline-start: 8px; right: auto; z-index: 4;
    padding: 4px 10px; border-radius: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
    background: var(--ink); color: #fff; box-shadow: none; animation: none;
}
html[dir="rtl"] .book-badge { inset-inline-start: auto; inset-inline-end: 8px; }
.book-badge-hot { background: var(--terracotta); color: #fff; }
.book-badge-hot::before { display: none; }
.book-badge-sale { background: var(--danger); color: #fff; }
.book-badge-out { background: var(--text-faint); color: #fff; }
.book-type-chip {
    position: absolute; top: 28px; inset-inline-start: 26px; z-index: 4;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); color: var(--text); font-size: 12px; box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .book-type-chip { inset-inline-start: 26px; }

.book-quick-actions {
    position: absolute; inset-inline: 0; bottom: 14px; z-index: 5;
    display: flex; justify-content: center; gap: 8px;
    opacity: 0; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.book-card:hover .book-quick-actions, .book-card:focus-within .book-quick-actions { opacity: 1; transform: none; }
@media (hover: none) { .book-quick-actions { opacity: 1; transform: none; } }
.quick-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface-glass); backdrop-filter: blur(10px); color: var(--text);
    display: grid; place-items: center; font-size: 14px; cursor: pointer;
    box-shadow: var(--shadow); transition: var(--transition);
}
.quick-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: none; }
.quick-btn.is-active { color: var(--danger); background: var(--surface); }
.quick-btn.is-active:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

.book-info { padding: 16px 4px 0; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.book-category { color: var(--terracotta); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; margin: 0; }
.book-title {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.45; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0;
}
.book-title:hover { color: var(--gold); }
.book-author { color: var(--text-light); font-size: 13.5px; margin: 0; }
.book-author:hover { color: var(--text); }
.book-rating { font-size: 12.5px; color: var(--text-light); margin-top: 2px; }
.book-rating i { color: var(--gold); font-size: 11px; }
.book-rating span { color: var(--text-faint); }
.book-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.book-price { font-size: 1rem; color: var(--text); }

.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.book-card .price-now { font-size: 1.02rem; }
.price-was { color: var(--text-faint); font-size: .82em; font-weight: 500; }
.price-on-request { color: var(--text-light); font-size: .9em; font-weight: 600; }

.add-to-cart-btn {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: transparent; color: var(--text); border: 1px solid var(--border-strong);
    cursor: pointer; font-size: 13px; transition: var(--transition); flex: 0 0 auto;
}
.add-to-cart-btn:hover, .book-card:hover .add-to-cart-btn { background: var(--ink); border-color: var(--ink); color: #fff; transform: none; box-shadow: none; }
[data-theme="dark"] .add-to-cart-btn:hover, [data-theme="dark"] .book-card:hover .add-to-cart-btn { background: var(--terracotta); border-color: var(--terracotta); }

.add-to-cart-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.add-to-cart-btn.is-success { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }

.book-card.is-sold-out .book-object { filter: grayscale(.7); opacity: .8; }

/* الكاروسيل */
.drag-carousel { gap: clamp(16px, 2vw, 28px); padding-bottom: 8px; }
.drag-carousel > .book-card { flex: 0 0 clamp(180px, 20vw, 230px); }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong);
    background: transparent; color: var(--text); cursor: pointer; transition: var(--transition);
}
.carousel-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel-hint { display: none; }

/* --------------------------------------------------------------------------
   7) شريط الثقة — ثلاثة أعمدة مسطّرة
   -------------------------------------------------------------------------- */
.trust-strip { margin-top: 0; position: relative; z-index: 1; border-bottom: 1px solid var(--border); background: var(--surface); }
[data-theme="dark"] .trust-strip { background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.trust-item {
    background: none; border: 0; border-radius: 0; box-shadow: none; padding: 26px 28px; gap: 16px; transition: none;
}
.trust-item:hover { transform: none; box-shadow: none; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--border); }
.trust-item i {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
    color: var(--terracotta); font-size: 17px; margin: 0; background: var(--accent-light); box-shadow: none;
}
.trust-item:nth-child(2) i { color: var(--sage); background: rgba(95,122,97,.1); box-shadow: none; }
.trust-item:nth-child(3) i { color: var(--river); background: rgba(62,106,138,.1); box-shadow: none; }
.trust-item h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; margin-bottom: 2px; }
.trust-item .rich-content, .trust-item p { color: var(--text-light); font-size: 13.5px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   8) قسم الترشيحات — حبر ليلي مع لمسة طين محروق
   -------------------------------------------------------------------------- */
.editorial-books-section {
    position: relative; isolation: isolate; overflow: hidden; color: #EDE8DF;
    background: var(--ink);
}
.editorial-books-section::before {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; z-index: 0; pointer-events: none;
    background: var(--terracotta); opacity: 1; background-image: none;
}
.editorial-books-section .section-head { border-color: rgba(255,255,255,.12); }
.editorial-books-section .section-title { color: #fff; }
.editorial-books-section .eyebrow-ornament { color: var(--terracotta-2); }
.editorial-books-section .book-card { background: transparent; }
.editorial-books-section .book-cover { background: rgba(255,255,255,.05) !important; }
.editorial-books-section .book-title, .editorial-books-section .price-now { color: #fff; }
.editorial-books-section .book-card .price-now { -webkit-text-fill-color: #fff; }
.editorial-books-section .book-category { color: var(--terracotta-2); }
.editorial-books-section .book-author, .editorial-books-section .book-rating { color: rgba(237,232,223,.65); }
.editorial-books-section .book-footer { border-color: rgba(255,255,255,.12); }
.editorial-books-section .add-to-cart-btn { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3); }
.editorial-books-section .book-card:hover .add-to-cart-btn, .editorial-books-section .add-to-cart-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; box-shadow: none; }
.editorial-books-section .carousel-nav button { color: #fff; border-color: rgba(255,255,255,.3); background: transparent; box-shadow: none; }
.editorial-books-section .carousel-nav button:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* --------------------------------------------------------------------------
   9) العروض (سلايدر البنرات)
   -------------------------------------------------------------------------- */
.promo-section { padding-top: 0; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.promo-grid.is-single { grid-template-columns: 1fr; }
.promo { position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); isolation: isolate; }
.promo-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.promo-slide.active { opacity: 1; visibility: visible; }
.promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transform: scale(1.04); transition: transform 7s linear; }
.promo-slide.active .promo-bg { transform: scale(1); }
.promo-slide::after, .promo-card::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(10,18,32,.88), rgba(10,18,32,.25) 60%, rgba(10,18,32,.1));
}
.promo-content { padding: clamp(24px, 4vw, 48px); padding-bottom: 76px; color: #fff; max-width: 640px; }
.promo-title { font-size: var(--fs-2xl); color: #fff; margin-bottom: 10px; }
.promo-desc { color: rgba(255,255,255,.82); margin-bottom: 20px; }
.promo-desc p { margin: 0; }
.promo-controls {
    position: absolute; bottom: 20px; inset-inline-start: clamp(24px, 4vw, 48px); z-index: 3;
    display: flex; align-items: center; gap: 12px;
}
.promo-controls > button {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
}
.promo-controls > button:hover { background: #fff; color: var(--ink); }
.promo-dots { display: flex; gap: 6px; }
.promo-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: width var(--dur-2) var(--ease), background var(--dur-2); }
.promo-dots button[aria-current="true"] { width: 26px; background: #fff; }
.promo-side { display: grid; gap: 18px; }
.promo-card {
    position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
    min-height: 181px; display: flex; align-items: flex-end; background: var(--ink-2); color: #fff;
}
.promo-card .promo-content { padding: 22px; }
.promo-card h3 { color: #fff; font-size: var(--fs-xl); }
.promo-card .rich-content { color: rgba(255,255,255,.8); font-size: 14px; }
.promo-card .promo-bg { transition: transform var(--dur-3) var(--ease); transform: none; }
a.promo-card:hover .promo-bg { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   10) الأقسام — فهرس تحريري بأرقام كبيرة وشريط لوني لكل قسم
   -------------------------------------------------------------------------- */
.categories-stage { background: var(--bg-color); }
.categories-stage::before { content: none; }
.categories-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto;
    gap: 0; text-align: start; border-top: 1px solid var(--text);
}
.category-item, .categories-stage .category-item {
    --swatch: var(--terracotta);
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 190px;
    padding: 24px 22px 22px; border: 0; border-radius: 0; color: var(--text);
    background: transparent; box-shadow: none;
    border-bottom: 1px solid var(--border);
    transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.category-item + .category-item { border-inline-start: 1px solid var(--border); }
.category-item:nth-child(4n+1) { border-inline-start: 0; }
.category-item:nth-child(6n+1) { --swatch: var(--terracotta); grid-column: auto; grid-row: auto; }
.category-item:nth-child(6n+2) { --swatch: var(--sage); }
.category-item:nth-child(6n+3) { --swatch: var(--river); }
.category-item:nth-child(6n+4) { --swatch: var(--ochre); }
.category-item:nth-child(6n+5) { --swatch: var(--plum); grid-column: auto; }
.category-item:nth-child(6n+6) { --swatch: var(--slate); }
.category-item::before {
    /* شريط اللون — يتمدّد ليملأ البطاقة عند المرور */
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; width: auto; border-radius: 0;
    background: var(--swatch); z-index: -1; transform: none; transition: height .45s var(--ease);
}
.category-item::after { content: none; }
.category-item:hover { transform: none; box-shadow: none; background: transparent; color: #fff; }
.category-item:hover::before { height: 100%; transform: none; }
.category-index { position: static; font-family: var(--font-display); font-weight: 700; color: var(--text-faint); font-size: 40px; line-height: 1; transition: color var(--dur-2); }
.category-item i {
    position: absolute; top: 26px; inset-inline-end: 22px; margin: 0;
    width: auto; height: auto; border-radius: 0; background: none; backdrop-filter: none;
    color: var(--swatch); font-size: 20px; transition: color var(--dur-2), transform var(--dur-2) var(--ease);
}
.category-item:nth-child(6n+1) i { width: auto; height: auto; font-size: 20px; border-radius: 0; }
.category-item h3 { align-self: end; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: inherit; line-height: 1.3; }
.category-item:nth-child(6n+1) h3 { font-size: 1.45rem; }
.category-count { color: var(--text-light); font-size: 13px; font-weight: 600; transition: color var(--dur-2); }
.category-item:hover .category-index, .category-item:hover .category-count, .category-item:hover i { color: rgba(255,255,255,.85); }
.category-item:hover i { transform: translateY(-2px); }
@media (max-width: 900px) {
    .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-item:nth-child(4n+1) { border-inline-start: 1px solid var(--border); }
    .category-item:nth-child(2n+1) { border-inline-start: 0; }
    .category-item { min-height: 150px; }
}

/* --------------------------------------------------------------------------
   11) شريط المؤلفين
   -------------------------------------------------------------------------- */
.authors-ribbon { padding: 40px 0 56px; border-block: 1px solid var(--border); background: var(--bg-color); }
.authors-ribbon-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { gap: 28px; align-items: center; }
.marquee-author {
    display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
    font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); color: var(--text);
}
.marquee-author:hover { color: var(--gold); }
.avatar-initial {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface-2); color: var(--terracotta); font-size: 18px; border: 1px solid var(--border-strong); box-shadow: none;
}
.marquee-sep { color: var(--terracotta); font-size: 12px; }

/* --------------------------------------------------------------------------
   12) آراء القرّاء — اقتباسات بخط العرض
   -------------------------------------------------------------------------- */
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--text); }
.quote-card {
    position: relative; margin: 0; padding: 34px 28px 26px; border-radius: 0;
    background: none; border: 0; box-shadow: none;
    display: flex; flex-direction: column; gap: 16px; overflow: visible;
}
.quote-card + .quote-card { border-inline-start: 1px solid var(--border); }
.quote-card::after { content: none; }
.quote-card::before {
    content: "”"; position: static; display: block; height: 40px;
    font-family: var(--font-display); font-size: 80px; line-height: 1; color: var(--terracotta); opacity: 1;
    background: none; -webkit-background-clip: initial; background-clip: initial;
}
.quote-stars { color: var(--ochre); font-size: 12px; letter-spacing: 2px; }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.85; color: var(--text); flex: 1; }
.quote-card figcaption { display: grid; gap: 2px; font-size: 13.5px; color: var(--text-light); border-top: 0; padding-top: 0; }
.quote-card figcaption strong { color: var(--text); font-size: 15px; }
.quote-card figcaption a { color: var(--terracotta); font-weight: 600; }
.verified { color: var(--success); font-size: 12px; font-weight: 700; }

/* --------------------------------------------------------------------------
   13) ترويسة الصفحات الداخلية + مسار التنقل
   -------------------------------------------------------------------------- */
.page-banner-creative {
    position: relative; isolation: isolate; overflow: hidden; color: #fff !important;
    background:
        linear-gradient(90deg, rgba(20,33,61,.96) 0%, rgba(20,33,61,.86) 60%, rgba(20,33,61,.7) 100%),
        var(--cms-page-header-image, url('../images/editorial-home-v2.webp')) center / cover no-repeat !important;
}
.page-banner-creative::before {
    content: ""; position: absolute; inset-inline-start: 0; inset-block: 0; width: 6px; z-index: 1; background: var(--terracotta);
}
.page-banner-creative::after { content: none; }
.page-banner-creative h1 { font-family: var(--font-display); color: #fff; font-weight: 700; text-shadow: none; }
.page-banner-creative p { color: rgba(237,232,223,.8); }

.breadcrumbs { padding: 14px 0; font-size: 13px; color: var(--text-light); border-bottom: 1px solid var(--border); background: var(--bg-color); }
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs a { color: var(--text-light); font-weight: 500; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs i { font-size: 10px; color: var(--text-faint); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 700; }

/* --------------------------------------------------------------------------
   14) صفحة الكتاب — تحسينات
   -------------------------------------------------------------------------- */
.book-hero-info h1 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; }
.book-hero-cover .book-object { width: min(320px, 100%); margin-inline: auto; }
.book-hero-cover:hover .book-object { transform: rotateY(-6deg) translateY(-6px); }
.price-now { font-variant-numeric: tabular-nums; }
.book-hero-price .price-now { font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   15) الحالة الفارغة
   -------------------------------------------------------------------------- */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state-icon { position: relative; display: inline-grid; place-items: center; width: 140px; height: 70px; margin-bottom: 14px; }
.empty-state-icon .empty-cloud { position: absolute; inset: 0; width: 100%; color: var(--accent-light); fill: currentColor; }
.empty-state-icon i { position: relative; font-size: 24px; color: var(--gold); margin-top: 14px; }
.empty-state-icon .empty-cloud { color: var(--surface-2) !important; }
.empty-state > i { display: none; }
.empty-state h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin-bottom: 6px; }
.empty-state p { color: var(--text-light); margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   16) النشرة والفوتر
   -------------------------------------------------------------------------- */
.newsletter-card {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--terracotta) !important;
    border-radius: var(--radius-lg) !important; border: 0; box-shadow: none;
}
.newsletter-card::after {
    content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; pointer-events: none; z-index: -1;
}
.newsletter-glow { display: none; }
.newsletter-text h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: #fff; }
.newsletter-text h3 i { display: none; }
.newsletter-text p { color: rgba(255,255,255,.88); }
.newsletter-form input {
    border-radius: var(--radius-sm) !important; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.4) !important; color: #fff !important;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.75) !important; }
.newsletter-form .btn { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.newsletter-form .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.footer { position: relative; background: #0F1A30; color: rgba(237,232,223,.7); }
.footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--terracotta); }
.footer-logo { font-family: var(--font-display); font-weight: 700; }
.footer-links h4 { color: #fff; font-family: var(--font-body); font-weight: 800; letter-spacing: .02em; }
.footer-links h4::after { background: var(--terracotta); }
.footer-links ul li a:hover { color: var(--terracotta-2); }
.footer-social a { transition: var(--transition); }
.footer-social a:hover { transform: none; background: var(--terracotta); color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.08); color: rgba(237,232,223,.5); }

/* --------------------------------------------------------------------------
   17) من نحن
   -------------------------------------------------------------------------- */
.about-hero { position: relative; padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 80px); text-align: center; overflow: hidden; isolation: isolate; }
.about-hero .cloud-ornament { position: absolute; color: var(--cloud); opacity: .14; z-index: -1; }
.about-hero .c1 { width: 300px; top: 10%; inset-inline-start: -40px; }
.about-hero .c2 { width: 240px; bottom: 0; inset-inline-end: 4%; }
.about-logo { max-width: min(240px, 70vw); max-height: 110px; object-fit: contain; margin: 0 auto 22px; display: block; }
.about-hero h1 { font-size: var(--fs-3xl); margin: 6px 0 16px; }
.about-hero p { color: var(--text-light); font-size: var(--fs-lg); max-width: 60ch; margin: 0 auto; }
.about-body { max-width: 780px; margin: 0 auto; padding-bottom: 72px; }
.about-body .rich-content { font-size: 1.1rem; line-height: 2.05; }
.about-body .rich-content > p:first-child::first-letter {
    font-family: var(--font-display); color: var(--gold); font-size: 3.4em; float: right; line-height: .9; margin-inline-end: 10px; margin-top: 8px;
}
html[dir="ltr"] .about-body .rich-content > p:first-child::first-letter { float: left; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); margin-bottom: 80px; }
.value-item { padding: 30px 26px; }
.value-item + .value-item { border-inline-start: 1px solid var(--border); }
.value-item i { color: var(--terracotta); font-size: 22px; margin-bottom: 14px; }
.value-item:nth-child(2) i { color: var(--sage); }
.value-item:nth-child(3) i { color: var(--river); }
.value-item:nth-child(4) i { color: var(--ochre); }
.value-item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.value-item p { color: var(--text-light); font-size: 14.5px; }
.about-cta { text-align: center; padding: 56px 24px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; margin-bottom: 80px; position: relative; overflow: hidden; isolation: isolate; }
.about-cta h2 { color: var(--paper); font-size: var(--fs-2xl); margin-bottom: 10px; }
.about-cta p { color: rgba(246,241,231,.7); margin-bottom: 24px; }
.about-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.about-cta .btn-outline { color: var(--paper); border-color: rgba(255,255,255,.3); }
.about-cta .btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }

/* --------------------------------------------------------------------------
   18) الأسئلة الشائعة
   -------------------------------------------------------------------------- */
.faq-wrap { max-width: 860px; margin: 0 auto; padding: 56px 0 88px; }
.faq-group-title { font-size: var(--fs-xl); margin: 36px 0 12px; display: flex; align-items: center; gap: 10px; }
.faq-group-title i { color: var(--gold); font-size: .8em; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
    list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--border-strong); background: transparent; color: var(--terracotta); font-size: 18px; transition: transform var(--dur-2) var(--ease), background var(--dur-2);
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-list summary:hover { color: var(--gold); }
.faq-answer { padding: 0 4px 22px; color: var(--text-light); line-height: 1.95; }
.faq-contact { margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.faq-contact h3 { font-size: var(--fs-xl); }
.faq-contact p { color: var(--text-light); }

/* --------------------------------------------------------------------------
   19) الاستجابة
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-ed-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-ed-title, .hero-ed-lead { margin-inline: auto; }
    .hero-ed-actions, .hero-ed-stats { justify-content: center; margin-inline: auto; }
    .hero-ed-copy .eyebrow-ornament { justify-content: center; }
    .hero-ed-feature { order: -1; }
    .book-object--xl { width: clamp(180px, 46vw, 260px); }
    .promo-grid { grid-template-columns: 1fr; }
    .promo-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .trust-strip { margin-top: -36px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { padding: 18px 20px; }
    .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--border); }
    .section-head { align-items: center; }
    .promo { min-height: 320px; }
    .promo-side { grid-template-columns: 1fr; }
    .book-cover { padding: 12px 12px 0; }
    .book-badge { top: 20px; }
    .value-item + .value-item { border-inline-start: 0; border-top: 1px solid var(--border); }
    body::before { display: none; }
}

/* --------------------------------------------------------------------------
   20) تقليل الحركة
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .hero-ed-cloud, .promo-bg { animation: none !important; transition: none !important; }
    .book-card:hover .book-cover .book-object, .hero-ed-book:hover .book-object { transform: none; }
}
.reduced-motion .hero-ed-cloud { animation: none; }

/* صفحة الكتاب: خلفية الرأس عند غياب الغلاف */
.book-immersive-bg--plain { background: radial-gradient(40rem 20rem at 80% 0%, rgba(201,165,92,.2), transparent 60%), linear-gradient(160deg, var(--ink-2), var(--ink)); filter: none !important; }
.book-hero-cover .book-type-tag { z-index: 3; }

/* صفحة الكتاب: صندوق الشراء على الخلفية الداكنة */
.book-hero-buy .btn:not(.btn-outline) { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.book-hero-buy .btn:not(.btn-outline):hover { background: var(--gold-3); border-color: var(--gold-3); }
.book-hero-buy .btn-outline { color: var(--paper); border-color: rgba(255,255,255,.28); }
.book-hero-buy .btn-outline:hover, .book-hero-buy .btn-outline.is-active { background: rgba(255,255,255,.1); color: #fff; border-color: var(--gold-2); }
.book-hero-buy .btn-outline.is-active i { color: #E9877C; }

/* بحث ترويسة الصفحات */
.page-banner-creative .books-banner-search-btn { background: var(--gold-2) !important; color: var(--ink) !important; border: 0; }
.page-banner-creative .books-banner-search-input { border-radius: var(--radius-sm) !important; }
.page-banner-creative .container::after { display: none; }

/* صفحة 404 */
.error-page { text-align: center; padding: clamp(56px, 9vw, 120px) 0 64px; }
.error-cloud { width: 180px; margin: 0 auto -30px; color: var(--cloud); opacity: .35; }
.error-cloud .cloud-ornament { width: 100%; }
.error-code { font-family: var(--font-display); font-size: clamp(90px, 14vw, 160px); line-height: 1; color: transparent; background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; }
.error-title { font-size: var(--fs-2xl); margin: 14px 0 10px; }
.error-text { color: var(--text-light); max-width: 520px; margin: 0 auto 30px; line-height: 1.9; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) { .trust-grid.container { width: auto; margin-inline: 16px; padding: 0; } }
@media (min-width: 769px) { .trust-grid.container { padding: 0; width: calc(100% - 48px); } }

/* التقييمات */
.card-surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.rs-score { font-family: var(--font-display); color: var(--text); font-weight: 700; }
.rs-stars, .review-stars { color: var(--gold); }
.rs-bar > span { background: var(--gold); }
.review-item { border-radius: var(--radius); }
.review-item:hover { transform: none; }
.review-avatar { background: var(--accent-light); color: var(--gold); font-family: var(--font-display); border: 1px solid var(--border-strong); }
.verified-badge { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.star-input { border: 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 16px; }
html[dir="rtl"] .star-input { flex-direction: row-reverse; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 24px; color: var(--border-strong); cursor: pointer; transition: color var(--dur-1), transform var(--dur-1); }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.form-note { color: var(--text-faint); font-size: 12.5px; margin-top: 12px; }
@media (max-width: 860px) { .reviews-layout { grid-template-columns: 1fr; } .reviews-summary { position: static; } }


/* صفحات الحساب والطلب — بدل الأنماط المضمّنة */

/* حسابي (profile.php) */
.profile-banner { padding-block: clamp(40px, 6vw, 60px); }
.profile-banner-title { font-size: var(--fs-3xl); margin-block-end: var(--sp-2); font-weight: 900; text-shadow: 0 4px 6px rgba(0, 0, 0, .2); }
.profile-banner-greeting { font-size: var(--fs-lg); opacity: .9; }
.profile-page { padding-block: clamp(36px, 6vw, 60px); }
.profile-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.profile-content { min-width: 0; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.profile-identity { padding: var(--sp-6) var(--sp-5); text-align: center; border-block-end: 1px solid var(--border); }
.profile-initial { width: 80px; height: 80px; margin: 0 auto var(--sp-4); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-foil); color: #0E1A2B; font-family: var(--font-display); font-size: 32px; font-weight: 700; box-shadow: 0 0 0 4px var(--accent-light); }
.profile-name { margin-block-end: var(--sp-1); font-family: var(--font-display); font-size: var(--fs-lg); }
.profile-email { color: var(--text-light); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.profile-nav { padding-block: var(--sp-2); }
.profile-nav-link { display: flex; align-items: center; gap: var(--sp-3); padding: 14px var(--sp-5); color: var(--text); border-inline-start: 3px solid transparent; transition: var(--transition); }
.profile-nav-link i { width: 20px; text-align: center; color: var(--text-faint); transition: color var(--dur-1) var(--ease); }
.profile-nav-link:hover { background: var(--surface-2); color: var(--gold); }
.profile-nav-link:hover i { color: var(--gold); }
.profile-nav-link.is-active { background: var(--accent-light); color: var(--gold); font-weight: 700; border-inline-start-color: var(--gold); }
.profile-nav-link.is-active i { color: var(--gold); }
.profile-nav-link--danger, .profile-nav-link--danger i { color: var(--danger); }
.profile-nav-link--danger:hover, .profile-nav-link--danger:hover i { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.profile-nav-count { margin-inline-start: auto; background: var(--gold); color: #0E1A2B; border-radius: var(--radius-pill); padding: 1px 8px; font-size: 11px; font-weight: 800; }
.profile-alert { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--radius-sm); margin-block-end: var(--sp-5); border: 1px solid transparent; }
.profile-alert--success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.profile-alert--error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.profile-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.profile-panel-title { font-family: var(--font-display); font-size: var(--fs-xl); margin-block-end: var(--sp-5); padding-block-end: var(--sp-4); border-block-end: 1px solid var(--border); }
.profile-panel-lead { color: var(--text-light); line-height: 1.9; margin-block-end: var(--sp-6); }
.profile-heart-icon { color: var(--danger); }
.profile-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.profile-field-last { margin-block-end: var(--sp-6); }
.form-field .profile-input-locked { background: var(--surface-2); color: var(--text-light); cursor: not-allowed; }
.profile-submit { padding-inline: var(--sp-6); }
.profile-empty { text-align: center; padding-block: var(--sp-7); color: var(--text-light); }
.profile-empty-icon { display: block; font-size: 48px; margin-block-end: var(--sp-4); color: var(--border-strong); }
.profile-empty-cta { margin-block-start: var(--sp-4); }
.profile-table-wrap { overflow-x: auto; }
.profile-orders-table { width: 100%; border-collapse: collapse; }
.profile-orders-table th { text-align: start; padding: var(--sp-4) var(--sp-3); border-block-end: 2px solid var(--border); color: var(--text-light); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.profile-orders-table td { padding: var(--sp-4) var(--sp-3); border-block-end: 1px solid var(--border); vertical-align: middle; }
.profile-orders-table tbody tr:hover { background: var(--surface-2); }
.profile-cell-strong { font-weight: 700; }
.profile-cell-muted { color: var(--text-light); }
.profile-cell-actions { white-space: nowrap; }
.profile-cell-actions .btn + .btn { margin-inline-start: var(--sp-1); }
.profile-status { --status-color: var(--text-light); display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; color: var(--status-color); background: color-mix(in srgb, var(--status-color) 14%, transparent); }
.profile-status--pending { --status-color: var(--warning); }
.profile-status--processing { --status-color: var(--cloud); }
.profile-status--completed { --status-color: var(--success); }
.profile-status--cancelled { --status-color: var(--danger); }
.profile-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-5); }
.profile-library-item { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: var(--transition); }
.profile-library-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.profile-library-badge { position: absolute; top: var(--sp-2); inset-inline-end: var(--sp-2); z-index: 2; background: var(--gold); color: #0E1A2B; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.profile-library-cover { aspect-ratio: 2 / 3; background: var(--surface-2); }
.profile-library-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-library-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--border-strong); }
.profile-library-body { padding: var(--sp-4); }
.profile-library-title { font-size: var(--fs-sm); margin-block-end: var(--sp-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-library-download { display: block; text-align: center; padding: var(--sp-2); font-size: var(--fs-sm); }
@media (max-width: 860px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-nav { display: flex; overflow-x: auto; padding: 0; }
    .profile-nav-link { flex: 0 0 auto; border-inline-start: 0; border-block-end: 3px solid transparent; padding: 14px var(--sp-4); }
    .profile-nav-link.is-active { border-block-end-color: var(--gold); }
}
@media (max-width: 600px) { .profile-form-row { grid-template-columns: 1fr; gap: 0; } }

/* صفحة تعذّر التحميل (download.php) */
.download-fail-page { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); background: var(--bg-color); color: var(--text); font-family: var(--font-body); text-align: center; }
.download-fail-card { max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-7) var(--sp-6); }
.download-fail-title { font-family: var(--font-display); color: var(--gold); font-size: var(--fs-xl); margin-block-end: var(--sp-3); }
.download-fail-text { color: var(--text-light); line-height: 1.9; margin-block-end: var(--sp-5); }
.download-fail-link { color: var(--gold); font-weight: 700; }
.download-fail-link:hover { text-decoration: underline; }

/* — اتصل بنا — */
.contact-banner { text-align: center; }
.contact-banner-logo { max-height: 120px; margin-block-end: var(--sp-5); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.contact-banner-title { font-size: var(--fs-3xl); margin-block-end: var(--sp-5); font-weight: 900; text-shadow: 0 4px 6px rgba(0, 0, 0, .2); }
.contact-banner-intro { font-size: var(--fs-lg); opacity: .9; max-width: 600px; margin-inline: auto; text-shadow: 0 2px 4px rgba(0, 0, 0, .1); }
.contact-page { padding-block: clamp(var(--sp-7), 6vw, 60px); }
.contact-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(var(--sp-5), 4vw, 40px); align-items: start; }
.contact-heading { font-family: var(--font-display); color: var(--text); font-size: var(--fs-xl); font-weight: 700; margin-block-end: var(--sp-6); }
.contact-form-title { margin-block-end: var(--sp-5); }
.contact-info-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-info-item { display: flex; align-items: flex-start; gap: var(--sp-4); }
.contact-info-icon { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--accent-light); color: var(--gold); border: 1px solid var(--border); font-size: 18px; }
.contact-info-label { margin: 0 0 var(--sp-1); color: var(--text); font-size: var(--fs-md); }
.contact-info-value { margin: 0; color: var(--text-light); line-height: 1.7; }
.contact-info-value a { color: inherit; }
.contact-info-value a:hover { color: var(--gold); }
.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(var(--sp-5), 4vw, 40px); box-shadow: var(--shadow-lg); }
.contact-alert { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4); border-radius: var(--radius); margin-block-end: var(--sp-5); border: 1px solid transparent; line-height: 1.7; }
.contact-alert > i { margin-block-start: 4px; }
.contact-alert--success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.contact-alert--error { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.contact-input { padding: 14px var(--sp-4); border-radius: var(--radius-sm); background: var(--surface-2); }
.contact-textarea { resize: vertical; min-height: 140px; }
.contact-check { display: flex; align-items: center; gap: var(--sp-3); margin-block-end: var(--sp-5); }
.contact-check input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.contact-check label { font-weight: 600; color: var(--text); cursor: pointer; }
.contact-whatsapp-icon { color: #25D366; }
.contact-honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-submit { width: 100%; padding: 15px; font-size: var(--fs-md); justify-content: center; }

/* — السلة وإتمام الطلب — */
.cartpage-banner-title { font-size: clamp(28px, 5vw, 50px); margin-block-end: var(--sp-3); }
.cartpage-banner-lead { font-size: var(--fs-lg); opacity: .92; }
.cartpage-wrap { padding-block: clamp(var(--sp-6), 5vw, var(--sp-7)); }
.cartpage-lines { display: grid; gap: var(--sp-4); align-content: start; }
.cartpage-single-copy { color: var(--text-light); font-size: var(--fs-sm); }
.cartpage-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-block-start: var(--sp-2); }
.cartpage-clear-btn { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.cartpage-clear-btn:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); border-color: var(--danger); }
html[dir="ltr"] .cartpage-back-icon { transform: scaleX(-1); }
.cartpage-ship-note { font-size: var(--fs-sm); font-weight: 600; color: var(--text-light); }
.cartpage-coupon { margin-block-start: var(--sp-5); padding-block-start: var(--sp-4); border-block-start: 1px solid var(--border); }
.cartpage-coupon-active { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.cartpage-coupon-form { display: flex; gap: var(--sp-2); }
.cartpage-coupon-input {
    flex: 1; min-width: 0; padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--text); font: inherit;
    transition: var(--transition);
}
.cartpage-coupon-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-light); }

.checkout-panel-title {
    display: flex; align-items: center; gap: var(--sp-2);
    font-family: var(--font-display); font-size: var(--fs-xl);
    margin-block-end: var(--sp-5); padding-block-end: var(--sp-3);
    border-block-end: 1px solid var(--border);
}
.checkout-panel-title--spaced { margin-block-start: var(--sp-6); }
.checkout-accent-icon { color: var(--gold); }
.checkout-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 600px) { .checkout-field-pair { grid-template-columns: 1fr; gap: 0; } }
.checkout-mini-list { display: grid; gap: var(--sp-3); margin-block-end: var(--sp-4); max-height: 260px; overflow-y: auto; padding-inline-end: var(--sp-1); }
.checkout-mini-item { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); }
.checkout-mini-qty {
    flex: 0 0 auto; display: grid; place-items: center;
    inline-size: 26px; block-size: 26px; border-radius: var(--radius-sm);
    background: var(--accent-light); color: var(--gold); border: 1px solid var(--border-strong);
    font-weight: 800; font-size: var(--fs-xs);
}
.checkout-mini-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-muted { color: var(--text-light); font-weight: 500; }
.checkout-free { color: var(--success); }
.checkout-cta { inline-size: 100%; justify-content: center; font-size: var(--fs-lg); padding: var(--sp-4); margin-block-start: var(--sp-5); }
.checkout-privacy { text-align: center; font-size: var(--fs-xs); color: var(--text-light); margin-block-start: var(--sp-3); line-height: 1.8; }

.checkout-success { text-align: center; max-width: 700px; margin-inline: auto; padding: clamp(var(--sp-6), 6vw, var(--sp-7)) clamp(var(--sp-4), 4vw, var(--sp-6)); }
.checkout-success-icon { font-size: 72px; line-height: 1; color: var(--success); margin-block-end: var(--sp-4); }
.checkout-success-title { font-family: var(--font-display); font-size: var(--fs-2xl); margin-block-end: var(--sp-2); }
.checkout-success-text { color: var(--text-light); margin-block-end: var(--sp-5); line-height: 1.9; }
.checkout-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.checkout-downloads { text-align: start; margin-block-end: var(--sp-5); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.checkout-downloads-title { display: flex; align-items: center; gap: var(--sp-2); margin-block-end: var(--sp-3); }
.checkout-downloads-title i { color: var(--gold); }
.checkout-downloads-note { font-size: var(--fs-sm); color: var(--text-light); margin-block-end: var(--sp-4); }
.checkout-downloads-list { display: grid; gap: var(--sp-3); list-style: none; padding: 0; margin: 0; }
.checkout-downloads-item { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding-block-end: var(--sp-3); border-block-end: 1px dashed var(--border); }
.checkout-downloads-item:last-child { border-block-end: 0; padding-block-end: 0; }

.sidecart-empty { padding: var(--sp-7) var(--sp-5); }

/* — الفاتورة: ورقة مطبوعة بألوان ثابتة في الوضعين — */
.invoice-denied { padding-block: var(--sp-8); }
.invoice-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); padding-block: var(--sp-5); }
.invoice-sheet { background: #FFFDF8; color: #17202E; border: 1px solid #E6DDCB; }
.invoice-brand { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #0E1A2B; line-height: 1.3; }
.invoice-brand span { color: var(--gold); }
.invoice-meta { color: #5E6878; font-size: 13px; line-height: 1.8; }
.invoice-head-end { text-align: end; }
.invoice-doc-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #0E1A2B; }
.invoice-status {
    display: inline-block; margin-block-start: var(--sp-2); padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-pill); background: rgba(176, 138, 62, .12); color: #8C6A2A;
    border: 1px solid #E6D3A3; font-size: 12px; font-weight: 700;
}
.invoice-customer { background: #FBF7EF; border: 1px solid #EFE6D4; border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-block-end: var(--sp-2); }
.invoice-customer-label { display: block; margin-block-end: var(--sp-2); color: #0E1A2B; }
.invoice-customer-body { color: #3A4556; font-size: 14px; line-height: 1.9; }
.invoice-table th, .invoice-table td { text-align: start; border-bottom-color: #EFE6D4; }
.invoice-table th { background: #FBF7EF; color: #0E1A2B; }
.invoice-table td:last-child, .invoice-table th:last-child { text-align: end; }
.invoice-table .invoice-cell-center { text-align: center; }
.invoice-totals { max-width: 320px; margin-inline-start: auto; }
.invoice-total-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-2); color: #5E6878; }
.invoice-total-row--discount { color: var(--success); }
.invoice-total-row--grand { padding-block: var(--sp-3); margin-block-start: var(--sp-1); border-block-start: 2px solid #E6DDCB; font-size: 19px; font-weight: 800; color: #0E1A2B; }
.invoice-grand-amount { color: var(--gold); font-family: var(--font-display); }
.invoice-thanks { text-align: center; color: #5E6878; font-size: 12.5px; margin-block-start: var(--sp-6); padding-block-start: var(--sp-4); border-block-start: 1px dashed #E6DDCB; }
@media print {
    .top-bar, .breadcrumbs, .search-dropdown-overlay, .quick-view-overlay, #toast-container { display: none !important; }
    .invoice-sheet { border: 0; background: #fff; color: #000; }
    .invoice-customer, .invoice-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* صفحات الدخول والتسجيل واستعادة كلمة المرور */
.auth-banner { padding-block: 56px; }
.auth-title { font-size: clamp(28px, 5vw, 44px); font-weight: 900; margin-block-end: var(--sp-2); }
.auth-lead { opacity: .9; font-size: var(--fs-lg); }
.auth-shell { display: flex; justify-content: center; padding-block: 56px; }
.auth-card {
    width: 100%; max-width: 480px; padding: clamp(24px, 4vw, 36px);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.auth-card--wide { max-width: 520px; }
.auth-forgot-row { text-align: end; margin-block: -6px var(--sp-4); }
.auth-link { color: var(--accent); font-weight: 800; transition: var(--transition); }
.auth-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.auth-link--sm { font-size: var(--fs-sm); font-weight: 700; }
.auth-submit { width: 100%; justify-content: center; font-size: var(--fs-lg); padding: 15px; }
.auth-block-btn { width: 100%; justify-content: center; }
.auth-footer-note { text-align: center; color: var(--text-light); margin-block-start: 22px; }
.auth-hint { display: block; color: var(--text-light); font-size: 12.5px; }
.auth-hint.is-ok { color: var(--success); }
.auth-hint.is-bad { color: var(--danger); }

/* صفحة حالة الطلب */
.track-title { font-size: clamp(28px, 5vw, 48px); font-weight: 900; margin-block-end: 10px; }
.track-lead { opacity: .9; }
.track-shell { max-width: 860px; padding-block: 50px; }
.track-code-input {
    flex: 1; min-width: 220px; padding: 15px 18px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-color); color: var(--text);
    font-family: inherit; font-size: var(--fs-md); font-weight: 700;
    letter-spacing: 2px; text-align: center;
    transition: var(--transition);
}
.track-code-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-light); }
.track-alert { margin-block-start: 22px; }
.track-result { margin-block-start: 26px; }
.track-meta {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
    padding-block-end: 18px; margin-block-end: 10px; border-block-end: 1px solid var(--border);
}
.track-meta-end { text-align: end; }
.track-meta-label { color: var(--text-light); font-size: 13px; }
.track-code { font-size: 21px; color: var(--accent); letter-spacing: 2px; font-family: var(--font-display); }
.track-items { display: grid; gap: 14px; margin-block-start: 26px; }
.track-item { display: flex; align-items: center; gap: 14px; padding-block-end: 14px; border-block-end: 1px solid var(--border); }
.track-item-cover {
    flex: 0 0 auto; width: 52px; height: 70px; overflow: hidden;
    border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.track-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-item-body { flex: 1; min-width: 0; }
.track-item-price { color: var(--accent); white-space: nowrap; }
.track-total { margin-block-start: 10px; }
.track-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 22px; }

/* الكتالوج (books.php) */
.filters-bar .catalog-price-input { inline-size: 110px; }
.filter-chip.catalog-chip-clear { background: transparent; }
.catalog-page-info { text-align: center; color: var(--text-light); margin-block-start: var(--sp-3); font-size: var(--fs-sm); }

/* المؤلفون (authors.php / author.php) */
.authors-banner-title { font-size: clamp(28px, 5vw, 48px); font-weight: 900; margin-block-end: 10px; }
.authors-banner-lead { opacity: .9; font-size: var(--fs-lg); max-inline-size: 600px; margin-inline: auto; margin-block: 0; }
.authors-search-form { margin-block-start: 22px; }
.authors-listing { padding-block: 40px 60px; }
.author-initial.author-initial--hero { font-size: 64px; }
.author-books-section { padding-block: 20px 60px; }
.author-books-grid { margin-block-start: 30px; }

/* ظهور عنوان الهيرو (بدل التقسيم كلمة كلمة الذي يتعارض مع النص المتدرّج) */
.hero-ed-title { animation: hero-title-in .9s var(--ease) both; }
@keyframes hero-title-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .hero-ed-title { animation: none; } }

/* كاروسيل بلا شريط تمرير ظاهر (التنقل بالأزرار والسحب) */
.drag-carousel { scrollbar-width: none; }
.drag-carousel::-webkit-scrollbar { display: none; }

/* صفحة الكتاب — هوية v4 */
.book-immersive-header {
    background:
        var(--ink) !important;
}
.book-immersive-header::after { background: linear-gradient(180deg, rgba(20,33,61,.72), rgba(20,33,61,.92)) !important; }
.book-immersive-bg--plain { display: none; }
.book-hero-cat { background: var(--terracotta) !important; color: #fff !important; border: 0 !important; border-radius: 2px !important; }
.book-hero-author i, .bhm-item i { color: var(--terracotta-2) !important; }
.bhm-item { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.14) !important; }
.book-hero-buy { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.18) !important; }
.book-hero-price .price-now { color: #fff !important; }
.book-hero-buy .btn:not(.btn-outline) { background: var(--terracotta) !important; border-color: var(--terracotta) !important; color: #fff !important; box-shadow: none; }
.book-hero-buy .btn-outline { background: rgba(255,255,255,.1) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3) !important; }
.book-hero-buy .btn-outline:hover, .book-hero-buy .btn-outline.is-active { background: rgba(255,255,255,.2) !important; }
.book-hero-buy .btn-outline.is-active i { color: #FDA4AF; }
.book-assurances i { color: var(--terracotta-2) !important; }
@media (max-width: 992px) { .hero-ed-lead { border-inline-start: 0; padding-inline-start: 0; } .hero-ed-stats { margin-inline: auto; justify-content: center; } }

/* ==========================================================================
   21) تخطيط المتجر — هيدر بشريط تسوّق، سلايدر بعرض الشاشة، شريط خدمات،
       شبكة كتب بكروت بيضاء — بهوية الدار
   ========================================================================== */

/* — الهيدر — */
.header-cta { min-height: 42px; padding: 10px 20px; font-size: 14px; }
.nav-actions .cart-icon { display: none; }

.shop-bar { background: var(--bg-color); border-bottom: 1px solid var(--border); position: relative; z-index: 990; }
.shop-bar-inner { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 12px; }

.cat-menu { position: relative; }
.cat-menu-btn {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
    height: 48px; padding: 0 18px; background: var(--surface-2); color: var(--text);
    border-radius: var(--radius-sm); font-weight: 800; font-size: 14.5px; letter-spacing: .02em; user-select: none;
}
.cat-menu-btn::-webkit-details-marker { display: none; }
.cat-menu-btn .cat-caret { margin-inline-start: auto; font-size: 11px; transition: transform var(--dur-2) var(--ease); }
.cat-menu[open] .cat-caret { transform: rotate(180deg); }
[data-theme="dark"] .cat-menu-btn { background: var(--surface); }
.cat-menu-panel {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: 300px; z-index: 50;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; display: grid; animation: menu-in .2s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.cat-menu-panel a {
    display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 6px; color: var(--text); font-weight: 600; font-size: 14.5px;
}
.cat-menu-panel a i { color: var(--terracotta); text-align: center; }
.cat-menu-panel a small { color: var(--text-faint); font-size: 12px; }
.cat-menu-panel a:hover { background: var(--surface-2); }
.cat-menu-panel .cat-menu-all { display: flex; justify-content: center; gap: 8px; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 6px 6px; color: var(--terracotta); font-weight: 800; }

.shop-search { position: relative; display: flex; height: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.shop-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 15px; color: #1B2333; outline: none;
}
.shop-search input::placeholder { color: #8F949C; }
.shop-search button {
    width: 56px; border: 0; margin: 5px; border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; transition: var(--transition);
}
.shop-search button:hover { background: #0B1424; }
.shop-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
[data-theme="dark"] .shop-search { background: var(--surface); }
[data-theme="dark"] .shop-search input { color: var(--text); }
.shop-search-results {
    position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60; max-height: 420px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
}
.ssr-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--text); }
.ssr-item:hover, .ssr-item[aria-selected="true"] { background: var(--surface-2); }
.ssr-item img { width: 44px; height: 60px; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.ssr-item b { display: block; font-weight: 700; font-size: 14.5px; }
.ssr-item small { color: var(--text-light); font-size: 12.5px; }
.ssr-item .ssr-price { color: var(--terracotta); font-weight: 800; font-size: 14px; white-space: nowrap; }
.ssr-empty { padding: 16px; text-align: center; color: var(--text-light); font-size: 14px; }
.ssr-all { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--border); color: var(--terracotta); font-weight: 800; font-size: 14px; }

.shop-bar-end { display: flex; align-items: center; gap: 18px; color: #fff; }
.shop-support { display: flex; align-items: center; gap: 10px; color: #fff; padding-inline-end: 18px; border-inline-end: 1px solid rgba(255,255,255,.3); }
.shop-support i { font-size: 24px; opacity: .9; }
.shop-support span { display: grid; line-height: 1.3; }
.shop-support small { font-size: 11.5px; opacity: .8; }
.shop-support b { font-size: 14px; font-weight: 800; }
.shop-bar .cart-icon {
    position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 19px;
}
.shop-bar .cart-icon:hover { background: var(--surface-2); color: var(--terracotta); border-color: var(--border-strong); }
.shop-bar .cart-count { top: -7px; inset-inline-end: -7px; right: auto; background: var(--terracotta); color: #fff; border: 2px solid var(--bg-color); width: 22px; height: 22px; font-size: 11px; }

/* الافتتاحية التحريرية — الغلاف هو نقطة التركيز */
.home-opening { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--border); }
.opening-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.opening-copy h1 { font-size: clamp(2.6rem, 4.8vw, 4.7rem); line-height: 1.3; max-width: 15ch; margin: 14px 0 24px; text-wrap: balance; }
.opening-lead { color: var(--text-light); font-size: var(--fs-lg); max-width: 46ch; line-height: 2; }
.opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.opening-publish { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; color: var(--text-light); font-size: var(--fs-sm); }
.opening-publish:hover { color: var(--terracotta); }
.opening-publish i { font-size: .75em; }
.opening-feature { margin: 0; padding: 38px 24px 24px; display: grid; justify-items: center; gap: 30px; background: var(--surface-2); border-radius: 50% 50% 4px 4px / 32% 32% 4px 4px; }
.opening-cover { display: block; max-width: 100%; }
.opening-cover .book-object { width: clamp(180px, 22vw, 280px); max-width: 100%; transform: none; }
.opening-feature figcaption { display: grid; justify-items: center; text-align: center; gap: 4px; max-width: 100%; }
.opening-feature .eyebrow-ornament { font-size: 12px; margin-bottom: 2px; }
.opening-book-title { font: 700 1.5rem/1.5 var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.opening-author { color: var(--text-light); font-size: 14px; }
.opening-book-title:hover { color: var(--terracotta); }
.book-card .book-rating { margin: 2px 0 10px; }
.book-card .book-price { font-family: var(--font-body); }
.book-card .quick-btn { box-shadow: none; width: 36px; height: 36px; }
.authors-ribbon .marquee { overflow-x: auto; mask-image: none; }
.authors-ribbon .marquee-track { animation: none; transform: none; width: max-content; padding-inline: 24px; }

@media (max-width: 860px) {
    .opening-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .opening-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
    .opening-actions { gap: 16px; }
    .opening-actions .btn { padding-inline: 20px; }
    .service-item:nth-child(n+3) { border-top-color: var(--border); }
}
@media (max-width: 560px) {
    .opening-grid { grid-template-columns: 1fr; gap: 36px; }
    .opening-copy h1 { max-width: 18ch; font-size: 2.65rem; }
    .opening-lead { font-size: 1rem; }
    .opening-feature { width: 100%; max-width: 380px; justify-self: center; padding-top: 28px; }
    .opening-cover .book-object { width: 180px; }
    .opening-publish { margin-top: 24px; }
    .services-band .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-band .service-item { gap: 10px; padding: 16px 10px; }
    .services-band .service-item + .service-item { border-top: 0; border-inline-start: 1px solid var(--border); }
    .services-band .service-item:nth-child(3) { border-inline-start: 0; }
    .services-band .service-item:nth-child(n+3) { border-top: 1px solid var(--border); }
    .service-item i { font-size: 18px; }
    .service-item h3 { font-size: 13px; }
    .service-item p { font-size: 12px; }
    .book-card .book-title { font-size: 1.12rem; }
    .book-card .book-info { padding-inline: 0; }
    .book-card .book-cover { padding: 28px 16% 24px; }
    .book-card .book-quick-actions { top: auto; bottom: 8px; inset-inline-end: 8px; flex-direction: row; }
    .book-card .quick-btn { width: 32px; height: 32px; }
    .book-card .price { gap: 4px; }
    .sticky-add-to-cart .container { justify-content: space-between; gap: 12px; }
    .sticky-add-to-cart .sticky-book-info { display: flex; min-width: 0; flex: 1; }
    .sticky-book-info > img { display: none; }
    .sticky-book-details { min-width: 0; }
    .sticky-book-details h4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
    .sticky-add-to-cart { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .sticky-actions .btn { padding-inline: 16px; font-size: 14px; }
    .sticky-add-to-cart .sticky-actions { width: auto; flex: 0 0 auto; }
}

/* — سلايدر الهيرو بعرض الشاشة — */
.hero-slider { position: relative; min-height: clamp(440px, 62vh, 620px); background: var(--ink); overflow: hidden; isolation: isolate; }
.hs-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hs-slide.active { opacity: 1; visibility: visible; }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: none; }
.hs-slide.active .hs-bg { transform: scale(1); }
.hs-slide::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(15,26,48,.35) 0%, rgba(15,26,48,.72) 55%, rgba(15,26,48,.9) 100%);
}
html[dir="ltr"] .hs-slide::after { background: linear-gradient(270deg, rgba(15,26,48,.35) 0%, rgba(15,26,48,.72) 55%, rgba(15,26,48,.9) 100%); }
.hs-content { color: #fff; }
.hs-content > * { max-width: 640px; }
.hs-eyebrow {
    display: inline-flex; align-items: center; gap: 12px; color: var(--terracotta-2); font-weight: 800; font-size: 14px; letter-spacing: .08em; margin-bottom: 14px;
}
.hs-eyebrow::before { content: ""; width: 40px; height: 2px; background: currentColor; }
.hs-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(2.3rem, 1.2rem + 4vw, 4.4rem); line-height: 1.2; margin-bottom: 16px; text-wrap: balance; }
.hs-desc { color: rgba(237,232,223,.85); font-size: var(--fs-lg); line-height: 1.9; margin-bottom: 30px; }
.hs-desc p { margin: 0; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-slide.active .hs-eyebrow, .hs-slide.active .hs-title, .hs-slide.active .hs-desc, .hs-slide.active .hs-actions { animation: hs-in .9s var(--ease) both; }
.hs-slide.active .hs-title { animation-delay: .08s; }
.hs-slide.active .hs-desc { animation-delay: .16s; }
.hs-slide.active .hs-actions { animation-delay: .24s; }
@keyframes hs-in { from { opacity: 0; transform: translateY(20px); } }
.btn-light-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-light-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hs-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.35); background: rgba(15,26,48,.35); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: var(--transition);
}
.hs-arrow:hover { background: var(--terracotta); border-color: var(--terracotta); }
.hs-prev { inset-inline-start: 24px; }
.hs-next { inset-inline-end: 24px; }
.hs-dots { position: absolute; bottom: 26px; inset-inline: 0; justify-content: center; z-index: 3; }
.hs-dots button { width: 10px; height: 10px; border-radius: 2px; }
.hs-dots button[aria-current="true"] { width: 30px; background: var(--terracotta-2); }

/* — شريط الخدمات — */
.services-band { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-item { display: flex; align-items: center; gap: 16px; padding: 26px 22px; }
.service-item + .service-item { border-inline-start: 1px solid var(--border); }
.service-item i { font-size: 23px; flex: 0 0 auto; color: var(--terracotta); }
.service-item h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.service-item p { font-size: 13px; color: var(--text-light); margin: 0; }

/* — كارت الكتاب: صندوق أبيض بشريط ركني وسعر على الغلاف — */
.books-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.book-card {
    background: transparent; border: 0; border-radius: 0;
    overflow: visible; transition: none;
}
.book-card:hover { border: 0; box-shadow: none; transform: none; }
.book-card .book-cover {
    position: relative; padding: 32px 19% 34px; border-radius: var(--radius-sm);
    background: var(--surface-2); overflow: hidden;
}
.book-card .book-cover .book-object { width: 100%; }
.book-card:hover .book-cover .book-object,
html[dir="ltr"] .book-card:hover .book-cover .book-object { transform: translateY(-3px); box-shadow: var(--shadow-book); }
.book-ribbon {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 4;
    padding: 4px 9px; font-size: 11px; font-weight: 700; color: var(--text);
    background: var(--surface); box-shadow: none;
}
html[dir="rtl"] .book-ribbon { border-radius: 3px 0 0 3px; }
html[dir="ltr"] .book-ribbon { border-radius: 0 3px 3px 0; }
.book-ribbon.book-badge-hot, .book-ribbon.book-badge-sale { background: var(--surface); color: var(--terracotta); }
.book-ribbon--out { background: var(--surface); color: var(--text-light); }
.book-badge { display: none; }
.book-card .book-quick-actions { bottom: auto; top: 14px; inset-inline: auto; inset-inline-end: 14px; flex-direction: column; justify-content: flex-start; }
.book-card .book-type-chip { top: auto; bottom: 14px; inset-inline-start: 14px; }
.book-card .book-info { padding: 18px 0 0; gap: 5px; }
.book-card .book-title { font-size: 1.25rem; min-height: 2.9em; }
.book-excerpt {
    margin: 6px 0 2px; color: var(--text-light); font-size: 13.5px; line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-card .book-footer { border-top: 1px solid var(--border); margin-top: auto; padding-top: 14px; }
.book-footer .book-rating { display: flex; align-items: center; gap: 6px; margin: 0; }
.book-footer .stars { color: var(--ochre); font-size: 12px; letter-spacing: 1px; }
.book-footer .count { color: var(--text-faint); font-size: 12px; }
.book-footer .price-on-request { font-size: 12.5px; }
.book-card .add-to-cart-btn { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--surface-2); border: 0; color: var(--text); font-size: 15px; }
.book-card .add-to-cart-btn:hover, .book-card .add-to-cart-btn:focus-visible { background: var(--terracotta); color: #fff; transform: none; }
.drag-carousel > .book-card { flex: 0 0 clamp(230px, 22vw, 280px); }
.editorial-books-section .book-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }

/* — كتاب الشهر — */
.spotlight { background: var(--ink); color: #EDE8DF; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; isolation: isolate; }
.spotlight::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; background: var(--terracotta); z-index: -1; }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.spotlight-cover { justify-self: center; perspective: 1400px; }
.spotlight-cover .book-object { transition: transform var(--dur-3) var(--ease); }
.spotlight-cover:hover .book-object { transform: translateY(-3px); }
.spotlight-copy .eyebrow-ornament { color: var(--terracotta-2); }
.spotlight-title { font-family: var(--font-display); font-size: var(--fs-3xl); color: #fff; line-height: 1.2; margin: 8px 0 6px; }
.spotlight-author { color: rgba(237,232,223,.7); font-size: var(--fs-lg); margin-bottom: 20px; }
.spotlight-desc { color: rgba(237,232,223,.82); line-height: 2; max-width: 60ch; margin-bottom: 28px; }
.spotlight-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.spotlight-price .price-now { color: #fff; font-family: var(--font-display); font-size: 2rem; }
.spotlight-price .price-was { color: rgba(237,232,223,.55); }
.link-arrow--light { color: #fff; border-bottom-color: var(--terracotta-2); }

/* — العروض الجانبية (زوج) — */
.promo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-pair .promo-card { min-height: 240px; border-radius: var(--radius); }
.promo-pair .promo-card h3 { font-size: var(--fs-2xl); }
.promo-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: #fff; font-weight: 800; border-bottom: 1px solid var(--terracotta-2); padding-bottom: 2px; }

/* — الاستجابة — */
@media (max-width: 1100px) {
    .books-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-support { display: none; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-item:nth-child(3) { border-inline-start: 0; }
    .service-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 860px) {
    .header-cta { display: none; }
    .shop-bar-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; }
    .cat-menu { display: none; }
    .books-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spotlight::before { width: 100%; height: 42%; inset-block: 0 auto; }
    .spotlight-grid { grid-template-columns: 1fr; text-align: center; }
    .spotlight-buy { justify-content: center; }
    .promo-pair { grid-template-columns: 1fr; }
    .hs-arrow { display: none; }
    .hs-slide::after { background: linear-gradient(0deg, rgba(15,26,48,.92), rgba(15,26,48,.55)); }
    .hs-content { text-align: center; }
    .hs-content > * { margin-inline: auto; }
    .hs-actions { justify-content: center; }
}
@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-item + .service-item { border-inline-start: 0; border-top: 1px solid var(--border); }
    .service-item { padding: 16px 6px; }
    .book-card .book-cover { padding: 28px 16% 24px; }
    .book-card .book-info { padding: 14px 0 0; }
    .book-excerpt { display: none; }
}
[data-theme="dark"] .btn.btn-light-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
[data-theme="dark"] .btn.btn-light-outline:hover { background: #fff; color: var(--ink); }
/* الأغلفة المولّدة داخل الكروت الصغيرة */
.book-card .gen-cover-title { font-size: clamp(13px, 1.3vw, 19px); }
@media (max-width: 560px) {
    .book-card .gen-cover-frame { padding: 10% 6%; gap: 6px; }
    .book-card .gen-cover-title { font-size: 13px; -webkit-line-clamp: 3; }
    .book-card .gen-cover-author { font-size: 10px; }
    .book-card .gen-cover-house, .book-card .gen-cover-mark { display: none; }
}
