/* ============================================================
   SOM Library — Brand Stylesheet
   Palette: Deep Navy #06294C, Warm Gold #C1974D, Dark Navy #051E3F
   No gradients. Flat, editorial, award-winning feel.
   ============================================================ */

:root {
  --navy: #06294C;
  --navy-dark: #051E3F;
  --gold: #C1974D;
  --gold-soft: #B78A40;
  --white: #FFFFFF;
  --off-white: #FEFEFE;
  --ink: #0B1B2E;
  --muted: #5B6B7D;
  --line: #E4E7EC;
  --bg-soft: #F6F4EF;
  --bg-tint: #FBF8F2;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(6, 41, 76, 0.06), 0 1px 3px rgba(6, 41, 76, 0.04);
  --shadow: 0 4px 14px rgba(6, 41, 76, 0.08);
  --shadow-lg: 0 18px 40px rgba(6, 41, 76, 0.14);

  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-soft); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--navy); margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold); }
.section--dark { background: var(--navy-dark); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead, .section--dark .lead { color: rgba(255,255,255,0.78); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  line-height: 1; white-space: nowrap; min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-soft); color: var(--white); border-color: var(--gold-soft); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--whatsapp { background: #1F8A4C; color: #fff; border-color: #1F8A4C; }
.btn--whatsapp:hover { background: #176B39; color: #fff; border-color: #176B39; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; min-height: 48px; }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 11px 16px; font-size: 0.85rem; min-height: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-logo {
  height: 60px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
  padding: 0 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: height .2s ease;
}
.brand-logo-footer {
  max-height: 64px;
  max-width: 220px;
  margin-bottom: 14px;
  padding: 6px 12px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  color: rgba(255,255,255,0.86); font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: color .15s, background .15s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav a.active { color: var(--gold); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-box { position: relative; }
.search-box input {
  width: 100%; max-width: 240px; padding: 9px 14px 9px 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08);
  color: var(--white); font-size: 16px; font-family: inherit; min-height: 40px;
}
.search-box input::placeholder { color: rgba(255,255,255,0.6); }
.search-box input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.14); }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); }

.cart-btn {
  position: relative; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); padding: 9px 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; min-height: 40px;
}
.cart-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.cart-count {
  position: absolute; top: -7px; right: -7px; background: var(--gold); color: var(--white);
  font-size: 0.7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; font-family: var(--font-sans);
}

.nav-toggle { display: none; background: transparent; border: 0; color: var(--white); padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy);
  z-index: 99; padding: 24px; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--white); padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.08); min-height: 48px; display: flex; align-items: center; }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }
.mobile-nav .search-box { margin-bottom: 12px; }
.mobile-nav .search-box input { width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold); }
.hero .lead { color: rgba(255,255,255,0.82); font-size: 1.18rem; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.86rem; color: rgba(255,255,255,0.72); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--gold); }

/* Hero visual: stacked book covers */
.hero-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; max-width: 100%; }
.hero-visual .book-cover { aspect-ratio: 2/3; max-width: 100%; }
.hero-visual .book-cover-img { max-width: 100%; }
.hero-visual .book-cover-img img { max-width: 100%; }
.hero-visual .book-cover:nth-child(1) { transform: translateY(-18px); }
.hero-visual .book-cover:nth-child(3) { transform: translateY(18px); }

/* ---------- Book cover (CSS-rendered) ---------- */
.book-cover {
  position: relative; background: var(--navy); border-radius: 4px 8px 8px 4px;
  padding: 18px 16px 16px 24px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); overflow: hidden; min-height: 0;
  border-left: 6px solid var(--gold);
}
.book-cover::before {
  content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.12);
}
.book-cover .bc-title { font-family: var(--font-serif); color: var(--white); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.book-cover .bc-author { color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }
.book-cover .bc-tag { font-size: 0.6rem; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.book-cover--sm .bc-title { font-size: 0.82rem; }
.book-cover--sm .bc-author { font-size: 0.6rem; }
.book-cover--sm { padding: 12px 10px 10px 18px; border-left-width: 4px; }

/* ---------- Book cover image (real cover) ---------- */
.book-cover-img {
  position: relative; border-radius: 4px 8px 8px 4px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--navy);
  border-left: 4px solid var(--gold);
}
.book-cover-img img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book-cover-img--sm img { aspect-ratio: 2/3; }
.book-card .book-cover-img img { aspect-ratio: 2/3; width: 100%; }
.book-card:hover .book-cover-img img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-card .book-cover-img { width: 100%; }

/* ---------- Book grid ---------- */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.book-card { display: flex; flex-direction: column; }
.book-card .book-cover { aspect-ratio: 2/3; width: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover .book-cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-card-cover { position: relative; display: block; }
.book-card-new {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--gold); color: var(--navy-dark);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.book-meta { margin-top: 14px; }
.book-meta .cat { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.book-meta h3 { font-size: 1.08rem; margin: 4px 0 2px; }
.book-meta .author { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.book-meta .price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.book-meta .price { font-weight: 700; color: var(--navy); font-size: 1rem; }
.book-meta .price small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.rating { color: var(--gold); font-size: 0.82rem; letter-spacing: 1px; }

/* ---------- How to buy steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  text-align: center; padding: 28px 22px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); position: relative;
}
.step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; margin: 0 auto 16px; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem;
  border: 2px solid var(--gold);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s; color: var(--ink);
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card .cat-ic { width: 38px; height: 38px; border-radius: 8px; background: var(--bg-tint); display: grid; place-items: center; color: var(--gold); margin-bottom: 6px; }
.cat-card h3 { font-size: 1.05rem; margin: 0; }
.cat-card .cat-count { font-size: 0.8rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.testi .stars { color: var(--gold); letter-spacing: 2px; }
.testi blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); line-height: 1.55; font-family: var(--font-serif); font-style: italic; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-family: var(--font-serif); }
.testi .who strong { display: block; color: var(--navy); font-size: 0.95rem; }
.testi .who span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.audience-card { padding: 26px 22px; border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); }
.section--navy .audience-card h3 { color: var(--gold); }
.audience-card p { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.92rem; }

/* ---------- Trust bar ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: center; }
.trust-bar .trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.trust-bar .trust-item svg { color: var(--gold); }

/* ---------- Section header rows (home category rows) ---------- */
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.row-head h2 { margin: 0; }
.row-head a { font-size: 0.9rem; font-weight: 600; color: var(--gold); }
.row-head a:hover { color: var(--gold-soft); }

/* ---------- Shop / filters ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.shop-side { position: sticky; top: calc(var(--header-h) + 16px); }

/* Mobile filter bar — hidden on desktop */
.mobile-filters { display: none; }
.mobile-search-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; background: var(--white); margin-bottom: 12px;
}
.mobile-search-pill svg { color: var(--muted); flex-shrink: 0; }
.mobile-search-pill input {
  border: 0; outline: 0; font-family: inherit;
  font-size: 0.95rem; width: 100%; background: transparent;
}
.mobile-chip-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mobile-chip-row::-webkit-scrollbar { display: none; }
.mobile-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink);
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mobile-chip small { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.mobile-chip--active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.mobile-chip--active small { color: rgba(255,255,255,0.6); }

.filter-group { margin-bottom: 26px; }
.filter-group h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filter-list label { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 0.92rem; color: var(--ink); cursor: pointer; }
.filter-list label:hover { color: var(--navy); }
.filter-list input { accent-color: var(--gold); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-toolbar .result-count { color: var(--muted); font-size: 0.9rem; }
.shop-toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; background: var(--white); color: var(--ink); }
.search-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--white); }
.search-pill input { border: 0; outline: 0; font-family: inherit; font-size: 0.9rem; width: 100%; background: transparent; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { color: var(--gold); margin-bottom: 12px; }

/* ---------- Book detail — Hero ---------- */
.book-hero {
  background: var(--navy);
  color: var(--white);
  padding: 20px 0 40px;
}
.book-hero-breadcrumbs { padding: 4px 0 28px; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.book-hero-breadcrumbs a { color: rgba(255,255,255,0.7); text-decoration: none; }
.book-hero-breadcrumbs a:hover { color: var(--gold); }
.book-hero-breadcrumbs span { margin: 0 6px; }

.book-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Cover */
.book-hero-cover { position: relative; }
.book-hero-cover-frame .book-cover,
.book-hero-cover-frame .book-cover-img {
  width: 100%; aspect-ratio: 2/3; border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.book-hero-badges { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.bh-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.bh-badge--gold { background: var(--gold); color: var(--navy-dark); }
.bh-badge--navy { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }

/* Info */
.book-hero-info { padding-top: 4px; }
.book-hero-eyebrow {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.book-hero-title {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1; margin: 0 0 10px; color: var(--white); font-weight: 700;
}
.book-hero-author { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin: 0 0 16px; }
.book-hero-author strong { color: var(--white); font-weight: 600; }

.book-hero-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.book-hero-rating .rating--lg { font-size: 1.25rem; color: var(--gold); letter-spacing: 2px; }
.book-hero-rating-text { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* Price + CTA */
.book-hero-buy {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  margin-bottom: 20px;
}
.book-hero-price { display: flex; flex-direction: column; flex-shrink: 0; }
.book-hero-price-amount {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.book-hero-price-note { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.book-hero-buy-actions { display: flex; gap: 12px; flex: 1; }
.book-hero-buy-actions .btn { flex: 1; }

/* Trust strip */
.book-hero-trust {
  display: flex; align-items: center; gap: 0;
  padding: 16px 0 0;
}
.book-hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
}
.book-hero-trust-item svg { color: var(--gold); flex-shrink: 0; }
.book-hero-trust-divider {
  width: 1px; height: 16px; background: rgba(255,255,255,0.15); margin: 0 16px;
}

/* ---- Gold button variant for dark hero ---- */
.btn--gold {
  background: var(--gold); color: var(--navy-dark);
  font-weight: 600; border: none;
}
.btn--gold:hover { background: var(--gold-soft); color: var(--navy-dark); }

/* ============ Quick facts strip ============ */
.book-facts-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.book-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.book-fact {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--white);
  border-radius: 8px; border: 1px solid var(--line);
}
.book-fact-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}
.book-fact-text { display: flex; flex-direction: column; }
.book-fact-text small {
  font-size: 0.72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.book-fact-text strong { font-size: 0.95rem; color: var(--ink); font-weight: 600; }

/* ============ Body content ============ */
.book-body-grid {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; align-items: start;
}
.book-body-main { min-width: 0; }

.book-section { margin-bottom: 24px; }
.book-section-title {
  font-size: 1.15rem; color: var(--navy);
  margin-bottom: 12px; font-weight: 600;
}
.book-description {
  font-size: 1.05rem; color: var(--ink);
  line-height: 1.7; margin-bottom: 0;
}

.book-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-pill {
  display: inline-block; padding: 5px 12px;
  background: var(--bg-tint); color: var(--gold-soft);
  border: 1px solid #EAD9B8; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
}

.delivery-steps {
  padding: 24px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--line);
  margin-bottom: 8px;
}
.delivery-steps .book-section-title { margin-bottom: 18px; }
.delivery-step { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; }
.delivery-step:not(:last-child) { border-bottom: 1px solid var(--line); }
.delivery-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.delivery-step-text { display: flex; flex-direction: column; gap: 2px; }
.delivery-step-text strong { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.delivery-step-text span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* Sidebar cards */
.book-body-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card {
  padding: 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.side-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-tint); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 12px;
}
.side-card h3 { font-size: 1rem; color: var(--navy); margin: 0 0 8px; font-weight: 600; }
.side-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }
.side-card--navy { background: var(--navy); border-color: var(--navy); }
.side-card--navy h3 { color: var(--white); }
.side-card--navy p { color: rgba(255,255,255,0.7); }
.side-card-icon--gold { background: var(--gold); color: var(--navy-dark); }

/* Related section */
.related-section { margin-top: 56px; }
.related-view-all { font-size: 0.9rem; color: var(--gold-soft); font-weight: 600; text-decoration: none; white-space: nowrap; }
.related-view-all:hover { color: var(--gold); }

/* Sticky mobile buy bar — hidden on desktop */
.mobile-buy-bar { display: none; }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge--gold { background: var(--bg-tint); color: var(--gold-soft); border: 1px solid #EAD9B8; }
.badge--navy { background: var(--navy); color: var(--white); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .ci-cover { width: 64px; aspect-ratio: 2/3; }
.cart-item h3 { font-size: 1.05rem; margin: 0 0 2px; }
.cart-item .author { font-size: 0.82rem; color: var(--muted); }
.cart-item .ci-price { font-weight: 700; color: var(--navy); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--white); color: var(--navy); font-size: 1.2rem; line-height: 1; }
.qty button:hover { background: var(--bg-soft); }
.qty span { width: 38px; text-align: center; font-weight: 600; font-size: 0.95rem; }
.remove-link { color: #B23B3B; font-size: 0.85rem; background: none; border: 0; padding: 8px 4px; min-height: 36px; display: inline-flex; align-items: center; }
.remove-link:hover { color: #8C2A2A; text-decoration: underline; }
.cart-summary { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-tint); position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary .sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; color: var(--ink); }
.cart-summary .sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 700; color: var(--navy); font-family: var(--font-serif); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--white); min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193,151,77,0.15); }
.field textarea { min-height: 120px; resize: vertical; }
.form-card { max-width: 640px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.form-card--wide { max-width: 760px; }

/* ---------- M-Pesa sim box ---------- */
.mpesa-box { padding: 24px; border: 1px solid #D9E2C8; border-radius: var(--radius); background: #F4F8EC; margin: 20px 0; }
.mpesa-box h3 { color: #2E5A1B; display: flex; align-items: center; gap: 10px; }
.mpesa-box .mpesa-note { font-size: 0.88rem; color: #4A5B3A; margin: 0; }
.mpesa-status { padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 14px; font-size: 0.92rem; display: none; }
.mpesa-status.show { display: block; }
.mpesa-status.pending { background: #FFF6E0; color: #7A5A12; border: 1px solid #EAD9B8; }
.mpesa-status.success { background: #E8F5E9; color: #1E6B2E; border: 1px solid #C8E6C9; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.92rem; }
.alert--info { background: var(--bg-tint); color: #6B531A; border: 1px solid #EAD9B8; }
.alert--success { background: #E8F5E9; color: #1E6B2E; border: 1px solid #C8E6C9; }
.alert--error { background: #FDECEC; color: #8C2A2A; border: 1px solid #F5C6C6; }

/* ---------- Confirmation ---------- */
.confirm-hero { text-align: center; padding: 56px 0 32px; }
.confirm-hero .check { width: 72px; height: 72px; border-radius: 50%; background: #E8F5E9; color: #1E6B2E; display: grid; place-items: center; margin: 0 auto 20px; }
.order-receipt { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-receipt .receipt-head { background: var(--navy); color: var(--white); padding: 18px 24px; }
.order-receipt .receipt-head strong { color: var(--gold); }
.order-receipt .receipt-body { padding: 8px 24px; }
.order-receipt .receipt-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.order-receipt .receipt-row:last-child { border-bottom: 0; }
.order-receipt .receipt-total { display: flex; justify-content: space-between; padding: 16px 24px; background: var(--bg-tint); font-weight: 700; color: var(--navy); font-family: var(--font-serif); font-size: 1.15rem; }

/* ---------- Download section (order confirmation) ---------- */
.download-section { text-align: left; }
.download-list { display: flex; flex-direction: column; gap: 10px; }
.download-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: all 0.15s;
}
.download-item:hover { border-color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.download-item-icon {
  width: 44px; height: 44px; border-radius: 8px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}
.download-item-info { flex: 1; min-width: 0; }
.download-item-info strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.download-item-info small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.download-item-btn {
  background: var(--gold); color: var(--white); padding: 8px 18px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; flex-shrink: 0; transition: background 0.15s;
}
.download-item:hover .download-item-btn { background: var(--gold-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--white); }
.faq-item summary { padding: 18px 22px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { color: var(--gold); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: box-shadow .15s, transform .15s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card .blog-card-img { width: 100%; height: 160px; object-fit: cover; border-bottom: 3px solid var(--gold); }
.blog-card .blog-banner { height: 140px; background: var(--navy); border-bottom: 3px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-family: var(--font-serif); font-size: 1.4rem; padding: 16px; text-align: center; }
.blog-card .blog-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .blog-meta { font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.blog-card h3 { font-size: 1.15rem; margin: 0; }
.blog-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.blog-card .read-more { margin-top: auto; color: var(--gold); font-weight: 600; font-size: 0.88rem; }

/* ---------- Blog filter pills ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-pill { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 500; transition: all .15s; }
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Article prose (rich text from Quill) ---------- */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.prose h1, .prose h2, .prose h3 { color: var(--navy); margin: 1.5em 0 0.5em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { border-left: 4px solid var(--gold); padding: 8px 20px; margin: 1em 0; color: var(--muted); font-style: italic; background: var(--bg-soft); border-radius: 0 6px 6px 0; }
.prose a { color: var(--gold-soft); text-decoration: underline; }
.prose a:hover { color: var(--gold); }
.prose img { max-width: 100%; border-radius: var(--radius); margin: 1em 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-tint); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .info-item h4 { font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.contact-info .info-item p { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-grid a { color: rgba(255,255,255,0.78); display: block; padding: 5px 0; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: rgba(255,255,255,0.55); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; color: rgba(255,255,255,0.8); }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.84rem; color: var(--muted); padding: 16px 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span { margin: 0 8px; color: var(--line); }

/* ---------- Page header ---------- */
.page-header { background: var(--navy); color: var(--white); padding: 40px 0 36px; }
.page-header h1 { color: var(--white); margin: 0; }
.page-header p { color: rgba(255,255,255,0.78); margin: 6px 0 0; }
.breadcrumbs a { color: rgba(255,255,255,0.7); }
.breadcrumbs.on-navy a:hover { color: var(--gold); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.hide-mobile { } .show-mobile { display: none; }

/* ============================================================
   Responsive — 4 breakpoints following a mobile-first approach.
   Key principles (learned from ComprehensiveKenyaSafaris):
   - 2-column grids on phones where possible to reduce scroll debt
   - min-height 44px on tap targets, 48px on form inputs
   - font-size 16px on inputs (prevents iOS auto-zoom)
   - tighter section padding on small screens
   ============================================================ */

/* ---- Tablet (≤1080px) ---- */
@media (max-width: 1080px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Large phone / small tablet (≤900px) ---- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-tools .search-box { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-logo { height: 52px; padding: 0 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 420px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { display: none; }
  .mobile-filters { display: block; margin-bottom: 16px; }
  .book-hero-grid { grid-template-columns: 220px 1fr; gap: 32px; }
  .book-hero-buy { flex-direction: column; align-items: stretch; gap: 16px; }
  .book-hero-price { flex-direction: row; align-items: baseline; gap: 8px; }
  .book-facts { grid-template-columns: repeat(2, 1fr); }
  .book-body-grid { grid-template-columns: 1fr; }
  .book-body-side { position: static; flex-direction: row; gap: 16px; }
  .side-card { flex: 1; }
  .cart-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 52px; }
}

/* ---- Phone (≤768px) ---- */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; line-height: 1.6; }
  .container { padding: 0 16px; }
  .section { padding: 36px 0; }
  .section--tight { padding: 24px 0; }
  .hero { padding: 36px 0 40px; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 12px; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 20px; }
  .hero-cta { gap: 10px; margin-bottom: 20px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; }
  .hero-trust { gap: 14px; font-size: 0.82rem; }
  .hero-visual { gap: 10px; max-width: 360px; }

  /* Cards — 2 columns on phone to reduce scroll debt */
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Section heads — tighter */
  .section-head { margin-bottom: 24px; }
  .lead { font-size: 1rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  /* Forms — stacked, larger touch targets */
  .form-card { padding: 20px; }
  .form-card--wide { padding: 20px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; }
  .field label { font-size: 0.88rem; }

  /* Cart — compact */
  .cart-item { grid-template-columns: 56px 1fr; gap: 14px; }
  .cart-item .ci-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .cart-summary { padding: 20px; position: static; }
  .cart-summary .sum-total { font-size: 1.1rem; }

  /* Book hero — mobile */
  .book-hero { padding: 16px 0 28px; }
  .book-hero-breadcrumbs { padding: 2px 0 20px; font-size: 0.74rem; }
  .book-hero-grid { grid-template-columns: 130px 1fr; gap: 16px; }
  .book-hero-cover-frame .book-cover,
  .book-hero-cover-frame .book-cover-img { border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
  .book-hero-badges { margin-top: 10px; gap: 6px; }
  .bh-badge { font-size: 0.62rem; padding: 3px 8px; }
  .book-hero-eyebrow { font-size: 0.68rem; margin-bottom: 6px; }
  .book-hero-title { font-size: 1.35rem; line-height: 1.15; margin-bottom: 6px; }
  .book-hero-author { font-size: 0.92rem; margin-bottom: 10px; }
  .book-hero-rating { margin-bottom: 16px; gap: 6px; }
  .book-hero-rating .rating--lg { font-size: 1rem; }
  .book-hero-rating-text { font-size: 0.78rem; }

  /* Price + CTA — compact card */
  .book-hero-buy { padding: 14px 16px; gap: 12px; margin-bottom: 14px; }
  .book-hero-price-amount { font-size: 1.5rem; }
  .book-hero-price-note { font-size: 0.72rem; }
  .book-hero-buy-actions { gap: 8px; }
  .book-hero-buy-actions .btn { font-size: 0.88rem; padding: 11px 14px; }

  /* Trust strip — horizontal row */
  .book-hero-trust { flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  .book-hero-trust-item { font-size: 0.74rem; gap: 6px; }
  .book-hero-trust-item svg { width: 15px; height: 15px; }
  .book-hero-trust-divider { display: none; }

  /* Quick facts strip */
  .book-facts-strip { padding: 14px 0; }
  .book-facts { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .book-fact { padding: 10px 12px; gap: 10px; }
  .book-fact-icon { width: 32px; height: 32px; }
  .book-fact-icon svg { width: 16px; height: 16px; }
  .book-fact-text small { font-size: 0.66rem; }
  .book-fact-text strong { font-size: 0.85rem; }

  /* Body content */
  .book-section-title { font-size: 1.05rem; }
  .book-description { font-size: 0.98rem; }
  .delivery-steps { padding: 18px; }
  .delivery-step { gap: 12px; padding: 10px 0; }
  .delivery-step-num { width: 28px; height: 28px; font-size: 0.82rem; }
  .delivery-step-text strong { font-size: 0.9rem; }
  .delivery-step-text span { font-size: 0.84rem; }

  /* Sidebar — stack vertically */
  .book-body-side { flex-direction: column; }
  .side-card { padding: 16px; }
  .side-card-icon { width: 38px; height: 38px; }
  .side-card h3 { font-size: 0.95rem; }
  .side-card p { font-size: 0.84rem; }

  .related-section { margin-top: 40px; }

  /* Sticky mobile buy bar */
  .mobile-buy-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 16px; background: var(--white);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    transform: translateY(100%); transition: transform 0.3s ease;
  }
  .mobile-buy-bar.is-visible { transform: translateY(0); }
  .mobile-buy-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .mobile-buy-bar-title {
    font-size: 0.82rem; color: var(--ink); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-buy-bar-price { font-size: 1.1rem; color: var(--navy); font-weight: 700; font-family: var(--font-serif); }
  .mobile-buy-bar .btn { flex-shrink: 0; padding-left: 24px; padding-right: 24px; }

  /* Add bottom padding so content isn't hidden behind buy bar */
  .section--tight { padding-bottom: 80px; }

  /* M-Pesa box — compact */
  .mpesa-box { padding: 18px; }

  /* Order receipt — tighter padding */
  .order-receipt .receipt-head { padding: 14px 18px; }
  .order-receipt .receipt-body { padding: 8px 18px; }
  .order-receipt .receipt-total { padding: 14px 18px; font-size: 1.05rem; }
  .confirm-hero { padding: 36px 0 24px; }
  .confirm-hero .check { width: 60px; height: 60px; }

  /* FAQ — compact */
  .faq-item summary { padding: 14px 18px; font-size: 0.98rem; }
  .faq-item .faq-a { padding: 0 18px 16px; font-size: 0.92rem; }

  /* Page headers — compact */
  .page-header { padding: 28px 0 26px; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header p { font-size: 0.95rem; }

  /* Blog cards — compact */
  .blog-card .blog-body { padding: 16px; }
  .blog-card h3 { font-size: 1rem; }
  .blog-card .blog-banner { height: 110px; font-size: 1.1rem; }

  /* WhatsApp float — slightly smaller */
  .wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }

  /* Brand logo — fills nearly the full header height on phone */
  .brand-logo { height: 48px; padding: 0 7px; }
  .brand-logo-footer { max-height: 52px; max-width: 180px; }
}

/* ---- Small phone (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 30px 0; }
  .section--tight { padding: 20px 0; }
  .hero { padding: 30px 0 32px; }
  .hero h1 { font-size: 1.6rem; margin-bottom: 10px; }
  .hero .lead { font-size: 0.98rem; margin-bottom: 16px; }
  .hero-cta { gap: 8px; margin-bottom: 16px; }
  .hero-cta .btn { padding: 12px 14px; font-size: 0.88rem; }
  .hero-trust { gap: 10px; font-size: 0.78rem; }
  .hero-visual { gap: 8px; max-width: 300px; }

  /* Cards stay 2 columns — but very compact */
  .book-grid { gap: 14px 10px; }
  .book-meta { margin-top: 10px; }
  .book-meta h3 { font-size: 0.92rem; }
  .book-meta .author { font-size: 0.8rem; }
  .book-meta .price { font-size: 0.95rem; }
  .book-meta .btn--sm { padding: 9px 12px; font-size: 0.8rem; min-height: 36px; }
  .cat-grid { gap: 12px 10px; }
  .cat-card { padding: 16px 14px; }
  .cat-card h3 { font-size: 0.95rem; }
  .audience-grid { grid-template-columns: 1fr; gap: 12px; }
  .audience-card { padding: 18px 16px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Section heads — even tighter */
  .section-head { margin-bottom: 18px; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  .lead { font-size: 0.95rem; }

  /* Steps — compact */
  .step { padding: 20px 16px; }
  .step .step-num { width: 38px; height: 38px; font-size: 1.05rem; }

  /* Forms — compact */
  .form-card { padding: 16px; }
  .field input, .field select, .field textarea { padding: 11px 12px; }

  /* Cart — compact */
  .cart-item { padding: 14px 0; }
  .cart-item h3 { font-size: 0.95rem; }
  .qty button { width: 36px; height: 36px; font-size: 1.05rem; }
  .qty span { width: 34px; font-size: 0.9rem; }

  /* Book hero — small phone */
  .book-hero-grid { grid-template-columns: 100px 1fr; gap: 12px; }
  .book-hero-title { font-size: 1.15rem; line-height: 1.2; }
  .book-hero-author { font-size: 0.85rem; }
  .book-hero-rating .rating--lg { font-size: 0.9rem; }
  .book-hero-rating-text { font-size: 0.72rem; }
  .book-hero-buy { padding: 12px 14px; }
  .book-hero-price-amount { font-size: 1.3rem; }
  .book-hero-price-note { font-size: 0.68rem; }
  .book-hero-buy-actions { flex-direction: column; gap: 8px; }
  .book-hero-buy-actions .btn { font-size: 0.85rem; padding: 10px 14px; }
  .book-hero-trust-item { font-size: 0.68rem; }
  .book-hero-trust-item svg { width: 14px; height: 14px; }
  .bh-badge { font-size: 0.58rem; padding: 3px 7px; }
  .book-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .book-fact { padding: 10px 12px; }
  .tag-pill { font-size: 0.76rem; padding: 4px 10px; }
  .delivery-steps { padding: 16px; }
  .tag-pill { font-size: 0.76rem; padding: 4px 10px; }

  /* Mobile buy bar — small phone */
  .mobile-buy-bar { padding: 10px 12px; gap: 10px; }
  .mobile-buy-bar-title { font-size: 0.76rem; }
  .mobile-buy-bar-price { font-size: 1rem; }
  .mobile-buy-bar .btn { padding: 10px 18px; font-size: 0.9rem; }
  .section--tight { padding-bottom: 72px; }

  /* Receipt */
  .order-receipt .receipt-head { padding: 12px 14px; font-size: 0.92rem; }
  .order-receipt .receipt-body { padding: 6px 14px; }
  .order-receipt .receipt-row { padding: 10px 0; font-size: 0.9rem; }
  .order-receipt .receipt-total { padding: 12px 14px; font-size: 1rem; }
  .confirm-hero { padding: 28px 0 20px; }

  /* FAQ */
  .faq-item summary { padding: 12px 14px; font-size: 0.92rem; }
  .faq-item .faq-a { padding: 0 14px 14px; font-size: 0.88rem; }

  /* Page header */
  .page-header { padding: 24px 0 22px; }
  .page-header h1 { font-size: 1.35rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand .brand-logo-footer { max-height: 44px; }

  /* Testimonials */
  .testi { padding: 20px 18px; }
  .testi blockquote { font-size: 0.95rem; }

  /* Blog */
  .blog-card .blog-banner { height: 90px; font-size: 1rem; }
  .blog-card .blog-body { padding: 14px; }

  /* WhatsApp float */
  .wa-float { width: 48px; height: 48px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 24px; height: 24px; }

  .brand-logo { height: 44px; padding: 0 6px; }
}

/* ---- Very small phone (≤380px) ---- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.45rem; margin-bottom: 8px; }
  .hero .lead { font-size: 0.92rem; margin-bottom: 14px; }
  .hero-visual { max-width: 260px; }
  /* Keep book grid at 2 columns even on very small phones — covers are still readable */
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .book-meta h3 { font-size: 0.85rem; }
  .book-meta .author { font-size: 0.75rem; }
  .book-meta .price { font-size: 0.88rem; }
  .book-meta .btn--sm { padding: 8px 10px; font-size: 0.76rem; min-height: 34px; }
  .cat-grid { grid-template-columns: 1fr; }
  .step { padding: 16px 14px; }
  h2 { font-size: 1.15rem; }
  .page-header h1 { font-size: 1.25rem; }
  .brand-logo { height: 40px; padding: 0 5px; }
}

/* Focus visibility for accessibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Print */
@media print { .site-header, .site-footer, .wa-float, .nav-toggle { display: none; } }
