/* ═══════════════════════════════════════════════════════════════════
   leyuleyu — storefront design system  ("paper & ink")
   ───────────────────────────────────────────────────────────────────
   Loaded ONLY by app/Views/layouts/main.php. The admin and courier
   screens keep public/css/style.css; nothing here touches them.

   Principles
   · The canvas is warm paper, the type is ink, the chrome is navy + gold.
   · Book covers are the hero — everything else steps back.
   · Fraunces (display serif) carries voice; Instrument Sans does the work;
     Noto Serif Ethiopic covers Amharic titles gracefully.
   · Every legacy --clr-* variable name still resolves, so the views'
     inline styles and app.js keep working unchanged.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══ Fonts — self-hosted in public/fonts (OFL-licensed), split by
   unicode-range so a page only fetches the scripts it actually shows:
   Latin on every page, Ethiopic only when Amharic appears. The two
   above-the-fold files are preloaded in layouts/main.php. ═══ */

/* Fraunces — display serif; variable (wght 400–700, opsz 9–144, SOFT) */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/fraunces/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/fraunces/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/fraunces/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/fraunces/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Instrument Sans — text; variable (wght 400–700) */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans/instrument-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans/instrument-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans/instrument-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('../fonts/instrument-sans/instrument-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* JetBrains Mono — prices, SKUs, order codes, eyebrow labels */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Ethiopic (Amharic, Tigrinya…) — serif for headings, sans for text.
   Fetched only when an Ethiopic character is on the page. */
@font-face { font-family: 'Noto Serif Ethiopic'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/noto-serif-ethiopic/noto-serif-ethiopic-normal-ethiopic.woff2') format('woff2');
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E, U+1E7E0-1E7E6, U+1E7E8-1E7EB, U+1E7ED-1E7EE, U+1E7F0-1E7FE; }
@font-face { font-family: 'Noto Sans Ethiopic'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/noto-sans-ethiopic/noto-sans-ethiopic-normal-ethiopic.woff2') format('woff2');
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E, U+1E7E0-1E7E6, U+1E7E8-1E7EB, U+1E7ED-1E7EE, U+1E7F0-1E7FE; }

/* Metric-matched fallbacks: local Georgia / Arial scaled to the web fonts'
   advance widths and given the web fonts' vertical metrics, so the page
   doesn't reflow when Fraunces / Instrument Sans arrive (font-display:
   swap). Ratios were measured in the browser against the real files:
   local('Georgia') maps the regular face only (bold is synthesised), so
   Fraunces 400 ≈ 0.87× and 600 ≈ 0.91× the fallback → 88% splits the
   difference; Instrument Sans ≈ 1.02× Arial. */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'), local('Times New Roman');
  size-adjust: 88%; ascent-override: 111.1%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Instrument Sans Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 102%; ascent-override: 95.1%; descent-override: 24.5%; line-gap-override: 0%; }

:root {
  /* ── Palette ── */
  --paper:      #f7f2e8;
  --paper-2:    #efe7d6;
  --paper-3:    #e7dcc5;
  --surface:    #fffdf9;
  --ink:        #171512;
  --ink-2:      #2b2824;
  --ink-3:      #4d4843;
  --muted:      #6f6a63;
  --muted-2:    #9a948b;
  --line:       #e4dbc7;
  --line-2:     #d3c8ad;
  --navy:       #0e1b33;
  --navy-2:     #16284a;
  --navy-3:     #1f3560;
  --gold:       #c9a45c;
  --gold-2:     #a9853f;
  --gold-3:     #e6cf95;
  --oxblood:    #8c2f2b;
  --leaf:       #2f6b4f;
  --sky:        #2d5f9e;
  --cream-text: #f6efe0;

  /* ── Legacy aliases (views + app.js reference these) ── */
  --clr-bg:           var(--paper);
  --clr-bg-deep:      var(--paper-2);
  --clr-surface:      var(--surface);
  --clr-card:         var(--surface);
  --clr-card-hover:   #fff;
  --clr-elevated:     var(--paper-2);
  --clr-border:       var(--line);
  --clr-border-light: var(--line-2);
  --clr-text:         var(--ink-2);
  --clr-white:        var(--ink);       /* "strongest text" in the old system */
  --clr-muted:        var(--muted);
  --clr-muted-2:      var(--muted-2);
  --clr-navy:         var(--navy);
  --clr-navy-700:     var(--navy-2);
  --clr-gold:         var(--gold);
  --clr-gold-hover:   var(--gold-2);
  --clr-accent:       var(--navy);
  --clr-accent-hover: var(--navy-3);
  --clr-accent-glow:  rgba(14,27,51,.14);
  --clr-accent2:      var(--gold);
  --clr-purple:       #6b4fbb;
  --clr-blue:         var(--sky);
  --clr-red:          var(--oxblood);
  --clr-green:        var(--leaf);

  /* ── Type ── */
  /* The "… Fallback" faces are metric-matched local fonts (see the
     @font-face block above) so text doesn't reflow when the real font
     lands; the Ethiopic faces sit before them so Amharic never falls to
     a Latin-only font. */
  --ff-display: 'Fraunces', 'Noto Serif Ethiopic', 'Fraunces Fallback', Georgia, 'Times New Roman', serif;
  --ff-heading: var(--ff-display);
  --ff-body:    'Instrument Sans', 'Noto Sans Ethiopic', 'Instrument Sans Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Small uppercase labels, eyebrows, badges and counts. These used the
     mono face, which read as "developer tool"; they are now the text face.
     --ff-mono is kept for genuine codes: order codes, SKUs, ISBNs. */
  --ff-label:   var(--ff-body);

  /* ── Shape & motion ── */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --ease:      cubic-bezier(.4,0,.2,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur-fast:  160ms;
  --dur:       320ms;
  --dur-slow:  640ms;

  /* ── Shadows (warm, not grey) ── */
  --shadow-sm:   0 1px 2px rgba(60,40,10,.06), 0 2px 8px rgba(60,40,10,.06);
  --shadow:      0 6px 18px rgba(60,40,10,.10), 0 2px 6px rgba(60,40,10,.06);
  --shadow-lg:   0 24px 48px -12px rgba(40,25,5,.22), 0 8px 18px rgba(40,25,5,.08);
  --shadow-card: var(--shadow);
  --shadow-glow: 0 0 0 4px rgba(201,164,92,.25);
  --cover-shadow: 0 18px 30px -14px rgba(20,12,0,.45), 0 4px 10px rgba(20,12,0,.12);

  --nav-h: 72px;
}

/* ─────────────── RESET / BASE ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--ff-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
/* subtle paper grain — pure CSS, no assets */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201,164,92,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(14,27,51,.06), transparent 60%);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0 0 .5em;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-2); }
img, picture { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--gold-3); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--cream-text); padding: 10px 16px; border-radius: 8px; z-index: 9999; }
.skip-link:focus { left: 8px; }

/* Bootstrap softening */
.container { max-width: 1280px; }
.alert { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.alert-danger { border-color: rgba(140,47,43,.35); background: #fbf1ef; color: var(--oxblood); }
.alert-success { border-color: rgba(47,107,79,.35); background: #eef6f1; color: var(--leaf); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; background: var(--surface); }
.dropdown-item { border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--ink-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--paper-2); color: var(--ink); }
.dropdown-divider { border-color: var(--line); }

/* ─────────────── TYPOGRAPHIC HELPERS ─────────────── */
.section-label {
  font-family: var(--ff-label);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.section-title em, .hl { font-style: italic; color: var(--navy); font-variation-settings: "opsz" 144, "SOFT" 100; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head .btn-outline-ae { flex-shrink: 0; }
.text-accent { color: var(--gold) !important; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; opacity: 1; }
.prose { max-width: 68ch; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold-3); text-underline-offset: 3px; }
.last-updated { font-family: var(--ff-label); font-size: 12px; color: var(--muted); }

/* ─────────────── BUTTONS ─────────────── */
.btn-primary-ae, .btn-outline-ae, .btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary-ae { background: var(--navy); color: var(--cream-text); border: 1px solid var(--navy); box-shadow: 0 8px 18px -8px rgba(14,27,51,.55); }
.btn-primary-ae:hover { background: var(--navy-3); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(14,27,51,.6); }
.btn-primary-ae:active { transform: translateY(0); }
.btn-primary-ae:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary-ae i { font-size: .9em; transition: transform var(--dur-fast) var(--ease); }
.btn-primary-ae:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-outline-ae { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-ae:hover { background: var(--navy); color: var(--cream-text); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 8px 18px -8px rgba(169,133,63,.6); }
.btn-gold:hover { background: var(--gold-3); color: var(--ink); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(246,239,224,.5); color: var(--cream-text); }
.btn-ghost:hover { background: rgba(246,239,224,.12); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.action-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer; font-size: 14px;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.action-btn:hover { background: var(--navy); color: var(--cream-text); border-color: var(--navy); transform: translateY(-1px); }
.action-btn.active, .action-btn.is-on { color: var(--oxblood); border-color: rgba(140,47,43,.35); }
.action-btn.active:hover { background: var(--oxblood); color: #fff; }

/* ─────────────── FORMS ─────────────── */
.form-label-ae {
  display: block;
  font-family: var(--ff-label);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-control-ae {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast);
  appearance: none;
}
.form-control-ae::placeholder { color: var(--muted-2); }
.form-control-ae:focus { outline: none; border-color: var(--gold); box-shadow: var(--shadow-glow); background: #fff; }
.form-control-ae:disabled { background: var(--paper-2); }
textarea.form-control-ae { min-height: 92px; resize: vertical; }
.form-select-ae {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236f6a63' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: var(--shadow-glow); border-color: var(--gold); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--navy); }
input[type="range"] { accent-color: var(--gold-2); }

/* ─────────────── TOPBAR ─────────────── */
.topbar {
  background: var(--ink);
  color: rgba(246,239,224,.82);
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 7px 0;
}
.topbar a { color: rgba(246,239,224,.82); }
.topbar a:hover { color: var(--gold-3); }
.topbar .sep { margin: 0 12px; opacity: .35; }
.topbar-msg { display: flex; align-items: center; gap: 8px; }
.topbar-msg .text-accent { color: var(--gold) !important; }

/* ─────────────── NAVBAR ─────────────── */
.navbar-main {
  background: var(--navy);
  color: var(--cream-text);
  padding: 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 30px -18px rgba(0,0,0,.6);
  transition: box-shadow var(--dur) var(--ease);
}
.navbar-main.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 14px 34px -14px rgba(0,0,0,.65); }
.navbar-main > .container { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); flex-wrap: wrap; }
.brand {
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 600; font-size: 26px; letter-spacing: -.02em;
  color: var(--cream-text); text-decoration: none; line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  text-transform: lowercase;
}
.brand:hover { color: #fff; }
.brand span { color: var(--cream-text); margin: 0 3px; }
.brand-tag {
  font-family: var(--ff-label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(246,239,224,.72); margin-top: 6px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--cream-text); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}

.search-wrap {
  position: relative;
  display: flex; align-items: stretch;
  flex: 1 1 380px; max-width: 640px; min-width: 220px;
  background: var(--cream-text);
  border-radius: 999px;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(14,27,51,.08);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.search-wrap:focus-within { box-shadow: 0 0 0 3px rgba(201,164,92,.45); }
.search-wrap select, .search-wrap #search-cat {
  border: 0; background: var(--paper-2); color: var(--ink-2);
  font-size: 13px; font-weight: 600; padding: 0 12px 0 16px;
  border-radius: 999px 0 0 999px; cursor: pointer; max-width: 150px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%232b2824' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 26px;
}
.search-wrap select:focus { outline: none; }
.search-wrap input {
  flex: 1; border: 0; background: transparent; padding: 0 14px;
  font-size: 15px; color: var(--ink); min-width: 0; height: 46px;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { outline: none; }
.search-btn {
  border: 0; background: var(--gold); color: var(--navy);
  width: 52px; border-radius: 0 999px 999px 0; cursor: pointer;
  font-size: 15px; transition: background var(--dur-fast) var(--ease);
}
.search-btn:hover { background: var(--gold-3); }
#search-dropdown { border-radius: 16px !important; overflow: hidden; padding: 6px; }
.search-result-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none;
  transition: background var(--dur-fast);
}
.search-result-item:hover { background: var(--paper-2); color: var(--ink); }
.search-result-item img { width: 38px; height: 54px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-sm); }

.nav-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 12px;
  border: 0; background: transparent; border-radius: 12px;
  color: var(--cream-text); font-size: 17px; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast);
  cursor: pointer;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.08); color: var(--gold-3); }
.nav-icon-labeled { flex-direction: column; gap: 3px; padding: 0 10px; }
.nav-icon-label { font-family: var(--ff-body); font-size: 10.5px; letter-spacing: .04em; opacity: .8; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--navy);
  font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--navy);
  animation: badgePop .4s var(--ease-out);
}
@keyframes badgePop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
.navbar-toggler { color: var(--cream-text); font-size: 20px; padding: 6px 10px; }
/* phones: brand + icons on one row, search on the next (not three rows) */
@media (max-width: 575.98px) {
  .navbar-main > .container { gap: 8px 6px; padding-top: 6px; padding-bottom: 10px; min-height: 0; }
  .brand { font-size: 22px; }
  .brand-mark .mark { width: 30px; height: 30px; font-size: 13px; }
  .brand-tag { display: none; }
  .nav-icon-labeled { flex-direction: row; gap: 0; padding: 0 9px; height: 40px; font-size: 18px; }
  .nav-icon-label { display: none; }
  .cart-badge { top: 2px; right: 2px; }
  .search-wrap { flex-basis: 100%; }
  .search-wrap input { height: 42px; font-size: 14px; }
  .search-wrap select, .search-wrap #search-cat { max-width: 110px; font-size: 12px; }
}
.navbar-toggler:focus { box-shadow: var(--shadow-glow); }

/* sub-row: genre strip */
.navbar-sub { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.06); }
.navbar-sub .navbar-nav { gap: 2px; align-items: center; }

/* ── Header width ──
   The topbar, both navbar rows and the banner span the full viewport and
   share one gutter; page content below stays in the centred .container.
   Bootstrap's .navbar is a wrapping flex row, so row 1 (brand · search ·
   icons) and the sub-row (links) are flex siblings: stacked on ordinary
   desktops, side by side on wide screens. */
:root { --header-gutter: clamp(12px, 2vw, 28px); }
.topbar .container, .navbar-main > .container, .navbar-sub .container {
  max-width: none; padding-left: var(--header-gutter); padding-right: var(--header-gutter);
}
.navbar-main > .navbar-sub { flex: 1 1 100%; }
/* Bootstrap's .navbar-expand-lg forces nowrap at ≥992px, which squeezed the
   two rows side by side on every desktop; stack them unless the screen is wide. */
.navbar-main.navbar-expand-lg { flex-wrap: wrap; }
@media (min-width: 1400px) {
  .navbar-main.navbar-expand-lg { flex-wrap: nowrap; }
  .navbar-main > .container { flex: 1 1 auto; width: auto; padding-right: 0; }
  .navbar-main > .navbar-sub {
    flex: 0 0 auto; width: auto; align-self: stretch;
    background: transparent; border-top: 0;
    border-left: 1px solid rgba(255,255,255,.08); margin-left: 10px;
  }
  .navbar-sub .container { width: auto; height: 100%; display: flex; align-items: center; padding-left: 12px; }
}
.nav-link-main {
  color: rgba(246,239,224,.86) !important;
  font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  padding: 11px 14px !important; border-radius: 8px;
  transition: background var(--dur-fast), color var(--dur-fast);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.nav-dd-count { margin-left: auto; font-family: var(--ff-label); font-size: 11px; color: var(--muted-2); padding-left: 14px; }

/* ── Top carousel (3 banner slides) ── */
/* Banner carousel — trending book covers over a full-bleed banner */
.home-carousel { padding: 0; }
/* Edge to edge like the navbar, square corners to match it */
.home-carousel .container { max-width: none; padding: 0; }
.home-carousel .carousel { position: relative; border-radius: 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); }
.home-carousel .carousel-item { aspect-ratio: 5 / 1; }
/* One still picture behind every slide. It belongs to the carousel, not to
   a slide, so it does not travel when the slides change: only the words and
   the covers move across it. The shade over it is still too. */
.banner-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.home-carousel .carousel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(9,16,32,.95) 0%, rgba(11,20,40,.82) 40%, rgba(11,20,40,.32) 72%, rgba(11,20,40,.06) 100%); }
.home-carousel .carousel-inner { position: relative; z-index: 1; }
/* A slide is see-through: a headline on the left, live covers on the right.
   All slides share the rules below — one look for label, title and button. */
.banner-slide { position: absolute; inset: 0; }
.banner-slide__text { position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%);
  /* left edge lines up with the centred content column below */
  padding: 0 clamp(26px, 4vw, 66px) 0 max(var(--header-gutter), calc((100% - 1280px) / 2 + 12px));
  max-width: 58%; color: var(--cream-text); }
.banner-slide__label { font-family: var(--ff-label); font-size: clamp(9px, 1vw, 11px); letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-3); margin-bottom: clamp(6px, 1vw, 12px); }
.banner-slide__title { font-family: var(--ff-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em;
  font-size: clamp(1.1rem, 2.7vw, 2.5rem); color: #fff; margin: 0 0 clamp(10px, 1.7vw, 22px);
  font-variation-settings: "opsz" 144, "SOFT" 60; }
.banner-slide__cta { display: inline-flex; align-items: center; gap: 9px; }
.banner-slide__covers { position: absolute; z-index: 2; right: max(18px, calc((100% - 1280px) / 2 + 12px)); top: 50%;
  transform: translateY(-50%); display: flex; align-items: center; }
.banner-cover { display: block; margin-left: -26px; transform: rotate(var(--r, 0deg)); transition: transform var(--dur-fast) var(--ease); }
.banner-cover:first-child { margin-left: 0; }
.banner-cover:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); z-index: 5; position: relative; }
.banner-cover img { height: clamp(118px, 20vw, 232px); width: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 6px; background: var(--navy); box-shadow: 0 16px 30px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.07); }
.home-carousel .carousel-indicators { margin-bottom: 12px; gap: 6px; }
.home-carousel .carousel-indicators [data-bs-target] { width: 24px; height: 4px; border-radius: 999px; background: var(--cream-text); opacity: .4; border: 0; margin: 0; transition: opacity var(--dur-fast), width var(--dur-fast); }
.home-carousel .carousel-indicators .active { opacity: 1; width: 38px; background: var(--gold); }
.home-carousel .carousel-control-prev, .home-carousel .carousel-control-next { width: 58px; opacity: 0; transition: opacity var(--dur-fast); }
.home-carousel .carousel:hover .carousel-control-prev, .home-carousel .carousel:hover .carousel-control-next { opacity: 1; }
.home-carousel .carousel-control-prev-icon, .home-carousel .carousel-control-next-icon { width: 40px; height: 40px; border-radius: 50%; background-color: rgba(9,16,32,.6); background-size: 13px; backdrop-filter: blur(4px); }
@media (max-width: 767.98px) {
  /* keep the 5:1 proportion on phones — the strip stays short, so the
     slide is reduced to a compact title + pill and the covers are dropped */
  .banner-slide__covers { display: none; }
  .banner-slide__label { display: none; }
  .banner-slide__text { max-width: 94%; padding-left: var(--header-gutter); }
  /* Scale the text with the strip (its height is width/5): a readable
     ~18px title and 12px pill on a 375px phone, growing on tablets. */
  .banner-slide__title { font-size: clamp(16px, 4.8vw, 26px); line-height: 1.1; margin-bottom: clamp(5px, 1.4vw, 10px); }
  .banner-slide__cta { padding: clamp(5px, 1.5vw, 8px) clamp(11px, 3vw, 16px); font-size: clamp(12px, 3vw, 14px); gap: 6px; }
  .home-carousel .carousel-indicators { margin-bottom: 2px; gap: 4px; }
  .home-carousel .carousel-indicators [data-bs-target] { width: 14px; height: 3px; }
  .home-carousel .carousel-indicators .active { width: 22px; }
  /* no live covers on phones: shade the whole picture so the title reads */
  .home-carousel .carousel::after { background: linear-gradient(90deg, rgba(9,16,32,.9) 0%, rgba(11,20,40,.72) 100%); }
  .home-carousel .carousel-control-prev, .home-carousel .carousel-control-next { display: none; }
}
.hero { padding-top: clamp(30px, 4.5vw, 60px); }
.nav-link-main:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.nav-link-main.is-hot { color: var(--gold-3) !important; }
.nav-primary-icon { color: var(--gold); }
.nav-dd-icon { width: 16px; color: var(--gold-2); font-size: 12px; }
.nav-hover-drop { position: relative; }
.nav-hover-drop .nav-dropdown-menu { display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast); position: absolute; left: 0; top: 100%; min-width: 240px; margin-top: 4px; }
.nav-hover-drop:hover .nav-dropdown-menu, .nav-hover-drop:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.nav-dropdown-menu { background: var(--surface); }
.nav-dropdown-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nav-dropdown-divider { margin: 6px 0; }
.dropdown-toggle::after { opacity: .6; margin-left: 2px; }
/* mobile menu — Bootstrap's .navbar-expand-lg .navbar-collapse{display:flex!important}
   outranks the .d-lg-none utility, so hide it explicitly on desktop. */
#mainNav { width: 100%; }
@media (min-width: 992px) { .navbar-main #mainNav { display: none !important; } }
#mainNav .navbar-nav { padding: 6px 0 12px; }
#mainNav .nav-link-main { padding: 10px 6px !important; }
#mainNav .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
#mainNav .dropdown-item { color: rgba(246,239,224,.9); }
#mainNav .dropdown-item:hover { background: rgba(255,255,255,.06); color: #fff; }

/* ─────────────── FLASH ─────────────── */
.sf-flash { margin: 18px auto 0; }
.sf-flash .alert { display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(201,164,92,.16), transparent 60%),
    linear-gradient(180deg, #fbf8f1 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(to right, rgba(14,27,51,.045) 1px, transparent 1px);
  background-size: 96px 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.hero-amharic { font-family: var(--ff-display); font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 22px;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  text-wrap: balance;
}
.hero-title .hl { font-style: italic; font-weight: 400; color: var(--navy); font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero-sub { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-3); max-width: 46ch; margin-bottom: 30px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-proof-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.hero-proof-item i { color: var(--gold-2); font-size: 14px; }
.hero-proof-item b { color: var(--ink); font-weight: 600; }

/* the shelf of real covers */
.hero-shelf {
  position: relative;
  height: 470px;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.shelf-book {
  position: absolute;
  bottom: 62px;
  width: 172px;
  aspect-ratio: 2 / 3;
  border-radius: 4px 9px 9px 4px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--cover-shadow);
  transform-origin: 50% 100%;
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg)) translateZ(var(--z, 0));
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur) var(--ease);
  animation: shelfIn .9s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
  z-index: var(--zi, 1);
  will-change: transform;
}
.shelf-book::before {  /* spine */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9px;
  background: linear-gradient(to right, rgba(0,0,0,.28), rgba(0,0,0,.06) 60%, rgba(255,255,255,.14));
  z-index: 2; pointer-events: none;
}
.shelf-book::after {   /* gloss */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(112deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,.08) 100%);
  pointer-events: none; z-index: 2;
}
.shelf-book img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-book:hover { transform: translateX(var(--x, 0)) rotate(0deg) translateZ(90px) translateY(-14px); box-shadow: var(--shadow-lg); z-index: 20; }
.shelf-book:nth-child(1) { --x: 0px;   --r: -9deg;  --zi: 1; --d: 0ms;   left: 2%; }
.shelf-book:nth-child(2) { --x: 0px;   --r: -4deg;  --zi: 2; --d: 80ms;  left: 16%; }
.shelf-book:nth-child(3) { --x: 0px;   --r: 0deg;   --zi: 4; --d: 160ms; left: 31%; bottom: 80px; width: 196px; }
.shelf-book:nth-child(4) { --x: 0px;   --r: 4deg;   --zi: 3; --d: 240ms; left: 49%; }
.shelf-book:nth-child(5) { --x: 0px;   --r: 8deg;   --zi: 2; --d: 320ms; left: 63%; }
.shelf-book:nth-child(6) { --x: 0px;   --r: 12deg;  --zi: 1; --d: 400ms; left: 76%; }
@keyframes shelfIn { from { opacity: 0; transform: translateY(40px) rotate(var(--r)); } to { opacity: 1; } }
.shelf-plank {
  position: absolute; left: -4%; right: -4%; bottom: 40px; height: 16px;
  background: linear-gradient(180deg, #b08a4a, #7d5c2a);
  border-radius: 3px;
  box-shadow: 0 10px 24px -6px rgba(60,35,5,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.shelf-plank::after { content: ""; position: absolute; left: 6%; right: 6%; top: 16px; height: 22px; background: radial-gradient(ellipse at 50% 0%, rgba(40,25,5,.35), transparent 70%); }
.shelf-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  text-align: center; font-family: var(--ff-label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 991.98px) {
  .hero-shelf { height: auto; perspective: none; display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 26px; }
  .hero-shelf::-webkit-scrollbar { display: none; }
  .shelf-book { position: relative; left: auto !important; bottom: auto !important; width: 132px !important; flex: 0 0 auto; transform: none !important; animation: none; scroll-snap-align: start; }
  .shelf-plank, .shelf-caption { display: none; }
}

/* ─────────────── GENRE STRIP ─────────────── */
.genre-strip { padding: 26px 0 8px; }
.genre-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.genre-tabs::-webkit-scrollbar { display: none; }
.genre-tab {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-sm);
}
.genre-tab i { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.genre-tab small { color: var(--muted); font-family: var(--ff-label); font-size: 11px; }
.genre-tab:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.genre-tab.is-all { background: var(--navy); color: var(--cream-text); border-color: var(--navy); }
.genre-tab.is-all i { background: rgba(255,255,255,.12); color: var(--gold); }
.genre-tab.is-all small { color: rgba(246,239,224,.7); }

/* ── Shop-by-genre cards (an Amazon-style category grid, for books) ── */
.genre-showcase { padding: clamp(28px, 4vw, 52px) 0; }
.genre-grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.genre-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 18px 16px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.genre-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.genre-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.genre-card-title { font-family: var(--ff-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; letter-spacing: -.01em; }
.genre-card-count { font-family: var(--ff-label); font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.genre-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 16px; flex: 1; align-content: center; }
.genre-tile {
  aspect-ratio: 2/3; border-radius: 5px; overflow: hidden; background: var(--paper-2);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
}
.genre-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.genre-card:hover .genre-tile img { transform: scale(1.05); }
/* A genre with fewer than four books shows only real covers — never
   placeholder boxes — arranged to fill the same 2×2 footprint so every
   card in a row keeps its height: one cover takes the whole block, two
   sit side by side (centred), three stack two-over-one. */
.genre-card-grid--1 .genre-tile { grid-column: 1 / -1; }
.genre-card-grid--3 .genre-tile:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
.genre-card-cta { margin-top: auto; font-weight: 600; font-size: 13px; color: var(--navy); display: inline-flex; align-items: center; gap: 7px; }
.genre-card-cta i { transition: transform var(--dur-fast) var(--ease); font-size: .85em; }
.genre-card:hover .genre-card-cta i { transform: translateX(4px); }
@media (max-width: 991.98px) { .genre-grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .genre-grid-cards { gap: 10px; }
  .genre-card { padding: 12px; }
  .genre-card-title { font-size: 1rem; }
}

/* category tiles (kept for any non-book vertical) */
.cat-card {
  display: block; padding: 22px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: all var(--dur-fast) var(--ease); box-shadow: var(--shadow-sm); height: 100%;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-3); }
.cat-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); color: var(--gold-2); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.cat-name { font-family: var(--ff-display); font-size: 17px; color: var(--ink); }
.cat-count { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ─────────────── RAILS ─────────────── */
.bs-rail-section { padding: 38px 0 10px; }
.bs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 26px 26px 22px; box-shadow: var(--shadow-sm); }
.bs-rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.bs-rail-title { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 500; margin: 0; }
.bs-rail-seeall { font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.bs-rail-seeall:hover { color: var(--gold-2); }
.bs-rail-seeall i { font-size: 11px; transition: transform var(--dur-fast); }
.bs-rail-seeall:hover i { transform: translateX(3px); }
.bs-rail-wrap { position: relative; }
.bs-rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 2px 14px; scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.bs-rail::-webkit-scrollbar { display: none; }
.bs-rail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow); cursor: pointer; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  transition: all var(--dur-fast) var(--ease);
}
.bs-rail-arrow:hover { background: var(--navy); color: var(--cream-text); border-color: var(--navy); }
.bs-rail-prev { left: -14px; } .bs-rail-next { right: -14px; }
@media (max-width: 767.98px) { .bs-rail-arrow { display: none; } }

/* covers-only rail */
.bs-rail-wrap--covers .bs-rail { gap: 22px; padding-bottom: 26px; align-items: flex-end; }
.bs-cover {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  width: 150px; aspect-ratio: 2 / 3;
  border-radius: 3px 8px 8px 3px; overflow: hidden;
  background: var(--paper-2); box-shadow: var(--cover-shadow);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.bs-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(to right, rgba(0,0,0,.26), rgba(0,0,0,.05) 60%, rgba(255,255,255,.12)); z-index: 2; }
.bs-cover img { width: 100%; height: 100%; object-fit: cover; }
.bs-cover:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.bs-cover-fallback { position: absolute; inset: 0; padding: 16px 12px 12px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: var(--cream-text); }
.bs-cover-fallback-title { font-family: var(--ff-display); font-size: 14px; line-height: 1.2; }
.bs-cover-fallback-by { font-size: 11px; opacity: .75; }
.bs-card-badge { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--oxblood); color: #fff; font-family: var(--ff-label); font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; letter-spacing: .04em; }

/* detailed rail card */
.bs-card { flex: 0 0 auto; width: 180px; scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.bs-card-img { position: relative; aspect-ratio: 2 / 3; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--paper-2); box-shadow: var(--cover-shadow); margin-bottom: 12px; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); display: flex; align-items: center; justify-content: center; }
.bs-card-img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(to right, rgba(0,0,0,.26), rgba(0,0,0,.05) 60%, rgba(255,255,255,.12)); z-index: 2; }
.bs-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bs-card:hover .bs-card-img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bs-card-name { font-family: var(--ff-display); font-size: 15px; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.bs-card-by { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-card-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.bs-card-rcount { color: var(--muted-2); font-family: var(--ff-label); font-size: 11px; }
.bs-card-price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* ─────────────── PRODUCT CARD ─────────────── */
.col-shelf { flex: 0 0 auto; width: 20%; }
@media (max-width: 1199.98px) { .col-shelf { width: 25%; } }
@media (max-width: 991.98px)  { .col-shelf { width: 33.3333%; } }
@media (max-width: 575.98px)  { .col-shelf { width: 50%; } }

.product-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 16px 16px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur-fast);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.product-card-badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; gap: 6px; }
.badge-new, .badge-sale { font-family: var(--ff-label); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.badge-new { background: var(--navy); color: var(--cream-text); }
/* A used copy: outlined, so it reads as information, not as an offer. */
.badge-used { font-family: var(--ff-label); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line-2); }
.product-card-badges { flex-wrap: wrap; max-width: calc(100% - 64px); }
.bs-card-cond { font-family: var(--ff-label); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* Shop filter: condition of the copy (All / New / Used) as one segmented control */
.cond-filter { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface); }
.cond-filter-opt { flex: 1; margin: 0; cursor: pointer; text-align: center; }
.cond-filter-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cond-filter-opt span { display: block; padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.cond-filter-opt + .cond-filter-opt span { border-left: 1px solid var(--line-2); }
.cond-filter-opt input:checked + span { background: var(--navy); color: var(--cream-text); }
.cond-filter-opt input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: -2px; }

/* The gallery/info row uses wide (g-lg-5) gutters, whose negative margins
   reach 12px past the container: at laptop widths that made the whole page
   scroll sideways. Clip it (clip, not hidden: nothing becomes a scroll box). */
.pd-page { overflow-x: clip; }

/* Product page: key facts under the byline, and the condition of the copy */
.pd-facts { font-size: 13.5px; color: var(--ink-3); margin: -2px 0 10px; line-height: 1.6; }
.pd-facts .sep { margin: 0 8px; color: var(--line-2); }
.pd-condition { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 18px; }
.pd-condition-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-family: var(--ff-label); font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  background: #eef4ee; color: #2c5a3a; border: 1px solid #cfe0d0; }
.pd-condition--used .pd-condition-pill { background: #fbf3e2; color: #7a5a17; border-color: var(--gold-3); }
.pd-condition-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); padding-top: 3px; }
.pd-condition-note { display: block; margin-top: 4px; color: var(--ink-2); }
@media (max-width: 575.98px) { .pd-condition { flex-direction: column; gap: 8px; } .pd-condition-text { padding-top: 0; } }
.badge-sale { background: var(--oxblood); color: #fff; }
.product-card-actions { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(6px); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.product-card:hover .product-card-actions, .product-card:focus-within .product-card-actions { opacity: 1; transform: none; }
@media (hover: none) { .product-card-actions { opacity: 1; transform: none; } }
.product-card-actions .action-btn { width: 34px; height: 34px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--cover-shadow);
  margin: 6px 10px 16px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.product-img-wrap::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(to right, rgba(0,0,0,.26), rgba(0,0,0,.05) 60%, rgba(255,255,255,.12)); z-index: 2; pointer-events: none; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-img-wrap { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.product-card:hover .product-img-wrap img { transform: scale(1.03); }
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 12.5px; color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-name { font-family: var(--ff-display); font-size: 16px; line-height: 1.25; color: var(--ink); margin: 3px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 8px; }
.stars { color: var(--gold); letter-spacing: .05em; font-size: 12px; }
.rating-count { color: var(--muted-2); font-family: var(--ff-label); font-size: 11px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; margin-bottom: 12px; }
.price-etb { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-discount { font-family: var(--ff-label); font-size: 12px; font-weight: 700; color: var(--oxblood); background: rgba(140,47,43,.1); padding: 2px 7px; border-radius: 6px; }
.btn-add-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 14px;
  border-radius: 999px; border: 1.5px solid var(--navy);
  background: transparent; color: var(--navy);
  font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.btn-add-cart:hover { background: var(--navy); color: var(--cream-text); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; }

/* ─────────────── MARQUEE ─────────────── */
.marquee-strip { background: var(--navy); color: var(--cream-text); overflow: hidden; padding: 12px 0; margin: 40px 0 0; border-top: 3px solid var(--gold); }
.marquee-inner { display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: marquee 34s linear infinite; font-family: var(--ff-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.marquee-strip:hover .marquee-inner { animation-play-state: paused; }
.marquee-dot { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────── AUTHORS ─────────────── */
.authors-row { display: flex; gap: 26px; overflow-x: auto; padding: 8px 2px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.authors-row::-webkit-scrollbar { display: none; }
.author-card { flex: 0 0 auto; width: 128px; text-align: center; text-decoration: none; color: var(--ink); scroll-snap-align: start; }
.author-ring { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 12px; padding: 4px; background: conic-gradient(from 210deg, var(--gold), var(--gold-3), var(--gold)); transition: transform var(--dur) var(--ease-out); }
.author-ring > * { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 30px; color: var(--navy); border: 3px solid var(--surface); }
.author-card:hover .author-ring { transform: scale(1.05) rotate(-3deg); }
.author-name { font-family: var(--ff-display); font-size: 14.5px; line-height: 1.2; color: var(--ink); }
.author-count { font-size: 11.5px; color: var(--muted); font-family: var(--ff-label); margin-top: 3px; }

/* ─────────────── EDITORIAL / VALUES BAND ─────────────── */
.values-band { background: var(--navy); color: var(--cream-text); padding: clamp(44px, 6vw, 84px) 0; position: relative; overflow: hidden; }
.values-band::before { content: "መጻሕፍት"; position: absolute; right: -2%; top: -8%; font-family: var(--ff-display); font-size: clamp(120px, 22vw, 320px); color: rgba(255,255,255,.035); line-height: 1; pointer-events: none; }
.values-band .section-label { color: var(--gold); }
.values-band .section-title { color: #fff; }
.values-band .section-title em { color: var(--gold-3); } /* navy accent would vanish on navy */
.values-band p { color: rgba(246,239,224,.78); }
.value-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); height: 100%; transition: background var(--dur-fast); }
.value-item:hover { background: rgba(255,255,255,.07); }
.value-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(201,164,92,.16); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.value-title { font-family: var(--ff-display); font-size: 17px; color: #fff; margin-bottom: 4px; }
.value-text { font-size: 13.5px; color: rgba(246,239,224,.72); margin: 0; line-height: 1.55; }
.value-quote { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; color: #fff; font-variation-settings: "opsz" 144, "SOFT" 100; }
.value-quote-by { margin-top: 14px; font-family: var(--ff-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ─────────────── TRUST BAR ─────────────── */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--gold-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.trust-title { font-family: var(--ff-display); font-size: 15.5px; color: var(--ink); margin-bottom: 2px; }
.trust-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ─────────────── COMMUNITY CTA ─────────────── */
.community { padding: clamp(40px, 6vw, 72px) 0; }
.community-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px); display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.community-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,164,92,.22), transparent 65%); pointer-events: none; }
.community-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; margin-bottom: 6px; }
.community-card p { color: var(--muted); margin: 0; max-width: 52ch; }
.community-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─────────────── SHOP / LISTING ─────────────── */
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-head .section-title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.shop-count { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.shop-tools { display: flex; align-items: center; gap: 10px; }
.shop-tools select { min-width: 210px; padding: 10px 38px 10px 14px; border-radius: 999px; font-size: 14px; }
.filter-panel { position: sticky; top: calc(var(--nav-h) + 14px); }
.filter-panel .bs-panel { padding: 22px; }
.filter-title { font-family: var(--ff-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.filter-panel h5 { font-family: var(--ff-label) !important; font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; margin: 0 0 12px !important; font-weight: 600; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; margin: 0 6px 8px 0;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2);
  font-size: 13px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--gold); color: var(--ink); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: var(--cream-text); }
.filter-chip.active span { opacity: .8 !important; }
.variant-pill { padding: 9px 16px; font-weight: 600; }
.filter-panel .divider { margin: 16px 0; }
.filter-panel input[type="range"] { width: 100%; }
#products-grid > .col-12.text-center { padding: 60px 0; font-family: var(--ff-display); font-size: 18px; }
.mobile-filter-toggle { display: none; }
@media (max-width: 991.98px) {
  .filter-panel { position: static; }
  .mobile-filter-toggle { display: inline-flex; }
  .filter-panel.collapse:not(.show) { display: none; }
}

/* pager */
.ae-pager { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.ae-page { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; transition: all var(--dur-fast); }
.ae-page:hover { border-color: var(--navy); color: var(--navy); }
.ae-page.active { background: var(--navy); color: var(--cream-text); border-color: var(--navy); }
.ae-page.disabled { opacity: .4; pointer-events: none; }
.ae-page-label { color: var(--muted); font-size: 13px; margin: 0 8px; }

/* ─────────────── PRODUCT DETAIL ─────────────── */
#products-grid.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }
/* Search results / deals: a way back to the whole shelf */
.shop-clear { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.shop-clear:hover { color: var(--gold-2); }
.shop-count a { font-weight: 600; }
/* Saved to the wishlist */
[data-wishlist-toggle].is-saved { color: var(--oxblood, #8c2f39); }
.search-wrap input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-result-item:hover, .search-result-item:focus { background: var(--paper-2); }
.pd-crumbs { font-family: var(--ff-label); font-size: 12px; letter-spacing: .04em; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pd-crumbs a { color: var(--muted); }
.pd-crumbs a:hover { color: var(--gold-2); }
.pd-crumbs span.sep { color: var(--line-2); }
.pd-gallery { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.pd-thumbs-vertical { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; }
.pd-thumb { width: 60px; height: 84px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: var(--paper-2); padding: 0; cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--gold); }
.pd-main-img-wrap {
  position: relative; flex: 1; max-width: 420px; margin: 0 auto;
  aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px; overflow: hidden;
  background: var(--paper-2); box-shadow: var(--cover-shadow);
  display: flex; align-items: center; justify-content: center; cursor: zoom-in;
}
.pd-main-img-wrap::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 12px; background: linear-gradient(to right, rgba(0,0,0,.28), rgba(0,0,0,.05) 60%, rgba(255,255,255,.14)); z-index: 2; pointer-events: none; }
.pd-main-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pd-zoom-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-family: var(--ff-label); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: rgba(23,21,18,.72); color: var(--cream-text); padding: 6px 10px; border-radius: 999px; z-index: 3; pointer-events: none; }
/* "Hover to zoom" means nothing on a touch screen */
@media (hover: none) { .pd-zoom-hint { display: none; } }
.pd-lens { position: absolute; border: 1px solid rgba(255,255,255,.7); background: rgba(201,164,92,.22); display: none; z-index: 3; pointer-events: none; }
.pd-main-img-wrap.zooming .pd-lens { display: block; }
.pd-zoom-result { position: absolute; display: none; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); pointer-events: none; }
.pd-gallery.zooming .pd-zoom-result { display: block; }
.pd-gallery.zooming .pd-zoom-hint { display: none; }
.pd-info h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 12px; }
.pd-publisher { font-family: var(--ff-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.pd-authors { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.pd-author { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; color: var(--ink-2); }
.pd-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.pd-author em { color: var(--muted); font-style: italic; }
.pd-author b { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold-3); }
.pd-author:hover b { color: var(--gold-2); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.pd-price-row .price-etb { font-size: 32px; }
.pd-price-row .price-old { font-size: 16px; }
.pd-meta-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; }
.pd-stock-in { color: var(--leaf); font-weight: 600; }
.pd-stock-out { color: var(--oxblood); font-weight: 600; }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-buy .btn-primary-ae { padding: 14px 28px; font-size: 15px; }
.pd-buy .action-btn { width: 46px; height: 46px; }
#qty-select { min-width: 84px; padding: 11px 36px 11px 16px; border-radius: 999px; font-weight: 600; }
.pd-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.pd-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.pd-trust-item i { color: var(--gold-2); width: 18px; text-align: center; }
.table-ae { width: 100%; border-collapse: collapse; }
.table-ae td, .table-ae th { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-ae tr:last-child td { border-bottom: 0; }
.pd-section { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.pd-desc { font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 72ch; }

/* reviews */
.pd-reviews { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.pd-reviews-eyebrow { font-family: var(--ff-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.pd-reviews-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.pd-reviews-summary { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pd-reviews-score { text-align: center; padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pd-reviews-score-num { font-family: var(--ff-display); font-size: 44px; line-height: 1; color: var(--ink); }
.pd-reviews-stars { color: var(--gold); margin: 6px 0 2px; }
.pd-reviews-count { font-size: 12.5px; color: var(--muted); }
.pd-rating-dist { min-width: 240px; }
.pd-rating-dist-row { display: grid; grid-template-columns: 26px 1fr 30px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 4px 0; }
.pd-rating-dist-label { font-family: var(--ff-label); }
.pd-rating-dist-bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.pd-rating-dist-fill { height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 999px; }
.pd-rating-dist-count { text-align: right; font-family: var(--ff-label); }
.pd-reviews-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-reviews-list { display: grid; gap: 14px; }
.pd-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; }
.pd-review-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.pd-review-author-wrap { display: flex; align-items: center; gap: 12px; }
.pd-review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-size: 16px; }
.pd-review-author { font-weight: 600; color: var(--ink); }
.pd-review-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pd-verified { color: var(--leaf); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pd-review-stars { color: var(--gold); font-size: 13px; }
.pd-review-title { font-family: var(--ff-display); font-size: 17px; margin: 6px 0 4px; }
.pd-review-body { color: var(--ink-2); line-height: 1.7; margin: 0; }
.pd-review-status { font-family: var(--ff-label); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.pd-reviews-empty { text-align: center; padding: 34px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.pd-meta-sep { opacity: .5; }
.rating-picker { display: inline-flex; gap: 6px; font-size: 26px; }
.rating-star { cursor: pointer; color: var(--line-2); transition: color var(--dur-fast), transform var(--dur-fast); }
.rating-star:hover, .rating-star.active, .rating-star.hover { color: var(--gold); transform: scale(1.1); }

/* ─────────────── CART / CHECKOUT ─────────────── */
.cart-line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 16px; align-items: center; }
.cart-line-img { width: 64px; height: 92px; border-radius: 3px 6px 6px 3px; overflow: hidden; background: var(--paper-2); box-shadow: var(--cover-shadow); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.cart-line-controls .cart-item-qty { margin-top: 0; }
.cart-line-controls .qty-btn { width: 32px; height: 32px; font-size: 15px; }
.cart-line-controls .qty-btn:disabled { opacity: .35; cursor: default; }
.cart-line-controls .qty-display { min-width: 28px; font-size: 14px; font-weight: 600; }
.cart-line-remove { background: none; border: 0; padding: 4px 2px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cart-line-remove:hover { color: var(--oxblood, #8c2f39); }
.cart-line.is-busy { opacity: .6; pointer-events: none; }
.cart-free-hint { margin: 6px 0 2px; padding: 9px 12px; border-radius: 10px; background: var(--paper-2); font-size: 13px; color: var(--ink-2); }
.cart-free-hint i { color: var(--gold-2); margin-right: 4px; }
.cart-view-link { display: block; text-align: center; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cart-view-link:hover { color: var(--gold-2); }
@media (max-width: 575.98px) {
  .cart-line { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .cart-line-total { flex-basis: 100%; text-align: right; }
}
.cart-line-by { font-size: 12px; color: var(--muted); font-style: italic; }
.cart-line-name { font-family: var(--ff-display); font-size: 16px; color: var(--ink); }
.cart-line-unit { font-family: var(--ff-label); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cart-line-total { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.empty-state { text-align: center; padding: 70px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-xl); }
.empty-state i { font-size: 54px; color: var(--gold-3); margin-bottom: 18px; display: block; }
.empty-state h3 { font-weight: 500; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.order-summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--nav-h) + 14px); }
.order-summary-title { font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--ink-3); }
.order-line .val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.order-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--ff-display); font-size: 18px; color: var(--ink); }
.order-line.total .val { font-size: 22px; }
/* "Use my points" (checkout): a row the customer can tick; it turns gold
   when on, and the total above changes with it. */
.points-toggle { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.points-toggle:hover { border-color: var(--gold-2); }
.points-toggle.is-on { border-style: solid; border-color: var(--gold-2); background: #fffaf0; }
.points-toggle input { width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.points-toggle-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.points-toggle-text strong { font-size: 14px; color: var(--ink); font-weight: 600; }
.points-toggle-text span { font-size: 12px; color: var(--muted); }
.points-toggle-worth { flex: none; font-weight: 700; font-size: 14px; color: var(--gold-2); font-variant-numeric: tabular-nums; }

.checkout-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.checkout-step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-display); font-weight: 600; flex-shrink: 0; }
.step-title { font-size: 20px; font-weight: 500; margin: 0; }
.payment-method { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; margin-bottom: 10px; transition: all var(--dur-fast) var(--ease); }
.payment-method:hover { border-color: var(--line-2); }
.payment-method.selected { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(14,27,51,.08); }
.payment-method input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); }
.payment-logo-badge { font-family: var(--ff-label); font-size: 10px; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.addr-type-pill { transition: all var(--dur-fast); }
.addr-type-pill input { accent-color: var(--navy) !important; }

/* cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(23,21,18,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur); z-index: 1400; }
.cart-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cart-sidebar { position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw); background: var(--paper); z-index: 1500; display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--dur) var(--ease-out); box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); }
.cart-sidebar.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cart-header h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.cart-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); transition: all var(--dur-fast); }
.cart-close:hover { background: var(--navy); color: var(--cream-text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 54px; height: 78px; border-radius: 3px 6px 6px 3px; overflow: hidden; background: var(--paper-2); box-shadow: var(--cover-shadow); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-brand { font-size: 11.5px; color: var(--muted); font-style: italic; }
.cart-item-name { font-family: var(--ff-display); font-size: 15px; color: var(--ink); line-height: 1.25; }
.cart-item-price { font-family: var(--ff-label); font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--surface); }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; transition: background var(--dur-fast); }
.qty-btn:hover { background: var(--paper-2); }
.qty-display { min-width: 22px; text-align: center; font-family: var(--ff-label); font-size: 13px; }
.js-qty-remove { margin-left: 6px; color: var(--muted); }
.js-qty-remove:hover { color: var(--oxblood); }
.cart-item-remove { color: var(--muted); }
.cart-footer { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total-label { color: var(--muted); font-size: 14px; }
.cart-total-price { font-family: var(--ff-display); font-size: 24px; color: var(--ink); font-weight: 600; }
.cart-empty-msg { text-align: center; padding: 40px 10px; color: var(--muted); }

/* toasts */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--cream-text); padding: 13px 16px; border-radius: 12px; border-left: 3px solid var(--gold); box-shadow: var(--shadow-lg); font-size: 14px; min-width: 240px; max-width: 360px; opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-left-color: var(--oxblood); }
.toast.warn { border-left-color: var(--gold); }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
.toast-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.toast.error .toast-icon { background: var(--oxblood); color: #fff; }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* modal */
.ae-modal-overlay { position: fixed; inset: 0; background: rgba(23,21,18,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur); z-index: 1600; }
.ae-modal-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.ae-modal { width: min(560px, 100%); background: var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform var(--dur) var(--ease-out); max-height: 90vh; display: flex; flex-direction: column; }
.ae-modal-overlay.open .ae-modal { transform: none; }
.ae-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ae-modal-title { font-size: 19px; margin: 0; font-weight: 500; }
.ae-modal-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.ae-modal-body { padding: 22px; overflow-y: auto; }
.ae-modal-footer { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ─────────────── ACCOUNT / ORDERS / TRACKING ─────────────── */
/* Account page: details are read-only until "Edit" is pressed (see
   [data-edit-card] in app.js). Without JS both the summary and the form show. */
.edit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.edit-card-head h5 { font-family: var(--ff-display); color: var(--ink); margin: 0; font-size: 1.15rem; }
.edit-card-head h5 i { color: var(--gold-2); margin-right: 8px; }
.edit-card-open { padding: 7px 16px; font-size: 13px; }
.edit-card-view { margin: 0; }
.edit-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.edit-card-row:last-of-type { border-bottom: 0; }
.edit-card-row dt { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.edit-card-row dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.edit-card-empty { color: var(--muted); font-weight: 400; font-style: italic; }
.edit-card-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.edit-card-static { padding: 10px 0 2px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.edit-card-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.edit-card-actions .btn-outline-ae, .edit-card-actions .btn-primary-ae { padding: 9px 22px; }
.js .edit-card:not(.is-editing) .edit-card-form { display: none; }
.js .edit-card.is-editing:not(.edit-card--keep-view) .edit-card-view,
.js .edit-card.is-editing .edit-card-open { display: none; }
@media (max-width: 480px) {
  .edit-card-row { flex-direction: column; gap: 2px; }
  .edit-card-row dd { text-align: left; }
  .edit-card-actions > * { flex: 1; justify-content: center; }
}

.account-stat { display: block; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); text-align: center; transition: all var(--dur-fast); height: 100%; }
.account-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-3); color: var(--ink); }
.account-stat i { color: var(--gold-2); font-size: 20px; }
.account-stat-num { font-family: var(--ff-display); font-size: 26px; margin-top: 8px; }
.account-stat-label { font-size: 12.5px; color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--ff-label); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--paper-2); color: var(--ink-3); }
.status-pending   { background: #fbf3dd; color: #8a6a1e; }
.status-confirmed { background: rgba(14,27,51,.09); color: var(--navy); }
.status-shipped   { background: rgba(45,95,158,.12); color: var(--sky); }
.status-delivered { background: rgba(47,107,79,.12); color: var(--leaf); }
.status-cancelled { background: rgba(140,47,43,.1); color: var(--oxblood); }
.status-paid { background: rgba(47,107,79,.12); color: var(--leaf); }
.status-unpaid { background: #fbf3dd; color: #8a6a1e; }
.tracker-steps { position: relative; display: flex; justify-content: space-between; }
.tracker-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 3px; background: var(--paper-3); border-radius: 999px; }
.tracker-progress { position: absolute; left: 6%; top: 22px; height: 3px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 999px; max-width: 88%; transition: width var(--dur-slow) var(--ease-out); }
.tracker-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.tracker-dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted-2); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all var(--dur); }
.tracker-step.done .tracker-dot { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.tracker-step.active .tracker-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 0 0 6px rgba(201,164,92,.25); }
.tracker-step-label { font-size: 12px; color: var(--muted); }
.tracker-step.done .tracker-step-label, .tracker-step.active .tracker-step-label { color: var(--ink); font-weight: 600; }
@media (max-width: 575.98px) { .tracker-step-label { font-size: 10.5px; } .tracker-dot { width: 36px; height: 36px; font-size: 12px; } .tracker-steps::before, .tracker-progress { top: 17px; } }

/* ─────────────── STATIC PAGES ─────────────── */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbf8f1, var(--paper)); }
.page-hero-eyebrow { font-family: var(--ff-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; text-wrap: balance; }
.page-hero-sub { font-size: 17px; color: var(--ink-3); max-width: 60ch; margin: 0; }
.page-section { padding: 40px 0; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; height: 100%; box-shadow: var(--shadow-sm); }
.info-card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 12px; }
.info-card-title { font-family: var(--ff-display); font-size: 17px; margin-bottom: 6px; }
.info-card-body { font-size: 14px; color: var(--muted); line-height: 1.6; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: none; border: 0; text-align: left; font-family: var(--ff-display); font-size: 17px; color: var(--ink); cursor: pointer; }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); transition: transform var(--dur), background var(--dur-fast); flex-shrink: 0; }
.faq-item.open .faq-icon, .faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--navy); color: var(--cream-text); border-color: var(--navy); }
.faq-answer { overflow: hidden; }
.faq-answer-inner { padding: 0 0 18px; color: var(--ink-3); line-height: 1.7; max-width: 70ch; }

/* ─────────────── FOOTER ─────────────── */
.site-footer { background: var(--navy); color: rgba(246,239,224,.8); padding: 60px 0 26px; margin-top: 60px; border-top: 4px solid var(--gold); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 15% 0%, rgba(201,164,92,.12), transparent 60%); pointer-events: none; }
.site-footer .container { position: relative; }
.footer-brand { font-family: var(--ff-display); font-size: 30px; color: var(--cream-text); letter-spacing: -.02em; text-transform: lowercase; font-variation-settings: "opsz" 144, "SOFT" 60; }
.footer-brand span { color: var(--gold); margin: 0 3px; }
.footer-desc { font-size: 14px; line-height: 1.65; color: rgba(246,239,224,.7); margin: 12px 0 18px; max-width: 40ch; }
.footer-social { display: flex; gap: 8px; margin-bottom: 18px; }
.footer-social .action-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--cream-text); }
.footer-social .action-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-contact-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin: 6px 0; }
.footer-contact-line a { color: rgba(246,239,224,.85); }
.footer-contact-line a:hover { color: var(--gold-3); }
.footer-contact-icon { color: var(--gold); width: 16px; }
.footer-heading { font-family: var(--ff-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: rgba(246,239,224,.82); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(246,239,224,.6); }
.payment-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-logo { padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.08); font-family: var(--ff-label); font-size: 11px; letter-spacing: .06em; color: rgba(246,239,224,.85); }
.payment-logo.chapa { color: #b8a5ff; }
.payment-logo.paypal { color: #8fb4ff; }
.payment-logo.telebirr { color: #7fe0a8; }
.footer-amharic { font-family: var(--ff-display); font-size: 13px; color: rgba(246,239,224,.5); }

/* ─────────────── UTIL ─────────────── */
.py-5 { padding-top: 44px !important; padding-bottom: 44px !important; }
@media (max-width: 767.98px) { .py-5 { padding-top: 30px !important; padding-bottom: 30px !important; } }
/* Only hide-until-revealed when JS is confirmed running (html.js), so
   crawlers, reader modes and failed scripts always see the content. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Amharic / Ethiopic text (wrapped in <span lang="am"> by ae_lang_spans) ──
   Ethiopic glyphs are denser and sit taller than Latin at the same size,
   and the script has no italics — so: a touch more size and leading, no
   synthetic slant, no tracking, and always an Ethiopic face. ── */
:lang(am) { font-style: normal; letter-spacing: 0; }
.pd-info h1 :lang(am), .section-title :lang(am), .bs-card-name :lang(am), .hero-amharic, .footer-amharic { font-family: 'Noto Serif Ethiopic', serif; font-size: 1.06em; line-height: 1.35; }
p :lang(am), li :lang(am), td :lang(am), .product-name :lang(am) { font-family: 'Noto Sans Ethiopic', sans-serif; font-size: 1.04em; line-height: 1.6; }

/* ── Numerals: tabular + lining wherever figures line up (prices, totals,
   spec tables) so columns read as columns. ── */
.product-price, .price-etb, .price-old, .cart-item-price, .cart-total-price, .pd-price-row, .table-ae, .order-total { font-variant-numeric: tabular-nums lining-nums; }

/* ── Sign-in / sign-up forms (enhanced by public/js/auth.js) ── */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 68px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); border: 0; background: none; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--ink); }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.field-error { font-size: 13px; color: #b3261e; margin-top: 6px; line-height: 1.4; }
.form-control-ae.is-invalid { border-color: #b3261e; }
.caps-hint { color: #8a5a00; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row a { font-size: 13px; color: var(--muted); }
/* iOS Safari zooms the page when a focused input is under 16px — keep
   form controls at 16px on phones, and give submit buttons a full tap target. */
@media (max-width: 576px) { .form-control-ae, .form-select-ae { font-size: 16px; } }
form[data-auth-form] button[type="submit"] { min-height: 46px; }
.auth-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--paper-2); color: var(--gold-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; }

/* ── Labels in the text face: a mono face is heavier at small sizes, so
   the uppercase eyebrows need real weight to hold; figures line up with
   tabular numerals instead of a fixed-width font. ── */
.section-label, .form-label-ae, .brand-tag, .hero-eyebrow, .page-hero-eyebrow, .banner-slide__label,
.shelf-caption, .filter-title, .filter-panel h5, .footer-heading, .pd-reviews-eyebrow, .pd-publisher,
.pd-crumbs, .value-quote-by, .marquee-inner, .last-updated, .pd-zoom-hint { font-weight: 600; }
.rating-count, .bs-card-rcount, .price-discount, .cart-line-unit, .cart-item-price, .qty-display,
.pd-rating-dist-count, .nav-dd-count, .genre-card-count, .author-count { font-variant-numeric: tabular-nums lining-nums; }

/* ── Header mark: the "ly" monogram (same drawing as the favicon) ── */
.brand-mark .mark svg { width: 62%; height: 78%; display: block; }

/* ── Sold out: the book stays on the shelf, clearly marked, and the
   button offers a restock alert instead of the cart. ── */
.badge-soldout { font-family: var(--ff-label); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--cream-text); }
.product-card.is-soldout .product-img-wrap img, .product-card.is-soldout .bs-cover-fallback { opacity: .55; filter: grayscale(.35); }
.product-card.is-soldout .price-etb { color: var(--muted); }
.btn-add-cart.btn-soldout { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-add-cart.btn-soldout:hover { background: var(--paper-2); color: var(--ink); }
.bs-card-badge--out { background: var(--ink); }
.bs-cover:has(.bs-card-badge--out) img, .bs-card:has(.bs-card-badge--out) .bs-card-img img { opacity: .55; filter: grayscale(.35); }

/* ── My orders: a five-column list on wide screens, a card per order on
   phones (the old table was clipped by its rounded container). ── */
.orders-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.orders-head, .orders-row { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; }
.orders-head { background: var(--paper-2); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.orders-row { border-top: 1px solid var(--line); }
.orders-row .o-code a { font-family: var(--ff-mono); font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.orders-row .o-date { color: var(--muted); font-size: 13px; }
.orders-row .o-total, .orders-head .num { text-align: right; }
.orders-row .o-total { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.orders-row .o-action .btn-outline-ae { padding: 6px 14px; font-size: 12px; }
@media (max-width: 640px) {
  .orders-head { display: none; }
  .orders-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "code total" "date status" "action action"; gap: 8px 12px; padding: 16px; }
  .orders-row .o-code { grid-area: code; } .orders-row .o-total { grid-area: total; }
  .orders-row .o-date { grid-area: date; } .orders-row .o-status { grid-area: status; justify-self: end; }
  .orders-row .o-action { grid-area: action; }
  .orders-row .o-action .btn-outline-ae { width: 100%; justify-content: center; padding: 10px 14px; font-size: 13px; }
}

/* ── Contact page: WhatsApp / Telegram channel cards (whole card is the link) ── */
.contact-channel { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.contact-channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.contact-channel .info-card-body { flex: 1; }
.contact-channel--wa .info-card-icon { background: rgba(37,211,102,.14); color: #1aa84f; }
.contact-channel--tg .info-card-icon { background: rgba(0,136,204,.12); color: #0f7fbf; }
/* The right-hand column STACKS several info-cards; the global
   .info-card height:100% (meant for one-per-cell equal-height grids)
   would make each stacked card fill the whole column and overflow past
   the footer, so let them size to their content here. */
.contact-aside .info-card { height: auto; }
