/* ============================================================
   Indie eBooks - design system v4 "Night Reader"
   Conversion-first: emotional, personal, benefit-led.
   Midnight indigo + warm coral CTAs on soft warm white.
   Bricolage Grotesque (voice) + Instrument Serif (soul).
   ============================================================ */

:root {
  /* palette */
  --bg:        #faf8f4;
  --bg-2:      #f1eee6;
  --surface:   #ffffff;
  --ink:       #1a2140;   /* midnight indigo */
  --ink-2:     #4a5274;
  --ink-3:     #818aa6;
  --line:      #e5e2d9;
  --line-soft: #eeebe3;

  --cta:       #f4543c;   /* warm coral - action */
  --cta-dark:  #d8412c;
  --cta-soft:  #ffeae4;
  --amber:     #f0a93c;   /* warmth, highlights */
  --amber-soft:#fdf1dc;
  --teal:      #2a8f7c;   /* trust ticks */
  --teal-soft: #e3f2ee;
  --green:     #1d9e63;
  --red:       #c0392b;
  --red-soft:  #fbe9e6;
  --paypal:    #ffc439;

  /* legacy aliases used inline in templates */
  --crimson: var(--cta);
  --accent:  var(--cta);

  /* dark panels (hero / footer / cta band) */
  --night:        #141a33;
  --night-2:      #1d2547;
  --night-line:   #2c3358;
  --cream-on-night: #f6f1e7;

  /* type */
  --font-display: 'Figtree', 'Segoe UI', -apple-system, sans-serif;
  --font-serif:   'Figtree', 'Segoe UI', -apple-system, sans-serif; /* serif retired - plain stack */
  --font-body:    'Figtree', 'Segoe UI', -apple-system, sans-serif;

  /* misc */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(26,33,64,.05), 0 5px 16px rgba(26,33,64,.07);
  --shadow-2: 0 8px 22px rgba(26,33,64,.12), 0 22px 50px rgba(26,33,64,.14);
  --cover-shadow: 2px 10px 24px rgba(26,33,64,.30), 0 2px 5px rgba(26,33,64,.22);
  --wrap: 1240px;
  --ease: cubic-bezier(.22,.8,.3,1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cta); text-decoration: none; }
a:hover { color: var(--cta-dark); }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--cta-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(3%, -4%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* accent words inside headlines: same plain font, just colour */
.serif-accent, .hero h1 em, .section-title span, .value-band h2 em, .cta-band h2 em {
  font-style: normal;
  font-weight: inherit;
}

/* ============================================================
   HEADER
   ============================================================ */
.announce-bar {
  background: var(--night);
  color: var(--cream-on-night);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: .5rem 1rem;
}
.announce-bar i { color: var(--amber); margin-right: .4rem; }
.announce-bar strong { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250,248,244,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* wordmark */
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--cream-on-night);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  border-radius: 12px;
  transform: rotate(-4deg);
  transition: transform .35s var(--ease), background .25s;
}
.logo:hover .logo-icon { transform: rotate(4deg); background: var(--cta); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.logo-text span { color: var(--cta); }

/* search */
.header-search {
  flex: 1;
  max-width: 540px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .15rem .2rem .15rem 1.05rem;
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,33,64,.08); }
.srch-icon { color: var(--ink-3); font-size: .85rem; }
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: .55rem .75rem;
  font-size: .92rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.header-search input::placeholder { color: var(--ink-3); }
.btn-search {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  transition: background .2s;
  white-space: nowrap;
}
.btn-search:hover { background: var(--cta); }

/* header actions */
.header-actions { display: flex; align-items: center; gap: .65rem; margin-left: auto; }
.btn-hdr {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 700;
  color: var(--ink-2);
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: border-color .2s, color .2s;
}
.btn-hdr:hover { border-color: var(--line); color: var(--ink); }
.btn-cart {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  display: grid; place-items: center;
  transition: border-color .2s, transform .2s var(--ease);
}
.btn-cart:hover { border-color: var(--cta); color: var(--cta); transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  background: var(--cta);
  color: #fff;
  font-size: .68rem; font-weight: 800;
  border-radius: 999px;
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* nav */
.nav-bar { border-top: 1px solid var(--line-soft); }
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 1.9rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  padding: .6rem 0 .68rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color .2s;
}
.nav-link i { display: none; }
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 2.5px; background: var(--cta);
  border-radius: 2px;
  transition: right .3s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--ink); }

/* ============================================================
   HERO - emotional, dusk-toned, personal
   ============================================================ */
.hero {
  position: relative;
  background: var(--night);
  color: var(--cream-on-night);
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* dusk glow: warm horizon under indigo night */
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(720px 420px at 12% 0%, rgba(63,76,148,.55), transparent 60%),
    radial-gradient(900px 460px at 88% 108%, rgba(244,84,60,.34), transparent 60%),
    radial-gradient(620px 320px at 70% 100%, rgba(240,169,60,.22), transparent 55%);
  animation: glow-drift 14s ease-in-out infinite;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4.3rem 1.5rem 4.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 3rem;
  align-items: center;
}
.hero-text { animation: rise-in .7s var(--ease) both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(240,169,60,.4);
  border-radius: 999px;
  padding: .45rem 1rem;
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 1.15rem;
}
.hero h1 em { color: var(--amber); font-size: 1.04em; }
.hero-sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(246,241,231,.82);
  max-width: 33rem;
  margin-bottom: 1.9rem;
}
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 1.6rem; }
.btn-white { /* primary hero CTA - coral, not white (legacy class name) */
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--cta);
  color: #fff;
  font-weight: 800; font-size: 1rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(244,84,60,.4);
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn-white:hover { color: #fff; background: var(--cta-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(244,84,60,.5); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--cream-on-night);
  border: 1.5px solid rgba(246,241,231,.38);
  font-weight: 700; font-size: .95rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.btn-outline-white:hover { color: #fff; border-color: #fff; background: rgba(246,241,231,.08); }
.hero-reassure {
  font-size: .82rem;
  color: rgba(246,241,231,.6);
  margin-bottom: 2rem;
}
.hero-reassure i { color: var(--teal); margin: 0 .3rem 0 .9rem; }
.hero-reassure i:first-child { margin-left: 0; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  border-top: 1px solid var(--night-line);
  padding-top: 1.4rem;
}
.hero-stat strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.15;
}
.hero-stat span {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600;
  color: rgba(246,241,231,.55);
}

/* spotlight covers - two equal columns, no overlap possible */
.hero-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.hero-spotlight {
  position: relative;
  width: 100%;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 2px 14px 34px rgba(0,0,0,.5);
  transition: transform .45s var(--ease), box-shadow .45s;
  animation: rise-in .8s var(--ease) both;
}
.hero-spotlight img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: inherit;
  background: var(--night-2);
}
.hero-spotlight::after { /* page edge */
  content: '';
  position: absolute; top: 2px; bottom: 2px; right: -4px;
  width: 5px;
  background: repeating-linear-gradient(to bottom, #f4efe2 0 2px, #cfc8b4 2px 3px);
  border-radius: 0 2px 2px 0;
  transform: skewY(1deg);
}
.hero-spotlight:nth-child(1) { animation-delay: .15s; }
.hero-spotlight:nth-child(2) { animation-delay: .3s; }
.hero-spotlight:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 4px 24px 52px rgba(0,0,0,.6);
}
.hero-spotlight-btn {
  position: absolute; left: 50%; bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  background: var(--cta);
  color: #fff;
  font-size: .76rem; font-weight: 800;
  padding: .45rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s, transform .25s var(--ease);
}
.hero-spotlight:hover .hero-spotlight-btn { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   BENEFIT BAR - why this store (subconscious reassurance)
   ============================================================ */
.benefit-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.benefit-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.benefit { display: flex; gap: .85rem; align-items: flex-start; }
.benefit-ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 1.05rem;
}
.benefit:nth-child(1) .benefit-ico { background: var(--cta-soft); color: var(--cta); }
.benefit:nth-child(2) .benefit-ico { background: var(--amber-soft); color: var(--amber); }
.benefit:nth-child(3) .benefit-ico { background: var(--teal-soft); color: var(--teal); }
.benefit:nth-child(4) .benefit-ico { background: #e9edfb; color: #4a5fc4; }
.benefit h3 { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.benefit p { font-size: .82rem; color: var(--ink-2); line-height: 1.5; margin-top: .15rem; }

/* ============================================================
   LAYOUT - sidebar + content
   ============================================================ */
.page-body {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 4rem;
}
.page-body.with-sidebar {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.main-content { min-width: 0; }

.sidebar {
  position: sticky;
  top: 128px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem .9rem;
  max-height: calc(100vh - 156px);
  overflow-y: auto;
}
.sidebar-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: .25rem .55rem .8rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: .55rem;
}
.sidebar-title i { color: var(--cta); margin-right: .4rem; font-size: .85rem; }
.cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .48rem .55rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s, color .15s, padding-left .2s var(--ease);
}
.cat-link:hover { background: var(--bg); color: var(--ink); padding-left: .8rem; }
.cat-link.active { background: var(--cta-soft); color: var(--cta-dark); font-weight: 700; }
.cat-count {
  font-size: .72rem; font-weight: 700;
  color: var(--ink-3);
  background: var(--bg-2);
  border-radius: 999px;
  padding: .1rem .5rem;
  flex-shrink: 0;
}
.cat-link.active .cat-count { background: var(--cta); color: #fff; }

/* section headers */
.section-hdr {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .8rem 1.5rem;
  margin-bottom: .5rem;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.section-title span { color: var(--cta); font-size: 1.05em; }
.section-sub { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.7rem; }
.hdr-right { display: flex; align-items: center; gap: 1rem; }
.result-count { font-size: .84rem; color: var(--ink-3); }
.sort-select {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s;
}
.sort-select:hover { border-color: var(--ink); }

/* ============================================================
   BOOK GRID & CARDS
   ============================================================ */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 2.4rem 1.6rem;
  margin: 1.2rem 0 2.5rem;
}
.book-card {
  display: flex;
  flex-direction: column;
  animation: rise-in .55s var(--ease) both;
}
.book-card:nth-child(2)  { animation-delay: .04s; }
.book-card:nth-child(3)  { animation-delay: .08s; }
.book-card:nth-child(4)  { animation-delay: .12s; }
.book-card:nth-child(5)  { animation-delay: .16s; }
.book-card:nth-child(6)  { animation-delay: .2s; }
.book-card:nth-child(n+7){ animation-delay: .24s; }

.card-cover {
  position: relative;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--cover-shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
  transform-origin: center bottom;
  background: var(--bg-2);
}
.card-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: inherit;
}
.card-cover::before { /* spine shading */
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(0,0,0,.18), rgba(255,255,255,.12) 4%, transparent 9%);
  pointer-events: none;
}
.card-cover::after { /* page edge */
  content: '';
  position: absolute; top: 2px; bottom: 2px; right: -3px;
  width: 4px;
  background: repeating-linear-gradient(to bottom, #f4efe2 0 2px, #cfc8b4 2px 3px);
  border-radius: 0 2px 2px 0;
}
.book-card:hover .card-cover {
  transform: translateY(-7px) rotate(-1.2deg);
  box-shadow: 4px 20px 40px rgba(26,33,64,.38), 0 4px 10px rgba(26,33,64,.2);
}
.card-badge {
  position: absolute; top: 10px; left: -6px;
  z-index: 2;
  background: var(--cta);
  color: #fff;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .7rem .32rem .8rem;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 3px 8px rgba(26,33,64,.25);
}
.card-badge::before {
  content: '';
  position: absolute; left: 0; bottom: -5px;
  border: 3px solid transparent;
  border-top-color: #9c2c1b;
  border-right-color: #9c2c1b;
}
.cover-ph {
  width: 100%; aspect-ratio: 2 / 3;
  display: grid; place-items: center;
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 2rem;
  border-radius: inherit;
}

.card-body { padding: .95rem .15rem 0; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--cta); }
.card-author {
  font-size: .82rem;
  color: var(--ink-3);
  margin-top: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-author strong { font-weight: 600; color: var(--ink-2); }
.card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: .55rem 0 .7rem;
}
.card-price {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.card-price::after { /* anchor the value: own it, not rent it */
  content: ' to own';
  font-weight: 500;
  font-size: .66em;
  color: var(--ink-3);
  letter-spacing: 0;
}
.card-fmts { display: flex; gap: .3rem; }
.fmt {
  font-size: .62rem; font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .12rem .4rem;
  background: var(--surface);
}
.card-add {
  margin-top: auto;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .86rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.card-add:hover { background: var(--cta); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(244,84,60,.35); }
.card-add i { margin-right: .35rem; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-3);
}
.no-results i { font-size: 2.2rem; color: var(--line); margin-bottom: 1rem; }
.no-results h3 { font-size: 1.4rem; font-weight: 800; color: var(--ink-2); margin-bottom: .4rem; }

/* pagination */
.pagination-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .4rem;
  margin-top: .5rem;
}
.pg-btn {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .8rem;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  color: var(--ink-2);
  transition: border-color .2s, background .2s, color .2s;
}
.pg-btn:hover { border-color: var(--cta); color: var(--cta-dark); }
.pg-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-btn.disabled { opacity: .4; pointer-events: none; }
.pg-dots { color: var(--ink-3); padding: 0 .3rem; }

/* ============================================================
   VALUE BAND + CTA BAND - emotional close before footer
   ============================================================ */
.value-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value-band-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.value-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.value-band h2 em { color: var(--cta); font-size: 1.05em; }
.value-band > .value-band-inner > div > p { font-size: 1rem; color: var(--ink-2); line-height: 1.75; }
.value-list { display: flex; flex-direction: column; gap: 1.1rem; }
.value-item { display: flex; gap: .9rem; align-items: flex-start; }
.value-item i {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 50%;
  font-size: .8rem;
  margin-top: .1rem;
}
.value-item h3 { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.value-item p { font-size: .88rem; color: var(--ink-2); line-height: 1.6; margin-top: .1rem; }

.cta-band {
  position: relative;
  background: var(--night);
  color: var(--cream-on-night);
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute; inset: -20%;
  background:
    radial-gradient(640px 360px at 22% 110%, rgba(244,84,60,.32), transparent 60%),
    radial-gradient(640px 360px at 80% -10%, rgba(63,76,148,.5), transparent 60%);
  z-index: 0;
}
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); pointer-events: none; }
.cta-band-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 4.2rem 1.5rem;
  z-index: 1;
}
.cta-band h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: .9rem;
}
.cta-band h2 em { color: var(--amber); }
.cta-band p { font-size: 1.02rem; color: rgba(246,241,231,.8); margin-bottom: 1.8rem; }
.cta-band .btn-white { font-size: 1.05rem; padding: 1rem 2.2rem; }
.cta-band-small { display: block; margin-top: 1rem; font-size: .8rem; color: rgba(246,241,231,.55); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .82rem;
  color: var(--ink-3);
  padding: 1.4rem 0 .4rem;
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--cta); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 700; }

/* ============================================================
   PRODUCT PAGE - sell the book, remove the doubt
   ============================================================ */
.book-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 3.2rem;
  padding: 1.2rem 0 3.5rem;
}
.book-cover-col { position: sticky; top: 136px; align-self: start; }
.book-cover-frame {
  position: relative;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 6px 24px 50px rgba(26,33,64,.35), 0 4px 10px rgba(26,33,64,.18);
  animation: rise-in .6s var(--ease) both;
}
.book-cover-frame img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: inherit;
  background: var(--bg-2);
}
.book-cover-frame::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(0,0,0,.2), rgba(255,255,255,.14) 3.5%, transparent 8%);
  pointer-events: none;
}
.book-cover-frame::after {
  content: '';
  position: absolute; top: 3px; bottom: 3px; right: -5px;
  width: 6px;
  background: repeating-linear-gradient(to bottom, #f4efe2 0 2px, #cfc8b4 2px 3px);
  border-radius: 0 3px 3px 0;
}
.fmt-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.fmt-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 800;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: .35rem .8rem;
}
.fmt-pill i { font-size: .7rem; }

.book-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: .35rem;
  animation: rise-in .5s var(--ease) both;
}
.book-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  animation: rise-in .55s var(--ease) both;
}
.book-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: .55rem;
}
.book-byline { font-size: .95rem; color: var(--ink-3); margin: .7rem 0 1.4rem; }
.book-byline a { font-weight: 800; }

.buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-1);
  margin-bottom: 1.9rem;
  position: relative;
  overflow: hidden;
}
.buy-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cta), var(--amber));
}
.buy-price-row { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.buy-price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.buy-own {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-3);
}
.buy-note { font-size: .85rem; color: var(--ink-2); margin: .5rem 0 1rem; }
.buy-checklist { list-style: none; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.buy-checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.buy-checklist li strong { color: var(--ink); font-weight: 700; }
.buy-checklist i { color: var(--teal); margin-top: .25rem; font-size: .78rem; flex-shrink: 0; }
.buy-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-red { /* primary buy action (legacy class name) */
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--cta);
  color: #fff;
  border: 0;
  font-weight: 800; font-size: 1rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(244,84,60,.35);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-red:hover { background: var(--cta-dark); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(244,84,60,.45); }
.btn-paypal {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paypal);
  color: #1d2d50;
  border: 0;
  font-weight: 800; font-size: .95rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  transition: filter .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-paypal:hover { filter: brightness(.95); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,196,57,.45); }
.buy-micro { font-size: .78rem; color: var(--ink-3); margin-top: .85rem; }
.buy-micro i { color: var(--teal); margin-right: .3rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: .8rem; font-weight: 700;
  color: var(--ink-2);
}
.trust-row i { color: var(--amber); margin-right: .35rem; }

/* product-page store benefits strip */
.pp-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1.9rem;
}
.pp-benefit {
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.pp-benefit i { display: block; color: var(--cta); font-size: 1rem; margin-bottom: .35rem; }
.pp-benefit strong { display: block; color: var(--ink); font-size: .85rem; }

.book-meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-bottom: 1.8rem;
}
.book-meta-table th, .book-meta-table td {
  text-align: left;
  padding: .65rem .2rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.book-meta-table th {
  width: 130px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.prose h2, .faq h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 1.8rem 0 .9rem;
}
.prose-lead {
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 1rem;
}
.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 1.05rem;
  max-width: 62ch;
}


.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 1.1rem;
  font-weight: 800;
  font-size: .92rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .15s;
}
.faq summary:hover { background: var(--bg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--cta);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.1rem 1rem;
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ============================================================
   CART PAGE + DRAWER
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.2rem;
  align-items: start;
  padding-bottom: 3rem;
}
.cart-list { display: flex; flex-direction: column; gap: .8rem; }
.cart-row-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: box-shadow .2s;
}
.cart-row-item:hover { box-shadow: var(--shadow-1); }
.cart-row-item img {
  width: 52px; height: 78px; object-fit: cover;
  border-radius: 3px;
  box-shadow: 1px 3px 8px rgba(26,33,64,.25);
  flex-shrink: 0;
}
.cri-info { flex: 1; min-width: 0; }
.cri-title {
  font-weight: 800;
  font-size: .96rem;
  letter-spacing: -.01em;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cri-author { font-size: .8rem; color: var(--ink-3); }
.cri-price { font-weight: 800; font-size: 1.05rem; }
.cri-rm {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.cri-rm:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.cart-summary-box {
  position: sticky; top: 136px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-1);
}
.cs-row {
  display: flex; justify-content: space-between;
  font-size: .92rem;
  color: var(--ink-2);
  padding: .35rem 0;
}
.cs-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  border-top: 1px dashed var(--line);
  margin-top: .5rem;
  padding-top: .8rem;
}
.btn-checkout {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--paypal);
  color: #1d2d50;
  border: 0;
  font-weight: 800; font-size: .98rem;
  padding: .9rem 1rem;
  border-radius: 999px;
  margin-top: 1rem;
  transition: filter .2s, transform .2s var(--ease);
}
.btn-checkout:hover:not(:disabled) { filter: brightness(.95); transform: translateY(-1px); }
.btn-checkout:disabled { opacity: .45; cursor: not-allowed; }
.cart-note { font-size: .78rem; color: var(--ink-3); line-height: 1.6; margin-top: .9rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-3); }
.empty-state i { font-size: 2rem; color: var(--line); margin-bottom: .8rem; display: block; }

/* drawer */
.panel { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.panel-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,26,51,.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s;
}
.panel-sheet {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(26,33,64,.25);
  transform: translateX(102%);
  transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
}
.panel.open { pointer-events: auto; }
.panel.open .panel-backdrop { opacity: 1; }
.panel.open .panel-sheet { transform: none; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.panel-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.panel-title i { color: var(--cta); margin-right: .4rem; font-size: .95rem; }
.btn-close-panel {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.btn-close-panel:hover { border-color: var(--ink); color: var(--ink); }
.panel-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.3rem; }
.panel-body .cart-row-item { margin-bottom: .7rem; }

/* ============================================================
   VERIFY / DOWNLOADS (success.php)
   ============================================================ */
.verify-card {
  max-width: 780px;
  margin: 2.8rem auto 4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 2.4rem 2.6rem;
  position: relative;
  overflow: hidden;
  animation: rise-in .5s var(--ease) both;
}
.verify-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cta), var(--amber));
}
.verify-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .6rem;
}
.verify-desc { font-size: .95rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 1.6rem; max-width: 56ch; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .4rem;
}
.form-input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: .75rem .95rem;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--cta);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--cta-soft);
}
.btn-verify {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--cta);
  color: #fff;
  border: 0;
  font-weight: 800; font-size: .95rem;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(244,84,60,.32);
  transition: background .2s, transform .2s var(--ease);
}
.btn-verify:hover { background: var(--cta-dark); transform: translateY(-1px); }

.alert {
  display: flex; align-items: flex-start; gap: .65rem;
  border-radius: var(--radius-sm);
  padding: .85rem 1.05rem;
  font-size: .9rem;
  margin-bottom: 1.2rem;
}
.alert i { margin-top: .15rem; }
.alert-error { background: var(--red-soft); color: #87271b; border: 1px solid #f0cdc6; }

.dl-item {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: .8rem;
}
.dl-item img {
  width: 56px; height: 84px; object-fit: cover;
  border-radius: 3px;
  box-shadow: 1px 4px 10px rgba(26,33,64,.28);
  flex-shrink: 0;
}
.dl-item-info { flex: 1; min-width: 0; }
.dl-item-title { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.3; }
.dl-item-author { font-size: .82rem; color: var(--ink-3); }
.dl-btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.dl-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--cta);
  color: #fff;
  font-weight: 800; font-size: .82rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  transition: background .2s, transform .2s var(--ease);
}
.dl-btn:hover { background: var(--cta-dark); color: #fff; transform: translateY(-1px); }
.dl-btn.secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.dl-btn.secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(80px);
  display: flex; align-items: center; gap: .6rem;
  background: var(--night);
  color: var(--cream-on-night);
  font-size: .9rem; font-weight: 700;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .3s;
  z-index: 300;
  max-width: min(480px, 90vw);
}
.toast i { color: var(--amber); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  background: var(--night);
  color: rgba(246,241,231,.75);
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}
footer .logo-text { color: var(--cream-on-night); }
footer .logo-text span { color: var(--amber); }
footer .logo-icon { background: var(--cta); color: #fff; }
.footer-desc { font-size: .88rem; line-height: 1.75; margin-top: 1rem; max-width: 30rem; }
.footer-h {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .9rem;
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a {
  color: rgba(246,241,231,.75);
  font-size: .88rem;
  width: fit-content;
  transition: color .2s, padding-left .2s var(--ease);
}
.footer-links a:hover { color: #fff; padding-left: .35rem; }
.footer-trust { display: flex; flex-direction: column; gap: .7rem; font-size: .85rem; }
.footer-trust span i { color: var(--amber); width: 20px; }
.footer-bottom {
  position: relative;
  border-top: 1px solid var(--night-line);
  text-align: center;
  font-size: .78rem;
  color: rgba(246,241,231,.45);
  padding: 1.3rem 1.5rem;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 2.6rem auto 4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 2.6rem 2.8rem 2.8rem;
}
.legal h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .3rem; }
.legal-updated { font-size: .8rem; color: var(--ink-3); margin-bottom: 1.6rem; }
.legal h2 { font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; margin: 1.8rem 0 .6rem; }
.legal p { font-size: .94rem; line-height: 1.75; color: var(--ink-2); margin-bottom: .85rem; }
.legal a { font-weight: 700; }
.legal strong { color: var(--ink); }
@media (max-width: 860px) { .legal { padding: 1.8rem 1.4rem; margin: 1.8rem auto 3rem; } }

.footer-bottom a {
  color: rgba(246,241,231,.7);
  font-weight: 600;
}
.footer-bottom a:hover { color: #fff; }

/* terms agreement checkbox (cart + checkout) */
.agree-row {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 1rem;
  cursor: pointer;
}
.agree-row input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: .15rem;
  accent-color: var(--cta);
  flex-shrink: 0;
  cursor: pointer;
}
.agree-row a { font-weight: 700; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.2rem 1.5rem; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .hero-covers { margin-top: 1rem; }
  .benefit-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 2.2rem; }
  .value-band-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-body.with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }
  .book-layout { grid-template-columns: 1fr; }
  .book-cover-col { position: static; max-width: 280px; margin: 0 auto; }
  .header-top { flex-wrap: wrap; gap: .8rem; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .verify-card { padding: 1.8rem 1.4rem; margin: 1.8rem auto 3rem; }
  .dl-item { flex-wrap: wrap; }
  .pp-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-covers { gap: 1rem; max-width: 360px; }
  .btn-hdr span { display: none; }
  .benefit-bar-inner { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-title { font-size: 1.55rem; }
  .buy-actions .btn-red, .buy-actions .btn-paypal, .buy-actions form { width: 100%; justify-content: center; }
  .buy-actions form button { width: 100%; justify-content: center; }
}
