/* ==========================================================================
   Kyrios — Livraria Cristã · estilos do site público
   Paleta derivada da marca: concreto claro, grafite, mostarda e dourado.
   ========================================================================== */

:root {
  --paper: #f3f0e9;
  --paper-2: #ebe6dc;
  --paper-3: #ddd7ca;
  --ink: #151514;
  --ink-2: #34373a;
  --muted: #66655f;
  --line: rgba(21, 21, 20, 0.13);
  --line-strong: rgba(21, 21, 20, 0.28);
  --dark: #18191a;
  --dark-2: #222426;
  --dark-line: rgba(243, 240, 233, 0.14);
  --on-dark: #f3f0e9;
  --on-dark-muted: #a9a79f;
  --mustard: #e3ae07;
  --mustard-deep: #a67c00;
  --gold: #c9a961;
  --gold-grad: linear-gradient(100deg, #b88f45 0%, #e8d29a 45%, #c9a961 62%, #a98240 100%);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --radius: 14px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-gutter: stable; }
html:not(.lenis) { scroll-behavior: smooth; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--mustard); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-size: clamp(3.1rem, 8.2vw, 7.6rem);
  font-optical-sizing: auto;
}
.display em, .h2 em, .h3 em { font-style: italic; font-weight: 300; }
.h2 {
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.lede { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--muted); max-width: 46ch; }
.accent-gold { color: #d4b36c; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; background: var(--mustard); flex: none;
}
.eyebrow { width: fit-content; }
.eyebrow--pill {
  padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .35);
}
.on-dark .eyebrow { color: var(--on-dark-muted); }

/* ---------- botões (texto que rola no hover, à moda Framer) ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, rgba(255, 255, 255, .12));
  transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn__roll { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn__roll span { display: block; transition: transform .55s var(--ease); }
.btn__roll span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__roll span { transform: translateY(-100%); }
.btn__icon { width: 16px; height: 16px; flex: none; transition: transform .55s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--mustard { --bg: var(--mustard); --fg: var(--ink); --hover: #f1c234; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px var(--line-strong); --hover: rgba(21, 21, 20, .06); }
.on-dark .btn--ghost { box-shadow: inset 0 0 0 1px var(--dark-line); --hover: rgba(243, 240, 233, .08); color: var(--on-dark); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.7rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), gap .5s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; gap: 14px; }

/* ---------- faixa de anúncio ---------- */
.announce {
  background: var(--dark); color: var(--on-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  overflow: hidden; height: 36px; display: flex; align-items: center;
  position: relative; z-index: 60;
}
.marquee { display: flex; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; white-space: nowrap; }
.marquee__item::before { content: ''; width: 6px; height: 6px; background: var(--mustard); flex: none; }
.announce:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform .3s var(--ease), border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 22px; height: auto; transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; gap: 30px; }
.nav a {
  position: relative; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 14px; border-radius: 999px; background: var(--paper-2);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .3s;
}
.status-pill:hover { background: var(--paper-3); }
.status-pill__dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--mustard); }
.status-pill__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--mustard); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } 70%, to { transform: scale(3.2); opacity: 0; } }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper); position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--dark); color: var(--on-dark);
  padding: 140px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { background: transparent; color: var(--on-dark); border-color: transparent; }
.menu-open .header .brand__sub { color: var(--on-dark-muted); }
.menu-open .menu-toggle { background: var(--mustard); color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1.1; letter-spacing: -0.03em;
  border-bottom: 1px solid var(--dark-line); padding: 10px 0;
  display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.mobile-menu nav a small { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; color: var(--on-dark-muted); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .07s); }
.mobile-menu__foot { font-size: .85rem; color: var(--on-dark-muted); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--dark); color: var(--on-dark);
  overflow: clip;
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  padding: clamp(64px, 10vh, 120px) 0 clamp(72px, 10vh, 120px);
}
.hero::before {
  /* luz suave + textura de papel */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(227, 174, 7, .13), transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(201, 169, 97, .08), transparent 70%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 30px; }
.hero__text { color: var(--on-dark-muted); max-width: 44ch; font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__verse {
  display: flex; gap: 16px; align-items: flex-start; max-width: 46ch;
  padding-top: 26px; border-top: 1px solid var(--dark-line);
  font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.45; color: #d9d5cb;
}
.hero__verse cite { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mustard); }
.hero__verse-mark { font-size: 2.6rem; line-height: .8; color: var(--mustard); font-style: normal; }

.hero-stack {
  position: relative; height: clamp(380px, 52vw, 620px);
  perspective: 1600px;
}
.hero-stack__item {
  position: absolute; left: 50%; top: 50%;
  width: clamp(150px, 15vw, 230px);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotateY(var(--ry)) rotateZ(var(--rz));
  transition: transform 1.2s var(--ease);
  will-change: transform;
}
.hero-stack__float { animation: float 7s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -1.4s); transform-style: preserve-3d; }
@keyframes float { from { transform: translateY(-8px); } to { transform: translateY(10px); } }
.hero.is-offscreen .hero-stack__float, .hero.is-offscreen .hero__scroll::after { animation-play-state: paused; }
.hero-stack__item:hover { z-index: 5; }
.hero-stack .book { cursor: pointer; }
.hero-stack__empty { position: absolute; inset: 0; display: grid; place-items: center; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--mustard), transparent); animation: scrollcue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- livro 3D + capas ---------- */
.book {
  --t: 18px; /* espessura */
  position: relative; display: block; width: 100%;
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease);
}
.book__front, .book__back, .book__pages {
  position: absolute; backface-visibility: hidden;
}
.book__front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.book__back { inset: 0; transform: translateZ(calc(var(--t) / -2)) rotateY(180deg); border-radius: 5px 2px 2px 5px; background: var(--ink-2); }
.book__pages {
  top: 4px; bottom: 4px; width: var(--t);
  left: calc(100% - var(--t) / 2 - 2px);
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #efeadf, #dcd6c8 50%, #efeadf);
  border-radius: 1px;
}
.book__shadow {
  position: absolute; left: 6%; right: 2%; bottom: -8%; height: 12%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.35), transparent 70%);
  transform: translateZ(-40px) rotateX(90deg); pointer-events: none;
  transition: opacity .45s var(--ease);
}

.cover {
  --bg: #34373a; --fg: #f1eee6; --rule: rgba(241, 238, 230, .35);
  position: relative; width: 100%; height: 100%;
  background: var(--bg); color: var(--fg);
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.cover img.is-loaded { opacity: 1; }
.cover::after {
  /* lombada + brilho do papel */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.06) 3.5%, rgba(255,255,255,.12) 5%, transparent 9%),
    linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 38%, transparent 70%, rgba(0,0,0,.12) 100%);
}
.cover__gen {
  position: absolute; inset: 0; padding: 11% 11% 9% 15%;
  display: flex; flex-direction: column;
}
.cover__brand { display: flex; align-items: center; justify-content: space-between; font-size: clamp(.42rem, .7cqi + .3rem, .62rem); font-weight: 700; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.cover__rule { height: 1px; background: var(--rule); margin: 9% 0 0; }
.cover__title {
  margin-top: auto; margin-bottom: auto;
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  font-size: var(--title-size, 1.5rem);
  text-wrap: balance; hyphens: auto;
}
.cover__author { font-size: clamp(.5rem, .8cqi + .35rem, .74rem); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.cover__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cover__mark { width: 9%; min-width: 9px; opacity: .9; flex: none; }
.cover__demo { font-size: clamp(.4rem, .6cqi + .3rem, .56rem); letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 6px; }
.cover-wrap { container-type: inline-size; }

.cover--grafite { --bg: #34373a; --fg: #f1eee6; }
.cover--mostarda { --bg: #e3ae07; --fg: #1b1a17; --rule: rgba(27,26,23,.3); }
.cover--oliva { --bg: #5b5f41; --fg: #f1eee6; }
.cover--terracota { --bg: #a3543a; --fg: #f8f0e6; }
.cover--marinho { --bg: #1f2b3c; --fg: #efe7d6; }
.cover--creme { --bg: #ebe2cd; --fg: #2a2723; --rule: rgba(42,39,35,.28); }
.cover--vinho { --bg: #5a2433; --fg: #f3e9e0; }
.cover--concreto { --bg: #a2a5a5; --fg: #18191a; --rule: rgba(24,25,26,.3); }
.cover--ouro { --bg: #c9a961; --fg: #1b1a17; --rule: rgba(27,26,23,.3); background-image: var(--gold-grad); }

/* ---------- cartões de livro ---------- */
.book-grid {
  --shelf-gap: clamp(20px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(56px, 6vw, 84px) var(--shelf-gap);
  overflow: clip; padding-top: 18px; margin-top: -18px;
}
.book-card { position: relative; display: flex; flex-direction: column; gap: 18px; text-align: left; width: 100%; }
/* O livro fica "solto" sobre o papel, apoiado numa linha de prateleira — sem caixa de fundo. */
.book-card__stage {
  position: relative; padding: 4% 9% 0;
  perspective: 1200px;
}
.book-card__stage::before {
  /* sombra de contato no chão */
  content: ''; position: absolute; left: 14%; right: 6%; bottom: -10px; height: 22px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(21,21,20,.28), transparent 72%);
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.book-card__stage::after {
  /* prateleira: estende-se pelo vão entre os livros e forma uma linha contínua */
  content: ''; position: absolute; left: calc(var(--shelf-gap, 34px) / -2); right: calc(var(--shelf-gap, 34px) / -2); bottom: -2px; height: 1px;
  background: var(--line-strong); pointer-events: none;
}
.book-card .book__front { box-shadow: 0 22px 34px -20px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.2); transition: box-shadow .45s var(--ease); }
.book-card:focus-visible .book { transform: rotateY(-24deg) rotateX(4deg) translateY(-14px) scale(1.02); }
/* Só com mouse: no toque, um efeito de hover pode fazer o primeiro toque não abrir o livro */
@media (hover: hover) {
  .book-card:hover .book { transform: rotateY(-24deg) rotateX(4deg) translateY(-14px) scale(1.02); }
  .book-card:hover .book__front { box-shadow: 26px 34px 44px -22px rgba(0,0,0,.55), 0 2px 6px -2px rgba(0,0,0,.2); }
  .book-card:hover .book-card__stage::before { transform: scaleX(.8); opacity: .55; }
  .book-card:hover .book-card__view { transform: none; opacity: 1; }
}
.book-card__meta { padding-top: 10px; }

.promo-tag {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--mustard); color: var(--ink);
  font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.promo-tag::before { content: '✦'; font-size: .8em; }
.book-card__stage > .promo-tag { position: absolute; top: 0; left: 4%; z-index: 3; transform: translateY(-40%) rotate(-3deg); box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.price { display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.price b { font-weight: 800; }
.price s { color: var(--muted); font-size: .86em; }
.book-card__view {
  position: absolute; right: 4%; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transform: scale(.6) rotate(-45deg); opacity: 0;
  transition: transform .3s var(--ease), opacity .2s;
}
.book-card__view svg { width: 16px; height: 16px; }
.book-card:focus-visible .book-card__view { transform: none; opacity: 1; }
.book-card__meta { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.book-card__cat { display: inline-flex; align-items: center; gap: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.book-card__title { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.book-card__author { font-size: .88rem; color: var(--muted); }
.book-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; font-size: .86rem; }
.book-card__price { font-weight: 700; font-variant-numeric: tabular-nums; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--ink-2)); }
.dot--grafite { --c: #34373a; } .dot--mostarda { --c: #e3ae07; } .dot--oliva { --c: #5b5f41; }
.dot--terracota { --c: #a3543a; } .dot--marinho { --c: #1f2b3c; } .dot--creme { --c: #d8ccb0; }
.dot--vinho { --c: #5a2433; } .dot--concreto { --c: #a2a5a5; } .dot--ouro { --c: #c9a961; }

.avail { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.avail::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.avail--disponivel { color: #3f6b35; }
.avail--encomenda { color: var(--mustard-deep); }
.avail--esgotado { color: #9a3b2a; }

/* ---------- seções ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 110px) 0; }
.section--alt { background: var(--paper-2); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head__lead { display: flex; flex-direction: column; gap: 22px; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; text-align: right; }
.section-head__side .lede { text-align: right; }

/* ticker de temas */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--paper); }
.ticker .marquee { --marquee-dur: 55s; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3rem); font-style: italic; font-weight: 300; letter-spacing: -0.02em; white-space: nowrap;
}
.ticker__item::after { content: '✦'; font-style: normal; font-size: .45em; color: var(--mustard); }

/* temas / categorias */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.theme {
  position: relative; background: var(--paper); padding: clamp(24px, 3vw, 40px);
  min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.theme::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--dark);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease);
}
.theme:hover { color: var(--on-dark); }
.theme:hover::before { transform: scaleY(1); }
.theme__top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .5s; }
.theme:hover .theme__top { color: var(--on-dark-muted); }
.theme__name { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.02; }
.theme__go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .4s, border-color .4s; }
.theme__go { flex: none; }
.theme__go svg { width: 16px; height: 16px; }
.theme:hover .theme__go { background: var(--mustard); border-color: var(--mustard); color: var(--ink); transform: rotate(-45deg); }
.theme__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* significado do nome */
.meaning { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; background: #e9e8e5; }
.meaning__copy {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  max-width: 680px; margin-left: auto; width: 100%;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(255,255,255,.65), transparent 70%);
}
.meaning__greek { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: .9; letter-spacing: -0.02em; font-style: italic; font-weight: 300; }
.meaning__spaced { font-size: clamp(.95rem, 1.3vw, 1.1rem); letter-spacing: .32em; line-height: 2; text-transform: lowercase; color: var(--ink-2); max-width: 32ch; }
.meaning__spaced strong { font-weight: 700; color: var(--ink); }
.stripes { display: grid; grid-template-columns: 1.15fr 1fr .62fr .42fr; }
.stripe { transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * .14s); }
.is-in .stripe, .stripes.is-in .stripe { transform: none; }
.stripe--concreto { background: #c7c9c9 radial-gradient(70% 50% at 40% 30%, rgba(255,255,255,.3), transparent); }
.stripe--grafite { background: #575c60 radial-gradient(60% 60% at 50% 40%, rgba(255,255,255,.1), transparent); }
.stripe--mostarda { background: #e3ae07 radial-gradient(60% 80% at 50% 50%, rgba(255,230,120,.35), transparent); }
.stripe--ouro { background: linear-gradient(90deg, #a98240, #ead59f 30%, #c9a961 55%, #e1c784 75%, #a98240); }

/* sobre */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.about__body { display: flex; flex-direction: column; gap: 22px; font-size: clamp(1.1rem, 1.6vw, 1.36rem); line-height: 1.55; font-family: var(--serif); color: var(--ink-2); }
.about__body p:first-child::first-letter { float: left; font-size: 4.6em; line-height: .82; padding: 6px 12px 0 0; color: var(--mustard-deep); font-style: italic; }
.about__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--line); border-block: 1px solid var(--line); }
.pillar { background: var(--paper); padding: 22px 18px 22px 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); }
.pillar + .pillar { padding-left: 18px; }
.pillar b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); }
.pillar span { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* visite */
.visit { background: var(--dark); color: var(--on-dark); overflow: clip; }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.visit__copy { display: flex; flex-direction: column; gap: 34px; justify-content: center; }
.visit__address { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; }
.visit__address small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 10px; }
.visit__list { display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.visit__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dark-line); font-size: .95rem; }
.visit__row dt { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.visit__row dd { margin: 0; white-space: pre-line; }
.visit__row a { border-bottom: 1px solid var(--dark-line); transition: border-color .3s, color .3s; }
.visit__row a:hover { color: var(--mustard); border-color: var(--mustard); }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--dark-2);
  clip-path: inset(0 0 0 0 round var(--radius));
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.9); }
.map:hover iframe { filter: grayscale(.15); }
.map__pin {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; pointer-events: none;
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 16px;
  font-size: .8rem; font-weight: 600; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.map__pin::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--on-dark-muted); }


/* ---------- rodapé ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: clamp(70px, 9vw, 120px) 0 28px; overflow: clip; border-top: 1px solid var(--dark-line); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 60px; }
.footer__lead { display: flex; flex-direction: column; gap: 22px; max-width: 36ch; }
.footer__lead p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; }
.footer h2 { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer li a { position: relative; transition: color .3s; }
.footer li a:hover { color: var(--mustard); }
.footer__word {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.06em; line-height: .78;
  font-size: clamp(6rem, 25vw, 23rem); white-space: nowrap;
  display: flex; align-items: flex-end; gap: .04em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 233, .22);
  user-select: none; margin: 0 0 30px -0.04em;
}
.footer__word span { display: inline-block; transform: translateY(40%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s, color .6s, -webkit-text-stroke-color .6s; transition-delay: calc(var(--i) * .06s); }
.footer__word.is-in span { transform: none; opacity: 1; }
.footer__word span:hover { color: var(--mustard); -webkit-text-stroke-color: var(--mustard); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: .78rem; color: var(--on-dark-muted); }

/* ---------- catálogo ---------- */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 30px; align-items: end; }
.page-head__grid .eyebrow { margin-bottom: 26px; }
.toolbar {
  position: sticky; top: 78px; z-index: 30;
  background: var(--paper);
  border-block: 1px solid var(--line);
  transition: top .3s var(--ease);
}
.header.is-hidden ~ main .toolbar { top: 0; }
.toolbar__inner { display: flex; gap: 14px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.search {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search input {
  width: 100%; height: 46px; padding: 0 44px 0 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.5);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.search input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(227,174,7,.25); }
.search svg { position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search__clear:hover { background: var(--paper-2); color: var(--ink); }
/* Ordenação do catálogo */
.sort { position: relative; }
.sort__button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .5); font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.sort__button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sort__button svg { flex: none; transition: transform .25s var(--ease); }
.sort__button:hover { border-color: var(--ink); background: #fff; }
.sort__button:focus-visible, .sort__button[aria-expanded='true'] { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(227, 174, 7, .25); }
.sort__button[aria-expanded='true'] svg { transform: rotate(180deg); }
.sort__menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: max(100%, 292px);
  margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 14px;
  background: #fffdf8; box-shadow: 0 22px 48px -18px rgba(21, 21, 20, .35), 0 3px 10px rgba(21, 21, 20, .07);
  transform-origin: top left; animation: sortIn .18s var(--ease);
}
.sort__menu[hidden] { display: none; }
.sort__menu:focus { outline: none; }
@keyframes sortIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.sort__option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border-radius: 9px; cursor: pointer; transition: background-color .15s;
}
.sort__option + .sort__option { margin-top: 2px; }
.sort__option b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.sort__option small { display: block; margin-top: 2px; font-size: .76rem; line-height: 1.3; color: var(--muted); }
.sort__option svg { flex: none; color: var(--mustard-deep); opacity: 0; }
.sort__option.is-active { background: var(--paper-2); }
.sort__option[aria-selected='true'] b { font-weight: 800; }
.sort__option[aria-selected='true'] svg { opacity: 1; }
.toolbar__count { margin-left: auto; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* coluna de filtros do catálogo */
.catalog__layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.catalog__layout .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog__results { min-width: 0; }
.filters { position: sticky; top: 172px; max-height: calc(100vh - 190px); overflow-y: auto; display: flex; flex-direction: column; gap: 26px; padding-right: 6px; scrollbar-width: thin; transition: top .3s var(--ease), max-height .3s var(--ease); }
.header.is-hidden ~ main .filters { top: 94px; max-height: calc(100vh - 112px); }
.filters__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters__group + .filters__group { border-top: 1px solid var(--line); padding-top: 22px; }
.filter-opt { clear: both; }
.filters__title { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.filter-opt { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0 7px 14px; font-size: .92rem; line-height: 1.3; color: var(--ink-2); cursor: pointer; transition: color .15s; }
.filter-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-opt::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: transparent; transition: background-color .15s; }
.filter-opt:hover { color: var(--ink); }
.filter-opt:hover::before { background: var(--line-strong); }
.filter-opt:has(input:checked) { color: var(--ink); font-weight: 700; }
.filter-opt:has(input:checked)::before { background: var(--mustard); }
.filter-opt:has(input:focus-visible) { outline: 2px solid var(--mustard); outline-offset: 2px; border-radius: 4px; }
.filter-opt.is-empty { color: var(--muted); opacity: .55; }
.filter-opt__count { font-size: .76rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-check { padding-left: 26px; }
.filter-check::before { left: 0; top: 50%; bottom: auto; width: 16px; height: 16px; margin-top: -8px; border-radius: 4px; border: 1px solid var(--line-strong); background: #fff; }
.filter-opt.filter-check:hover::before { background: #fff; border-color: var(--ink); }
.filter-opt.filter-check:has(input:checked)::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.filters__clear { align-self: flex-start; font-size: .84rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.filters-toggle { display: none; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: .88rem; font-weight: 600; background: rgba(255,255,255,.5); }
@media (max-width: 1100px) {
  .catalog__layout { grid-template-columns: 200px minmax(0, 1fr); }
  .catalog__layout .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .catalog__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .catalog__layout .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-toggle { display: block; flex: 1; }
  .filters, .header.is-hidden ~ main .filters { display: none; position: static; max-height: none; overflow: visible; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
  .filters.is-open, .header.is-hidden ~ main .filters.is-open { display: flex; }
  .filter-opt { padding-block: 10px; }
}

.catalog { padding: clamp(40px, 5vw, 70px) 0 clamp(90px, 10vw, 140px); }
.catalog .book-card { animation: cardIn .35s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 8) * 20ms); }
.marquee.is-offscreen { animation-play-state: paused; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
/* Nas listas, as capas ficam planas em repouso e viram 3D só sob o ponteiro */
.book-card:not(:hover, :focus-visible) .book-card__stage { perspective: none; }
.book-card:not(:hover, :focus-visible) .book { transform-style: flat; }
.book-card:not(:hover, :focus-visible) .book__front { transform: none; backface-visibility: visible; }
.book-card:not(:hover, :focus-visible) :is(.book__back, .book__pages, .book__shadow) { display: none; }
@media (hover: none) {
  .book-card .book-card__stage { perspective: none; }
  .book-card .book { transform-style: flat; }
  .book-card .book__front { transform: none; backface-visibility: visible; }
  .book-card :is(.book__back, .book__pages, .book__shadow) { display: none; }
}
.catalog .cover img { opacity: 1; transition: none; }
/* Capas longe da tela não são desenhadas (ver catalogo.js); o espaço delas é mantido */
.book-card.is-far .book { content-visibility: hidden; }
.book-card.is-far .book-card__stage::before, .book-card.is-far .book-card__stage::after, .book-card.is-far .book-card__view { display: none; }

.state { text-align: center; padding: 90px 20px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.state__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-family: var(--serif); font-size: 1.8rem; font-style: italic; }
.state p { color: var(--muted); max-width: 42ch; }

/* skeleton */
.skeleton .book-card__stage { aspect-ratio: 3 / 4; }
.skel { background: linear-gradient(90deg, var(--paper-2) 0%, var(--paper-3) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- modal do livro ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(15, 15, 14, .55);
  opacity: 0; transition: opacity .25s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 40px);
  background: var(--paper); border-radius: 22px; overflow: auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  opacity: 0; transform: translateY(40px) scale(.97);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__stage {
  background: var(--paper-2); padding: clamp(40px, 6vw, 70px) clamp(40px, 6vw, 80px);
  display: grid; place-items: center; perspective: 1400px; position: sticky; top: 0;
}
.modal__stage .book { width: min(300px, 100%); animation: bookIn .55s var(--ease) both; }
.modal__stage .book__front { box-shadow: 30px 40px 60px -30px rgba(0,0,0,.6); }
@keyframes bookIn { from { transform: rotateY(-70deg) translateX(-30px); opacity: 0; } to { transform: rotateY(-14deg); opacity: 1; } }
.modal__stage .book:hover { transform: rotateY(-26deg) !important; }
.modal__body { padding: clamp(32px, 4.5vw, 60px); display: flex; flex-direction: column; gap: 22px; }
.modal__body > * { animation: rise .8s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .06s); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.modal__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.modal__author { font-size: 1rem; color: var(--muted); }
.modal__desc { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.modal__desc--empty { font-style: italic; color: var(--muted); font-size: 1rem; }
.modal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.modal__facts div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.modal__facts div:nth-child(odd) { padding-right: 16px; }
.modal__facts dt { font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.modal__facts dd { margin: 0; font-weight: 600; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--ink-2); }
.modal__close svg { width: 18px; height: 18px; }
.modal__hint { font-size: .8rem; color: var(--muted); }
.modal__buy { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .display { margin: 20px 0 26px; }

/* ==========================================================================
   Movimento
   ========================================================================== */

/* palavras que sobem com desfoque (títulos com data-split) */
.split-line { display: inline-block; vertical-align: top; }
.split-word { display: inline-block; transform: translateY(.3em); opacity: 0; transition: transform .6s var(--ease), opacity .5s var(--ease); transition-delay: calc(var(--d, 0s) * .5 + var(--w) * 40ms); }
.is-in .split-word, .split-word.is-in { transform: none; opacity: 1; }

/* revelação genérica ao rolar */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0s) * .5 + var(--i, 0) * 40ms); }
[data-reveal='fade'] { transform: none; }
[data-reveal='blur'] { transform: translateY(16px); }
[data-reveal='scale'] { transform: scale(.94); }
[data-reveal='left'] { transform: translateX(-40px); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Scroll-linked: na página inicial, a entrada acompanha a posição da rolagem.
   Quem roda é o próprio navegador, sem JavaScript a cada quadro. O catálogo não usa. */
@supports (animation-timeline: view()) {
  @keyframes sl-rise { from { opacity: 0; translate: 0 28px; } }
  @keyframes sl-fade { from { opacity: 0; } }
  @keyframes sl-scale { from { opacity: 0; scale: .94; } }
  @keyframes sl-left { from { opacity: 0; translate: -40px 0; } }
  @keyframes sl-word { from { opacity: 0; translate: 0 .3em; } }
  @keyframes sl-stripe { from { scale: 1 0; } }
  @keyframes sl-letter { from { opacity: 0; translate: 0 40%; } }
  @keyframes sl-scene { to { translate: 0 14vh; } }

  html.scroll-linked [data-reveal]:not(.hero *) {
    animation: sl-rise linear both; animation-timeline: view();
    animation-range: entry calc(var(--i, 0) * 24px) entry calc(170px + var(--i, 0) * 24px);
  }
  html.scroll-linked [data-reveal='fade']:not(.hero *) { animation-name: sl-fade; }
  html.scroll-linked [data-reveal='scale']:not(.hero *) { animation-name: sl-scale; }
  html.scroll-linked [data-reveal='left']:not(.hero *) { animation-name: sl-left; }
  html.scroll-linked [data-split]:not(.hero *) .split-word {
    animation: sl-word linear both; animation-timeline: view(); transition: none;
    animation-range: entry calc(var(--w) * 10px) entry calc(110px + var(--w) * 10px);
  }
  html.scroll-linked .stripe {
    animation: sl-stripe linear both; animation-timeline: view(); transition: none;
    animation-range: entry calc(var(--i) * 30px) entry calc(150px + var(--i) * 30px);
  }
  html.scroll-linked .footer__word span {
    animation: sl-letter linear both; animation-timeline: view();
    animation-range: entry calc(var(--i) * 16px) entry calc(120px + var(--i) * 16px);
    transition: color .6s, -webkit-text-stroke-color .6s;
  }
  @media (hover: hover) {
    html.scroll-linked [data-scene] { animation: sl-scene linear both; animation-timeline: scroll(root); animation-range: 0 120vh; }
  }
}

/* cortina de entrada */
.intro {
  position: fixed; inset: 0; z-index: 400; background: var(--dark);
  display: grid; place-items: center; pointer-events: none;
  animation: introOut .45s var(--ease-in-out) .4s forwards;
}
.intro__mark { width: 54px; animation: introMark .4s var(--ease) both; }
.intro__mark path { transform-origin: center; }
.intro__mark .m1 { animation: introBar .3s var(--ease) both; }
.intro__mark .m2 { animation: introBar .3s var(--ease) .05s both; }
.intro__mark .m3 { animation: introBar .3s var(--ease) .1s both; }
@keyframes introBar { from { transform: translateY(30px); opacity: 0; } }
@keyframes introMark { to { transform: scale(1); } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro.is-skipped { display: none; }

/* transição entre páginas (View Transitions API, quando suportada) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .1s linear both; }
::view-transition-new(root) { animation: vtIn .18s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* entrada do cabeçalho */
.header__inner > * { animation: headerIn .4s var(--ease) both; }
@keyframes headerIn { from { opacity: 0; transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-reveal], .split-word, .stripe, .footer__word span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .intro { display: none; }
  .marquee { animation: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .status-pill { display: none; }
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__lead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .menu-toggle { display: block; }
  .header__inner { height: 68px; }
  .toolbar { top: 68px; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero-stack { height: 420px; margin-top: 10px; }
  .hero__scroll { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__side { align-items: flex-start; text-align: left; }
  .section-head__side .lede { text-align: left; }
  .themes { grid-template-columns: 1fr 1fr; }
  .meaning { grid-template-columns: 1fr; min-height: 0; }
  .stripes { height: 220px; }
  .stripe { transform-origin: left; }
  .about, .visit__grid, .page-head__grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92dvh; transform: translateY(100%); }
  .modal__stage { position: relative; padding: 40px 20px 30px; }
  .modal__stage .book { width: 170px; }
  /* Preço e compra sempre à vista: a sinopse pode empurrar o botão para muito longe */
  .modal__body { --modal-pad: clamp(32px, 4.5vw, 60px); padding-bottom: 0; }
  .modal__actions [data-add-cart] { display: none; }
  .modal__actions:not(:has(> :not([data-add-cart]))) { display: none; }
  .modal__buy {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-inline: calc(var(--modal-pad) * -1); padding: 12px var(--modal-pad) calc(12px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
    font-weight: 700; font-variant-numeric: tabular-nums;
    animation: none;
  }
  .modal__buy .btn { flex: none; padding-inline: 18px; }
  .modal__hint { order: 1; }
  .modal__buy { order: 2; }
}
@media (max-width: 640px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --shelf-gap: 18px; row-gap: 48px; }
  .book-card__stage { padding: 6% 8% 0; }
  .book-card__view { display: none; }
  .about__pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 18px 0; }
  .footer__top { grid-template-columns: 1fr; }
  .visit__row { grid-template-columns: 1fr; gap: 4px; }
  .brand__sub { display: none; }
  .toolbar__count { margin-left: 0; width: 100%; }
  .search { max-width: none; }
  .sort { flex: 1; min-width: 0; }
  .sort__button { padding: 0 12px; gap: 8px; }
  .sort__menu { left: auto; right: 0; width: min(292px, calc(100vw - 32px)); transform-origin: top right; }
  .modal__facts { grid-template-columns: 1fr; }
  .modal__facts div:nth-child(odd) { padding-right: 0; }
}

/* cena 3D do hero */
.hero-stack__scene { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s var(--ease); }
@media (max-width: 640px) {
  .hero-stack__item[data-pos='0'], .hero-stack__item[data-pos='4'] { display: none; }
}

/* ==========================================================================
   Promoções do dia
   ========================================================================== */
.promos { position: relative; background: var(--dark); color: var(--on-dark); padding: clamp(80px, 10vw, 140px) 0; overflow: clip; }
.promos::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 10%, rgba(227,174,7,.14), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(201,169,97,.08), transparent 70%);
}
.promos .wrap { position: relative; }
.promos__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 30px; align-items: end; margin-bottom: clamp(56px, 7vw, 90px); }
.promos__head .lede { color: var(--on-dark-muted); }
.promos__list { --shelf-gap: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 60px var(--shelf-gap); padding-top: 18px; overflow: clip; }
.promos__list[data-count='1'] { grid-template-columns: minmax(0, 320px); justify-content: center; }
.promos__list[data-count='2'] { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.promos__list[data-count='3'] { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }
.promos .book-card__stage::after { background: var(--dark-line); }
.promos .book-card__stage::before { background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 72%); }
.promos .book-card__cat, .promos .book-card__author, .promos .price s { color: var(--on-dark-muted); }
.promos .book-card__view { background: var(--mustard); color: var(--ink); }

/* ==========================================================================
   Carrossel (coverflow)
   ========================================================================== */
.carousel { --slide: clamp(170px, 19vw, 270px); position: relative; }
.carousel__track {
  display: flex; gap: clamp(8px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 30px calc(50% - var(--slide) / 2) 56px;
  perspective: 1500px;
  cursor: grab; outline: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging .carousel__book { pointer-events: none; }
.carousel__track:focus-visible { box-shadow: inset 0 0 0 2px var(--mustard); }
.carousel__slide {
  flex: 0 0 var(--slide); scroll-snap-align: center; position: relative;
  transform-style: preserve-3d;
}
.carousel__slide::after {
  content: ''; position: absolute; left: 8%; right: 4%; bottom: -26px; height: 26px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(21,21,20,.3), transparent 72%);
  pointer-events: none;
}
.carousel__book { display: block; width: 100%; perspective: 1200px; user-select: none; -webkit-user-drag: none; }
.carousel__book .book__front { box-shadow: 0 30px 50px -26px rgba(0,0,0,.6), 0 2px 6px -2px rgba(0,0,0,.2); }
.carousel__slide.is-active .carousel__book:hover .book { transform: rotateY(-20deg) translateY(-8px); }
.carousel__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; padding-top: 10px; }
.carousel__caption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 44px); align-items: end; min-height: 110px; border-top: 1px solid var(--line); padding-top: 26px; }
.carousel__caption.is-swap > * { animation: rise .7s var(--ease) both; }
.carousel__caption.is-swap > *:nth-child(2) { animation-delay: .05s; }
.carousel__caption.is-swap > *:nth-child(3) { animation-delay: .1s; }
.carousel__count { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .9; letter-spacing: -0.03em; }
.carousel__count i { font-size: .4em; color: var(--muted); font-style: normal; letter-spacing: 0; }
.carousel__caption-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.carousel__tags { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.carousel__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.carousel__sub { color: var(--muted); font-size: .95rem; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.carousel__sub .price { color: var(--ink); }
.carousel__controls { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 26px; min-height: 110px; }
.carousel__progress { width: 120px; height: 2px; background: var(--line); margin-right: 14px; overflow: hidden; }
.carousel__progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.carousel__btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .35s, color .35s, border-color .35s, transform .5s var(--ease);
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(1.06); }
.carousel__btn:active { transform: scale(.96); }

/* ==========================================================================
   Vitrine editorial (assimétrica)
   ========================================================================== */
.vitrine { display: flex; flex-direction: column; gap: clamp(70px, 9vw, 130px); }
.vitrine__lead { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.vitrine__lead-book { perspective: 1400px; width: min(360px, 100%); justify-self: center; position: relative; }
.vitrine__lead-book .book { transform: rotateY(-16deg) rotateZ(-2deg); }
.vitrine__lead-book:hover .book { transform: rotateY(-26deg) rotateZ(-1deg) translateY(-10px); }
.vitrine__lead-book .book__front { box-shadow: 36px 44px 70px -34px rgba(0,0,0,.6); }
.vitrine__lead-book::after { content: ''; position: absolute; left: 4%; right: 0; bottom: -30px; height: 30px; background: radial-gradient(50% 50% at 50% 50%, rgba(21,21,20,.3), transparent 72%); }
.vitrine__lead-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.vitrine__title { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -0.035em; text-wrap: balance; }
.vitrine__desc { font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); max-width: 48ch; }
.vitrine__wall { --shelf-gap: clamp(24px, 4vw, 70px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 70px var(--shelf-gap); padding-bottom: 120px; }
/* alturas desencontradas: os livros não ficam "um atrás do outro" */
.vitrine__wall .book-card:nth-child(4n+2) { --off: 80px; }
.vitrine__wall .book-card:nth-child(4n+3) { --off: 26px; }
.vitrine__wall .book-card:nth-child(4n+4) { --off: 110px; }
.vitrine__wall .book-card[data-reveal] { transform: translateY(calc(var(--off, 0px) + 40px)); }
.vitrine__wall .book-card[data-reveal].is-in { transform: translateY(var(--off, 0px)); }
.vitrine__wall .book-card__stage::after { display: none; }

.modal__tags { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .promos__head { grid-template-columns: 1fr; }
  .promos__list, .promos__list[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .carousel__bar { grid-template-columns: 1fr; }
  .carousel__controls { border-top: 0; padding-top: 0; min-height: 0; }
  .carousel__caption { grid-template-columns: auto minmax(0, 1fr); }
  .carousel__caption > .link-arrow { grid-column: 1 / -1; justify-self: start; }
  .vitrine__lead { grid-template-columns: 1fr; }
  .vitrine__lead-book { width: min(260px, 70%); }
  .vitrine__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .vitrine__wall .book-card:nth-child(n) { --off: 0px; }
}
@media (max-width: 640px) {
  .carousel { --slide: 58vw; }
  .promos__list, .promos__list[data-count] { --shelf-gap: 18px; }
}

/* ==========================================================================
   Loja: carrinho, finalizar compra e página do pedido
   ========================================================================== */
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:disabled::before { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__roll { opacity: 0; }
.btn.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-spinner-public { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper-3); border-top-color: var(--ink); animation: spin .8s linear infinite; vertical-align: middle; }

/* botão do carrinho no cabeçalho */
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--paper-2); color: var(--ink);
  transition: background-color .3s, transform .5s var(--ease);
}
.cart-btn:hover { background: var(--paper-3); transform: translateY(-2px); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn__count {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  background: var(--mustard); color: var(--ink); font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--paper); animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: scale(.4); } }
.menu-open .cart-btn { background: rgba(243, 240, 233, .12); color: var(--on-dark); }

/* gaveta */
.cart { position: fixed; inset: 0; z-index: 210; visibility: hidden; pointer-events: none; }
.cart.is-open { visibility: visible; pointer-events: auto; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(15, 15, 14, .55); opacity: 0; transition: opacity .25s var(--ease); }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 26px 18px; border-bottom: 1px solid var(--line); }
.cart__title { font-family: var(--serif); font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; margin-top: 10px; }
.cart__close { position: static; flex: none; }
.cart__body { flex: 1; overflow-y: auto; padding: 6px 26px; overscroll-behavior: contain; }
.cart__list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line.is-new { animation: lineIn .9s var(--ease); }
@keyframes lineIn { from { background: rgba(227, 174, 7, .18); } }
.cart-line__cover { display: block; aspect-ratio: 2 / 3; border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); container-type: inline-size; }
.cart-line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-line__title { font-family: var(--serif); font-size: 1.12rem; line-height: 1.15; letter-spacing: -0.01em; }
.cart-line__author, .cart-line__unit { font-size: .8rem; color: var(--muted); }
.cart-line__unit s { opacity: .8; }
.cart-line__row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cart-line__remove { font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-line__remove:hover { color: #9a3b2a; }
.cart-line__total { font-variant-numeric: tabular-nums; font-size: .95rem; }
.qty { display: inline-flex; align-items: center; height: 34px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 100%; font-size: 1.05rem; transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: var(--paper-2); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.cart__foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); background: var(--paper-2); display: flex; flex-direction: column; gap: 12px; }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cart__sum b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cart__hint { font-size: .8rem; color: var(--muted); margin-top: -6px; }
.cart__go { justify-content: center; width: 100%; }
.cart__continue { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px; }
.cart__continue:hover { color: var(--ink); }
.cart__free { display: flex; flex-direction: column; gap: 8px; font-size: .82rem; color: var(--ink-2); }
.cart__free-bar { height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.cart__free-bar i { display: block; height: 100%; background: var(--mustard); transform-origin: left; transition: transform .8s var(--ease); }
.cart__free.is-done { color: #3f6b35; }
.cart__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 70px 10px; }
.cart__empty p:not(.h3) { color: var(--muted); max-width: 30ch; }
.cart__empty-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.cart__empty-icon svg { width: 30px; height: 30px; }

/* campos dos formulários públicos */
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.f-span-2 { grid-column: 1 / -1; }
.f-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.f-label em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.f-input {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.f-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(227, 174, 7, .25); }
.f-textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.f-help { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.f-error { font-size: .8rem; color: #9a3b2a; font-weight: 600; }
.has-error .f-input { border-color: #9a3b2a; }
.has-error.co-step .co-options { box-shadow: 0 0 0 1px #9a3b2a; border-radius: 14px; }
.f-alert { padding: 14px 16px; border-radius: 12px; background: #f6e3de; color: #7c2e20; font-size: .92rem; }
.f-alert a { text-decoration: underline; font-weight: 700; }

/* finalizar compra */
.checkout-steps { display: flex; gap: 26px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.checkout-steps span { display: inline-flex; align-items: center; gap: 10px; }
.checkout-steps span + span::before { content: ''; width: 18px; height: 1px; background: var(--line-strong); margin-right: 6px; }
.checkout-steps .is-on { color: var(--ink); }
.checkout { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 9vw, 130px); }
.checkout__head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(30px, 4vw, 50px); }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 18px; }
.co-step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.co-step__title { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1; }
.co-step__title span { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--sans); font-size: .78rem; font-weight: 800; flex: none; }
.co-step > .f-error { margin-top: -6px; }
.co-cep { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.co-cep .f-field { width: 180px; }
.co-cep .btn { height: 50px; }
.co-cep__help { font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding-bottom: 15px; }
.co-options { display: flex; flex-direction: column; gap: 10px; }
.co-option {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.co-option:hover { border-color: var(--ink); }
.co-option input { position: absolute; opacity: 0; pointer-events: none; }
.co-option__ui { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; transition: border-color .25s; }
.co-option__ui::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .35s var(--ease); }
.co-option:has(input:checked) { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.co-option input:checked + .co-option__ui { border-color: var(--ink); }
.co-option input:checked + .co-option__ui::after { transform: scale(1); }
.co-option input:focus-visible + .co-option__ui { outline: 2px solid var(--mustard); outline-offset: 3px; }
.co-option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-option__text b { font-size: .98rem; }
.co-option__text span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.co-option__price { text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-end; }
.co-option__price s { font-size: .78rem; color: var(--muted); }
.co-option__price .is-free { color: #3f6b35; }
.co-pay-mark { width: 44px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .06em; background: var(--paper-2); color: var(--ink-2); }
.co-pay-mark--pix { background: #e6f4f1; color: #1d7a6b; }
.co-pay-mark--credito, .co-pay-mark--debito { background: #e7f0fb; color: #1f5fa8; }
.co-loading { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); padding: 10px 0; }
.co-loading .a-spinner-public { width: 20px; height: 20px; }
.co-notice { margin-top: -6px; }
.co-address { padding-top: 6px; border-top: 1px dashed var(--line-strong); }
.co-city { min-height: 50px; display: flex; align-items: center; font-weight: 600; }
.co-muted { color: var(--muted); font-weight: 500; }

.checkout__side { position: sticky; top: 100px; }
.co-summary { background: var(--dark); color: var(--on-dark); border-radius: 20px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.co-summary__title { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.02em; }
.co-lines { list-style: none; margin: 0; padding: 4px 6px 0 0; display: flex; flex-direction: column; gap: 14px; max-height: 340px; overflow-y: auto; }
.co-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.co-line__cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 2px 3px 3px 2px; container-type: inline-size; }
.co-line__cover .cover { border-radius: inherit; }
.co-line__cover i { position: absolute; top: -7px; right: -9px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--mustard); color: var(--ink); font-style: normal; font-size: .66rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.co-line__info { display: flex; flex-direction: column; min-width: 0; }
.co-line__info b { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.co-line__info span, .co-line__total { font-size: .8rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.co-line__total { color: var(--on-dark); }
.co-totals { margin: 0; border-top: 1px solid var(--dark-line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.co-totals div { display: flex; justify-content: space-between; font-size: .92rem; }
.co-totals dt { color: var(--on-dark-muted); }
.co-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.co-totals__total { border-top: 1px solid var(--dark-line); padding-top: 12px; margin-top: 4px; align-items: baseline; }
.co-totals__total dt { color: var(--on-dark); font-weight: 700; }
.co-totals__total dd { font-family: var(--serif); font-size: 2rem; letter-spacing: -0.02em; }
.co-submit { width: 100%; justify-content: center; height: 56px; }
.co-legal { font-size: .76rem; color: var(--on-dark-muted); line-height: 1.5; }

/* página do pedido */
.order-page { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 9vw, 130px); }
.order__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(30px, 4vw, 50px); max-width: 760px; }
.order__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.o-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--paper-2); }
.o-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.o-chip--novo, .o-chip--pay-pendente { color: var(--mustard-deep); background: rgba(227, 174, 7, .15); }
.o-chip--separacao, .o-chip--enviado, .o-chip--pronto_retirada { color: #1f5fa8; background: #e7f0fb; }
.o-chip--entregue, .o-chip--pay-pago { color: #3f6b35; background: #e5efe1; }
.o-chip--cancelado, .o-chip--pay-recusado, .o-chip--pay-cancelado, .o-chip--pay-reembolsado { color: #9a3b2a; background: #f6e3de; }
.order__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 4vw, 64px); align-items: start; }
.order__main { display: flex; flex-direction: column; gap: 18px; }
.order__side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.o-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.o-card--ok { border-color: #a9c79c; background: #f6faf3; }
.o-card__title { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.05; }
.o-muted { color: var(--muted); font-size: .9rem; }
.o-pre { white-space: pre-line; }
.o-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.o-link { font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.o-pix { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.o-pix__qr { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.o-pix__qr svg { display: block; width: 100%; height: auto; }
.o-pix__body { display: flex; flex-direction: column; gap: 14px; }
.o-pix__amount { font-family: var(--serif); font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.o-pix__code { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; word-break: break-all; min-height: 76px; resize: none; background: var(--paper); }
.o-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.o-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.o-timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.o-timeline li:first-child { border-top: 0; }
.o-timeline time { font-size: .76rem; color: var(--muted); font-weight: 600; padding-top: 2px; }
.o-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.o-items li { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; }
.o-items li > span:first-child { display: flex; flex-direction: column; }
.o-items i { font-style: normal; font-size: .8rem; color: var(--on-dark-muted); }
.o-items li > span:last-child { font-variant-numeric: tabular-nums; }
.o-note { font-size: .84rem; color: var(--on-dark-muted); }
.o-save { border: 1px dashed var(--line-strong); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.o-save .o-link { align-self: flex-start; }
.o-track { font-size: .92rem; }

@media (max-width: 1000px) {
  .checkout-steps { display: none; }
  .checkout__grid, .order__grid { grid-template-columns: 1fr; }
  .checkout__side, .order__side { position: static; }
  .checkout__side { order: -1; }
}
@media (max-width: 900px) {
  [data-page='finalizar'] .header__actions .btn, [data-page='pedido'] .header__actions .btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .f-grid { grid-template-columns: 1fr; }
  .co-cep .f-field { width: 100%; }
  .co-cep .btn { flex: 1; justify-content: center; }
  .co-option { grid-template-columns: auto minmax(0, 1fr); }
  .co-option__price, .co-pay-mark { grid-column: 2; justify-self: start; align-items: flex-start; }
  .o-pix { grid-template-columns: 1fr; }
  .o-pix__qr { max-width: 260px; }
  .o-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .cart__head, .cart__body, .cart__foot { padding-left: 18px; padding-right: 18px; }
  [data-page='finalizar'] .header__actions .btn, [data-page='pedido'] .header__actions .btn { height: 38px; padding: 0 14px; }
}
/* Celulares estreitos: só o símbolo da marca, para o cabeçalho caber sem alargar a página */
@media (max-width: 400px) {
  [data-page='finalizar'] .brand__text, [data-page='pedido'] .brand__text { display: none; }
  [data-page='finalizar'] .header__actions .btn, [data-page='pedido'] .header__actions .btn { padding: 0 10px; font-size: .62rem; letter-spacing: .06em; }
  [data-page='finalizar'] .header__actions, [data-page='pedido'] .header__actions { gap: 8px; }
}
.co-option.is-disabled { opacity: .55; cursor: not-allowed; }
.co-test-note, .o-test-note { margin: 0 0 4px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #5c4500; font-size: .86rem; }

/* Conta do cliente */
.auth { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.auth__text { color: var(--muted); }
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .92rem; }
.auth__ok { padding: 14px 16px; border-radius: 12px; background: #e8efdc; color: #38491f; font-size: .92rem; }
.auth__or { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--muted); }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .92rem; font-weight: 600; color: #1f1f1f; transition: background-color .15s, border-color .15s; }
.btn-google:hover { background: #f6f6f4; border-color: var(--ink); }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.co-account { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; overflow-wrap: anywhere; }

/* ==========================================================================
   Celular
   ========================================================================== */
.theme__index, .theme__dots { display: none; }

/* Em tela de toque, o "hover" fica preso depois do toque */
@media (hover: none) {
  .book-card:hover .book, .book-card:focus-visible .book { transform: none; }
  .book-card:hover .book-card__stage::before { transform: none; opacity: 1; }
  .theme:hover { color: inherit; }
  .theme:hover::before { transform: scaleY(0); }
  .theme:hover .theme__top { color: var(--muted); }
}

@media (max-width: 780px) {
  /* Livros em linhas alinhadas: capa, tema, título, autor e preço na mesma altura dos dois lados */
  @supports (grid-template-rows: subgrid) {
    .book-grid, .promos__list, .vitrine__wall { row-gap: 0; }
    .book-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; align-content: start; padding-bottom: 38px; }
    .book-card__meta { display: contents; }
    .book-card__meta > * { grid-column: 1; padding-inline: 2px; }
    .book-card__stage { grid-row: 1; margin-bottom: 14px; }
    .book-card__cat { grid-row: 2; margin-bottom: 7px; }
    .book-card__title { grid-row: 3; margin-bottom: 6px; }
    .book-card__author { grid-row: 4; margin-bottom: 8px; }
    .book-card__row { grid-row: 5; margin-top: 0; }
  }
}

@media (max-width: 640px) {
  /* Abertura: tudo na primeira rolagem, na ordem título, ação, livros e versículo */
  .hero { padding: 34px 0 42px; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__copy { display: contents; }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 4px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero-stack { order: 1; height: 262px; margin: 6px 0 0; }
  .hero-stack__item { width: 122px; }
  .hero__verse { order: 2; max-width: none; gap: 10px; padding-top: 18px; font-size: 1rem; }
  .hero__verse-mark { font-size: 2rem; }

  .section { padding: 60px 0; }
  .promos { padding: 56px 0; }
  .promos__head { margin-bottom: 34px; }

  /* Duas colunas iguais; se sobrar um livro, ele fica centralizado */
  .book-grid, .promos__list, .vitrine__wall { --shelf-gap: 18px; column-gap: var(--shelf-gap); }
  .book-grid > .book-card:last-child:nth-child(odd),
  .promos__list > .book-card:last-child:nth-child(odd),
  .vitrine__wall > .book-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--shelf-gap) / 2); }
  .vitrine__wall .book-card__stage::after { display: block; }

  /* Textos pequenos ficam legíveis */
  .book-card__cat { font-size: .68rem; letter-spacing: .08em; line-height: 1.3; }
  .promo-tag { font-size: .69rem; letter-spacing: .08em; }

  /* Destaque: capa e informações lado a lado, descrição embaixo */
  .vitrine { gap: 40px; }
  .vitrine__lead { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 10px 18px; align-items: start; }
  .vitrine__lead-book { width: 100%; grid-row: 1 / span 6; align-self: start; }
  .vitrine__lead-book .book, .vitrine__lead-book:hover .book { transform: none; }
  .vitrine__lead-book::after { display: none; }
  .vitrine__lead-text { display: contents; }
  .vitrine__lead-text > * { grid-column: 2; min-width: 0; }
  .vitrine__lead-text > .eyebrow { font-size: .69rem; letter-spacing: .1em; }
  .vitrine__title { font-size: 1.55rem; line-height: 1.06; }
  .vitrine__lead-text > .vitrine__desc { grid-column: 1 / -1; grid-row: 7; margin-top: 8px; font-size: 1rem; max-width: none; }
  .vitrine__lead-text > .link-arrow { grid-column: 1 / -1; grid-row: 8; justify-self: start; }

  /* Temas: sumário de livro. Cada linha se ajusta a nomes longos e a qualquer quantidade de temas. */
  #temas { background: var(--paper); }
  #temas .section-head__side { display: none; }
  #temas .h2 { font-size: clamp(2rem, 9.4vw, 2.5rem); }
  .themes { display: block; background: none; border: 0; border-radius: 0; overflow: visible; }
  .themes .theme, .themes .theme:hover { color: var(--ink); }
  .themes .theme { display: flex; flex-direction: row; justify-content: flex-start; align-items: baseline; align-items: last baseline; gap: 8px; min-height: 0; aspect-ratio: auto; padding: 13px 0; background: none; font-family: var(--serif); }
  .themes .theme + .theme { border-top: 1px solid var(--line); }
  /* A lista não espera animação para aparecer */
  .themes .theme[data-reveal], html.scroll-linked .themes .theme[data-reveal] { opacity: 1; transform: none; transition: none; animation: none; translate: none; }
  .theme::before { display: none; }
  .theme__top, .theme__bottom { display: contents; }
  .theme__num, .theme__go, .theme__count-word { display: none; }
  .theme__index { display: block; flex: none; min-width: 30px; order: 1; font-family: var(--serif); font-size: .95rem; font-weight: 400; letter-spacing: 0; font-style: italic; color: #7f6000; font-variant-numeric: tabular-nums; }
  .theme__name { flex: 0 1 auto; min-width: 0; order: 2; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
  .theme__dots { display: block; flex: 1 1 14px; min-width: 14px; order: 3; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
  .theme__count { flex: none; order: 4; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

  .footer__word { -webkit-text-stroke-color: rgba(243, 240, 233, .34); }
}

/* Livros do pastor: azul-petróleo profundo e dourado, tirados das capas */
.pastor {
  --pastor-bg: #0e2b2c; --pastor-bg-2: #123a3a; --pastor-text: #f3f0e9; --pastor-soft: rgba(243, 240, 233, .72);
  --pastor-gold: #d8b873; --pastor-line: rgba(243, 240, 233, .16);
  position: relative; overflow: clip; color: var(--pastor-text);
  background: linear-gradient(120deg, var(--pastor-bg) 30%, var(--pastor-bg-2) 100%);
  padding-block: clamp(56px, 6.5vw, 92px);
}
.pastor__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pastor__eyebrow { display: block; font-size: .86rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pastor-gold); }
.pastor__phrase { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.95rem); line-height: 1.12; }
.pastor__phrase em { display: block; color: var(--pastor-gold); }
.pastor__lede { margin-top: 18px; font-size: 1.05rem; line-height: 1.5; color: var(--pastor-soft); }
.pastor__links { display: flex; flex-direction: column; margin-top: 26px; border-top: 1px solid var(--pastor-line); }
.pastor__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--pastor-line); color: inherit; text-align: left; font-weight: 600; font-size: 1rem; line-height: 1.3; cursor: pointer; transition: color .3s var(--ease); }
.pastor__link span:last-child { flex: none; color: var(--pastor-gold); transition: transform .3s var(--ease); }
.pastor__link:hover, .pastor__link:focus-visible { color: var(--pastor-gold); }
.pastor__link:hover span:last-child, .pastor__link:focus-visible span:last-child { transform: translateX(5px); }
.pastor :focus-visible { outline: 2px solid var(--pastor-gold); outline-offset: 3px; }

/* Palco: as medidas são proporcionais, para a foto (4:5) nunca ser cortada */
.pastor__stage {
  --photo-w: 40%; --gap: 30px;
  position: relative; width: 100%; max-width: 820px; aspect-ratio: 2 / 1; justify-self: end;
}
.pastor__stage::before {
  content: ''; position: absolute; top: 12px; right: -12px; bottom: -12px; width: var(--photo-w);
  border: 1px solid var(--pastor-gold); border-radius: 6px;
  opacity: 0; transition: opacity .9s var(--ease) .35s;
}
.pastor__photo {
  position: absolute; top: 0; right: 0; width: var(--photo-w); height: 100%; max-width: none;
  object-fit: contain; border-radius: 6px; background: #1a1c1b;
  opacity: 0; translate: 0 18px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
}
.pastor__stage.is-in::before { opacity: 1; }
.pastor__stage.is-in .pastor__photo { opacity: 1; translate: 0 0; }

/* Livros retos, lado a lado junto da foto. As larguras seguem a proporção de cada capa, para terem a mesma altura */
.pastor__books {
  position: absolute; top: 0; bottom: 0; left: 0; right: calc(var(--photo-w) + var(--gap));
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 1.4vw, 16px); padding-bottom: 6%;
}
.pastor__book {
  position: relative; display: block; flex: var(--w) 1 0; min-width: 0; padding: 0; cursor: pointer;
  opacity: 0; translate: 0 18px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
  transition-delay: calc(.3s + var(--i) * .14s);
}
.pastor__book .book { aspect-ratio: var(--ar); }
.pastor__new {
  position: absolute; z-index: 3; left: 50%; top: 0; translate: -50% -135%; white-space: nowrap;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pastor-gold);
}
.pastor__link small { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--pastor-gold); border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pastor-gold); vertical-align: middle; }
.pastor__stage.is-in .pastor__book { opacity: 1; translate: 0 0; }
.pastor__book .book { --t: 0px; width: 100%; transform: none; transform-style: flat; transition: transform .35s var(--ease); }
.pastor__book :is(.book__pages, .book__back) { display: none; }
.pastor__book .book__front { transform: none; backface-visibility: visible; border-radius: 3px; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .3); }
.pastor__book.is-active .book, .pastor__book:focus-visible .book { transform: translateY(-8px); }
/* Reflexo de luz passando pela capa */
.pastor__book .book__front::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
  transform: translateX(-120%);
}
.pastor__stage.is-in .book__front::after { animation: pastorShine 1.3s var(--ease-in-out) 1 calc(1s + var(--i) * .3s); }
@keyframes pastorShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes pastorShineHover { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
/* Só com mouse de verdade: no toque, o estado de hover ficava preso depois de fechar o livro */
@media (hover: hover) {
  .pastor__book:hover .book { transform: translateY(-8px); }
  .pastor__stage.is-in .pastor__book:hover .book__front::after { animation: pastorShineHover .9s var(--ease-in-out) 1; }
}

@media (max-width: 1100px) {
  .pastor__inner { grid-template-columns: minmax(0, 1fr); }
  .pastor__stage { justify-self: center; }
}
@media (max-width: 780px) {
  .pastor__stage { display: flex; flex-direction: column; gap: 30px; aspect-ratio: auto; max-width: 480px; }
  .pastor__stage::before { display: none; }
  .pastor__books { position: static; order: -1; padding: 26px 0 0; }
  .pastor__photo { position: static; width: min(66%, 300px); height: auto; aspect-ratio: 4 / 5; align-self: center; }
  .pastor__links { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pastor__book .book__front::after { animation: none; }
  .pastor__book, .pastor__book .book, .pastor__photo, .pastor__stage::before { transition: none; }
}

/* Etiqueta de estoque baixo */
.promo-tag--stock { background: var(--ink); color: var(--paper); }

/* Sentinela da lista carregada aos poucos */
.book-grid__more { grid-column: 1 / -1; height: 1px; }

/* Sugestões da busca sem resultado */
.state__suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.state__suggest button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.state__suggest button:hover { border-color: var(--ink); background: var(--paper-2); }

/* Parecidos e link da página, na janela do livro */
.modal__related { display: grid; gap: 10px; }
.modal__related h3 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.modal__related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.modal__related button { display: grid; gap: 6px; width: 100%; text-align: left; font-size: .76rem; line-height: 1.25; cursor: pointer; }
.modal__related .cover { aspect-ratio: 2 / 3; border-radius: 3px; height: auto; transition: transform .25s var(--ease); }
.modal__related button:hover .cover { transform: translateY(-3px); }
.modal__page { align-self: flex-start; font-size: .84rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.modal__page:hover { color: var(--mustard-deep); }

/* Página própria do livro */
.book-page { padding: clamp(28px, 4vw, 56px) 0 clamp(70px, 9vw, 120px); }
.book-page__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: clamp(22px, 3vw, 38px); }
.book-page__crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.book-page__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.book-page__cover img { width: 100%; height: auto; border-radius: 4px; box-shadow: 20px 30px 50px -28px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .12); }
.book-page__nocover { aspect-ratio: 2 / 3; display: grid; place-items: center; padding: 24px; text-align: center; font-family: var(--serif); font-size: 1.5rem; color: var(--on-dark); background: var(--dark-2); border-radius: 4px; }
.book-page__body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.book-page__related { margin-top: clamp(50px, 7vw, 90px); }
.book-page__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.book-page__list a { display: grid; gap: 6px; font-weight: 600; font-size: .94rem; line-height: 1.3; }
.book-page__list img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; margin-bottom: 6px; transition: transform .25s var(--ease); }
.book-page__list a:hover img { transform: translateY(-4px); }
.book-page__list small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.book-page__list svg { display: none; }
@media (max-width: 760px) {
  .book-page__grid { grid-template-columns: minmax(0, 1fr); }
  .book-page__cover { max-width: 230px; margin-inline: auto; }
  .book-page__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .sort__menu { animation: none; } }

/* Carrinho: atualizar a quantidade não faz a capa piscar */
.cart .cover img, .co-line__cover .cover img { opacity: 1; transition: none; }
.cart__notes { margin: 14px 0 4px; padding: 12px 14px; border-radius: 10px; background: rgba(227, 174, 7, .16); font-size: .84rem; line-height: 1.4; display: grid; gap: 6px; }
.cart-line__limit { display: block; font-size: .72rem; color: var(--muted); }
.cart-line__limit[hidden] { display: none; }
.qty button:disabled { opacity: .35; cursor: default; }
.co-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-legal a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.co-submit:disabled { opacity: .55; cursor: not-allowed; }
.book-card__ask { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Páginas de regras */
.legal { padding: clamp(36px, 5vw, 70px) 0 clamp(70px, 9vw, 120px); }
.legal__body { max-width: 760px; }
.legal__body h1 { margin-bottom: 14px; }
.legal__body h2 { margin-top: 38px; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.2; }
.legal__body p, .legal__body li { margin-top: 12px; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.legal__body ul { padding-left: 20px; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.legal__lede { font-size: 1.1rem; }
.legal__table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .94rem; }
.legal__table th, .legal__table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.legal__table th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Atalho do carrinho no celular */
.cart-fab { display: none; }
@media (max-width: 900px) {
  .cart-fab:not([hidden]) {
    display: grid; place-items: center; position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%; color: var(--ink); background: var(--mustard);
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .55);
  }
  .cart-fab svg { width: 24px; height: 24px; }
  .cart-fab .cart-btn__count { position: absolute; top: -2px; right: -2px; }
  body:has(.cart.is-open) .cart-fab, body:has(.modal.is-open) .cart-fab, body.menu-open .cart-fab { display: none; }
}
