/* ==========================================================================
   Islamic ornament layer + home sections (both languages: logical properties, no rtl flip needed).
   Ornaments are masks tinted with background-color:
     knot, calligraphy  = the owner's artwork, cut out to transparent PNG (store/tools/extract-ornament.php)
     medallion          = the knot mirrored four times into a full rosette
     khatam, circles, arches, mashrabiya, band, star, arch = drawn SVGs (kept very faint)
   The URLs come from CSS variables set in views/layout/head.php.
   Every page type has its own calm composition (body.deco-*), never the same full-page pattern everywhere.
   ========================================================================== */

.orn {
  position: absolute; display: block; pointer-events: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
.orn-knot { -webkit-mask-image: var(--orn-knot); mask-image: var(--orn-knot); }
.orn-medallion { -webkit-mask-image: var(--orn-medallion); mask-image: var(--orn-medallion); }
.orn-calligraphy { -webkit-mask-image: var(--orn-calligraphy); mask-image: var(--orn-calligraphy); }
.orn-khatam { -webkit-mask-image: var(--orn-khatam); mask-image: var(--orn-khatam); -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.orn-arch { -webkit-mask-image: var(--orn-arch); mask-image: var(--orn-arch); }
.orn-section { position: relative; overflow: hidden; isolation: isolate; }
.orn-section > .site-wrap { position: relative; z-index: 1; }

/* ---------- page canvas: these wrappers were painting an opaque cream over the ornaments ---------- */
html { background-color: #FBF9ED; overflow-x: clip; } /* the corner ornaments hang off the edges: no sideways scroll */
body { background-color: transparent !important; position: relative; min-height: 100vh; overflow: visible; overflow-x: clip; } /* "clip", never "hidden": a hidden body would become its own scroller and break the sticky menu bar. Phones need the body itself clipped, or an ornament off the edge widens the whole page */
.catalog-page-hero, .catalog-workspace-section, .book-details-page-wrap, .blog-page-wrap { background: transparent !important; }
body::before, body::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }

/* home: a whisper of the khatam lattice over the whole page, the owner's rosette at the edges */
.deco-home::before { position: fixed; inset: 0; background-color: rgba(143, 117, 32, .035); -webkit-mask: var(--orn-khatam) repeat 0 0 / 120px; mask: var(--orn-khatam) repeat 0 0 / 120px; }
.deco-home::after {
  position: fixed; inset: 0; background-color: rgba(0, 89, 67, .045);
  -webkit-mask-image: var(--orn-medallion), var(--orn-medallion); mask-image: var(--orn-medallion), var(--orn-medallion);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 560px, 420px; mask-size: 560px, 420px;
  -webkit-mask-position: right -280px top 16%, left -210px bottom -150px; mask-position: right -280px top 16%, left -210px bottom -150px;
}

/* catalog: a mashrabiya strip down the starting side only, fading towards the books */
.deco-side::before {
  top: 0; bottom: 0; inset-inline-start: 0; width: 320px;
  background-color: rgba(143, 117, 32, .06);
  -webkit-mask-image: var(--orn-mashrabiya), linear-gradient(to right, #000, transparent); mask-image: var(--orn-mashrabiya), linear-gradient(to right, #000, transparent);
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-size: 36px, 100% 100%; mask-size: 36px, 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
[dir="rtl"] .deco-side::before { -webkit-mask-image: var(--orn-mashrabiya), linear-gradient(to left, #000, transparent); mask-image: var(--orn-mashrabiya), linear-gradient(to left, #000, transparent); }
.deco-side::after { top: 560px; inset-inline-start: -40px; width: 300px; height: 312px; background-color: rgba(0, 89, 67, .06); -webkit-mask: var(--orn-knot) center / contain no-repeat; mask: var(--orn-knot) center / contain no-repeat; transform: rotate(180deg); }
[dir="rtl"] .deco-side::after { transform: scaleY(-1); }

/* book page: the calligraphy behind the title side, the rosette low on the other side, nothing else */
.deco-book::before { top: 150px; inset-inline-end: -40px; width: 420px; height: 560px; background-color: rgba(0, 89, 67, .05); -webkit-mask: var(--orn-calligraphy) center / contain no-repeat; mask: var(--orn-calligraphy) center / contain no-repeat; }
.deco-book::after { top: 980px; inset-inline-start: -220px; width: 460px; height: 478px; background-color: rgba(186, 155, 50, .07); -webkit-mask: var(--orn-medallion) center / contain no-repeat; mask: var(--orn-medallion) center / contain no-repeat; }

/* information pages (about, legal, FAQ, contact, bag…): interlaced circles across the top only, the knot in the lower corner */
.deco-circles::before {
  top: 0; left: 0; right: 0; height: 560px;
  background-color: rgba(143, 117, 32, .05);
  -webkit-mask-image: var(--orn-circles), linear-gradient(to bottom, #000 25%, transparent); mask-image: var(--orn-circles), linear-gradient(to bottom, #000 25%, transparent);
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-size: 56px, 100% 100%; mask-size: 56px, 100% 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.deco-circles::after { bottom: 0; inset-inline-end: 0; width: 320px; height: 333px; background-color: rgba(0, 89, 67, .05); -webkit-mask: var(--orn-knot) center / contain no-repeat; mask: var(--orn-knot) center / contain no-repeat; }
[dir="rtl"] .deco-circles::after { transform: scaleX(-1); }

/* authors: a quiet arcade along the top, the rosette rising at the end */
.deco-arches::before {
  top: 0; left: 0; right: 0; height: 480px;
  background-color: rgba(143, 117, 32, .055);
  -webkit-mask-image: var(--orn-arches), linear-gradient(to bottom, #000 20%, transparent); mask-image: var(--orn-arches), linear-gradient(to bottom, #000 20%, transparent);
  -webkit-mask-repeat: repeat-x, no-repeat; mask-repeat: repeat-x, no-repeat;
  -webkit-mask-size: 44px 64px, 100% 100%; mask-size: 44px 64px, 100% 100%;
  -webkit-mask-position: 0 100px, 0 0; mask-position: 0 100px, 0 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.deco-arches::after { top: 90px; inset-inline-end: -230px; width: 480px; height: 500px; background-color: rgba(186, 155, 50, .07); -webkit-mask: var(--orn-medallion) center / contain no-repeat; mask: var(--orn-medallion) center / contain no-repeat; }

/* blog (Arabic): the calligraphy low on the starting side, the rosette at the top end */
.deco-blog::before { position: fixed; bottom: -80px; inset-inline-start: -60px; width: 420px; height: 560px; background-color: rgba(0, 89, 67, .045); -webkit-mask: var(--orn-calligraphy) center / contain no-repeat; mask: var(--orn-calligraphy) center / contain no-repeat; }
.deco-blog::after { top: 120px; inset-inline-end: -240px; width: 500px; height: 520px; background-color: rgba(186, 155, 50, .07); -webkit-mask: var(--orn-medallion) center / contain no-repeat; mask: var(--orn-medallion) center / contain no-repeat; }

/* ---------- section heading with the eight-pointed star and the ornamental band ---------- */
.ornate-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 42px; }
.ornate-star { width: 50px; height: 50px; background-color: var(--c-gold); opacity: .75; -webkit-mask: var(--orn-star) center / contain no-repeat; mask: var(--orn-star) center / contain no-repeat; }
.ornate-kicker { color: var(--c-gold-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.lang-ar .ornate-kicker { letter-spacing: 0; font-size: 15px; }
.ornate-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; color: var(--c-brand-green); line-height: 1.2; }
.ornate-rule { display: flex; align-items: center; gap: 12px; width: min(440px, 82%); margin-top: 4px; }
.ornate-rule span { flex: 1; height: 10px; background-color: var(--c-gold); opacity: .32; -webkit-mask: var(--orn-band) repeat-x center / auto 10px; mask: var(--orn-band) repeat-x center / auto 10px; }
.ornate-rule i { width: 8px; height: 8px; background: var(--c-gold); opacity: .7; transform: rotate(45deg); flex-shrink: 0; }
.ornate-head p { margin: 6px 0 0; color: var(--c-ink-muted); font-size: 16px; max-width: 620px; }
.ornate-more { display: flex; justify-content: center; margin-top: 42px; }

/* ---------- hero: edge to edge — the side panel against the start edge, the slides up to the other edge (height as in the design) ---------- */
.hero-full { width: 100%; }
.hero-full .hero-master-layout { grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 1200px) { .hero-full .hero-master-layout { grid-template-columns: 280px minmax(0, 1fr); } }
@media (max-width: 900px) { .hero-full .hero-master-layout { grid-template-columns: 1fr; } }
.hp { background: linear-gradient(180deg, #00382b 0%, #002118 100%) !important; position: relative; overflow: hidden; }
.hp-knot { width: 240px; height: 250px; bottom: -80px; inset-inline-end: -90px; color: rgba(224, 199, 108, .08); }
.hp-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 30px 26px 24px; }
.hp-eyebrow { display: flex; align-items: center; gap: 12px; color: rgba(250, 240, 205, .62); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lang-ar .hp-eyebrow { letter-spacing: 0; font-size: 13px; }
.hp-count { letter-spacing: 0; font-size: 13px; color: rgba(250, 240, 205, .55); }
.hp-count b { color: #E0C76C; font-size: 22px; font-weight: 800; }
.hp-count i { font-style: normal; margin: 0 4px; opacity: .6; }
.hp-eyebrow-line { flex: 1; height: 1px; background: rgba(224, 199, 108, .28); }
.hp-slides { flex: 1; margin-top: 28px; }
.hp-title { margin: 0 0 12px; color: #fff; font-size: 25px; line-height: 1.3; font-weight: 800; }
.lang-ar .hp-title { font-size: 27px; line-height: 1.45; }
.hp-desc { margin: 0 0 22px; color: rgba(250, 240, 205, .72); font-size: 14.5px; line-height: 1.7; }
.hp-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px; background: linear-gradient(135deg, #E0C76C, #BA9B32); color: #00241B; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(224, 199, 108, .7); }
.hp-cta:hover { background: linear-gradient(135deg, #F2DD8C, #CCA83B); }
.hp-list { list-style: none; margin: 18px 0 14px; padding: 12px 0 0; border-top: 1px solid rgba(224, 199, 108, .18); display: flex; flex-direction: column; }
.hp-item { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 6px; align-items: center; padding: 8px 0; background: none; border: 0; font: inherit; text-align: start; color: rgba(250, 240, 205, .55); cursor: pointer; }
.hp-item-num { font-size: 12px; font-weight: 800; color: rgba(224, 199, 108, .55); }
.hp-item-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-item-bar { grid-column: 2; height: 2px; margin-top: 7px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hp-item-bar i { display: block; width: 0; height: 100%; background: #E0C76C; }
.hp-item:hover { color: rgba(250, 240, 205, .9); }
.hp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-link { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(224, 199, 108, .28); background: rgba(224, 199, 108, .06); color: rgba(250, 240, 205, .82); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .25s, color .25s, background .25s; }
.hp-link i { color: #E0C76C; font-size: 12px; }
.hp-link:hover { border-color: rgba(224, 199, 108, .7); background: rgba(224, 199, 108, .12); color: #fff; }
.hp-item.active { color: #fff; }
.hp-item.active .hp-item-num { color: #E0C76C; }
.hp-item.active .hp-item-bar i { animation: hpBar var(--hp-ms, 6s) linear forwards; }
@keyframes hpBar { to { width: 100%; } }
.hero-progress-bar { display: none; } /* the list in the panel shows the progress */
/* the image frame keeps the height it had in the original design (its old panel content set it to ~540px) */
@media (min-width: 993px) { .hero-master-layout { min-height: 540px; } }
@media (max-width: 900px) { .hp-list { display: none; } .hp-slides { margin-top: 18px; } }

/* ---------- featured categories: five per row, wrapping ---------- */
.categories-showcase-section { padding-top: 64px; padding-bottom: 64px; }
#categories-track { display: grid; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 18px; overflow: visible; }
#categories-track > .artisan-category-card { width: auto; min-width: 0; }
.categories-top-bar .home-row-more { align-self: flex-end; }
.orn-side-start, .orn-side-end { width: 440px; height: 458px; top: 90px; color: rgba(186, 155, 50, .1); }
.orn-side-start { inset-inline-start: -250px; }
.orn-side-end { inset-inline-end: -250px; top: auto; bottom: -120px; }
@media (max-width: 1200px) { #categories-track { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 992px) { #categories-track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { #categories-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- "Recommended for You" showcase: one panel, every book list is a tab ---------- */
.showcase-section { padding: 34px 0 60px; }
/* a little narrower than the page */
.showcase-section > .site-wrap { max-width: 1240px; }
.showcase-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 34px; padding: 46px 44px 36px;
  background: radial-gradient(120% 90% at 50% 0%, #0b5f47 0%, #00382b 52%, #00241b 100%);
  color: #FAF0CD;
  box-shadow: 0 44px 90px -36px rgba(0, 36, 27, .65), inset 0 0 0 1px rgba(224, 199, 108, .3);
}
.showcase-panel::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(224, 199, 108, .26); border-radius: 26px; pointer-events: none; z-index: 0; }
.showcase-panel .orn-khatam { inset: 0; color: rgba(224, 199, 108, .04); -webkit-mask-size: 112px; mask-size: 112px; }
.showcase-panel .orn-calligraphy { width: 430px; height: 572px; top: -90px; inset-inline-end: -70px; color: rgba(224, 199, 108, .08); }
.showcase-panel .orn-medallion { width: 380px; height: 395px; bottom: -170px; inset-inline-start: -160px; color: rgba(224, 199, 108, .09); }
.showcase-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: 34px; }
.showcase-titles { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.showcase-kicker { display: inline-flex; align-items: center; gap: 12px; color: #E0C76C; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.lang-ar .showcase-kicker { letter-spacing: 0; font-size: 15px; }
.showcase-kicker i { width: 46px; height: 10px; background-color: #E0C76C; opacity: .6; -webkit-mask: var(--orn-band) repeat-x center / auto 10px; mask: var(--orn-band) repeat-x center / auto 10px; }
.showcase-titles h2 { margin: 0; color: #fff; font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; line-height: 1.15; }
.showcase-titles p { margin: 0; color: rgba(250, 240, 205, .76); font-size: 16.5px; }
.showcase-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; border-radius: 22px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(224, 199, 108, .22); }
.showcase-tab { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 6px 13px; border-radius: 999px; border: 0; background: transparent; color: rgba(250, 240, 205, .84); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.showcase-tab:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.showcase-tab:focus-visible { outline: 2px solid #E0C76C; outline-offset: 2px; }
.showcase-tab-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 199, 108, .14); color: #E0C76C; font-size: 12px; }
.showcase-tab-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 11px; }
.showcase-tab.active { background: linear-gradient(135deg, #F2DD8C 0%, #E0C76C 40%, #BA9B32 100%); color: #00241B; box-shadow: 0 10px 26px -10px rgba(224, 199, 108, .7); }
.showcase-tab.active .showcase-tab-icon { background: #00382b; color: #E0C76C; }
.showcase-tab.active .showcase-tab-count { background: rgba(0, 36, 27, .16); }
.showcase-body { position: relative; z-index: 1; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.showcase-grid .product-item-card { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55); }
.showcase-foot { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.showcase-foot-line { flex: 1; height: 12px; background-color: rgba(224, 199, 108, .22); -webkit-mask: var(--orn-band) repeat-x center / auto 12px; mask: var(--orn-band) repeat-x center / auto 12px; }
.showcase-more { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px; border: 1px solid rgba(224, 199, 108, .6); color: #FAF0CD; text-decoration: none; font-weight: 700; white-space: nowrap; transition: background .25s, color .25s; }
.showcase-more:hover { background: #E0C76C; color: #00241B; }
@media (max-width: 1100px) { .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .showcase-panel { padding: 34px 14px 26px; border-radius: 24px; }
  .showcase-panel::before { inset: 6px; border-radius: 20px; }
  .showcase-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; scrollbar-width: none; border-radius: 999px; }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .showcase-foot-line { display: none; }
  .showcase-foot { justify-content: center; }
}

/* ---------- featured authors: library plaques, still and dignified ---------- */
.home-authors-section { padding: 74px 0 70px; background: linear-gradient(180deg, transparent, rgba(241, 238, 219, .7) 22%, rgba(241, 238, 219, .7) 78%, transparent); }
/* library plaque: a green monogram panel framed in gold, the name with its honorific, and the author's own covers */
.authors-plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .authors-plaques { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .authors-plaques { grid-template-columns: 1fr; gap: 16px; } }
.author-plaque {
  position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 196px; overflow: hidden;
  text-decoration: none; color: var(--c-ink); background: #fffdf7;
  border: 1px solid rgba(186, 155, 50, .3); border-radius: 18px;
  box-shadow: 0 16px 36px -28px rgba(0, 56, 43, .45);
  transition: border-color .25s, box-shadow .25s;
}
.author-plaque:hover { border-color: rgba(186, 155, 50, .75); box-shadow: 0 20px 44px -28px rgba(0, 56, 43, .55); }
/* inner gold hairline, like a framed plate */
.author-plaque::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(186, 155, 50, .16); border-radius: 13px; pointer-events: none; }
.author-plaque-side { position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(165deg, #0b5a44 0%, #00382b 62%, #00261d 100%); }
.author-plaque-side::before { content: ""; position: absolute; inset: 0; background-color: rgba(224, 199, 108, .1); -webkit-mask: var(--orn-khatam) center / 64px repeat; mask: var(--orn-khatam) center / 64px repeat; }
.author-plaque-side::after { content: ""; position: absolute; inset-block: 14px; inset-inline-end: 0; width: 3px; background: linear-gradient(180deg, transparent, #BA9B32 20%, #E0C76C 50%, #BA9B32 80%, transparent); }
.author-plaque-mono.author-card-seal {
  position: relative; width: 66px; height: 66px; margin: 0; border-radius: 4px; font-size: 30px; font-weight: 800; line-height: 1;
  color: #E0C76C; background: #00382b; border: 1px solid rgba(224, 199, 108, .85);
  box-shadow: 0 0 0 5px #00382b, 0 0 0 6px rgba(224, 199, 108, .45), 0 12px 24px -10px rgba(0, 0, 0, .6);
}
.author-plaque-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 18px; min-width: 0; }
.author-plaque-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--c-gold-dark); }
.author-plaque-name { font-size: 17px; font-weight: 800; line-height: 1.5; color: var(--c-brand-green); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-plaque-meta { font-size: 13px; font-weight: 600; color: var(--c-ink-muted); display: inline-flex; align-items: center; gap: 7px; }
.author-plaque-meta i { font-size: 12px; color: var(--c-gold); }
.author-plaque-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(186, 155, 50, .35); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.author-plaque-covers { display: flex; align-items: flex-end; min-height: 1px; }
.author-plaque-covers img { width: 38px; height: 54px; object-fit: cover; border-radius: 2px 4px 4px 2px; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(0, 36, 27, .55); background: #eee7d2; }
.author-plaque-covers img + img { margin-inline-start: -12px; }
.author-plaque-link { font-size: 13px; font-weight: 800; color: var(--c-brand-green); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.author-plaque:hover .author-plaque-link { color: var(--c-gold-dark); }
@media (max-width: 680px) { .author-plaque { grid-template-columns: 96px minmax(0, 1fr); min-height: 170px; } .author-plaque-mono.author-card-seal { width: 56px; height: 56px; font-size: 25px; } }

/* ---------- home: from the blog (Arabic) — editorial layout with the articles' own images ---------- */
.home-journal { padding: 70px 0; }
.journal-grid { display: grid; gap: 22px; grid-template-columns: 1.35fr 1fr; max-width: 1120px; margin-inline: auto; }
.journal-grid.journal-n3 .journal-lead { grid-row: span 2; }
.journal-grid.journal-n2 { grid-template-columns: 1fr 1fr; }
.journal-grid.journal-n1 { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.journal-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(186, 155, 50, .28); border-radius: 22px; box-shadow: 0 16px 40px -28px rgba(0, 56, 43, .4); transition: border-color .25s, box-shadow .25s; }
.journal-card:hover { border-color: rgba(186, 155, 50, .65); box-shadow: 0 22px 48px -28px rgba(0, 56, 43, .5); }
.journal-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-sand); }
.journal-lead .journal-media { aspect-ratio: 16 / 9; }
.journal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-cat { position: absolute; top: 14px; inset-inline-start: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 36, 27, .86); border: 1px solid rgba(224, 199, 108, .4); color: #FAF0CD; font-size: 12.5px; font-weight: 700; }
.journal-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
.journal-meta { display: flex; align-items: center; gap: 8px; color: var(--c-gold-dark); font-size: 12.5px; font-weight: 600; }
.journal-meta i { font-style: normal; font-size: 9px; opacity: .7; }
.journal-title { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 800; }
.journal-lead .journal-title { font-size: 22px; }
.journal-title a { color: var(--c-brand-green); text-decoration: none; }
.journal-title a:hover { color: var(--c-gold-dark); }
.journal-excerpt { margin: 0; color: var(--c-ink-muted); font-size: 14px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.journal-lead .journal-excerpt { -webkit-line-clamp: 2; font-size: 14.5px; }
.journal-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed rgba(186, 155, 50, .35); font-size: 13px; }
.journal-writer { color: var(--c-ink-muted); font-weight: 600; }
.journal-writer i { color: var(--c-gold); }
.journal-read { display: inline-flex; align-items: center; gap: 7px; color: var(--c-brand-green); font-weight: 800; text-decoration: none; }
.journal-read:hover { color: var(--c-gold-dark); }
/* the two smaller articles sit beside the lead one with their image at the side */
@media (min-width: 993px) {
  .journal-n3 .journal-card:not(.journal-lead) { flex-direction: row; }
  .journal-n3 .journal-card:not(.journal-lead) .journal-media { flex: 0 0 40%; aspect-ratio: auto; }
  .journal-n3 .journal-card:not(.journal-lead) .journal-body { padding: 16px 18px; }
}
@media (max-width: 992px) { .journal-grid, .journal-grid.journal-n2 { grid-template-columns: 1fr; } .journal-grid.journal-n3 .journal-lead { grid-row: auto; } }

/* ---------- small ornaments on the other pages ---------- */
.simple-page-hero { position: relative; overflow: hidden; background: transparent !important; }
.simple-page-hero::after { content: ""; position: absolute; top: -50px; inset-inline-end: 3%; width: 300px; height: 400px; background-color: rgba(0, 89, 67, .06); -webkit-mask: var(--orn-calligraphy) center / contain no-repeat; mask: var(--orn-calligraphy) center / contain no-repeat; pointer-events: none; }
.simple-page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background-color: rgba(186, 155, 50, .2); -webkit-mask: var(--orn-band) repeat-x center / auto 12px; mask: var(--orn-band) repeat-x center / auto 12px; pointer-events: none; }
.simple-page-hero > .site-wrap { position: relative; z-index: 1; }
.deco-arches .simple-page-hero::after { display: none; } /* the arcade and rosette are enough there */
.trust-strip { position: relative; }
.trust-strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background-color: rgba(186, 155, 50, .16); -webkit-mask: var(--orn-band) repeat-x center / auto 10px; mask: var(--orn-band) repeat-x center / auto 10px; pointer-events: none; }

/* footer: a faint star lattice in gold and the rosette rising from the corner */
.store-footer { overflow: hidden; isolation: isolate; }
.store-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(204, 168, 59, .035); -webkit-mask: var(--orn-khatam) repeat 0 0 / 110px; mask: var(--orn-khatam) repeat 0 0 / 110px; pointer-events: none; }
.store-footer::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 500px; top: -40px; inset-inline-end: -170px; background-color: rgba(204, 168, 59, .08); -webkit-mask: var(--orn-medallion) center / contain no-repeat; mask: var(--orn-medallion) center / contain no-repeat; pointer-events: none; }
.footer-ornament span { width: 160px; height: 10px; background: var(--c-gold); opacity: .7; -webkit-mask: var(--orn-band) repeat-x center / auto 10px; mask: var(--orn-band) repeat-x center / auto 10px; }

@media (prefers-reduced-motion: reduce) { .hp-item.active .hp-item-bar i { animation: none; width: 100%; } .banner-slide, .banner-visual-image { transition: none; } }

/* ---------- home: "All categories" under the category cards, centred between two ornamental bands ---------- */
.cats-foot { display: flex; align-items: center; gap: 22px; margin-top: 40px; position: relative; z-index: 2; }
.cats-foot-line { flex: 1; height: 12px; background-color: rgba(186, 155, 50, .45); -webkit-mask: var(--orn-band) repeat-x center / auto 12px; mask: var(--orn-band) repeat-x center / auto 12px; }
.cats-all-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 8px; padding-inline-start: 8px;
  border-radius: 999px; background: linear-gradient(180deg, #0b5a44, #00382b); color: #FBF5E6;
  font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(224, 199, 108, .7); box-shadow: 0 0 0 4px rgba(186, 155, 50, .12), 0 14px 30px -16px rgba(0, 56, 43, .6);
  transition: background .25s, color .25s, box-shadow .25s;
}
.cats-all-icon, .cats-all-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; }
.cats-all-icon { background: rgba(224, 199, 108, .16); color: #E0C76C; border: 1px solid rgba(224, 199, 108, .45); }
.cats-all-arrow { background: #E0C76C; color: #00382b; }
.cats-all-btn:hover { background: linear-gradient(180deg, #CCA83B, #BA9B32); color: #00241B; box-shadow: 0 0 0 4px rgba(186, 155, 50, .2), 0 16px 32px -16px rgba(143, 117, 32, .7); }
.cats-all-btn:hover .cats-all-icon { background: rgba(0, 56, 43, .12); color: #00382b; border-color: rgba(0, 56, 43, .35); }
.cats-all-btn:hover .cats-all-arrow { background: #00382b; color: #E0C76C; }
@media (max-width: 680px) { .cats-foot { gap: 12px; margin-top: 28px; } .cats-foot-line { display: none; } .cats-foot { justify-content: center; } }

/* ---------- authors page: ex-libris cards (green crest, framed monogram, the author's covers), still ---------- */
.authors-exlibris-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 16px; padding-top: 14px; }
@media (max-width: 1280px) { .authors-exlibris-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1060px) { .authors-exlibris-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .authors-exlibris-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px) { .authors-exlibris-grid { grid-template-columns: 1fr; } }
.author-exlibris {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--c-ink);
  background: #fffdf7; border: 1px solid rgba(186, 155, 50, .3); border-radius: 18px;
  box-shadow: 0 18px 40px -30px rgba(0, 56, 43, .5); transition: border-color .25s, box-shadow .25s;
}
.author-exlibris:hover { border-color: rgba(186, 155, 50, .8); box-shadow: 0 22px 46px -28px rgba(0, 56, 43, .55); }
.author-exlibris::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(186, 155, 50, .15); border-radius: 13px; pointer-events: none; }
.author-exlibris-crest { position: relative; height: 70px; flex-shrink: 0; display: flex; justify-content: center; background: linear-gradient(170deg, #0b5a44 0%, #00382b 70%, #00291f 100%); }
.author-exlibris-crest::before { content: ""; position: absolute; inset: 0; background-color: rgba(224, 199, 108, .1); -webkit-mask: var(--orn-khatam) center / 58px repeat; mask: var(--orn-khatam) center / 58px repeat; }
.author-exlibris-crest::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #BA9B32 18%, #E0C76C 50%, #BA9B32 82%, transparent); }
.author-exlibris-mono.author-card-seal {
  position: absolute; bottom: 0; transform: translateY(50%); z-index: 2; width: 56px; height: 56px; margin: 0; border-radius: 5px;
  font-size: 24px; font-weight: 800; line-height: 1; color: #E0C76C; background: #00382b; border: 1px solid rgba(224, 199, 108, .9);
  box-shadow: 0 0 0 4px #fffdf7, 0 0 0 5px rgba(186, 155, 50, .55), 0 14px 26px -12px rgba(0, 36, 27, .7);
}
.author-exlibris-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 40px 14px 10px; }
.author-exlibris-eyebrow { font-size: 11.5px; font-weight: 700; color: var(--c-gold-dark); }
.author-exlibris-name { font-size: 15px; font-weight: 800; line-height: 1.55; color: var(--c-brand-green); min-height: 3.1em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author-exlibris-years { font-size: 12.5px; font-weight: 600; color: var(--c-ink-muted); }
.author-exlibris-rule { display: flex; align-items: center; gap: 8px; margin: 2px 0 1px; }
.author-exlibris-rule span { width: 24px; height: 1px; background: rgba(186, 155, 50, .55); }
.author-exlibris-rule i { width: 6px; height: 6px; background: var(--c-gold); transform: rotate(45deg); }
.author-exlibris-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--c-ink-muted); }
.author-exlibris-meta i { color: var(--c-gold); font-size: 12px; }
.author-exlibris-role { padding: 2px 10px; border-radius: 999px; background: rgba(0, 89, 67, .07); color: var(--c-brand-green); font-size: 11.5px; font-weight: 700; }
.author-exlibris-covers { display: flex; justify-content: center; align-items: flex-end; margin-top: 6px; padding: 8px 14px 0; min-height: 58px; border-radius: 10px; background: linear-gradient(180deg, transparent, rgba(241, 238, 219, .8)); }
.author-exlibris-covers img { width: 36px; height: 50px; object-fit: cover; border-radius: 2px 4px 4px 2px; border: 2px solid #fff; box-shadow: 0 8px 16px -8px rgba(0, 36, 27, .6); background: #eee7d2; }
.author-exlibris-covers img + img { margin-inline-start: -10px; }
.author-exlibris-covers img:nth-child(2) { height: 54px; position: relative; z-index: 1; }
.author-exlibris-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 12px 8px; padding: 8px; border-top: 1px dashed rgba(186, 155, 50, .4); font-size: 12.5px; font-weight: 800; color: var(--c-brand-green); }
.author-exlibris:hover .author-exlibris-foot { color: var(--c-gold-dark); }

/* ---------- article page: books mentioned in the article — compact horizontal cards on a quiet shelf ---------- */
.article-books-section { padding: 56px 0 30px; }
.article-books-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.article-books-shelf.article-books-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1020px; margin-inline: auto; }
.article-books-shelf.article-books-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; margin-inline: auto; }
.article-books-shelf.article-books-n1 { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; }
@media (max-width: 1100px) { .article-books-shelf, .article-books-shelf.article-books-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; margin-inline: auto; } }
@media (max-width: 600px) { .article-books-shelf, .article-books-shelf[class*="article-books-n"] { grid-template-columns: minmax(0, 1fr); max-width: 380px; } }
.article-book {
  position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: stretch; padding: 12px;
  background: #fffdf7; border: 1px solid rgba(186, 155, 50, .3); border-radius: 16px;
  box-shadow: 0 16px 34px -28px rgba(0, 56, 43, .5); transition: border-color .25s, box-shadow .25s;
}
.article-book:hover { border-color: rgba(186, 155, 50, .75); box-shadow: 0 20px 40px -26px rgba(0, 56, 43, .5); }
.article-book-cover { display: flex; align-items: center; justify-content: center; padding: 10px 8px; border-radius: 11px; background: radial-gradient(circle at 50% 30%, #f6f0dc, #ece2c4); }
.article-book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 18px -10px rgba(0, 36, 27, .7); }
.article-book-plain { width: 100%; aspect-ratio: 2 / 3; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 3px; color: #FAF0CD; font-size: 10px; font-weight: 700; text-align: center; line-height: 1.5; overflow: hidden; }
.article-book-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-block: 2px; }
.article-book-cat { font-size: 11.5px; font-weight: 700; color: var(--c-gold-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-book-cat i { font-size: 10px; }
.article-book-title { margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-book-title a { color: var(--c-brand-green); text-decoration: none; }
.article-book-title a:hover { color: var(--c-gold-dark); }
.article-book-author { font-size: 12px; color: var(--c-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-book-author i { color: var(--c-gold); font-size: 10.5px; }
.article-book-foot { margin-top: auto; padding-top: 9px; border-top: 1px dashed rgba(186, 155, 50, .35); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.article-book-price { font-size: 15px; font-weight: 800; color: var(--c-brand-green); white-space: nowrap; }
.article-book-price s { font-size: 12px; font-weight: 600; color: var(--c-ink-muted); }
.article-book-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 0; border-radius: 999px; background: var(--c-brand-green); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .2s; }
.article-book-add:hover { background: var(--c-gold-dark); }
.article-book-add.is-out { background: transparent; color: var(--c-brand-green); border: 1px solid rgba(0, 89, 67, .3); }

/* ---------- book page: the summary's quote mark sits at the start of the text (right in Arabic, left in English) ---------- */
.synopsis-pro-quote-mark { left: auto; right: auto; inset-inline-start: 18px; }
.synopsis-pro-body-wrap { padding-inline-start: 64px; }

/* ---------- book page: "you may also like", "more by", "articles that mention it" — framed shelves ---------- */
.book-shelf-section { padding: 14px 0 46px; }
.book-shelf {
  position: relative; isolation: isolate; overflow: hidden; padding: 40px 34px 34px; border-radius: 28px;
  background: linear-gradient(180deg, #fffdf7 0%, #f7f1df 100%);
  border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 30px 60px -44px rgba(0, 56, 43, .45);
}
.book-shelf::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, transparent, #BA9B32 15%, #E0C76C 50%, #BA9B32 85%, transparent); }
.book-shelf::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(186, 155, 50, .14); border-radius: 21px; pointer-events: none; z-index: -1; }
.book-shelf .ornate-head { margin-bottom: 30px; }
.book-shelf .ornate-head h2 { font-size: clamp(24px, 2.4vw, 32px); }
.book-shelf .related-books-grid { position: relative; z-index: 1; }
.book-shelf .cats-foot { margin-top: 30px; }
/* articles that mention the book: the home page's journal cards on the shelf */
.book-shelf-journal .journal-grid { position: relative; z-index: 1; }
/* a single article (the usual case): one horizontal card, the image beside the text */
.book-shelf-journal .journal-n1 { max-width: 880px; }
.book-shelf-journal .journal-n1 .journal-card { flex-direction: row; }
.book-shelf-journal .journal-n1 .journal-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 250px; }
@media (max-width: 680px) { .book-shelf-journal .journal-n1 .journal-card { flex-direction: column; } .book-shelf-journal .journal-n1 .journal-media { aspect-ratio: 16 / 9; min-height: 0; } }
.book-shelf-journal .journal-card { background: #fff; }
@media (max-width: 680px) { .book-shelf { padding: 30px 12px 22px; border-radius: 20px; } .book-shelf::after { inset: 6px; border-radius: 15px; } }

/* ---------- book page: open carousel rows ("You may also like", "More by…", series) one under another, no box ---------- */
.book-rail-section { padding: 18px 0 30px; }
.book-rail-section + .book-rail-section .book-rail { padding-top: 34px; border-top: 1px solid rgba(186, 155, 50, .22); }
.book-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.book-rail-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.book-rail-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--c-gold-dark); }
.book-rail-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #BA9B32, #E0C76C); }
.book-rail-titles h2 { margin: 0; font-size: clamp(21px, 2vw, 27px); font-weight: 800; color: var(--c-brand-green); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-rail-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.book-rail-all { display: inline-flex; align-items: center; gap: 7px; margin-inline-end: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(0, 89, 67, .22); color: var(--c-brand-green); font-size: 13px; font-weight: 800; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.book-rail-all:hover { background: var(--c-brand-green); border-color: var(--c-brand-green); color: #fff; }
.book-rail-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(186, 155, 50, .45); background: #fff; color: var(--c-brand-green); font-size: 13px; cursor: pointer; box-shadow: 0 8px 18px -12px rgba(0, 56, 43, .5); transition: background .2s, color .2s, opacity .2s; }
.book-rail-btn:hover:not(:disabled) { background: var(--c-brand-green); color: #E0C76C; border-color: var(--c-brand-green); }
.book-rail-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.rail-static .book-rail-btn { display: none; }
/* five books in view, the rest one swipe away */
.book-rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; margin: -4px -2px 0; scrollbar-width: none;
}
.book-rail-track::-webkit-scrollbar { display: none; }
.book-rail-track > .product-item-card { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1200px) { .book-rail-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 992px) { .book-rail-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; } }
/* phones: two books and a peek of the third, swiping only */
@media (max-width: 680px) {
  .book-rail-track { grid-auto-columns: 44%; gap: 12px; }
  .book-rail-btn { display: none; }
  .book-rail-all { margin: 0; padding: 7px 12px; font-size: 12px; }
}

/* ---------- books page, "Our releases" (?f[]=ours): the house's own header — gold seal, framed stage, figures ---------- */
.releases-stage { border: 1px solid rgba(224, 199, 108, .55); box-shadow: 0 30px 70px -40px rgba(0, 36, 27, .8); }
.releases-stage::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(224, 199, 108, .3); border-radius: 18px; pointer-events: none; z-index: 1; }
.releases-stage .stage-header { position: relative; z-index: 2; }
.releases-seal {
  display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #0d5f48, #00261d); border: 1px solid rgba(224, 199, 108, .85);
  box-shadow: 0 0 0 6px rgba(0, 36, 27, .55), 0 0 0 7px rgba(224, 199, 108, .45), 0 18px 34px -14px rgba(0, 0, 0, .7);
}
.releases-seal img { width: 54px; height: auto; }
.releases-stage .stage-headline { font-size: clamp(32px, 3.4vw, 44px); }
.releases-stats { list-style: none; margin: 14px 0 4px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.releases-stats li { display: flex; align-items: baseline; gap: 8px; padding: 9px 20px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(224, 199, 108, .35); }
.releases-stats strong { color: #E0C76C; font-size: 22px; font-weight: 900; line-height: 1; }
.releases-stats span { color: rgba(250, 240, 205, .85); font-size: 13px; font-weight: 700; }
@media (max-width: 680px) { .releases-seal { width: 70px; height: 70px; } .releases-seal img { width: 44px; } .releases-stats li { padding: 7px 14px; } .releases-stats strong { font-size: 18px; } }

/* ---------- about the house ---------- */
.about-hero { position: relative; overflow: hidden; background-size: cover; background-position: center; color: #FAF0CD; padding: 26px 0 84px; }
.about-hero::before { content: ""; position: absolute; inset: 0; background-color: rgba(224, 199, 108, .06); -webkit-mask: var(--orn-khatam) center / 90px repeat; mask: var(--orn-khatam) center / 90px repeat; pointer-events: none; }
.about-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #BA9B32 20%, #E0C76C 50%, #BA9B32 80%, transparent); }
.about-hero .site-wrap { position: relative; }
.about-crumbs a, .about-crumbs .crumb-sep { color: rgba(250, 240, 205, .7); }
.about-crumbs .crumb-current { color: #E0C76C; }
.about-hero-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 26px; }
.about-seal { width: 96px; height: 96px; margin-bottom: 10px; }
.about-seal img { width: 60px; }
.about-hero-kicker { display: inline-flex; align-items: center; gap: 12px; color: #E0C76C; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; }
.about-hero-kicker i { width: 36px; height: 1px; background: rgba(224, 199, 108, .6); }
.about-hero h1 { margin: 0; color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 900; line-height: 1.2; }
.about-hero p { margin: 0; color: rgba(250, 240, 205, .82); font-size: 17px; font-weight: 600; }

.about-figures { position: relative; z-index: 2; margin-top: -44px; }
.about-figures-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fffdf7; border: 1px solid rgba(186, 155, 50, .35); border-radius: 22px; box-shadow: 0 26px 50px -34px rgba(0, 56, 43, .55); overflow: hidden; }
.about-figures-row li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 10px; text-align: center; }
.about-figures-row li + li { border-inline-start: 1px solid rgba(186, 155, 50, .22); }
.about-figures-row.about-figures-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
.about-figures-row strong { font-size: 32px; font-weight: 900; line-height: 1.1; color: var(--c-brand-green); }
.about-figures-row span { font-size: 13px; font-weight: 700; color: var(--c-gold-dark); }

.about-story { padding: 80px 0 40px; }
.about-story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.about-story-text h2 { margin: 6px 0 18px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 900; color: var(--c-brand-green); line-height: 1.35; }
.about-story-text .rich-text p { font-size: 16.5px; line-height: 2.05; color: #3b3328; margin: 0 0 16px; text-align: justify; }
.about-story-media { position: relative; isolation: isolate; padding-bottom: 70px; padding-inline-end: 50px; }
.about-photo { display: block; border-radius: 20px; object-fit: cover; }
.about-photo-main { width: 100%; aspect-ratio: 4 / 3; border: 1px solid rgba(186, 155, 50, .4); box-shadow: 0 30px 60px -36px rgba(0, 36, 27, .7); }
.about-photo-inset { position: absolute; bottom: 0; inset-inline-end: 0; width: 52%; aspect-ratio: 4 / 3; border: 6px solid #fffdf7; outline: 1px solid rgba(186, 155, 50, .55); box-shadow: 0 24px 44px -24px rgba(0, 36, 27, .75); }
.about-story-media::before { content: ""; position: absolute; top: -22px; inset-inline-start: -22px; width: 120px; height: 120px; background-color: rgba(186, 155, 50, .35); -webkit-mask: var(--orn-star) center / contain no-repeat; mask: var(--orn-star) center / contain no-repeat; z-index: -1; }

.about-pillars { padding: 50px 0 40px; }
.about-pillars .ornate-head { margin-bottom: 34px; }
.about-pillars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.about-pillar { position: relative; padding: 30px 24px 26px; border-radius: 20px; background: #fffdf7; border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 18px 40px -32px rgba(0, 56, 43, .5); text-align: center; }
.about-pillar::before { content: ""; position: absolute; inset-inline: 30%; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #BA9B32, #E0C76C, #BA9B32); }
.about-pillar-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: linear-gradient(160deg, #0b5a44, #00382b); color: #E0C76C; font-size: 22px; box-shadow: 0 0 0 4px #fffdf7, 0 0 0 5px rgba(186, 155, 50, .45); }
.about-pillar h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--c-brand-green); }
.about-pillar p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--c-ink-muted); }

.about-journey { padding: 50px 0 30px; }
.about-journey .ornate-head { margin-bottom: 40px; }
.about-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.about-timeline::before { content: ""; position: absolute; top: 9px; inset-inline: 6%; height: 2px; background: linear-gradient(90deg, rgba(186, 155, 50, .15), rgba(186, 155, 50, .7), rgba(186, 155, 50, .15)); }
.about-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 34px; }
.about-timeline-dot { position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #00382b; border: 2px solid #E0C76C; box-shadow: 0 0 0 5px #FBF9ED; }
.about-timeline-when { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(186, 155, 50, .14); color: var(--c-gold-dark); font-size: 13.5px; font-weight: 900; }
.about-timeline h3 { margin: 4px 0 0; font-size: 17px; font-weight: 800; color: var(--c-brand-green); }
.about-timeline p { margin: 0; max-width: 260px; font-size: 14px; line-height: 1.8; color: var(--c-ink-muted); }
.about-fairs { margin: 34px auto 0; max-width: 640px; text-align: center; font-size: 15px; font-weight: 700; color: var(--c-brand-green); }
.about-fairs i { color: var(--c-gold); margin-inline-end: 6px; }

.about-places { padding: 50px 0 80px; }
.about-places-panel { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 46px 40px 40px; text-align: center; color: #FAF0CD; background: radial-gradient(120% 100% at 50% 0%, #0b5f47 0%, #00382b 55%, #00241b 100%); box-shadow: 0 40px 80px -40px rgba(0, 36, 27, .7), inset 0 0 0 1px rgba(224, 199, 108, .35); }
.about-places-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(224, 199, 108, .05); -webkit-mask: var(--orn-khatam) center / 110px repeat; mask: var(--orn-khatam) center / 110px repeat; }
.about-places-panel::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(224, 199, 108, .22); border-radius: 22px; pointer-events: none; }
.about-places-head h2 { margin: 6px 0 26px; color: #fff; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; }
.about-places-head .book-rail-kicker { color: #E0C76C; }
.about-places-list { list-style: none; margin: 0 auto 30px; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.about-places-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(224, 199, 108, .3); }
.about-places-list i { color: #E0C76C; font-size: 18px; }
.about-places-list strong { color: #fff; font-size: 20px; font-weight: 900; }
.about-places-list span { color: rgba(250, 240, 205, .75); font-size: 13.5px; font-weight: 600; }
.about-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; position: relative; z-index: 1; }
.about-cta .cats-all-btn { background: linear-gradient(180deg, #E0C76C, #BA9B32); color: #00241B; }
.about-cta .cats-all-btn .cats-all-icon { background: rgba(0, 36, 27, .12); color: #00382b; border-color: rgba(0, 36, 27, .25); }
.about-cta .cats-all-btn .cats-all-arrow { background: #00382b; color: #E0C76C; }
.about-contact-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(224, 199, 108, .55); color: #FAF0CD; font-weight: 800; font-size: 14.5px; text-decoration: none; transition: background .2s, color .2s; }
.about-contact-link:hover { background: rgba(224, 199, 108, .15); color: #fff; }

@media (max-width: 1100px) {
  .about-figures-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-figures-row li:nth-child(4) { border-inline-start: 0; }
  .about-figures-row li:nth-child(n+4) { border-top: 1px solid rgba(186, 155, 50, .22); }
  .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-story-media { max-width: 620px; margin-inline: auto; width: 100%; }
  .about-pillars-grid, .about-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .about-timeline::before { display: none; }
}
@media (max-width: 640px) {
  .about-figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-figures-row li { border-inline-start: 0 !important; border-top: 1px solid rgba(186, 155, 50, .22); }
  .about-figures-row li:first-child, .about-figures-row li:nth-child(2) { border-top: 0; }
  .about-figures-row li:last-child { grid-column: span 2; }
  .about-pillars-grid, .about-timeline, .about-places-list { grid-template-columns: 1fr; }
  .about-places-panel { padding: 36px 16px 30px; }
  .about-story-media { padding-inline-end: 30px; padding-bottom: 50px; }
}

/* ---------- contact us (the hero and the floating band are the about page's) ---------- */
.contact-hero { padding-bottom: 92px; }
.contact-channels-row { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fffdf7; border: 1px solid rgba(186, 155, 50, .35); border-radius: 22px; box-shadow: 0 26px 50px -34px rgba(0, 56, 43, .55); overflow: hidden; }
.contact-channels-row.contact-channels-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
.contact-channels-row.contact-channels-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.contact-channels-row li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 24px 14px 22px; text-align: center; min-width: 0; }
.contact-channels-row li + li { border-inline-start: 1px solid rgba(186, 155, 50, .22); }
.contact-channel-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 14px; background: linear-gradient(160deg, #0b5a44, #00382b); color: #E0C76C; font-size: 17px; box-shadow: 0 0 0 3px #fffdf7, 0 0 0 4px rgba(186, 155, 50, .45); }
.contact-channel-label { font-size: 12.5px; font-weight: 700; color: var(--c-gold-dark); }
.contact-channels-row a, .contact-channels-row strong { font-size: 15px; font-weight: 800; color: var(--c-brand-green); text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
.contact-channels-row a:hover { color: var(--c-gold-dark); }

.contact-main { padding: 70px 0 90px; }
.contact-main-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-form-card { position: relative; padding: 38px 36px 34px; border-radius: 26px; background: #fffdf7; border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 30px 60px -44px rgba(0, 56, 43, .5); }
.contact-form-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, transparent, #BA9B32 15%, #E0C76C 50%, #BA9B32 85%, transparent); }
.contact-form-card h2, .contact-visit h2 { margin: 6px 0 12px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 900; color: var(--c-brand-green); }
.contact-intro p { margin: 0 0 18px; color: var(--c-ink-muted); font-size: 15px; line-height: 1.9; }
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label > span { font-size: 13.5px; font-weight: 800; color: var(--c-brand-green); }
.contact-form label b { color: #a33a2c; }
.contact-form label small { color: var(--c-ink-muted); font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(186, 155, 50, .35); background: #fff;
  font: inherit; font-size: 14.5px; color: var(--c-ink); transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.8; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: #BA9B32; box-shadow: 0 0 0 4px rgba(186, 155, 50, .15); }
.contact-hp { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; inset-inline-start: -9999px; }
.contact-form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.contact-submit { border: 1px solid rgba(224, 199, 108, .7); cursor: pointer; font: inherit; font-size: 15px; font-weight: 800; }
.contact-submit:disabled { opacity: .6; cursor: wait; }
.contact-form-foot small { color: var(--c-ink-muted); font-size: 12.5px; }
.contact-form-foot small a { color: var(--c-brand-green); font-weight: 700; }
.contact-sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 10px 20px; }
.contact-sent[hidden] { display: none; }
.contact-sent-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(160deg, #0b5a44, #00382b); color: #E0C76C; font-size: 26px; box-shadow: 0 0 0 5px #fffdf7, 0 0 0 6px rgba(186, 155, 50, .5); margin-bottom: 8px; }
.contact-sent h3 { margin: 0; font-size: 21px; font-weight: 900; color: var(--c-brand-green); }
.contact-sent p { margin: 0; color: var(--c-ink-muted); }

.contact-visit { position: relative; overflow: hidden; isolation: isolate; padding: 36px 30px 30px; border-radius: 26px; color: #FAF0CD; background: radial-gradient(130% 100% at 50% 0%, #0b5f47 0%, #00382b 55%, #00241b 100%); box-shadow: 0 30px 60px -36px rgba(0, 36, 27, .7), inset 0 0 0 1px rgba(224, 199, 108, .35); }
.contact-visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(224, 199, 108, .05); -webkit-mask: var(--orn-khatam) center / 90px repeat; mask: var(--orn-khatam) center / 90px repeat; }
.contact-visit::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(224, 199, 108, .2); border-radius: 19px; pointer-events: none; }
.contact-visit .book-rail-kicker { color: #E0C76C; }
.contact-visit h2 { color: #fff; }
.contact-address { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(224, 199, 108, .3); font-size: 15px; font-weight: 700; line-height: 1.7; color: #fff; }
.contact-address i { color: #E0C76C; margin-top: 5px; }
.contact-map-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(180deg, #E0C76C, #BA9B32); color: #00241B; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.contact-map-btn:hover { background: linear-gradient(180deg, #F2DD8C, #CCA83B); }
.contact-block { position: relative; z-index: 1; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(224, 199, 108, .3); }
.contact-block h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #E0C76C; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(224, 199, 108, .45); color: #FAF0CD; font-size: 16px; text-decoration: none; transition: background .2s, color .2s; }
.contact-socials a:hover { background: #E0C76C; color: #00241B; }
.contact-useful { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-useful a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #FAF0CD; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.contact-useful a i { color: #E0C76C; font-size: 12px; }
.contact-useful a:hover { background: rgba(224, 199, 108, .14); color: #fff; }

@media (max-width: 1000px) {
  .contact-main-grid { grid-template-columns: 1fr; }
  .contact-channels-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .contact-channels-row li:nth-child(3) { border-inline-start: 0; }
  .contact-channels-row li:nth-child(n+3) { border-top: 1px solid rgba(186, 155, 50, .22); }
}
@media (max-width: 600px) {
  .contact-form-card { padding: 30px 18px 24px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-channels-row { grid-template-columns: 1fr !important; }
  .contact-channels-row li { border-inline-start: 0 !important; }
  .contact-channels-row li + li { border-top: 1px solid rgba(186, 155, 50, .22); }
  .contact-visit { padding: 30px 18px 24px; }
}

/* ==========================================================================
   Header, refined (same heights as the design):
   1. announcement  2. brand · search · tools (scroll away)  3. the menu bar (sticky; carries account, wishlist, bag once stuck)
   ========================================================================== */
/* 1. announcement: deep green with a gold hairline */
.store-announcement { position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 8px 16px 9px; background-image: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 30%, transparent 70%, rgba(0, 0, 0, .12)); }
.store-announcement::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(224, 199, 108, .7), transparent); }
.store-announcement i { color: #E0C76C; }

/* 2. brand row: no longer sticky (the menu bar is), a soft cream wash and a gold rule */
#master-site-header { position: relative; z-index: 1001; box-shadow: none; background: transparent; }
.header-upper-tier { background: linear-gradient(180deg, #ffffff 0%, #fdfbf4 100%); border-bottom: 0; }
.header-upper-container { gap: 24px; }
.brand-name { color: #00473a; }
.header-search-console { background: #fbf9f1; border-color: rgba(186, 155, 50, .28); box-shadow: inset 0 1px 2px rgba(0, 56, 43, .04); }
.header-search-console:focus-within { transform: none; }
.btn-header-search-submit:hover, .btn-royal-cart:hover, .tool-icon-btn:hover { transform: none; }
.header-tools-suite { gap: 10px; }
.tools-divider { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, rgba(186, 155, 50, .45), transparent); }
.lang-switch-btn { height: 40px; font-size: 13px; border-color: rgba(186, 155, 50, .35); background: #fff; }
.tool-icon-btn { background: #fff; }
/* account (sign in) */
.account-btn { display: inline-flex; align-items: center; gap: 9px; padding: 3px 4px; padding-inline-end: 12px; height: 42px; border-radius: 999px; text-decoration: none; color: #00382b; transition: background .2s; }
.account-btn:hover { background: rgba(186, 155, 50, .1); }
.account-btn-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid rgba(186, 155, 50, .4); color: #005943; font-size: 14px; transition: border-color .2s, color .2s; }
.account-btn:hover .account-btn-icon { border-color: #BA9B32; color: #8F7520; }
.account-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.account-btn-text small { font-size: 11px; font-weight: 600; color: #8c7f6f; }
.account-btn-text strong { font-size: 13px; font-weight: 800; color: #00473a; white-space: nowrap; }

/* 3. the menu bar: deep green, gold accents, sticky */
.header-lower-tier {
  position: sticky; top: 0; z-index: 1000; padding: 7px 0;
  background: linear-gradient(180deg, #004a3a 0%, #00382b 100%);
  border-top: 1px solid rgba(224, 199, 108, .35); border-bottom: 0;
  box-shadow: 0 1px 0 rgba(224, 199, 108, .35);
  transition: box-shadow .25s;
}
.header-lower-tier::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, #BA9B32 20%, #E0C76C 50%, #BA9B32 80%, transparent); pointer-events: none; }
.header-lower-tier.is-stuck { box-shadow: 0 12px 30px -14px rgba(0, 36, 27, .6); }
.header-lower-container { gap: 18px; }
.nav-primary-cluster { gap: 20px; min-width: 0; }
.nav-dep-btn { background: linear-gradient(135deg, #E0C76C 0%, #BA9B32 100%); color: #00241B; border-color: rgba(250, 240, 205, .6); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.nav-dep-btn i:first-child, .dep-chevron { color: #00382b; }
.nav-dep-btn:hover, .nav-dep-dropdown-wrap:hover .nav-dep-btn { background: linear-gradient(135deg, #F2DD8C 0%, #CCA83B 100%); }
.sleek-nav-link { color: rgba(250, 240, 205, .88); font-weight: 700; }
.sleek-nav-link:hover { color: #E0C76C; }
.sleek-nav-link.active { color: #fff; }
.sleek-nav-link.active::after { bottom: -9px; height: 2px; background: #E0C76C; }
.nav-sub-chevron { color: #E0C76C; }
.nav-links-sleek { gap: 20px; }
.nav-prestige-badge { background: rgba(255, 255, 255, .06); border-color: rgba(224, 199, 108, .4); color: rgba(250, 240, 205, .9); }
.nav-prestige-badge:hover { background: rgba(255, 255, 255, .1); border-color: #E0C76C; }
.nav-prestige-badge i { color: #E0C76C; }
.nav-sub-menu { top: calc(100% + 9px); }

/* stuck: a small gold seal at the start, account · wishlist · bag at the end */
.nav-stuck-brand, .nav-stuck-tools { display: none; }
.header-lower-tier.is-stuck .nav-stuck-brand { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(224, 199, 108, .55); background: rgba(0, 0, 0, .18); }
.nav-stuck-brand img { width: 24px; height: auto; }
.header-lower-tier.is-stuck .nav-stuck-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-shrink: 0; }
.header-lower-tier.is-stuck .nav-prestige-badge { display: none; }
.nav-stuck-btn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(224, 199, 108, .5); background: rgba(255, 255, 255, .06); color: #FAF0CD; font-size: 13px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.nav-stuck-btn:hover { background: rgba(224, 199, 108, .18); color: #fff; }
.nav-stuck-cart { display: inline-flex; gap: 7px; width: auto; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, #E0C76C, #BA9B32); border-color: rgba(250, 240, 205, .6); color: #00241B; font: inherit; font-size: 12.5px; font-weight: 800; }
.nav-stuck-cart:hover { background: linear-gradient(135deg, #F2DD8C, #CCA83B); color: #00241B; }
.nav-stuck-badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #E0C76C; color: #00241B; font-size: 10px; font-weight: 900; line-height: 1; border: 1.5px solid #00382b; }
.nav-stuck-cart .nav-stuck-badge { background: #00382b; color: #E0C76C; border-color: #E0C76C; }

/* phones and tablets: the brand row stays at the top (the menu is a side panel, see below) */
@media (max-width: 1024px) {
  #master-site-header { position: sticky; top: 0; box-shadow: 0 6px 18px -12px rgba(0, 56, 43, .45); }
  .account-btn-text { display: none; }
  .account-btn { padding: 3px; }
  .tools-divider { display: none; }
  .header-lower-tier .nav-stuck-brand, .header-lower-tier .nav-stuck-tools { display: none !important; }
}
@media (max-width: 640px) {
  .account-btn-icon { width: 34px; height: 34px; }
}

/* ---------- account (sign in): placeholder until customer accounts exist ---------- */
.account-soon { padding: 28px 0 90px; }
.account-soon-card { position: relative; max-width: 640px; margin: 30px auto 0; padding: 44px 40px 36px; text-align: center; border-radius: 26px; background: #fffdf7; border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 30px 60px -44px rgba(0, 56, 43, .5); }
.account-soon-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, transparent, #BA9B32 15%, #E0C76C 50%, #BA9B32 85%, transparent); }
.account-soon-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(160deg, #0b5a44, #00382b); color: #E0C76C; font-size: 26px; box-shadow: 0 0 0 5px #fffdf7, 0 0 0 6px rgba(186, 155, 50, .5); }
.account-soon-card .book-rail-kicker { justify-content: center; }
.account-soon-card h1 { margin: 6px 0 12px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; color: var(--c-brand-green); }
.account-soon-card > p { margin: 0 auto 18px; max-width: 480px; color: var(--c-ink-muted); line-height: 1.9; }
.account-soon-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.account-soon-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(186, 155, 50, .1); color: var(--c-brand-green); font-size: 13px; font-weight: 700; }
.account-soon-list i { color: var(--c-gold-dark); }
.account-soon-card .account-soon-note { font-size: 13.5px; }
.account-soon-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
/* phones: brand and tools on one row, the search under them */
@media (max-width: 640px) {
  .header-upper-container { gap: 8px 10px; }
  .header-upper-tier { padding: 6px 0 8px; }
  .brand-box { gap: 8px; }
  .brand-logo { height: 42px; }
  .brand-name { font-size: 17px; }
  .header-tools-suite { gap: 6px; margin-inline-start: auto; }
  .lang-switch-btn, .tool-icon-btn, .account-btn-icon { width: 34px; height: 34px; }
  .account-btn { height: auto; padding: 0; }
  .btn-royal-cart { padding: 3px; }
  .royal-cart-icon-wrap { width: 28px; height: 28px; }
  .header-search-console { padding: 3px 4px; padding-inline-start: 12px; }
  .btn-header-search-submit { padding: 5px 14px; }
}
@media (max-width: 380px) { .brand-name { display: none; } }

/* ---------- header menus: the categories mega menu and the sub-menus (Books…) ---------- */
.departments-mega-dropdown.mega-menu {
  top: calc(100% + 14px); right: auto; left: auto; inset-inline-start: 0;
  width: min(880px, calc(100vw - 48px)); min-width: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; overflow: hidden;
  background: #fffdf7; border: 1px solid rgba(186, 155, 50, .4); border-radius: 22px;
  box-shadow: 0 34px 70px -30px rgba(0, 36, 27, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}
/* the little gap between the button and the panel stays hoverable */
.departments-mega-dropdown.mega-menu::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.departments-mega-dropdown.mega-menu::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, #BA9B32, #E0C76C 50%, #BA9B32); z-index: 2; }
.mega-main { padding: 22px 22px 18px; min-width: 0; }
.mega-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px dashed rgba(186, 155, 50, .35); }
.mega-head > div { display: flex; flex-direction: column; gap: 2px; }
.mega-kicker { font-size: 11.5px; font-weight: 700; color: #8F7520; }
.mega-head strong { font-size: 19px; font-weight: 900; color: #00382b; line-height: 1.3; }
.mega-all { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(0, 89, 67, .22); color: #005943; font-size: 12.5px; font-weight: 800; text-decoration: none; transition: background .2s, color .2s; }
.mega-all:hover { background: #005943; color: #fff; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
.mega-cat { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 14px; text-decoration: none; transition: background .18s; min-width: 0; }
.mega-cat:hover { background: #f4eedb; }
.mega-cat-img { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; object-fit: cover; border: 1px solid rgba(186, 155, 50, .4); box-shadow: 0 6px 12px -8px rgba(0, 36, 27, .6); background: #f1eedb; }
.mega-cat-icon { display: grid; place-items: center; background: linear-gradient(160deg, #0b5a44, #00382b); color: #E0C76C; font-size: 16px; }
.mega-cat-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-cat-info strong { font-size: 13.5px; font-weight: 800; color: #00382b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .18s; }
.mega-cat:hover .mega-cat-info strong { color: #8F7520; }
.mega-cat-info small { font-size: 11.5px; font-weight: 600; color: #7a7064; }
.mega-side { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 22px 20px; color: #FAF0CD; background: radial-gradient(130% 90% at 50% 0%, #0b5f47 0%, #00382b 60%, #00261d 100%); }
.mega-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(224, 199, 108, .07); -webkit-mask: var(--orn-khatam) center / 70px repeat; mask: var(--orn-khatam) center / 70px repeat; }
.mega-side-seal { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; border: 1px solid rgba(224, 199, 108, .7); background: rgba(0, 0, 0, .2); box-shadow: 0 0 0 4px rgba(0, 0, 0, .15); }
.mega-side-seal img { width: 34px; height: auto; }
.mega-side-kicker { font-size: 11.5px; font-weight: 700; color: #E0C76C; }
.mega-side > strong { font-size: 18px; font-weight: 900; color: #fff; line-height: 1.4; }
.mega-side > p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.8; color: rgba(250, 240, 205, .78); }
.mega-side-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: linear-gradient(135deg, #E0C76C, #BA9B32); color: #00241B; font-size: 12.5px; font-weight: 800; text-decoration: none; }
.mega-side-btn:hover { background: linear-gradient(135deg, #F2DD8C, #CCA83B); }
.mega-side-links { width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(224, 199, 108, .3); display: flex; flex-direction: column; gap: 2px; }
.mega-side-links a { display: flex; align-items: center; gap: 9px; padding: 7px 4px; color: rgba(250, 240, 205, .88); font-size: 13px; font-weight: 700; text-decoration: none; }
.mega-side-links a i { width: 16px; color: #E0C76C; font-size: 12px; }
.mega-side-links a:hover { color: #fff; }

/* sub-menus (e.g. Books): a framed card with a gold rule, dots that turn into arrows */
.nav-links-sleek .nav-sub-menu {
  top: calc(100% + 14px); right: auto; left: auto; inset-inline-start: -14px; min-width: 250px; padding: 10px;
  background: #fffdf7; border: 1px solid rgba(186, 155, 50, .4); border-radius: 18px;
  box-shadow: 0 28px 56px -28px rgba(0, 36, 27, .55);
}
.nav-links-sleek .nav-sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -16px; height: 16px; }
.nav-links-sleek .nav-sub-menu::after { content: ""; position: absolute; inset-inline: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #BA9B32, #E0C76C 50%, #BA9B32); }
.nav-sub-head { display: block; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px dashed rgba(186, 155, 50, .35); font-size: 11.5px; font-weight: 800; color: #8F7520; }
.nav-links-sleek .nav-sub-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; color: #00382b; font-size: 13.5px; font-weight: 700; transition: background .18s, color .18s; }
.nav-links-sleek .nav-sub-menu a > span { flex: 1; }
.nav-sub-dot { width: 6px; height: 6px; flex-shrink: 0; background: #BA9B32; transform: rotate(45deg); opacity: .6; transition: opacity .18s; }
.nav-sub-arrow { font-size: 10px; color: #BA9B32; opacity: 0; transition: opacity .18s; }
.nav-links-sleek .nav-sub-menu a:hover, .nav-links-sleek .nav-sub-menu a.active { background: #f4eedb; color: #00382b; }
.nav-links-sleek .nav-sub-menu a:hover .nav-sub-dot { opacity: 1; }
.nav-links-sleek .nav-sub-menu a:hover .nav-sub-arrow { opacity: 1; }
/* the last link ("All categories") closes the card */
.nav-links-sleek .nav-sub-menu a:last-child { margin-top: 4px; border-top: 1px dashed rgba(186, 155, 50, .35); border-radius: 0 0 11px 11px; color: #005943; font-weight: 800; }
.nav-links-sleek .nav-sub-menu a:last-child .nav-sub-arrow { opacity: 1; }

@media (max-width: 1100px) { .departments-mega-dropdown.mega-menu { grid-template-columns: minmax(0, 1fr); } .mega-side { display: none; } }

/* ---------- announcement bar: several messages, a gold star between them; a ticker only when they do not fit ---------- */
.store-announcement { padding: 0; background-color: var(--ann-bg, #003328); color: #FAF0CD; overflow: hidden; }
.ann-viewport { overflow: hidden; padding: 8px 0 9px; }
.ann-track { display: flex; width: max-content; max-width: none; margin-inline: auto; }
.ann-group { display: flex; align-items: center; flex-shrink: 0; }
.ann-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: inherit; text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.ann-item i { color: #E0C76C; font-size: 12px; }
a.ann-item:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(224, 199, 108, .8); }
/* the separator: a small eight-pointed star between two hairlines */
.ann-sep, .is-ticker .ann-group::after {
  position: relative; flex-shrink: 0; width: 64px; height: 12px; margin-inline: 16px;
  background: linear-gradient(90deg, transparent 0, rgba(224, 199, 108, .6) 35%, transparent 35%, transparent 65%, rgba(224, 199, 108, .6) 65%, transparent 100%) center / 100% 1px no-repeat;
}
.ann-sep::after, .is-ticker .ann-group::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%);
  background-color: #E0C76C; -webkit-mask: var(--orn-star) center / contain no-repeat; mask: var(--orn-star) center / contain no-repeat;
}
/* in the ticker the end of one copy meets the start of the next: the same separator closes each copy */
.is-ticker .ann-group { position: relative; }
.is-ticker .ann-group::after { content: ""; }
.is-ticker .ann-group::before { left: auto; inset-inline-end: 26px; transform: translateY(-50%); }
/* ticker: moves in the reading direction (left to right in Arabic, right to left in English), pauses under the mouse */
.is-ticker .ann-track { margin-inline: 0; animation: annTicker var(--ann-duration, 30s) linear infinite; will-change: transform; }
[dir="rtl"] .is-ticker .ann-track { animation-name: annTickerRtl; }
.is-ticker:hover .ann-track, .is-ticker:focus-within .ann-track { animation-play-state: paused; }
.is-ticker .ann-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
@keyframes annTicker { to { transform: translateX(-50%); } }
@keyframes annTickerRtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .is-ticker .ann-track { animation: none; }
  .is-ticker .ann-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
}
/* a light colour (gold, cream…) gets dark text */
.ann-light { color: #1d1608; }
.ann-light .ann-item i { color: #5b4708; }
.ann-light .ann-sep, .ann-light.is-ticker .ann-group::after { background-image: linear-gradient(90deg, transparent 0, rgba(29, 22, 8, .45) 35%, transparent 35%, transparent 65%, rgba(29, 22, 8, .45) 65%, transparent 100%); }
.ann-light .ann-sep::after, .ann-light.is-ticker .ann-group::before { background-color: #4a3a06; }
.ann-light::after { background: linear-gradient(90deg, transparent, rgba(29, 22, 8, .35), transparent); }

/* ---------- phones and tablets: the menu is a panel sliding in from the side (start), over a dimmed page ---------- */
.nav-drawer-head, .nav-drawer-foot, .nav-sub-toggle, .nav-drawer-backdrop { display: none; }
@media (max-width: 1024px) {
  html.nav-locked { overflow: hidden; }
  .nav-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 1150; background: rgba(0, 20, 15, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  body.mobile-nav-open .nav-drawer-backdrop { opacity: 1; visibility: visible; }

  .header-lower-tier, body.mobile-nav-open .header-lower-tier {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1200;
    width: min(360px, 88vw); padding: 0; overflow: hidden;
    background: #fffdf7; border: 0; border-inline-end: 1px solid rgba(186, 155, 50, .4);
    box-shadow: 0 0 60px -10px rgba(0, 20, 15, .55);
    transform: translateX(-102%); visibility: hidden; transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility .35s;
  }
  [dir="rtl"] .header-lower-tier { transform: translateX(102%); }
  body.mobile-nav-open .header-lower-tier { transform: none; visibility: visible; }
  .header-lower-tier::after { display: none; }

  /* head: the house's seal and name on green, and the close button */
  .nav-drawer-head { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 18px 16px; color: #FAF0CD; background: radial-gradient(140% 120% at 100% 0%, #0b5f47 0%, #00382b 60%, #00261d 100%); border-bottom: 2px solid #BA9B32; }
  .nav-drawer-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(224, 199, 108, .07); -webkit-mask: var(--orn-khatam) center / 64px repeat; mask: var(--orn-khatam) center / 64px repeat; }
  .nav-drawer-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; min-width: 0; }
  .nav-drawer-seal { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(224, 199, 108, .7); background: rgba(0, 0, 0, .2); }
  .nav-drawer-seal img { width: 30px; height: auto; }
  .nav-drawer-brand strong { display: block; font-size: 17px; font-weight: 900; color: #fff; line-height: 1.3; }
  .nav-drawer-brand small { display: block; font-size: 11.5px; font-weight: 600; color: rgba(250, 240, 205, .7); }
  .nav-drawer-close { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(224, 199, 108, .55); background: rgba(255, 255, 255, .08); color: #FAF0CD; font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
  .nav-drawer-close:hover, .nav-drawer-close:focus-visible { background: #E0C76C; color: #00241B; outline: 0; }

  /* body: categories, then the links */
  .header-lower-container { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px 10px; overflow-y: auto; overscroll-behavior: contain; }
  .nav-primary-cluster { flex-direction: column; align-items: stretch; gap: 14px; }
  .nav-dep-btn { width: 100%; justify-content: space-between; padding: 12px 16px; font-size: 14px; border-radius: 14px; }
  .nav-dep-btn span { flex: 1; text-align: start; }
  .nav-dep-btn[aria-expanded="true"] .dep-chevron { transform: rotate(180deg); }
  .departments-mega-dropdown.mega-menu { position: static; display: none; width: 100%; margin-top: 8px; opacity: 1; visibility: visible; transform: none; grid-template-columns: minmax(0, 1fr); border-radius: 16px; box-shadow: none; }
  .departments-mega-dropdown.mega-menu.active-touch { display: grid; }
  .departments-mega-dropdown.mega-menu::before { display: none; }
  .mega-main { padding: 12px; }
  .mega-head { padding-bottom: 10px; margin-bottom: 8px; }
  .mega-head strong { font-size: 15px; }
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
  .mega-cat { padding: 6px; gap: 8px; }
  .mega-cat-img { width: 38px; height: 38px; border-radius: 10px; }
  .mega-cat-info strong { font-size: 12.5px; }

  .nav-links-sleek { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links-sleek > li { position: relative; border-bottom: 1px dashed rgba(186, 155, 50, .3); }
  .nav-links-sleek .sleek-nav-link { display: flex; align-items: center; padding: 14px 6px; color: #00382b; font-size: 15px; font-weight: 800; }
  .nav-links-sleek .sleek-nav-link:hover { color: #8F7520; }
  .nav-links-sleek .sleek-nav-link.active { color: #8F7520; }
  .nav-links-sleek .sleek-nav-link.active::after { top: 50%; bottom: auto; left: auto; right: auto; inset-inline-start: -16px; width: 4px; height: 22px; transform: translateY(-50%); border-radius: 0 4px 4px 0; background: #BA9B32; }
  .nav-sub-chevron { display: none; }
  .nav-sub-toggle { display: grid; place-items: center; position: absolute; top: 9px; inset-inline-end: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(186, 155, 50, .4); background: #fff; color: #005943; font-size: 11px; cursor: pointer; transition: transform .25s, background .2s; }
  .has-sub.sub-open .nav-sub-toggle { transform: rotate(180deg); background: #f4eedb; }
  .nav-links-sleek .nav-sub-menu, body.mobile-nav-open .nav-sub-menu {
    position: static; display: none; min-width: 0; margin: 0 0 12px; padding: 6px; opacity: 1; visibility: visible; transform: none;
    background: #f6f0dc; border: 0; border-radius: 14px; box-shadow: none;
  }
  .nav-links-sleek .has-sub.sub-open .nav-sub-menu { display: block; }
  .nav-links-sleek .nav-sub-menu::before, .nav-links-sleek .nav-sub-menu::after, .nav-sub-head { display: none; }
  .nav-links-sleek .nav-sub-menu a { padding: 10px 12px; font-size: 14px; }
  .nav-links-sleek .nav-sub-menu a:hover, .nav-links-sleek .nav-sub-menu a.active { background: #fffdf7; }
  .nav-prestige-badge, .header-lower-tier .nav-stuck-brand, .header-lower-tier .nav-stuck-tools { display: none !important; }

  /* foot: sign in and language, then the house's phone and e-mail */
  .nav-drawer-foot { display: block; flex-shrink: 0; padding: 14px 16px 18px; border-top: 1px solid rgba(186, 155, 50, .3); background: #f8f3e3; }
  .nav-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-drawer-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(186, 155, 50, .4); color: #00382b; font-size: 13.5px; font-weight: 800; text-decoration: none; }
  .nav-drawer-actions a:first-child { background: linear-gradient(135deg, #005943, #00382b); border-color: rgba(224, 199, 108, .5); color: #fff; }
  .nav-drawer-actions a i { color: #BA9B32; }
  .nav-drawer-actions a:first-child i { color: #E0C76C; }
  .nav-drawer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
  .nav-drawer-contact a { display: inline-flex; align-items: center; gap: 8px; color: #5f564a; font-size: 12.5px; font-weight: 600; text-decoration: none; }
  .nav-drawer-contact a i { width: 14px; color: #BA9B32; }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) { .header-lower-tier, .nav-drawer-backdrop { transition: none; } }

/* ---------- header: an empty bag says just "Bag"; on phones the search folds away while scrolling, and the bag is a labelled button ---------- */
.royal-cart-items-meta[hidden] { display: none !important; }
@media (max-width: 1024px) {
  /* always its own row: folded to nothing it would otherwise slip into the top row and push the bag aside */
  .header-search-console { flex: 1 0 100%; max-height: 60px; overflow: visible; transition: max-height .25s ease, opacity .2s ease, margin .25s ease, padding .25s ease, border-width .25s ease; }
  .is-condensed .header-search-console { max-height: 0; opacity: 0; margin: 0; padding-block: 0; border-width: 0; overflow: hidden; pointer-events: none; }
  .is-condensed .header-upper-container { row-gap: 0; }
}
@media (max-width: 640px) {
  /* the language switch lives in the menu panel on phones, which leaves room for a real bag button */
  .header-tools-suite .lang-switch-btn { display: none; }
  .btn-royal-cart { gap: 7px; padding: 4px 14px 4px 5px; padding-inline: 5px 14px; }
  .royal-cart-icon-wrap { width: 30px; height: 30px; font-size: 12px; }
  .btn-royal-cart .royal-cart-headline { display: block; font-size: 13px; }
  .btn-royal-cart .royal-cart-items-meta { display: none !important; }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) { .header-search-console { transition: none; } }

/* ==========================================================================
   Home page on phones: an app-like store — compact hero, swipe rows instead of long stacks, tighter rhythm
   ========================================================================== */
@media (max-width: 640px) {
  .site-wrap { padding-inline: 16px; }

  /* swipe rows: one line of cards, the next one peeking in, snapping as you swipe; they run to the screen edges */
  #categories-track, .showcase-grid, .authors-plaques, .journal-grid {
    display: flex !important; grid-template-columns: none !important; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 4px 16px 16px; scrollbar-width: none; width: auto; max-width: none;
  }
  #categories-track::-webkit-scrollbar, .showcase-grid::-webkit-scrollbar, .authors-plaques::-webkit-scrollbar, .journal-grid::-webkit-scrollbar { display: none; }
  #categories-track > *, .showcase-grid > *, .authors-plaques > *, .journal-grid > * { scroll-snap-align: start; min-width: 0; }

  /* section rhythm */
  .ornate-head h2 { font-size: 25px; }
  .ornate-head p { font-size: 14px; }
  .ornate-star { width: 38px; height: 38px; }
  .ornate-more, .cats-foot { margin-top: 14px; }

  /* 1. hero: the picture first (16:9, swipeable), then a short card with the title and the action */
  .hero-full .hero-master-layout { display: flex; flex-direction: column; }
  .hero-stage-wrap { order: -1; }
  .hero-banners-grand-stage { min-height: 0; aspect-ratio: 16 / 9; }
  .banner-arrow-btn { display: none; }
  .hero-dot-indicators { bottom: 10px; }
  .hp { min-height: 0; }
  .hp-knot, .hp-list, .hp-links, .hp-eyebrow { display: none; }
  .hp-inner { padding: 14px 16px 16px; }
  .hp-slides { margin-top: 0; }
  .hp-slide { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .hp-slide[hidden] { display: none; }
  .hp-title, .lang-ar .hp-title { margin: 0; font-size: 17px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hp-desc { display: none; }
  .hp-cta { flex-shrink: 0; padding: 9px 16px; font-size: 13px; }

  /* 2. trust: a 2 × 2 grid of small badges */
  .trust-strip { padding: 14px 0 18px; }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .trust-item { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 10px; border-radius: 16px; }
  .trust-icon-box { width: 38px; height: 38px; font-size: 15px; }
  .trust-text-box strong { font-size: 13px; }
  .trust-text-box span { font-size: 11.5px; line-height: 1.5; }
  .trust-corner-ornament { display: none; }

  /* 3. categories: a swipe row of cards */
  .categories-showcase-section { padding: 30px 0 26px; }
  .categories-top-bar { margin-bottom: 12px; }
  .categories-main-title { font-size: 25px; }
  .categories-ambient-flourish, .categories-showcase-section .orn-medallion { display: none; }
  #categories-track > .artisan-category-card { flex: 0 0 60%; min-height: 290px; }
  .cat-card-media-box { height: 140px; }
  .cat-card-title { font-size: 17px; }
  .cat-card-desc { font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-card-btn { padding: 6px 16px; font-size: 12px; }
  .cat-ornament-bottom-svg { width: 84px; height: 84px; }

  /* 4. "Recommended for You": the panel runs edge to edge, its books in one swipe row */
  .showcase-section { padding: 8px 0 30px; }
  .showcase-section > .site-wrap { padding-inline: 10px; }
  .showcase-panel { padding: 26px 0 20px; border-radius: 22px; }
  .showcase-panel::before { inset: 6px; border-radius: 17px; }
  .showcase-head { gap: 16px; margin-bottom: 18px; padding-inline: 16px; }
  .showcase-titles h2 { font-size: 25px; }
  .showcase-tabs { margin-inline: -16px; padding: 6px 16px; border-radius: 0; background: transparent; border: 0; }
  .showcase-grid { margin-inline: 0; }
  .showcase-grid > .product-item-card { flex: 0 0 47%; }
  /* book cards in a swipe row: the cover, the title on two lines, the author, the price */
  .showcase-grid .product-item-visual { height: 170px; }
  .showcase-grid .product-info-col { padding: 10px 10px 12px; gap: 5px; }
  .showcase-grid .book-spec-pill { display: none; }
  .showcase-grid .product-title { font-size: 13.5px; line-height: 1.55; min-height: 3.1em; }
  .showcase-grid .product-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .showcase-grid .product-author { font-size: 11.5px; white-space: nowrap; overflow: hidden; }
  .showcase-grid .product-author span { overflow: hidden; text-overflow: ellipsis; }
  .showcase-grid .product-price-row { margin-top: auto; }
  .showcase-grid .curr-price-tag { font-size: 14px; }
  .showcase-foot { margin-top: 6px; padding-inline: 16px; }
  .showcase-more { padding: 10px 20px; font-size: 13px; }

  /* 5. authors: a swipe row of plaques */
  .home-authors-section { padding: 34px 0 30px; }
  .authors-plaques > .author-plaque { flex: 0 0 86%; }

  /* 6. blog: a swipe row of article cards, all the same size */
  .home-journal { padding: 30px 0 36px; }
  .journal-grid > .journal-card { flex: 0 0 82%; }
  .journal-card .journal-media, .journal-lead .journal-media { aspect-ratio: 16 / 10; }
  .journal-title, .journal-lead .journal-title { font-size: 16px; }
  .journal-excerpt, .journal-lead .journal-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
  .journal-body { padding: 14px 16px; }
}

/* ---------- phones: the footer's link columns fold (tap a heading to open), the brand and socials stay open ---------- */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 0; padding: 26px 0 18px; }
  .footer-brand-col { padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(186, 155, 50, .22); }
  .footer-links-col, .footer-contact-col { grid-column: auto !important; border-bottom: 1px solid rgba(186, 155, 50, .18); }
  .footer-links-col > h4, .footer-contact-col > h4 { position: relative; margin: 0; padding: 16px 2px; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .footer-links-col > h4::after, .footer-contact-col > h4::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--c-gold-light); transition: transform .25s; }
  .footer-links-col.open > h4::after, .footer-contact-col.open > h4::after { transform: translateY(-50%) rotate(180deg); }
  .footer-links-col > ul, .footer-contact-col > ul { display: none; padding: 0 2px 16px; }
  .footer-links-col.open > ul, .footer-contact-col.open > ul { display: flex; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-block: 18px 22px; }
}

/* ==========================================================================
   Safe areas: the page may run under a notch or above a home indicator (viewport-fit=cover).
   Every edge adds env(safe-area-inset-*), which is 0 where the phone has no notch / home bar,
   so nothing moves on screens and browsers that do not need it. The browser's own bars (address bar
   at the top or bottom) are outside the page's viewport: top:0 / bottom:0 already sit next to them.
   ========================================================================== */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@media (max-width: 1024px) {
  #master-site-header { top: 0; padding-top: env(safe-area-inset-top, 0px); }
  .nav-drawer-head { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .nav-drawer-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  /* "Search" in the tab bar brings the search box back even after it folded away on scroll */
  .is-condensed.search-open .header-search-console { max-height: 60px; opacity: 1; margin: 0; padding: 3px 4px; padding-inline-start: 12px; border-width: 1.5px; overflow: visible; pointer-events: auto; }
}

/* ---------- phones: app-style bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 768px) {
  :root { --tabbar-h: 62px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1100;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: rgba(255, 253, 247, .96); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid rgba(186, 155, 50, .35);
    box-shadow: 0 -10px 30px -18px rgba(0, 36, 27, .45);
    transition: transform .25s ease;
  }
  .tabbar::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #BA9B32 25%, #E0C76C 50%, #BA9B32 75%, transparent); opacity: .7; }
  .tabbar-item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
    padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: none;
    color: #6f6658; -webkit-tap-highlight-color: transparent;
  }
  .tabbar-item i { font-size: 18px; line-height: 1; transition: transform .2s; }
  .tabbar-item span { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
  .tabbar-item.active { color: #005943; }
  .tabbar-item.active i { color: #005943; }
  .tabbar-item.active::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; transform: translateX(-50%); border-radius: 0 0 3px 3px; background: #BA9B32; }
  .tabbar-item:active i { transform: scale(.9); }
  /* the bag: a raised round button, the store's main action */
  .tabbar-bag-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -14px; border-radius: 50%; background: linear-gradient(145deg, #0b5a44, #00382b); color: #E0C76C; border: 2px solid #fffdf7; box-shadow: 0 8px 18px -8px rgba(0, 36, 27, .7), 0 0 0 1px rgba(186, 155, 50, .5); }
  .tabbar-bag-icon i { font-size: 16px; }
  .tabbar-bag > span:last-child { color: #00382b; }
  .tabbar-badge { position: absolute; top: 6px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #BA9B32; color: #fff; font-size: 10px; font-weight: 900; font-style: normal; line-height: 1; border: 1.5px solid #fffdf7; }
  .tabbar-bag-icon .tabbar-badge { top: -4px; left: auto; right: -6px; background: #E0C76C; color: #00241B; }
  /* out of the way: while typing (keyboard up) and while a side panel is open */
  body.is-typing .tabbar, body.mobile-nav-open .tabbar { transform: translateY(110%); }
  /* toasts sit above the bar */
  #toast-container { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) { .tabbar { transition: none; } }

/* ---------- phones: "Recommended for You" tabs — smaller, so the next ones show at the edge ---------- */
@media (max-width: 640px) {
  .showcase-tabs { gap: 2px; }
  .showcase-tab { gap: 6px; padding-block: 4px; padding-inline: 4px 10px; font-size: 12px; }
  .showcase-tab-icon { width: 24px; height: 24px; font-size: 10.5px; }
  .showcase-tab-count { min-width: 18px; height: 17px; padding: 0 5px; font-size: 10px; }
}

/* books page on phones: the results column may shrink to the screen (its toolbar no longer widens the page) */
@media (max-width: 992px) { .catalog-layout-grid { grid-template-columns: minmax(0, 1fr) !important; } .catalog-stream-col { min-width: 0; } }


/* ==========================================================================
   The bag — a side panel on computers (from the end side), a bottom sheet on phones.
   Quiet and precise, no ornament: a soft ground, each part in its own white card;
   the offers in a deep burgundy card made to be noticed; total and checkout fixed at the bottom.
   ========================================================================== */
.bag-mask { position: fixed; inset: 0; z-index: 10000; background: rgba(16, 22, 20, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.bag-mask.active { opacity: 1; visibility: visible; }
.bag-drawer {
  --bag-ground: #f4f3ef; --bag-card: #ffffff; --bag-line: #ebe8e0; --bag-ink: #142520; --bag-green: #005943; --bag-muted: #7c7a72;
  --bag-wine: #5a2c34; --bag-wine-2: #6d3a43; --bag-gold: #D8BE74;
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 10001;
  width: min(460px, 100vw); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bag-ground); box-shadow: 0 0 60px -12px rgba(16, 22, 20, .45);
  transform: translateX(105%); visibility: hidden; transition: transform .4s cubic-bezier(.16, 1, .3, 1), visibility .4s;
}
[dir="rtl"] .bag-drawer { transform: translateX(-105%); }
.bag-drawer.active { transform: none; visibility: visible; }
.bag-grip { display: none; }

/* ---- head: white, the title and the count, a quiet close ---- */
.bag-head { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 20px 22px 18px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); background: var(--bag-card); border-bottom: 1px solid var(--bag-line); }
.bag-head-titles { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.bag-head h3 { margin: 0; color: var(--bag-ink); font-size: 20px; font-weight: 900; line-height: 1.3; }
.bag-head-count { color: var(--bag-muted); font-size: 13px; font-weight: 600; }
.bag-close { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; border: 0; background: #f1f0eb; color: var(--bag-ink); font-size: 16px; cursor: pointer; transition: background .2s; }
.bag-close:hover, .bag-close:focus-visible { background: #e6e4dc; outline: 0; }

/* ---- body ---- */
.bag-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bag-body > * { flex-shrink: 0; } /* the cards keep their height; the body scrolls */
.bag-body::-webkit-scrollbar { width: 6px; }
.bag-body::-webkit-scrollbar-thumb { background: #d9d6cc; border-radius: 6px; }
.bag-card { background: var(--bag-card); border: 1px solid var(--bag-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 22, 20, .04), 0 8px 24px -18px rgba(16, 22, 20, .25); }
.bag-card[hidden] { display: none; }
.bag-card-title { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 14px 18px 12px; border-bottom: 1px solid var(--bag-line); color: var(--bag-ink); font-size: 14.5px; font-weight: 800; }
.bag-card-title[hidden] { display: none; }
.bag-card-title span { margin-inline-start: auto; color: var(--bag-muted); font-size: 12.5px; font-weight: 600; }

/* ---- offers: a burgundy card with gold, the next reward first, then an invitation to keep shopping ---- */
.bag-offers { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(155deg, var(--bag-wine-2) 0%, var(--bag-wine) 60%, #4a252c 100%); box-shadow: 0 16px 32px -22px rgba(74, 37, 44, .7); }
.bag-offers-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.bag-offers-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--bag-gold); color: var(--bag-wine); font-size: 18px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45); }
.bag-offers-head h4 { margin: 0; font-size: 16px; font-weight: 900; color: #fff; }
.bag-offers-head p { margin: 2px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.bag-incentives { display: flex; flex-direction: column; gap: 10px; padding: 10px 18px 16px; }
.bag-incentives .cart-nudge { order: 1; margin: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .08); box-shadow: none; }
.bag-incentives .cart-nudge-text { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.6; }
.bag-incentives .cart-nudge-text i { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: rgba(229, 199, 102, .18); color: var(--bag-gold); font-size: 12px; }
.bag-incentives .cart-nudge-bar { height: 7px; margin-top: 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.bag-incentives .cart-nudge-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #E9D597, var(--bag-gold)); box-shadow: 0 0 6px rgba(216, 190, 116, .35); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
/* reached offers: a compact line with a check, after the ones still open */
.bag-incentives .cart-nudge.done { order: 2; padding: 9px 12px; border-color: rgba(229, 199, 102, .35); background: rgba(229, 199, 102, .12); }
.bag-incentives .cart-nudge.done .cart-nudge-text { color: #F7E7B0; font-size: 12.5px; }
.bag-incentives .cart-nudge.done .cart-nudge-text i { width: 22px; height: 22px; background: var(--bag-gold); color: var(--bag-wine); font-size: 10px; }
.bag-offers-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 18px 16px; padding: 11px 14px; border-radius: 12px; background: var(--bag-gold); color: #3b1d22; font-size: 13.5px; font-weight: 800; text-decoration: none; transition: filter .2s, transform .2s; }
.bag-offers-cta[hidden] { display: none; }
.bag-offers-cta:hover { filter: brightness(1.06); }
.bag-offers-cta i { font-size: 12px; }

/* ---- the books ---- */
.bag-books.is-empty { background: transparent; border: 0; box-shadow: none; }
.bag-list { display: flex; flex-direction: column; }
.bag-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 18px; transition: opacity .2s; }
.bag-item + .bag-item { border-top: 1px solid var(--bag-line); }
.bag-item.is-busy { opacity: .45; pointer-events: none; }
.bag-item-cover { display: block; align-self: start; }
.bag-cover { display: block; width: 72px; height: 104px; object-fit: cover; border-radius: 6px; box-shadow: 0 1px 2px rgba(16, 22, 20, .12), 0 10px 18px -10px rgba(16, 22, 20, .45); background: #eeece5; }
.bag-cover.cart-thumb-art { display: flex; align-items: center; justify-content: center; padding: 6px; color: #fff; font-size: 9px; font-weight: 700; text-align: center; line-height: 1.4; overflow: hidden; }
.bag-item-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bag-item-top { display: flex; align-items: flex-start; gap: 8px; }
.bag-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bag-item-title { color: var(--bag-ink); font-size: 14.5px; font-weight: 800; line-height: 1.55; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bag-item-title:hover { color: var(--bag-green); }
.bag-item-author { color: var(--bag-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-item-remove { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: none; color: #a8a59c; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.bag-item-remove:hover, .bag-item-remove:focus-visible { background: #fbeeee; color: #b4232f; outline: 0; }
.bag-item-unit { display: flex; align-items: baseline; gap: 6px; color: var(--bag-muted); font-size: 12.5px; }
.bag-item-unit strong { color: var(--bag-ink); font-size: 13.5px; font-weight: 700; }
.bag-item-unit s { color: #aaa69c; font-size: 12px; }
.bag-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.bag-qty { display: inline-flex; align-items: center; height: 36px; padding: 3px; border-radius: 999px; background: #f2f1ec; }
.bag-qty button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: var(--bag-ink); font-size: 10.5px; cursor: pointer; box-shadow: 0 1px 3px rgba(16, 22, 20, .14); transition: background .2s, color .2s; }
.bag-qty button:hover { background: var(--bag-green); color: #fff; }
.bag-qty span { min-width: 32px; text-align: center; color: var(--bag-ink); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bag-item-line { color: var(--bag-ink); font-size: 16px; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- order summary ---- */
.bag-summary { margin: 0; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.bag-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bag-summary > div[hidden] { display: none; }
.bag-summary dt { color: #55534c; font-size: 13.5px; }
.bag-summary dt small { color: var(--bag-muted); font-size: 12px; }
.bag-summary dd { margin: 0; color: var(--bag-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-saving dt { color: #0f7a4f; }
.bag-saving dd { color: #0f7a4f; }
#cart-ship-note { color: var(--bag-muted); font-size: 12.5px; font-weight: 600; }
#cart-ship-note.is-free { padding: 3px 10px; border-radius: 999px; background: #e7f4ec; color: #0f7a4f; font-size: 12.5px; font-weight: 800; }
.bag-total { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--bag-line); }
.bag-total dt { color: var(--bag-ink); font-size: 15px; font-weight: 800; }
.bag-total dd { font-size: 20px; font-weight: 900; }

/* ---- reassurances ---- */
.bag-trust { list-style: none; margin: 0; padding: 4px 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.bag-trust[hidden] { display: none; }
.bag-trust li { display: flex; align-items: center; gap: 6px; color: var(--bag-muted); font-size: 11.5px; font-weight: 600; }
.bag-trust i { color: var(--bag-green); font-size: 12px; }

/* ---- fixed foot ---- */
.bag-foot { flex-shrink: 0; padding: 14px 18px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bag-card); border-top: 1px solid var(--bag-line); box-shadow: 0 -10px 30px -22px rgba(16, 22, 20, .4); }
.bag-foot[hidden] { display: none; }
.bag-foot-row { display: flex; align-items: center; gap: 14px; }
.bag-foot-total { display: flex; flex-direction: column; flex-shrink: 0; line-height: 1.25; }
.bag-foot-total span { color: var(--bag-muted); font-size: 12px; font-weight: 600; }
.bag-foot-total strong { color: var(--bag-ink); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bag-checkout { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border-radius: 14px; background: var(--bag-green); color: #fff; font-size: 15.5px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 24px -14px rgba(0, 89, 67, .9); transition: background .2s, transform .1s; }
.bag-checkout i { font-size: 13px; opacity: .85; }
.bag-checkout:hover { background: #004a37; }
.bag-checkout:active { transform: scale(.99); }
.bag-continue { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 6px; border: 0; background: none; color: var(--bag-muted); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.bag-continue i { font-size: 11px; }
.bag-continue:hover { color: var(--bag-ink); }

/* ---- empty ---- */
.bag-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 22px 32px; border-radius: 16px; background: var(--bag-card); border: 1px solid var(--bag-line); }
.bag-empty-art { display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 12px; border-radius: 50%; background: #f2f1ec; color: var(--bag-green); font-size: 32px; }
.bag-empty h4 { margin: 0; color: var(--bag-ink); font-size: 19px; font-weight: 900; }
.bag-empty p { margin: 0 0 16px; color: var(--bag-muted); font-size: 13.5px; }
.bag-empty-actions { display: flex; flex-direction: column; gap: 6px; width: min(280px, 100%); }
.bag-empty-actions .bag-checkout { flex: none; }
.bag-empty-actions .bag-continue { margin: 0; padding: 12px; border-radius: 12px; background: #f2f1ec; color: var(--bag-ink); }

/* ---- phones: a bottom sheet with a handle ---- */
@media (max-width: 640px) {
  .bag-drawer, [dir="rtl"] .bag-drawer { top: auto; bottom: 0; inset-inline: 0; width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .bag-drawer.active, [dir="rtl"] .bag-drawer.active { transform: none; }
  .bag-grip { display: block; position: absolute; top: 8px; left: 50%; z-index: 2; width: 40px; height: 5px; transform: translateX(-50%); border-radius: 999px; background: #d7d4ca; }
  .bag-head { padding: 24px 16px 14px; border-radius: 22px 22px 0 0; }
  .bag-head h3 { font-size: 18px; }
  .bag-body { padding: 12px; gap: 12px; }
  .bag-offers-head { padding: 14px 14px 4px; }
  .bag-incentives { padding: 10px 14px 14px; }
  .bag-offers-cta { margin: 0 14px 14px; }
  .bag-item { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .bag-cover { width: 62px; height: 90px; }
  .bag-card-title { padding: 13px 14px 11px; }
  .bag-summary { padding: 12px 14px 14px; }
  .bag-trust { padding: 2px 2px 0; }
  .bag-trust li { font-size: 11px; }
  .bag-foot { padding: 12px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .bag-foot-total strong { font-size: 20px; }
  .bag-checkout { padding: 14px; font-size: 15px; }
  body.bag-open .tabbar { transform: translateY(110%); }
}
@media (prefers-reduced-motion: reduce) { .bag-drawer, .bag-mask { transition: none; } }

/* ---------- the bag: finishing touches (no ornament) ---------- */
/* head: the house's name above the title, a fine gold rule under the bar */
.bag-head { position: relative; }
.bag-head::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(186, 155, 50, .55), transparent); }
.bag-head-titles { flex-wrap: wrap; row-gap: 0; }
.bag-head-eyebrow { flex-basis: 100%; color: #a08534; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
/* card titles: a short gold mark at the start */
.bag-card-title::before { content: ""; align-self: center; width: 3px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #D8BE74, #a08534); }
/* covers: the page block shows on the open side, like a real book */
.bag-cover { box-shadow: 0 1px 2px rgba(16, 22, 20, .12), 0 10px 18px -10px rgba(16, 22, 20, .45), 3px 0 0 -1px #fff, 4px 1px 0 -1px #e3dfd3, 6px 2px 0 -2px #fff, 7px 3px 0 -2px #dcd7c9; }
[dir="rtl"] .bag-cover { box-shadow: 0 1px 2px rgba(16, 22, 20, .12), 0 10px 18px -10px rgba(16, 22, 20, .45), -3px 0 0 -1px #fff, -4px 1px 0 -1px #e3dfd3, -6px 2px 0 -2px #fff, -7px 3px 0 -2px #dcd7c9; }
/* rows answer the pointer quietly */
.bag-item { transition: background .2s, opacity .2s; }
.bag-item:hover { background: #fcfbf8; }
/* amounts: a small "$" and small cents */
.cur { font-size: .62em; font-weight: 800; vertical-align: .38em; margin-inline-end: 1px; opacity: .8; }
.cents { font-size: .62em; font-weight: 800; opacity: .8; }
.bag-item-line, .bag-foot-total strong, .bag-total dd { direction: ltr; unicode-bidi: isolate; } /* "$85.50" stays in order inside Arabic text */
/* summary: the truck before "Shipping", the total a touch richer */
.bag-summary dt i { margin-inline-end: 6px; color: #9a958a; font-size: 12px; }
.bag-total dd { color: #005943; }
/* foot: what you save under the total, the lock in a circle, a soft sheen on the button */
.bag-foot-saving { margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: #e7f4ec; color: #0f7a4f; font-size: 11px; font-weight: 800; font-style: normal; white-space: nowrap; }
.bag-foot-saving[hidden] { display: none; }
.bag-checkout { position: relative; overflow: hidden; background: linear-gradient(180deg, #0a6a50 0%, #005943 55%, #004c39 100%); }
.bag-checkout-lock { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.bag-checkout-lock i { font-size: 11px; opacity: 1; color: #E8D49A; }
.bag-checkout::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); transform: skewX(-18deg); transition: left .6s ease; pointer-events: none; }
.bag-checkout:hover::after { left: 120%; }
/* books appear one after another when the bag opens */
@keyframes bagIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bag-drawer.active .bag-card, .bag-drawer.active .bag-empty { animation: bagIn .45s cubic-bezier(.16, 1, .3, 1) both; }
.bag-drawer.active .bag-card:nth-child(2) { animation-delay: .06s; }
.bag-drawer.active .bag-card:nth-child(3) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .bag-drawer.active .bag-card, .bag-drawer.active .bag-empty { animation: none; } .bag-checkout::after { display: none; } }
/* the bag's offers card, a size smaller: tighter head, rows and button */
.bag-offers-head { gap: 10px; padding: 12px 14px 2px; }
.bag-offers-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.bag-offers-head h4 { font-size: 14.5px; }
.bag-offers-head p { font-size: 11.5px; margin-top: 0; }
.bag-incentives { gap: 7px; padding: 8px 14px 12px; }
.bag-incentives .cart-nudge { padding: 9px 11px; border-radius: 10px; }
.bag-incentives .cart-nudge-text { gap: 8px; font-size: 12.5px; line-height: 1.55; }
.bag-incentives .cart-nudge-text i { width: 24px; height: 24px; font-size: 10.5px; }
.bag-incentives .cart-nudge-bar { height: 5px; margin-top: 8px; }
.bag-incentives .cart-nudge.done { padding: 6px 10px; }
.bag-incentives .cart-nudge.done .cart-nudge-text { font-size: 12px; }
.bag-incentives .cart-nudge.done .cart-nudge-text i { width: 20px; height: 20px; font-size: 9px; }
.bag-offers-cta, .bag-drawer .bag-offers-cta { margin: 0 14px 12px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; }
/* the bag's foot: the checkout first (right in Arabic), the total beside it (left) in a box of its own */
.bag-foot-row { align-items: stretch; gap: 10px; }
.bag-foot-row .bag-checkout { order: -1; }
.bag-foot-total {
  justify-content: center; align-items: center; text-align: center; gap: 1px; min-width: 112px; padding: 8px 14px;
  border-radius: 14px; background: linear-gradient(180deg, #ffffff 0%, #f7f5ef 100%); border: 1px solid #e6e2d7;
  box-shadow: 0 1px 0 #fff inset, 0 6px 14px -12px rgba(16, 22, 20, .35);
}
.bag-foot-total span { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #8a867c; }
.bag-foot-total strong { font-size: 21px; line-height: 1.15; }
.bag-foot-saving { margin-top: 4px; padding: 1px 7px; font-size: 10.5px; }
@media (max-width: 640px) { .bag-foot-total { min-width: 104px; padding: 7px 10px; } .bag-foot-total strong { font-size: 19px; } }
.bag-foot-total { padding: 6px 12px; gap: 0; }
.bag-foot-total span { font-size: 10.5px; }
.bag-foot-total strong { font-size: 19px; }
.bag-foot-saving { margin-top: 2px; padding: 0 7px; font-size: 10px; line-height: 1.7; }
.bag-foot-row .bag-checkout { padding-block: 12px; }

/* =====================================================================
   BOOKS PAGE
   ===================================================================== */
/* the search box: room on the icon side to match the button side */
.library-search-podium { padding-inline: 18px 6px; }
.sort-select-box { position: relative; display: flex; align-items: center; }
.sort-select-box .sort-chevron { top: 50%; transform: translateY(-50%); }
.sort-lead-icon, .results-count-phone, .filter-sheet-foot { display: none; }
.filter-trigger-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #BA9B32; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }

/* phones and tablets: the filters are a panel over the page, applied with one button */
@media (max-width: 992px) {
  .filter-sidebar-panel { padding: 0; gap: 0; display: block; visibility: hidden; transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .35s; }
  .filter-sidebar-panel.drawer-open { visibility: visible; transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
  #catalog-filters { display: flex; flex-direction: column; gap: 18px; min-height: 100%; padding: 0 20px; }
  .filter-panel-header { position: sticky; top: 0; z-index: 2; margin: 0 -20px; padding: 16px 20px 14px; background: #fff; }
  .filter-panel-header .btn-reset-filters-link { margin-inline-start: auto; margin-inline-end: 10px; }
  .filter-drawer-close-btn { display: grid !important; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f4f1e6; font-size: 15px; }
  .filter-sheet-foot { display: block; position: sticky; bottom: 0; z-index: 2; margin: auto -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #efe9d8; box-shadow: 0 -10px 24px -18px rgba(0, 43, 32, .35); }
  .filter-sheet-apply { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 13px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #005943, #00382b); color: #fff; font: 800 15px 'Cairo', sans-serif; cursor: pointer; box-shadow: 0 10px 22px -12px rgba(0, 56, 43, .8); }
  .filter-sheet-apply i { color: #E0C76C; font-size: 13px; }
  .filter-group-block:last-of-type { border-bottom: 0; }
}

@media (max-width: 640px) {
  /* 1. the hero: shorter, the search a single line, the categories one swipe row */
  .catalog-page-hero { padding-top: 6px; }
  .catalog-breadcrumbs { font-size: 12px; margin-bottom: 10px; }
  .library-hero-stage { padding: 22px 14px 16px; border-radius: 20px; }
  .library-hero-stage::before { inset: 5px; border-radius: 16px; }
  .stage-header { gap: 6px; margin-bottom: 16px; }
  .stage-kicker { font-size: 11px; letter-spacing: .5px; }
  .stage-headline { font-size: 24px; }
  .stage-subline { font-size: 12.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .library-search-podium { flex-direction: row; gap: 8px; margin-bottom: 14px; padding: 4px; padding-inline-start: 14px; border-radius: 999px; border-width: 1.5px; }
  .search-podium-input-wrap { width: auto; gap: 9px; }
  .search-lead-icon { font-size: 14px; }
  .search-podium-input-wrap input { font-size: 14px; min-width: 0; }
  .search-podium-input-wrap input::placeholder { font-size: 12.5px; }
  .btn-podium-submit { width: auto; padding: 9px 16px; font-size: 13px; }
  .library-disciplines-bar {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    align-self: stretch; width: auto; max-width: none; margin-inline: -14px; padding: 2px 14px 4px; gap: 7px; border-radius: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(to left, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .library-disciplines-bar::-webkit-scrollbar { display: none; }
  .discipline-tab { flex-shrink: 0; white-space: nowrap; padding: 7px 13px; font-size: 12.5px; transform: none !important; }

  /* 2. the results bar: filters, sort and view on one line, held under the header while the books scroll */
  .catalog-workspace-section { padding: 14px 0 40px; }
  .catalog-stream-col { gap: 12px; }
  .catalog-toolbar-card {
    position: sticky; top: calc(var(--header-h, 64px) - 1px); z-index: 50;
    flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px;
    margin-inline: -16px; padding: 9px 16px; border-radius: 0; border-width: 0 0 1px; border-color: #ece5d2;
    background: rgba(251, 249, 237, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 18px -16px rgba(0, 43, 32, .5);
  }
  .toolbar-left-group, .toolbar-right-group { display: contents; }
  .catalog-toolbar-card .results-count-headline, .catalog-toolbar-card .sort-label { display: none; }
  .mobile-filter-trigger-btn, .sort-select-box .custom-sort-select { height: 40px; border-radius: 12px; font-size: 13px; }
  .mobile-filter-trigger-btn { order: 1; flex: 1 1 0; justify-content: center; gap: 8px; padding: 0 12px; background: #00473a; border-color: #00382b; color: #fff; }
  .mobile-filter-trigger-btn:hover { background: #00473a; color: #fff; }
  .mobile-filter-trigger-btn i { color: #E0C76C; }
  .sort-selector-wrap { order: 2; flex: 1 1 0; min-width: 0; gap: 0; }
  .sort-select-box { width: 100%; }
  .sort-select-box .custom-sort-select { width: 100%; padding-block: 0; padding-inline: 34px 28px; background: #fff; border-color: rgba(186, 155, 50, .4); text-overflow: ellipsis; }
  .sort-lead-icon { display: block; position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: #BA9B32; font-size: 13px; pointer-events: none; }
  .view-mode-switch { order: 3; flex-shrink: 0; padding: 2px; border-radius: 12px; }
  .btn-view-toggle { width: 34px; height: 34px; border-radius: 10px; }
  .results-count-phone { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 -2px; font-size: 12.5px; color: #7d6e5d; }
  .results-count-phone strong { color: #00382b; font-size: 15px; font-weight: 900; }

  /* 3. active filters: one swipe row */
  .active-filters-ribbon { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
  .active-filters-ribbon::-webkit-scrollbar { display: none; }
  .active-filter-pill, .btn-clear-all-pill { flex-shrink: 0; white-space: nowrap; }

  /* 4. the books: two to a row, compact cards */
  .products-display-grid:not(.view-list) { gap: 12px 10px !important; padding-top: 0; }
  .products-display-grid .product-item-card { padding: 8px 8px 10px; border-radius: 16px; }
  .products-display-grid .product-item-card:hover { transform: none; }
  .products-display-grid .product-item-visual { height: 190px; border-radius: 12px; margin-bottom: 8px; }
  .products-display-grid .product-item-card .product-info-col { padding: 0 2px; gap: 4px; }
  .products-display-grid .book-meta-strip { margin-bottom: 0; }
  .products-display-grid .book-cat-tag { font-size: 10.5px; white-space: nowrap; overflow: hidden; max-width: 100%; }
  .products-display-grid .book-cat-tag span { overflow: hidden; text-overflow: ellipsis; }
  .products-display-grid .product-item-card .product-title { font-size: 13.5px; line-height: 1.55; min-height: 3.1em; margin: 0; }
  .products-display-grid .product-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .products-display-grid .product-author { font-size: 11.5px; white-space: nowrap; overflow: hidden; }
  .products-display-grid .product-author span { overflow: hidden; text-overflow: ellipsis; }
  .products-display-grid .product-item-card .product-price-row { margin-top: auto; padding-top: 8px; flex-wrap: nowrap; }
  .products-display-grid .product-item-card .curr-price-tag { font-size: 15px; }
  .products-display-grid .old-price-tag { font-size: 11px; }

  /* the list view: a cover beside its details */
  .products-display-grid.view-list { gap: 10px; }
  .products-display-grid.view-list .product-item-card { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: stretch; padding: 8px; }
  .products-display-grid.view-list .product-item-visual { height: 150px; margin: 0; }
  .products-display-grid.view-list .product-item-card .product-info-col { padding: 4px 0 2px; }
  .products-display-grid.view-list .product-item-card .product-title { font-size: 14.5px; min-height: 0; }
  .products-display-grid.view-list .product-item-card .btn-add-cart-artisan span { display: inline; }

  /* 5. pages */
  .catalog-pagination-wrap { gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
  .pagination-btn { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13px; }

  /* 6. the filters: a panel from the starting side (right in Arabic), the page still showing beside it */
  .filter-sidebar-panel { top: 0; bottom: 0; left: 0; right: auto; width: min(340px, 86vw); height: 100vh; height: 100dvh; max-height: none; border-radius: 0 22px 22px 0; transform: translateX(-100%); box-shadow: 18px 0 50px rgba(0, 0, 0, .3); scrollbar-width: none; overscroll-behavior: contain; }
  [dir="rtl"] .filter-sidebar-panel { left: auto; right: 0; border-radius: 22px 0 0 22px; transform: translateX(100%); box-shadow: -18px 0 50px rgba(0, 0, 0, .3); }
  .filter-sidebar-panel::-webkit-scrollbar { display: none; }
  .filter-sidebar-panel.drawer-open, [dir="rtl"] .filter-sidebar-panel.drawer-open { transform: translateX(0); }
  .filter-panel-header { padding-top: calc(16px + env(safe-area-inset-top)); }
  /* "Show results" sits well clear of the browser's own bottom bar and the phone's home indicator */
  .filter-sheet-foot { padding-top: 14px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .products-display-grid .product-item-visual { height: 168px; }
  .mobile-filter-trigger-btn { padding: 0 8px; }
}

/* ---------- books page: the filter panel, same contents, a finer finish (every screen size) ---------- */
.filter-sidebar-panel { border-color: rgba(186, 155, 50, .3); box-shadow: 0 1px 0 #fff inset, 0 22px 44px -30px rgba(0, 56, 43, .4); }
@media (min-width: 993px) { .filter-sidebar-panel { border-radius: 22px; padding-top: 0; } .filter-sidebar-panel::before { content: ""; display: block; flex-shrink: 0; height: 3px; margin: 0 -20px; background: linear-gradient(90deg, transparent, #CCA83B 30%, #E0C76C 50%, #CCA83B 70%, transparent); opacity: .75; } .filter-panel-header { padding-top: 18px; } }

/* the head: the title beside a small seal, a gold hairline under it */
.filter-panel-header { gap: 10px; border-bottom: 0; background-image: linear-gradient(90deg, transparent, rgba(186, 155, 50, .45), transparent); background-size: 100% 1px; background-position: bottom; background-repeat: no-repeat; }
.filter-panel-title { gap: 10px; font-size: 16px; font-weight: 900; color: #00382b; }
.filter-panel-title i { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #005943, #00382b); color: #E0C76C; font-size: 13px; box-shadow: 0 0 0 3px #f5efdc; }

/* each group: a gold lozenge before its name, the arrow in a soft round button */
.filter-group-block { gap: 10px; border-bottom: 1px solid #f1ecdd; }
.filter-group-title { padding: 2px 0; font-size: 14px; font-weight: 800; color: #00382b; }
.filter-group-title span { display: inline-flex; align-items: center; gap: 9px; }
.filter-group-title span::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: linear-gradient(135deg, #E0C76C, #BA9B32); transform: rotate(45deg); flex-shrink: 0; }
.filter-group-title i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f7f3e6; color: #a88a2a; font-size: 10px; transition: transform .25s ease, background .2s; }
.filter-group-title:hover i { background: #efe6c9; }
.filter-group-block.collapsed .filter-group-title i { transform: rotate(180deg); }

/* the options: whole rows answer the touch, a chosen row is tinted green */
.filter-options-list { gap: 3px; }
.filter-check-item { padding: 8px 10px; border: 1px solid transparent; border-radius: 11px; transition: background .2s, border-color .2s; }
.filter-check-item:hover { background: #fbf8ee; border-color: #f1e9d2; }
.check-label-wrap { gap: 10px; font-size: 13.5px; color: #33443c; transition: color .2s; }
.custom-checkbox { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #cfc09c; box-shadow: 0 1px 2px rgba(0, 0, 0, .05) inset; transition: background .2s, border-color .2s, box-shadow .2s; }
.custom-checkbox i { transform: scale(0); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.filter-check-item:hover .custom-checkbox { border-color: #BA9B32; }
input[type="checkbox"]:checked + .custom-checkbox, input[type="radio"]:checked + .custom-checkbox { background: linear-gradient(135deg, #005943, #00382b); border-color: #00382b; box-shadow: 0 3px 8px -3px rgba(0, 56, 43, .6); }
input:checked + .custom-checkbox i { transform: scale(1); }
input[type="radio"] + .custom-checkbox { border-radius: 50%; }
.filter-check-item:has(input:checked) { background: #f0f6f2; border-color: rgba(0, 89, 67, .16); }
.filter-check-item:has(input:checked) .check-label-wrap { color: #00382b; font-weight: 800; }
.filter-count-badge { min-width: 26px; padding: 2px 7px; text-align: center; background: #f5f1e3; color: #85765f; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.filter-check-item:has(input:checked) .filter-count-badge { background: #00473a; color: #fff; }

/* price: two clean figures, a slider filled up to the chosen price, the presets as pills */
.price-filter-box { gap: 14px; }
.price-input-capsule { flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 12px; background: #fff; border: 1px solid #ece4cc; border-radius: 12px; }
.price-input-capsule span { font-size: 10.5px; font-weight: 700; color: #a3937a; }
.price-input-capsule strong { font-size: 15px; font-weight: 900; color: #00382b; direction: ltr; }
.price-range-slider { -webkit-appearance: none; appearance: none; height: 6px; margin: 6px 0; border-radius: 6px; background: linear-gradient(to left, #005943 var(--p, 100%), #ebe4cf var(--p, 100%)); }
[dir="ltr"] .price-range-slider { background: linear-gradient(to right, #005943 var(--p, 100%), #ebe4cf var(--p, 100%)); }
.price-range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid #CCA83B; box-shadow: 0 2px 8px rgba(0, 56, 43, .35); cursor: grab; }
.price-range-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid #CCA83B; box-shadow: 0 2px 8px rgba(0, 56, 43, .35); cursor: grab; }
.price-presets-row { gap: 6px; }
.price-preset-btn { padding: 5px 12px; border-radius: 99px; background: #fff; border-color: #ece4cc; font-size: 11.5px; color: #4a5c54; }
.price-preset-btn:hover { background: #fbf8ee; color: #00382b; border-color: #dccb98; }
.price-preset-btn.active { background: linear-gradient(135deg, #005943, #00382b); color: #E0C76C; border-color: #00382b; }

/* author, editor, series: a quiet field with a gold arrow */
.filter-select {
  -webkit-appearance: none; appearance: none; padding: 10px 14px; padding-inline-end: 36px; border-radius: 12px; border: 1px solid #e6dcc2; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23BA9B32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; font-size: 13.5px; font-weight: 600; color: #00382b; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .filter-select { background-position: left 14px center; }
.filter-select:hover { border-color: #CCA83B; }
.filter-select:focus { outline: none; border-color: #005943; box-shadow: 0 0 0 3px rgba(0, 89, 67, .12); }
.filter-sidebar-panel { scrollbar-color: rgba(186, 155, 50, .35) transparent; }
.filter-sidebar-panel::-webkit-scrollbar { width: 4px; }
.filter-sidebar-panel::-webkit-scrollbar-thumb { background: rgba(186, 155, 50, .3); border-radius: 4px; }

/* ---------- page heads: the breadcrumb on its own line, the kicker under it (it sat on the same line) ---------- */
.simple-page-hero .catalog-breadcrumbs { display: flex; flex-wrap: wrap; }
.simple-page-hero .home-row-kicker { display: block; }

/* ---------- authors page on phones: two compact ex-libris cards to a row ---------- */
@media (max-width: 640px) {
  .simple-page-hero { padding: 16px 0 22px; }
  .simple-page-hero .catalog-breadcrumbs { margin-bottom: 12px; font-size: 12px; }
  .simple-page-hero .home-row-kicker { font-size: 11.5px; letter-spacing: .06em; }
  .simple-page-hero h1 { font-size: 26px; margin: 4px 0 2px; }
  .simple-page-intro { margin-top: 8px; font-size: 14px; line-height: 1.8; }

  .home-authors-section:has(.authors-exlibris-grid) { padding: 18px 0 36px; }
  .authors-exlibris-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px 10px; padding-top: 4px; }
  .author-exlibris { border-radius: 16px; box-shadow: 0 12px 26px -22px rgba(0, 56, 43, .55); }
  .author-exlibris::after { inset: 4px; border-radius: 12px; }
  .author-exlibris-crest { height: 46px; }
  .author-exlibris-crest::before { -webkit-mask-size: 44px; mask-size: 44px; }
  .author-exlibris-mono.author-card-seal { width: 42px; height: 42px; font-size: 18px; box-shadow: 0 0 0 3px #fffdf7, 0 0 0 4px rgba(186, 155, 50, .55), 0 10px 20px -10px rgba(0, 36, 27, .7); }
  .author-exlibris-body { gap: 3px; padding: 29px 8px 8px; }
  .author-exlibris-eyebrow { font-size: 10.5px; }
  .author-exlibris-name { font-size: 13px; line-height: 1.6; min-height: 3.2em; }
  .author-exlibris-years { font-size: 11px; }
  .author-exlibris-rule { gap: 6px; margin: 1px 0; }
  .author-exlibris-rule span { width: 16px; }
  .author-exlibris-rule i { width: 5px; height: 5px; }
  .author-exlibris-meta { gap: 4px; font-size: 11.5px; }
  .author-exlibris-meta i { font-size: 10.5px; }
  .author-exlibris-role { padding: 1px 8px; font-size: 10.5px; }
  .author-exlibris-covers { min-height: 46px; margin-top: 4px; padding: 6px 8px 0; }
  .author-exlibris-covers img { width: 28px; height: 40px; border-width: 1.5px; }
  .author-exlibris-covers img:nth-child(2) { height: 44px; }
  .author-exlibris-covers img + img { margin-inline-start: -8px; }
  .author-exlibris-foot { margin: 0 8px 6px; padding: 7px 4px; font-size: 11.5px; gap: 6px; }
  .author-exlibris-foot i { font-size: 10px; }
}
@media (max-width: 360px) {
  .authors-exlibris-grid { gap: 10px 8px; }
  .author-exlibris-role { display: none; }
}

/* =====================================================================
   BLOG and ARTICLE pages on phones
   ===================================================================== */
@media (max-width: 640px) {
  /* the trail: one slim line, the way back a small round button */
  .blog-breadcrumbs-bar { padding: 12px 0 10px; margin-bottom: 14px; }
  .blog-breadcrumbs-row { flex-wrap: nowrap; gap: 10px; }
  .blog-breadcrumbs-nav { flex-wrap: nowrap; min-width: 0; font-size: 12.5px; gap: 6px; white-space: nowrap; }
  .blog-breadcrumbs-nav .crumb-current { max-width: 40vw; }
  .breadcrumbs-back-btn { flex-shrink: 0; padding: 6px 12px; font-size: 12px; gap: 6px; }

  /* ---- the blog ---- */
  .blog-hero-stage { padding: 24px 16px 18px; border-radius: 20px; margin-bottom: 4px; }
  .blog-hero-tag { padding: 4px 12px; font-size: 11.5px; margin-bottom: 10px; }
  .blog-hero-title { font-size: 26px; margin-bottom: 6px; }
  .blog-hero-desc { font-size: 13px; line-height: 1.8; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .blog-hero-search-box { padding: 4px; padding-inline-start: 14px; border-radius: 999px; gap: 8px; }
  .blog-hero-search-input { font-size: 14px; min-width: 0; padding: 8px 0; }
  .blog-hero-search-input::placeholder { font-size: 12.5px; }
  .blog-hero-search-btn { padding: 9px 16px; font-size: 13px; flex-shrink: 0; }

  .blog-filters-section { margin: 14px -16px 16px; }
  .blog-filters-scroll-wrap { padding: 2px 16px 10px; gap: 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to left, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to left, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .blog-filters-scroll-wrap::-webkit-scrollbar { display: none; }
  .blog-filter-pill { flex-shrink: 0; padding: 7px 14px; font-size: 12.5px; white-space: nowrap; }

  /* the chosen article: a wide picture, then the text */
  .featured-article-card { border-radius: 20px; margin-bottom: 26px; }
  .featured-article-media { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .featured-article-img { height: 100%; }
  .featured-badge-tag { top: 12px; right: 12px; padding: 4px 11px; font-size: 11.5px; }
  .featured-article-body { padding: 18px 16px 18px; gap: 0; }
  .featured-article-body .article-cat-badge { font-size: 12px; margin-bottom: 6px; }
  .featured-article-title { font-size: 21px; line-height: 1.55; margin: 0 0 8px; }
  .featured-article-excerpt { font-size: 14px; line-height: 1.85; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .article-meta-row { gap: 6px 8px; font-size: 12px; margin-bottom: 16px; }
  .article-meta-row .author-chip img { width: 22px; height: 22px; }
  .btn-read-article-hero { width: 100%; justify-content: center; padding: 12px 18px; font-size: 14px; }

  /* the list: a picture beside each title, like a news app */
  .articles-section-head { margin-bottom: 12px; }
  .articles-section-title { font-size: 18px; }
  .articles-count-pill { font-size: 11.5px; padding: 3px 10px; }
  .articles-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; margin-bottom: 34px; }
  .article-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-width: 1px; border-radius: 16px; box-shadow: 0 10px 24px -20px rgba(0, 56, 43, .5); }
  .article-card:hover { transform: none; }
  .article-card-thumb-wrap { height: auto; min-height: 128px; }
  .article-card-thumb { position: absolute; inset: 0; }
  .article-card-cat-badge { display: none; }
  .article-card-body { padding: 11px 12px 10px; min-width: 0; }
  .article-card-meta-line { gap: 6px; font-size: 11px; margin-bottom: 4px; }
  .article-card-title { font-size: 14.5px; line-height: 1.6; margin: 0 0 4px; }
  .article-card-desc { font-size: 12.5px; line-height: 1.7; margin: 0 0 8px; -webkit-line-clamp: 2; }
  .article-card-footer { padding-top: 8px; font-size: 11.5px; gap: 8px; }
  .article-card-author { min-width: 0; }
  .article-card-author > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .article-card-read-link { flex-shrink: 0; }
  .article-card-read-link span { display: none; }
  .article-card-read-link i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f4efdc; color: #00473a; font-size: 11px; }

  /* ---- the article ---- */
  .article-details-hero { margin-bottom: 18px; }
  .article-hero-cat-pill { padding: 4px 13px; font-size: 12px; margin-bottom: 12px; }
  .article-single-h1 { font-size: 25px; line-height: 1.5; margin-bottom: 10px; }
  .article-single-subtitle { font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
  /* who, when, how long: one quiet line instead of a big box */
  .article-meta-dossier { gap: 6px 10px; padding: 0; margin: 0 auto 14px; background: none; border: 0; box-shadow: none; border-radius: 0; max-width: none; }
  .article-meta-dossier .meta-dot { font-size: 7px; }
  .meta-dossier-item { font-size: 12.5px; gap: 5px; }
  .meta-dossier-item.author { flex-basis: 100%; justify-content: center; margin-bottom: 2px; font-size: 13.5px; }
  .meta-dossier-item.author + .meta-dot { display: none; }
  .meta-dossier-item i { font-size: 12px; }
  /* text size and sharing: one row of round buttons */
  .article-reading-tools-bar { flex-wrap: nowrap; gap: 6px; margin-bottom: 18px; padding-top: 14px; border-top: 1px solid rgba(186, 155, 50, .2); }
  .article-reading-tools-bar > span { margin: 0 2px !important; }
  .tool-action-btn { width: 36px; height: 36px; padding: 0; justify-content: center; flex-shrink: 0; font-size: 12px; }
  .tool-action-btn i + span { display: none; }
  .tool-action-btn:hover { transform: none; }

  .article-showcase-frame { margin: 0 -16px 22px; border-radius: 0; border-width: 1px 0; box-shadow: none; }
  .article-hero-img-box, .article-hero-main-img { max-height: none; }
  .article-hero-main-img { aspect-ratio: 16 / 10; height: auto; }

  /* reading: the text on the page itself, full width, set for a phone */
  .article-reading-layout { gap: 22px; margin-bottom: 26px; }
  .article-content-canvas { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; line-height: 2.05; }
  .article-content-canvas.text-sm { font-size: 15px; }
  .article-content-canvas.text-md { font-size: 16.5px; }
  .article-content-canvas.text-lg { font-size: 18.5px; }
  .article-content-canvas p { text-align: start; margin-bottom: 16px; }
  .article-content-canvas .article-lead { font-size: 1.08em; margin-bottom: 18px; padding-bottom: 16px; }
  .article-content-canvas h2 { font-size: 1.3em; margin: 28px 0 12px; padding-right: 12px; border-right-width: 3px; }
  .article-content-canvas h3 { font-size: 1.15em; margin: 22px 0 10px; }
  .article-content-canvas ul, .article-content-canvas ol { margin: 12px 0 18px; padding-right: 20px; }
  .article-content-canvas img { max-width: 100%; height: auto; border-radius: 12px; }

  /* the writer and the tags: two small cards instead of tall boxes */
  .article-sidebar-col { gap: 12px; }
  .sidebar-widget-card { padding: 14px 16px; border-radius: 16px; border-width: 1px; }
  .widget-title { font-size: 14px; margin-bottom: 10px; padding-bottom: 8px; }
  .sidebar-author-profile { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: start; }
  .sidebar-author-profile .widget-title { grid-column: 1 / -1; }
  .sidebar-author-avatar { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .sidebar-author-name { font-size: 15px; margin: 0; align-self: end; }
  .sidebar-author-title { margin: 0; align-self: start; }

  /* books mentioned, related articles */
  .blog-page-wrap { padding-bottom: 20px; }
  .article-books-section { padding: 18px 0 8px; }
  .article-books-shelf { margin-top: 20px; gap: 12px; max-width: none !important; }
  .article-book { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .related-articles-section { padding: 26px 0 30px; }
  .related-section-header { margin-bottom: 14px; }
  .related-section-header h3 { font-size: 18px; }
}

/* ---------- contact us on phones: a shorter hero, the channels as a tidy list, a form sized for thumbs ---------- */
@media (max-width: 640px) {
  .contact-hero { padding-top: 18px; padding-bottom: 58px; }
  .contact-hero .about-crumbs { margin-bottom: 14px; font-size: 12px; }
  .contact-hero .about-seal { width: 64px; height: 64px; margin-bottom: 10px; }
  .contact-hero .about-seal img { width: 40px; }
  .contact-hero .about-hero-kicker { font-size: 12px; gap: 8px; }
  .contact-hero .about-hero-kicker i { width: 22px; }
  .contact-hero h1 { font-size: 30px; margin: 6px 0 6px; }
  .contact-hero .about-hero-body p { font-size: 14px; line-height: 1.85; max-width: 320px; margin-inline: auto; }

  /* the channels: one card, a row per channel with its icon at the side */
  .contact-channels-row { padding: 4px 0; border-radius: 20px; }
  .contact-channels-row li {
    display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0;
    align-items: center; justify-items: start; text-align: start; padding: 12px 16px; min-height: 0;
  }
  .contact-channels-row li + li { border-top: 1px solid rgba(186, 155, 50, .18) !important; }
  .contact-channel-icon { grid-row: span 2; width: 42px; height: 42px; margin: 0; border-radius: 12px; font-size: 15px; }
  .contact-channel-label { font-size: 11.5px; line-height: 1.5; align-self: end; }
  .contact-channels-row a, .contact-channels-row strong { font-size: 14.5px; line-height: 1.6; align-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .contact-channels-row [dir="ltr"] { justify-self: start; }

  /* the form */
  .contact-main { padding: 26px 0 40px; }
  .contact-main-grid { gap: 16px; }
  .contact-form-card { padding: 24px 16px 20px; border-radius: 22px; }
  .contact-form-card h2, .contact-visit h2 { font-size: 22px; margin: 4px 0 8px; }
  .contact-intro p { font-size: 14px; line-height: 1.85; margin-bottom: 12px; }
  .contact-form { gap: 14px; }
  .contact-form-row { gap: 14px; }
  .contact-form label { gap: 6px; }
  .contact-form label > span { font-size: 13px; }
  /* 16px text keeps iPhones from zooming into the field */
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; min-height: 48px; border-radius: 12px; }
  .contact-form textarea { min-height: 130px; }
  .contact-form-foot { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
  .contact-submit { width: 100%; justify-content: space-between; }
  .contact-form-foot small { text-align: center; line-height: 1.7; }

  /* the visit card */
  .contact-visit { padding: 24px 16px 20px; border-radius: 22px; }
  .contact-address { padding: 13px 14px; font-size: 14px; }
  .contact-map-btn { width: 100%; justify-content: center; }
  .contact-block { margin-top: 18px; padding-top: 16px; }
  .contact-socials { justify-content: flex-start; }
  .contact-useful a { padding: 11px 14px; }
}
@media (max-width: 640px) { .contact-channels-row strong { white-space: normal; overflow: visible; font-size: 13.5px; } }

/* ---------- footer newsletter: on every page (the home page too), one compact framed card ---------- */
body.page-home .footer-newsletter { display: grid; }
.footer-newsletter.nl-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(300px, 440px); align-items: center; gap: 18px 22px;
  margin: 30px 0 34px; padding: 18px 22px; border: 1px solid rgba(224, 199, 108, .32); border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(0, 56, 43, .35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 40px -30px rgba(0, 0, 0, .7);
}
.footer-newsletter.nl-card::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(224, 199, 108, .1); border-radius: 18px; pointer-events: none; }
.nl-seal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #F2DD8C, #CCA83B 55%, #a8862a); color: #00241B; font-size: 20px; box-shadow: 0 0 0 4px rgba(224, 199, 108, .14), 0 10px 22px -12px rgba(0, 0, 0, .7); }
.nl-card .footer-newsletter-text h3 { margin: 0 0 3px; font-size: 19px; font-weight: 800; line-height: 1.4; color: #fff; }
.nl-card .footer-newsletter-text p { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(251, 249, 237, .72); }
.nl-action { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nl-card .footer-newsletter-form { min-width: 0; width: 100%; padding: 5px; padding-inline-start: 16px; gap: 10px; border: 1px solid rgba(224, 199, 108, .55); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .8); transition: box-shadow .2s, border-color .2s; }
.nl-card .footer-newsletter-form:focus-within { border-color: #E0C76C; box-shadow: 0 0 0 3px rgba(224, 199, 108, .25), 0 10px 24px -16px rgba(0, 0, 0, .8); }
.nl-card .footer-newsletter-form input { font-size: 14.5px; padding: 9px 0; }
[dir="rtl"] .nl-card .footer-newsletter-form input::placeholder { text-align: right; }
.nl-card .footer-newsletter-form button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; background: linear-gradient(135deg, #005943, #00382b); font-weight: 800; transition: background .2s, transform .2s; }
.nl-card .footer-newsletter-form button i { font-size: 11px; color: #E0C76C; }
.nl-card .footer-newsletter-form button:hover { background: linear-gradient(135deg, #CCA83B, #BA9B32); color: #00241B; }
.nl-card .footer-newsletter-form button:hover i { color: #00241B; }
.nl-card .footer-newsletter-form button:disabled { opacity: .65; cursor: wait; }
.nl-note { display: flex; align-items: center; gap: 6px; padding-inline: 14px; font-size: 11.5px; color: rgba(251, 249, 237, .55); }
.nl-note i { color: rgba(224, 199, 108, .75); font-size: 10.5px; }
@media (max-width: 992px) {
  .footer-newsletter.nl-card { grid-template-columns: auto minmax(0, 1fr); }
  .nl-action { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-newsletter.nl-card { gap: 14px 12px; margin: 22px 0 24px; padding: 16px 14px; border-radius: 18px; text-align: start; }
  .footer-newsletter.nl-card::before { inset: 4px; border-radius: 14px; }
  .nl-seal { width: 44px; height: 44px; font-size: 16px; }
  .nl-card .footer-newsletter-text h3 { font-size: 16.5px; }
  .nl-card .footer-newsletter-text p { font-size: 12.5px; }
  .nl-card .footer-newsletter-form input { font-size: 16px; }
  .nl-card .footer-newsletter-form button { padding: 11px 16px; }
  .nl-note { justify-content: center; padding: 0; }
}

/* ---------- track your order: a search card, then the order as four steps ---------- */
.track-body { padding: 8px 0 70px; }
.track-wrap { display: grid; gap: 18px; max-width: 760px; }
.track-card { position: relative; padding: 24px; border-radius: 22px; background: #fffdf7; border: 1px solid rgba(186, 155, 50, .3); box-shadow: 0 22px 46px -34px rgba(0, 56, 43, .55); }
.track-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(186, 155, 50, .12); border-radius: 17px; pointer-events: none; }
.track-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: end; gap: 14px; }
.track-form label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.track-form label > span:first-child { font-size: 13px; font-weight: 800; color: var(--c-brand-green); }
.track-field { display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px; border-radius: 14px; background: #fff; border: 1px solid #e6dcc2; transition: border-color .2s, box-shadow .2s; }
.track-field:focus-within { border-color: #BA9B32; box-shadow: 0 0 0 3px rgba(186, 155, 50, .16); }
.track-field i { color: #BA9B32; font-size: 13px; }
.track-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--c-ink); }
[dir="rtl"] .track-field input::placeholder { text-align: right; }
.track-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #005943, #00382b); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 12px 24px -14px rgba(0, 56, 43, .8); transition: transform .2s, box-shadow .2s; }
.track-submit i { color: #E0C76C; }
.track-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(0, 56, 43, .8); }
.track-error, .track-help { grid-column: 1 / -1; margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.7; }
.track-error { padding: 10px 14px; border-radius: 12px; background: #fff1ef; border: 1px solid #f3cfc9; color: #93261b; }
.track-error i { margin-top: 4px; }
.track-help { color: var(--c-ink-muted); }
.track-help i { color: #BA9B32; margin-top: 4px; }
.track-help a { color: var(--c-brand-green); font-weight: 800; }

.track-result { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 120px; }
.track-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed rgba(186, 155, 50, .35); }
.track-result-head > div { display: flex; flex-direction: column; gap: 2px; }
.track-label { font-size: 12px; font-weight: 700; color: var(--c-gold-dark); }
.track-result-head strong { font-size: 22px; font-weight: 900; color: var(--c-brand-green); }
.track-date { font-size: 13px; color: var(--c-ink-muted); }
.track-pay { flex-shrink: 0; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #fff3d1; color: #6b5200; }
.track-pay-paid, .track-pay-cod { background: #dff5ea; color: #0f6b45; }
.track-pay-failed { background: #ffe4e1; color: #a1160f; }
.track-pay-refunded, .track-pay-partial_refund { background: #eceeed; color: #4b5552; }

.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.track-steps::before, .track-steps::after { content: ""; position: absolute; top: 21px; inset-inline-start: 12.5%; height: 3px; border-radius: 3px; }
.track-steps::before { inset-inline-end: 12.5%; background: #ece4cc; }
.track-steps::after { width: calc(75% * var(--at) / 3); background: linear-gradient(90deg, #005943, #2f7d66); }
[dir="rtl"] .track-steps::after { background: linear-gradient(-90deg, #005943, #2f7d66); }
.track-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; color: #9a8f7c; }
.track-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #e6dcc2; color: #c4b796; font-size: 15px; }
.track-steps li.done { color: var(--c-brand-green); }
.track-steps li.done .track-dot { background: #005943; border-color: #005943; color: #fff; }
.track-steps li.now { color: #00382b; font-weight: 900; }
.track-steps li.now .track-dot { background: linear-gradient(135deg, #F2DD8C, #CCA83B); border-color: #E0C76C; color: #00241B; box-shadow: 0 0 0 5px rgba(224, 199, 108, .22); }
.track-stopped { margin: 0; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f6f3ea; color: #5f564a; font-weight: 700; }
.track-stopped a { color: var(--c-brand-green); margin-inline-start: auto; }

.track-ship { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f3f8f5; border: 1px solid #d7e8df; }
.track-ship > i { color: #005943; font-size: 18px; }
.track-ship div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.track-ship div span { font-size: 12px; color: var(--c-ink-muted); }
.track-ship div strong { font-size: 15px; color: var(--c-brand-green); }
.track-ship a { flex-shrink: 0; font-size: 13px; font-weight: 800; color: #005943; text-decoration: none; }
.track-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.track-events li { padding-inline-start: 14px; border-inline-start: 3px solid #E0C76C; }
.track-events span { font-size: 12px; color: var(--c-ink-muted); }
.track-events p { margin: 2px 0 0; font-size: 14px; color: var(--c-ink); }
.track-items { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px dashed rgba(186, 155, 50, .35); font-size: 14px; }
.track-items > div { display: flex; justify-content: space-between; gap: 12px; }
.track-items b { color: var(--c-gold-dark); font-weight: 800; }
.track-total { padding-top: 10px; border-top: 1px solid #efe7d1; font-weight: 800; }
.track-total strong { font-size: 18px; color: var(--c-brand-green); }

@media (max-width: 640px) {
  .track-body { padding-bottom: 44px; }
  .track-card { padding: 18px 14px; border-radius: 18px; }
  .track-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .track-field input { font-size: 16px; }
  .track-submit { width: 100%; }
  .track-result-head strong { font-size: 19px; }
  .track-dot { width: 38px; height: 38px; font-size: 13px; }
  .track-steps::before, .track-steps::after { top: 18px; }
  .track-steps li { font-size: 11.5px; gap: 6px; }
  .track-ship { flex-wrap: wrap; }
  .track-ship a { width: 100%; text-align: center; padding-top: 8px; border-top: 1px solid #d7e8df; }
}
/* information pages: the opening paragraph set apart */
.page-paper .lead { font-size: 1.08em; font-weight: 600; color: #00382b; line-height: 1.95; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid rgba(186, 155, 50, .25); }

/* =====================================================================
   BAG PAGE and WISHLIST: built to sell — clear cards, the total always in view, no detours
   ===================================================================== */
.bp-body { --bag-ink: #142520; --bag-green: #005943; --bag-muted: #7c7a72; padding: 6px 0 56px; }
.bp-hero { padding: 26px 0 18px; }
.bp-hero .catalog-breadcrumbs { margin-bottom: 12px; }
.bp-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bp-hero h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 900; color: var(--c-brand-green); }
.bp-count { font-size: .55em; font-weight: 700; color: var(--c-ink-muted); }
.bp-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #a49a86; }
.bp-steps li { display: inline-flex; align-items: center; gap: 7px; }
.bp-steps li + li::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: #e6dcc2; margin-inline-end: 4px; }
.bp-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #e1d6bb; font-size: 12px; background: #fff; }
.bp-steps li.on { color: var(--c-brand-green); }
.bp-steps li.on span { background: linear-gradient(135deg, #005943, #00382b); border-color: #00382b; color: #E0C76C; }
.wish-sub { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink-muted); font-size: 14px; }
.wish-sub i { color: #BA9B32; }

.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.bp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* the offers: gold progress cards, the first thing to read */
.bp-offers { display: grid; gap: 10px; }
.bp-offers .cart-nudge { margin: 0; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fff9e6, #fff3cf); border: 1px solid #f0dc9c; box-shadow: 0 10px 22px -20px rgba(118, 91, 1, .8); }
.bp-offers .cart-nudge.done { background: linear-gradient(135deg, #eaf6ef, #dcf0e4); border-color: #bfe0cc; }
.bp-offers .cart-nudge-text { display: flex; align-items: center; gap: 10px; color: #4d3b00; font-size: 14px; font-weight: 800; line-height: 1.6; }
.bp-offers .cart-nudge.done .cart-nudge-text { color: #0f5a39; }
.bp-offers .cart-nudge-text i { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #CCA83B; color: #fff; font-size: 13px; }
.bp-offers .cart-nudge.done .cart-nudge-text i { background: #1f8a57; }
.bp-offers .cart-nudge-bar { height: 8px; margin-top: 10px; border-radius: 999px; background: rgba(186, 155, 50, .2); overflow: hidden; }
.bp-offers .cart-nudge-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #E0C76C, #BA9B32); transition: width .5s ease; }

/* the books */
.bp-list { display: flex; flex-direction: column; gap: 12px; }
.bp-item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #ebe5d4; box-shadow: 0 12px 28px -26px rgba(0, 56, 43, .5); transition: opacity .2s, border-color .2s; }
.bp-item:hover { border-color: #ddd0a8; }
.bp-item.is-busy { opacity: .55; pointer-events: none; }
.bp-cover { display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #f8f2df, #ece2c4); }
.bp-cover-img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 18px -10px rgba(0, 36, 27, .7); }
.bp-cover .cart-thumb-art { display: flex; align-items: center; justify-content: center; padding: 6px; color: #FAF0CD; font-size: 9px; font-weight: 700; text-align: center; overflow: hidden; }
.bp-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-title { font-size: 15.5px; font-weight: 800; line-height: 1.55; color: var(--c-brand-green); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-title:hover { color: var(--c-gold-dark); }
.bp-author { font-size: 12.5px; color: var(--c-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.bp-price strong { font-size: 16px; font-weight: 900; color: var(--bag-ink); }
.bp-price s { font-size: 12.5px; color: #a59c8a; }
.bp-price em { font-style: normal; padding: 1px 8px; border-radius: 999px; background: #fde7e3; color: #b3261e; font-size: 11.5px; font-weight: 800; }
.bp-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #1f8a57; }
.bp-stock.is-out { color: #a26b00; }
.bp-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.bp-links button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: #6d6656; cursor: pointer; }
.bp-links button:hover { color: var(--c-brand-green); }
.bp-links button:last-child:hover { color: #b3261e; }
.bp-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; min-height: 100%; }
.bp-line { font-size: 18px; font-weight: 900; color: var(--c-brand-green); direction: ltr; unicode-bidi: isolate; }
.bp-line .cur, .bp-total .cur, .bp-mobilebar .cur { font-size: .7em; margin-inline-end: 1px; }
.bp-line .cents, .bp-total .cents, .bp-mobilebar .cents { font-size: .7em; }
.bp-continue { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(186, 155, 50, .45); background: #fff; color: var(--c-brand-green); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.bp-continue:hover { border-color: #BA9B32; background: #fffaf0; }

/* the summary: always in view on a computer */
.bp-summary { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: #fffdf7; border: 1px solid rgba(186, 155, 50, .35); box-shadow: 0 26px 50px -36px rgba(0, 56, 43, .6); }
.bp-summary h2 { margin: 0; font-size: 18px; font-weight: 900; color: var(--c-brand-green); }
.bp-lines { margin: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed rgba(186, 155, 50, .4); }
.bp-lines > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bp-lines dt { color: #5d574b; font-weight: 600; }
.bp-lines dt i { color: #BA9B32; }
.bp-lines dt small { color: #9a917f; }
.bp-lines dd { margin: 0; font-weight: 800; color: var(--bag-ink); direction: ltr; unicode-bidi: isolate; }
.bp-lines dd.is-free { color: #1f8a57; }
.bp-good dt, .bp-good dd { color: #1f8a57 !important; }
.bp-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bp-total span { font-size: 15px; font-weight: 800; color: var(--bag-ink); }
.bp-total strong { font-size: 30px; font-weight: 900; color: var(--c-brand-green); direction: ltr; unicode-bidi: isolate; line-height: 1.1; }
.bp-saved { margin: -4px 0 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #eaf6ef; color: #0f5a39; font-size: 13px; font-weight: 800; }
.bp-checkout { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #005943, #00382b); color: #fff; font: inherit; font-size: 16px; font-weight: 900; text-decoration: none; cursor: pointer; box-shadow: 0 16px 30px -16px rgba(0, 56, 43, .9); transition: transform .2s, box-shadow .2s; }
.bp-checkout i { color: #E0C76C; font-size: 13px; }
.bp-checkout:hover { transform: translateY(-1px); box-shadow: 0 20px 34px -16px rgba(0, 56, 43, .9); }
.bp-min { margin: -4px 0 0; font-size: 12.5px; color: #a26b00; text-align: center; }
.bp-pay { display: flex; align-items: center; justify-content: center; gap: 14px; color: #8d8574; font-size: 24px; }
.bp-pay i:nth-child(n+3) { font-size: 19px; }
.bp-trust { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #efe7d1; font-size: 13px; color: #5d574b; }
.bp-trust li { display: flex; align-items: center; gap: 10px; }
.bp-trust i { width: 18px; text-align: center; color: #005943; }

/* empty bag / empty wishlist */
.wish-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 46px 22px; border-radius: 22px; background: #fffdf7; border: 1px dashed rgba(186, 155, 50, .5); }
.wish-empty-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8e1, #f1e3b8); color: #BA9B32; font-size: 32px; box-shadow: 0 0 0 8px rgba(224, 199, 108, .15); margin-bottom: 6px; }
.wish-empty h2 { margin: 0; font-size: 21px; font-weight: 900; color: var(--c-brand-green); }
.wish-empty p { margin: 0; max-width: 420px; color: var(--c-ink-muted); line-height: 1.8; }
.wish-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.wish-empty-actions .bp-checkout { width: auto; padding: 12px 22px; font-size: 14.5px; }
.bp-empty { grid-column: 1 / -1; }
.bp-grid:has(.bp-summary[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* the phone bar: total and checkout above the tab bar */
.bp-mobilebar { display: none; }

/* wishlist bar */
.wish-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding: 14px 18px; border-radius: 18px; background: #fffdf7; border: 1px solid rgba(186, 155, 50, .35); box-shadow: 0 16px 34px -28px rgba(0, 56, 43, .55); }
.wish-bar-info { display: flex; align-items: center; gap: 12px; }
.wish-bar-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fde7e3; color: #c23b30; font-size: 17px; }
.wish-bar-info div { display: flex; flex-direction: column; }
.wish-bar-info strong { font-size: 16px; font-weight: 900; color: var(--c-brand-green); }
.wish-bar-info span { font-size: 13px; color: var(--c-ink-muted); }
.wish-bar-info b { color: var(--bag-ink); font-weight: 900; }
.wish-all { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #005943, #00382b); color: #fff; font: inherit; font-size: 14.5px; font-weight: 900; cursor: pointer; box-shadow: 0 14px 26px -16px rgba(0, 56, 43, .9); }
.wish-all i { color: #E0C76C; }
.wish-all:disabled { opacity: .55; cursor: not-allowed; }
.wish-body .book-rail-section, .bp-body + .book-rail-section { padding-top: 10px; }

@media (max-width: 992px) {
  .bp-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-summary { position: static; }
}
@media (max-width: 768px) {
  .bp-mobilebar { position: fixed; inset-inline: 0; bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 1090; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(255, 253, 247, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(186, 155, 50, .35); box-shadow: 0 -12px 28px -20px rgba(0, 36, 27, .5); }
  .bp-mobilebar[hidden] { display: none; }
  .bp-mobilebar div { display: flex; flex-direction: column; line-height: 1.2; }
  .bp-mobilebar div span { font-size: 11.5px; font-weight: 700; color: var(--c-ink-muted); }
  .bp-mobilebar div strong { font-size: 21px; font-weight: 900; color: var(--c-brand-green); direction: ltr; unicode-bidi: isolate; }
  .bp-mobilebar button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #005943, #00382b); color: #fff; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 24px -14px rgba(0, 56, 43, .9); }
  .bp-mobilebar button i { color: #E0C76C; font-size: 12px; }
  body.has-bp-bar { padding-bottom: calc(var(--tabbar-h, 0px) + 68px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .bp-hero { padding: 14px 0 12px; }
  .bp-hero-row { gap: 10px; }
  .bp-steps { width: 100%; font-size: 12px; }
  .bp-steps li + li::before { width: 16px; }
  .bp-body { padding-bottom: 30px; }
  .bp-item { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; }
  .bp-cover { padding: 5px; border-radius: 10px; }
  .bp-title { font-size: 14px; }
  .bp-side { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; padding-top: 10px; border-top: 1px dashed #ebe5d4; }
  .bp-line { font-size: 17px; }
  .bp-summary { padding: 18px 16px; border-radius: 20px; }
  .bp-total strong { font-size: 26px; }
  .bp-offers .cart-nudge { padding: 12px 14px; }
  .bp-offers .cart-nudge-text { font-size: 13px; }
  .wish-bar { padding: 12px 14px; }
  .wish-all { width: 100%; justify-content: center; }
  .wish-empty { padding: 34px 16px; }
}

/* ==========================================================================
   Customer accounts & wholesale, on every page: the shared buttons, the follow button, the signed-in header,
   wholesale prices on cards / book pages / the bag, and the call to apply on the wholesale page
   ========================================================================== */
.ac-btn, .ac-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 14px; font: inherit; font-size: 14.5px; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.ac-btn { border: 0; background: linear-gradient(135deg, #005943, #00382b); color: #fff; box-shadow: 0 14px 26px -16px rgba(0, 56, 43, .9); }
.ac-btn i { color: #E0C76C; font-size: .85em; }
.ac-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 30px -16px rgba(0, 56, 43, .9); }
.ac-btn:disabled { opacity: .55; cursor: not-allowed; }
.ac-btn-ghost { border: 1px solid rgba(186, 155, 50, .5); background: #fff; color: #00473a; }
.ac-btn-ghost i { color: #BA9B32; font-size: .85em; }
.ac-btn-ghost:hover { background: #fffaf0; border-color: #BA9B32; }
.ac-follow { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1.5px solid #005943; background: #fff; color: #005943; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.ac-follow i { font-size: 10px; }
.ac-follow:hover { background: #f0f7f3; }
.ac-follow.is-on { background: #005943; color: #fff; }
.ac-follow.is-on i { color: #E0C76C; }
.ac-follow:disabled { opacity: .6; }
.author-follow { margin-top: 12px; padding: 9px 18px; font-size: 13.5px; }

.account-btn.is-in .account-btn-icon { background: linear-gradient(135deg, #005943, #00382b); border-color: #00382b; color: #E0C76C; }
.account-btn.is-ws .account-btn-icon { background: linear-gradient(135deg, #CCA83B, #8F7520); border-color: #8F7520; color: #fff; }
.account-btn.is-ws .account-btn-text small { color: #8F7520; font-weight: 800; }
.nav-stuck-btn.is-in { background: rgba(224, 199, 108, .22); color: #fff; }

.badge-ws { background: linear-gradient(135deg, #CCA83B, #8F7520) !important; color: #fff !important; }
.ws-min-tag { display: block; flex-basis: 100%; margin-top: 1px; font-size: 11px; font-weight: 700; color: #8F7520; }
.discount-pill-tag.is-ws { background: linear-gradient(135deg, #CCA83B, #8F7520); color: #fff; }
.ws-note { color: #6b5a1f !important; }
.bag-item-note, .bp-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 9px; border-radius: 8px; background: #fff7df; color: #6b5a1f; font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.bag-item-note i, .bp-note i { color: #BA9B32; }
.bp-price em.is-ws { background: #fff1c9; color: #6b5a1f; }

.ws-page-cta { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 20px 22px; border-radius: 22px; background: linear-gradient(135deg, #00382b, #005943); color: #fff; box-shadow: 0 24px 44px -30px rgba(0, 56, 43, .9); }
.ws-page-cta-icon { display: grid; place-items: center; flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; background: rgba(224, 199, 108, .16); color: #E0C76C; font-size: 22px; }
.ws-page-cta div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.6; }
.ws-page-cta b { font-size: 17px; }
.ws-page-cta small { font-size: 13px; color: #cfe1d9; }
.ws-page-cta .ac-btn { flex-shrink: 0; background: linear-gradient(135deg, #E0C76C, #BA9B32); color: #00382b; }
.ws-page-cta .ac-btn i { color: #00382b; }
@media (max-width: 640px) {
  .ws-page-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 18px 16px; }
  .ws-page-cta-icon { margin: 0 auto; }
}

/* ==========================================================================
   Order on WhatsApp: beside "Add to bag" on the book page, under "Checkout" in the bag, in the side bag and the phone bar
   ========================================================================== */
/* book page: quantity, wishlist and share on the first row; "Add to bag" and WhatsApp side by side, equal, below */
.book-purchase-dock.has-wa { gap: 12px; }
.book-purchase-dock.has-wa .qty-stepper-cluster { order: 1; }
/* the wishlist takes what the quantity and share leave on the first row, so the two big buttons always start the second */
.book-purchase-dock.has-wa .btn-wishlist-hero { order: 2; flex: 1 1 calc(100% - 220px); min-width: 0; }
.book-purchase-dock.has-wa .btn-share-hero { order: 3; }
.book-purchase-dock.has-wa .btn-add-cart-hero { order: 4; flex: 1 1 calc(50% - 6px); min-width: 0; }
.book-purchase-dock.has-wa .btn-whatsapp-hero { order: 5; flex: 1 1 calc(50% - 6px); min-width: 0; }
.btn-whatsapp-hero, .btn-whatsapp-wide { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 9999px; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: #fff; font-family: inherit; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 20px rgba(18, 140, 126, .28); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, filter .25s; }
.btn-whatsapp-hero { padding: 14px 24px; font-size: 15px; }
.btn-whatsapp-hero i, .btn-whatsapp-wide i { font-size: 20px; }
.btn-whatsapp-hero:hover, .btn-whatsapp-wide:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18, 140, 126, .4); filter: saturate(1.1); color: #fff; }
.btn-whatsapp-hero:focus-visible, .btn-whatsapp-wide:focus-visible, .bag-whatsapp:focus-visible, .bp-mobile-wa:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 2px; }

/* bag page */
.wa-or { display: flex; align-items: center; gap: 10px; margin: -4px 0 -6px; color: #a49a86; font-size: 12px; font-weight: 700; }
.wa-or::before, .wa-or::after { content: ""; flex: 1; height: 1px; background: #ece4cc; }
.btn-whatsapp-wide { width: 100%; padding: 13px 20px; font-size: 15px; border-radius: 16px; }
.bp-mobile-wa { display: none; }

/* side bag: a quiet second way, under "Checkout" */
.bag-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid rgba(37, 211, 102, .45); background: #f2fbf5; color: #0b7a5c; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .2s, border-color .2s; }
.bag-whatsapp i { font-size: 18px; color: #25D366; }
.bag-whatsapp:hover { background: #e3f7ea; border-color: #25D366; }

@media (max-width: 768px) {
  .bp-mobilebar .bp-mobile-wa { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; margin-inline-start: auto; border-radius: 14px; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; font-size: 23px; text-decoration: none; box-shadow: 0 10px 20px -12px rgba(18, 140, 126, .9); }
}
@media (max-width: 520px) {
  .book-purchase-dock.has-wa .btn-add-cart-hero, .book-purchase-dock.has-wa .btn-whatsapp-hero { padding: 13px 10px; font-size: 14px; gap: 7px; }
  .book-purchase-dock.has-wa .btn-wishlist-hero { padding: 12px 16px; }
}
@media (max-width: 520px) {
  /* phones: the first row keeps quantity, wishlist and share together; "Add to bag" and WhatsApp share the second equally */
  .book-purchase-dock.has-wa { gap: 10px; }
  .book-purchase-dock.has-wa .btn-wishlist-hero { padding: 12px 10px; }
  .book-purchase-dock.has-wa .btn-add-cart-hero, .book-purchase-dock.has-wa .btn-whatsapp-hero { flex-basis: calc(50% - 5px); padding: 13px 8px; font-size: 13.5px; gap: 6px; }
  .book-purchase-dock.has-wa .btn-whatsapp-hero i { font-size: 18px; }
  /* book details: one column, so long author names are not broken letter by letter */
  .spec-attributes-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec-attr-row:nth-last-child(2) { border-bottom: 1px dashed rgba(186, 155, 50, .16); }
  .spec-attr-row .attr-val { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
}
