/* Lagbiz Ebooks - storefront styles (mobile-first, no external resources) */
:root {
  --ink: #0f1b2d; --ink-2: #1c2b45; --text: #1f2937; --muted: #5b6577;
  --gold: #c8963e; --gold-dark: #8a5f16; --cream: #faf7f2; --paper: #ffffff;
  --line: #e6e0d4; --green: #146c43; --red: #b42318; --radius: 14px;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.08);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open, html.nav-open body { overflow: hidden; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 300; }
.skip-link:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 .85rem/1 var(--sans); letter-spacing: .04em;
  padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; min-height: 44px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 12px; font-size: .74rem; min-height: 40px; }
.btn-lg { padding: 15px 26px; font-size: .95rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d6a54d; }
.btn-buy { background: var(--gold); color: var(--ink); }
.btn-buy:hover { background: #d6a54d; box-shadow: 0 6px 16px rgba(200,150,62,.35); }
.btn-free { background: var(--green); color: #fff; }
.btn-free:hover { background: #0f5735; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.brand-name { font: 700 1.15rem var(--serif); }
.main-nav { display: none; }
.search-form { display: flex; order: 3; flex: 1 0 100%; position: relative; }
.search-form input { width: 100%; height: 44px; padding: 0 48px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.search-form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(200,150,62,.25); }
.search-btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.nav-toggle { width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; display: grid; align-content: center; justify-items: center; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* mobile nav lives OUTSIDE the header so backdrop-filter cannot become its containing block */
.mobile-nav-backdrop { position: fixed; inset: 0; background: rgba(15,27,45,.55); z-index: 190; }
.mobile-nav-backdrop[hidden] { display: none; }
.mobile-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 200; padding: 72px 20px 24px;
  transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; overflow-y: auto; }
.mobile-nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.mobile-nav a { display: block; padding: 14px 4px; font: 600 1.1rem var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-nav-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; border: 0; background: none; cursor: pointer; color: var(--ink); }

@media (min-width: 861px) {
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 6px; }
  .main-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
  .main-nav a:hover, .main-nav a[aria-current] { background: var(--cream); }
  .search-form { order: 0; flex: 0 1 300px; }
  .nav-toggle { display: none; }
  .brand { margin-right: 0; }
  .header-inner { flex-wrap: nowrap; gap: 20px; }
  .main-nav { margin-right: auto; }
}

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #26406b 0%, transparent 60%), var(--ink); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero-inner { display: grid; gap: 32px; align-items: center; }
.eyebrow { font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .6em; }
.hero .eyebrow, .eyebrow-gold { color: var(--gold); }
.lead { font-size: 1.1rem; color: #d7deeb; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { position: relative; height: 240px; display: none; }
.hero-book { position: absolute; width: 150px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }
.hero-book-1 { left: 8%; top: 30px; transform: rotate(-8deg); }
.hero-book-2 { left: 32%; top: 0; z-index: 2; width: 170px; }
.hero-book-3 { left: 58%; top: 34px; transform: rotate(8deg); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } .hero-art { display: block; height: 320px; } .hero-book { width: 190px; } .hero-book-2 { width: 220px; } .hero { padding: 80px 0; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 28px 0 48px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #dfe6f2; }
.section-dark h2 { color: #fff; }
.section-head { margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin-bottom: .2em; }
.about { display: grid; gap: 20px; }
@media (min-width: 800px) { .about { grid-template-columns: 1fr 1.4fr; gap: 48px; } }
.cta-box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px 20px; text-align: center; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.type-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .type-list { grid-template-columns: repeat(4, 1fr); } }
.type-chip { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.type-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.type-chip span { font: 700 1.05rem var(--serif); color: var(--ink); }
.type-chip small { color: var(--muted); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.chip.is-active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product grid: max 12 per catalog page (4x3 desktop, 3x4 tablet, 2 cols mobile) ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 359px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-cover { position: relative; display: block; padding: 18px 18px 10px; background: linear-gradient(180deg, #f3ede1, #fbf9f4); }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-type { font: 700 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 4px; }
.card-title { margin: 0 0 4px; font-size: 1.02rem; }
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { text-decoration: underline; }
.card-author { color: var(--muted); font-size: .85rem; margin: 0 0 6px; }
.card-excerpt { font-size: .85rem; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { margin-top: auto; display: grid; gap: 8px; }
.cover { position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 220px; margin: 0 auto; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-book { border-radius: 3px 8px 8px 3px; box-shadow: -4px 6px 0 -2px rgba(0,0,0,.08), 6px 10px 18px rgba(15,27,45,.25); overflow: hidden; }
.cover-book::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.14) 60%, transparent); pointer-events: none; }
.cover-mockup img { object-fit: contain; }
.cover-large { max-width: 340px; }
.cover-placeholder { background: linear-gradient(145deg, var(--ink-2), var(--ink)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; gap: 8px; }
.cover-placeholder span { font: 700 2.2rem var(--serif); color: var(--gold); }
.cover-placeholder small { font: 600 .78rem var(--serif); opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; font: 700 .7rem var(--sans); letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; }
.badge-label { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; text-transform: uppercase; }
.badge-discount { background: var(--red); color: #fff; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 12px; }
.price-now { font: 700 1.2rem var(--serif); color: var(--ink); }
.price-free { color: var(--green); }
.price-was { color: var(--muted); font-size: .9rem; }

/* ---------- pagination / breadcrumbs ---------- */
.pagination { margin-top: 32px; }
.pagination ul { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination .current { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .gap { align-self: center; color: var(--muted); }
.breadcrumbs { padding-top: 16px; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* ---------- product detail ---------- */
.product-detail { display: grid; gap: 28px; }
.product-media { position: relative; display: grid; place-items: start center; background: linear-gradient(180deg, #f3ede1, #fbf9f4); border-radius: 22px; padding: 32px 16px; }
.badge-float { top: 14px; left: 14px; }
.subtitle { font: 1.15rem var(--serif); color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.fine { font-size: .85rem; color: var(--muted); }
.lead-sm { font-size: 1.05rem; color: var(--text); }
.prose h2 { margin-top: 1.4em; font-size: 1.4rem; }
.prose-narrow { max-width: 760px; }
.notice { background: #fff8e6; border: 1px solid #f0d58a; padding: 12px 16px; border-radius: 10px; }
.preview-bar { background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; padding: 8px; }
@media (min-width: 860px) { .product-detail { grid-template-columns: minmax(280px, 400px) 1fr; gap: 56px; align-items: start; } .product-media { position: sticky; top: 90px; } }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid #cfc7b6; border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 3px solid rgba(200,150,62,.35); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; margin: 6px 0 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #e8f6ee; border-color: #a6d9bb; color: #0d4a2c; }
.alert-error { background: #fdecea; border-color: #f2b4ae; color: #7a1a12; }
.alert-warning { background: #fff8e6; border-color: #f0d58a; color: #6b4a00; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c5cee0; padding: 48px 0 0; margin-top: 0; }
.site-footer a { color: #e6ecf7; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-h { font: 700 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer li { padding: 4px 0; }
.brand-footer { color: #fff; }
.brand-footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding: 18px 16px; font-size: .85rem; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; z-index: 150; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s; }
.whatsapp-float:hover { transform: scale(1.07); }

.error-page { padding: 72px 16px; text-align: center; }

/* ---------- banner (rendered only when an admin activates it) ---------- */
.site-banner { background: var(--ink); }
.site-banner-inner { margin: 0 auto; width: 100%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- blog ---------- */
.blog-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-hero { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 24px; }
.post-body { font-size: 1.08rem; line-height: 1.8; overflow-wrap: anywhere; }
.post-body img, .post-body video { max-width: 100%; height: auto; border-radius: 10px; margin: 1em 0; }
.post-body blockquote { border-left: 4px solid var(--gold); margin: 1.4em 0; padding: 4px 18px; font: italic 1.15rem var(--serif); color: var(--muted); }
.post-body h2, .post-body h3 { margin-top: 1.6em; }

/* banner content overlay */
.site-banner-inner { position: relative; overflow: hidden; }
.site-banner-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-banner-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 4% 5%;
  background: linear-gradient(90deg, rgba(15,27,45,.82) 0%, rgba(15,27,45,.45) 60%, transparent 100%); color: #fff; }
.site-banner-title { margin: 0; font: 700 clamp(.95rem, 2.6vw, 1.6rem)/1.2 var(--serif); }
.site-banner-desc { margin: 0; font-size: clamp(.75rem, 1.6vw, 1rem); max-width: 60%; }
@media (max-width: 520px) { .site-banner-desc { display: none; } .site-banner-copy .btn { padding: 8px 12px; min-height: 34px; } }

/* ---------- landing pages ---------- */
.lp-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .lp-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } .lp-form { position: sticky; top: 90px; } }
.lp-image { width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.lp-product { max-width: 280px; }

/* same guard on the storefront */
.form-card, .section, main { position: relative; }

/* spacing utilities (replace inline styles so the CSP needs no 'unsafe-inline') */
.mt-0 { margin-top: 0; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .my-10-16 { margin: 10px 0 16px; }

/* ---------- product gallery ---------- */
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; width: 100%; }
.gthumb { display: block; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(15,27,45,.15); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb:hover, .gthumb.is-active { border-color: var(--gold); }
.cover.is-gallery img { object-fit: contain; background: #fff; }
.cover.is-gallery::after { display: none; }

/* =====================================================================
   Mobile refinements (most visitors are on phones)
   ===================================================================== */
/* readable small text everywhere (>= 12px) and comfortable tap targets */
.card-type, .badge { font-size: .75rem; }
.btn-sm { min-height: 44px; font-size: .8rem; }
.card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.search-toggle { display: none; }
.search-btn { width: 44px; height: 44px; top: 2px; right: 2px; }
.search-form input { height: 48px; padding-right: 54px; }
.site-footer li a, .contact-list a { display: inline-block; padding: 9px 0; }
.site-footer .footer-h { margin-bottom: 6px; }

/* ---- phones and small tablets ---- */
@media (max-width: 860px) {
  /* compact sticky header: logo, search icon, menu - the search box opens on demand */
  .header-inner { min-height: 60px; flex-wrap: wrap; gap: 6px 8px; padding-top: 6px; padding-bottom: 6px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
  .nav-toggle { width: 48px; height: 48px; }
  .search-form { display: none; order: 3; flex: 1 0 100%; margin-bottom: 6px; }
  .site-header.search-open .search-form { display: flex; }
  .search-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .mobile-nav a { padding: 16px 4px; }
}

@media (max-width: 699px) {
  .section { padding: 40px 0; }
  .section-tight { padding: 20px 0 36px; }
  .hero { padding: 40px 0 44px; }
  .btn-lg { padding: 15px 22px; }

  /* compact product cards */
  .card-cover { padding: 12px 12px 8px; }
  .card-body { padding: 10px 12px 14px; }
  .card-title { font-size: .98rem; }
  .card-excerpt { -webkit-line-clamp: 2; font-size: .85rem; }
  .card-actions .btn-sm { padding: 10px 6px; letter-spacing: .02em; }
  .price-now { font-size: 1.1rem; }

  /* filter chips: one swipeable row instead of a tall wrapped block */
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }

  /* product page: smaller cover so price and BUY NOW are visible sooner */
  .product-media { padding: 18px 12px; }
  .cover-large { max-width: 230px; }
  .product-detail { gap: 20px; }

  /* the floating WhatsApp button: smaller, clear of the notch */
  .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .footer-bottom { padding-bottom: 88px; }
}

/* ---- sticky buy bar (product pages, phones only) ---- */
.buy-bar { display: none; }
@media (max-width: 859px) {
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,27,45,.12); }
  .buy-bar-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .buy-bar-price strong { font: 700 1.25rem var(--serif); color: var(--ink); }
  .buy-bar-price s { color: var(--muted); font-size: .85rem; }
  .buy-bar .btn { flex: 1 1 auto; max-width: 60%; }
  body.has-buy-bar { padding-bottom: 84px; }
  body.has-buy-bar .whatsapp-float { bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.has-buy-bar .footer-bottom { padding-bottom: 24px; }
}

/* banner: always a comfortable tap target, never clipped text */
.site-banner-copy .btn { min-height: 44px; }
@media (max-width: 520px) { .site-banner-copy { gap: 4px; padding: 3% 5%; } .site-banner-copy .btn { padding: 8px 14px; } }

/* ---- phone header v2: one fixed-height row; search opens as a dropdown panel so the row never wraps (works down to 320px) ---- */
.brand { min-height: 44px; }
@media (max-width: 860px) {
  .site-header { position: sticky; }
  .header-inner { position: relative; flex-wrap: nowrap; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-name { flex: 1 1 auto; min-width: 0; }
  .search-toggle, .nav-toggle { flex: 0 0 auto; }
  .search-form { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px 16px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,27,45,.12); }
  .search-form input { width: 100%; }
  .search-btn { top: 12px; right: 18px; }
}
@media (max-width: 350px) { .brand-name { font-size: .95rem; } .header-inner { gap: 4px; } .search-toggle, .nav-toggle { width: 44px; height: 44px; } }

/* ---- phones: long homepage lists show 6 cards (3 rows of 2) with a link to see the rest ---- */
@media (max-width: 699px) { .grid-compact > :nth-child(n+7) { display: none; } }

/* ---------- product page: audience / takeaways ---------- */
.book-extras { display: grid; gap: 28px; }
.extras-block h2 { font-size: 1.4rem; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
@media (min-width: 860px) { .book-extras { grid-template-columns: 1fr 1fr; gap: 56px; } .book-extras .extras-block:only-child { grid-column: 1 / -1; max-width: 760px; } }
