/* ================================================
   GW EBOOKS — CSS Unificado (CORRIGIDO)
   Fonte: minhaFonte (AGENCYR)
   ================================================ */

/* ---- FONTE ---- */
@font-face {
  font-family: "minhaFonte";
  src: url("../fonts/AGENCYR.TTF") format("truetype");
}

/* ---- VARIÁVEIS ---- */
:root {
  --cream: black;           /* ✅ era "black" — corrigido */
  --white: #ffffff;
  --ink: #1a1714;
  --ink-soft: #4a4540;
  --ink-mute: black;        /* ✅ era "black" — corrigido */
  --gold: #c8a96e;
  --gold-lt: #e8d9bc;
  --line: black;            /* ✅ era "black" — corrigido para cinza claro */
  --radius: 2px;
  --shadow: 0 1px 3px rgba(26, 23, 20, 0.06), 0 4px 16px rgba(26, 23, 20, 0.06);
}

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ✅ CORRIGIDO: td e th removidos — não podem ter display:flex */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "minhaFonte", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

/* ✅ td e th apenas com fonte — sem display:flex */
td,
th {
  font-family: "minhaFonte", sans-serif;
}

main {
  flex: 1;
  background-color: white;
}

/* ✅ CORRIGIDO: height:100% global em img quebrava layouts */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================
   BOTÕES
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* 👈 ADICIONE ESTA LINHA */
  gap: 0.45rem;
  font-family: "minhaFonte", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: #006437;
  color: white;
  border-color: #006437;
  font-weight: bold;
}
.btn-primary:hover {
  background: rgb(34, 255, 0);
  border-color: rgb(34, 255, 0);
  color: #006437;
  font-weight: bold;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid transparent !important;
  font-weight: bold;
}
.btn-outline:hover {
  background: rgb(34, 255, 0);
  color: #006437;
  font-weight: bold;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8995e;
  border-color: #b8995e;
}
.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
}

/* ================================================
   INPUTS
================================================ */
.input,
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: "minhaFonte", sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink-soft);
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

/* ================================================
   CARDS
================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 23, 20, 0.1);
}

/* ================================================
   FLASH
================================================ */
.flash {
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.flash.success {
  background: #edf7ed;
  color: #2e6b2e;
  border: 1px solid #c2e0c2;
}
.flash.error {
  background: #fdecea;
  color: #8b1a1a;
  border: 1px solid #f5c6c6;
}
.flash.warning {
  background: #fff8e6;
  color: #7a5a00;
  border: 1px solid #f0d98a;
}

/* ================================================
   SEÇÕES / TIPOGRAFIA / LAYOUT
================================================ */
.section {
  padding: clamp(3rem, 6vw, 2rem) clamp(1.5rem, 5vw, 3rem);
}
.section-sm {
  padding: clamp(2rem, 4vw, 2rem) clamp(1.5rem, 5vw, 3rem);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  color: white;
}

.page-title {
  font-family: "minhaFonte", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: bold;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #006437;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--ink-mute);
  font-weight: 300;
  margin-top: 0.75rem;
}

.eyebrow {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: black;
  margin-bottom: 0.5rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* ================================================
   FOOTER
================================================ */
footer {
  width: 100%;
  text-align: center;
  background-color: #006437;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-family: "minhaFonte";
  padding: 0;
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: none;
}

.footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1024px;
  background-color: #006437;
  color: #fff;
  padding: 10px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: "minhaFonte";
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  font-family: "minhaFonte";
}
.footer-col h2 {
  display: flex;
  flex-direction: column;
  align-items: left;
  width: 100%;
  font-family: "minhaFonte";
  text-decoration: none;
}
.footer-col p {
  width: 100%;
  font-family: "minhaFonte";
}
.footer-col.contato {
  text-align: left;
}
.footer-col.contato p {
  text-align: left;
}
.footer-col.termo {
  text-decoration: none;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
.footer-col.termo p {
  text-align: left;
}
.footer-col.termo a,
.footer-col.termo a:visited,
.footer-col.termo a:hover,
.footer-col.termo a:active {
  color: #fff;
  text-decoration: none;
}
.footer-col.redes {
  align-items: center;
  text-align: center;
  width: 100%;
}

.redes-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.redes-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-col.pagamentos-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pagamentos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.pagamentos img {
  width: 50px;
  height: 30px;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  padding: 1.5rem clamp(1.5rem, 5vw, 2.5rem);
  background-color: #006437;
}

/* ================================================
   HERO
================================================ */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  gap: 4rem;
}

.hero-text .eyebrow {
  margin-bottom: 1rem;
}

.hero-title {
  font-family: "minhaFonte", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.75;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================================================
   BOOK STACK
================================================ */
.book-stack {
  position: relative;
  width: 260px;
  height: 360px;
}

.book-card {
  position: absolute;
  width: 200px;
  height: 280px;
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(26, 23, 20, 0.18);
  overflow: hidden;
}

.book-card-back {
  background: var(--gold-lt);
  top: 40px;
  left: 60px;
  transform: rotate(6deg);
}

.book-card-front {
  background: var(--ink);
  top: 20px;
  left: 30px;
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.book-title-visual {
  font-family: "minhaFonte", serif;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.book-author-visual {
  font-size: 0.7rem;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ================================================
   FEATURES GRID
================================================ */
.features-grid {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 3rem;
  padding: 1rem 2rem;
  background-color: #006437;
}

.feature-item {
  text-align: left;
  padding: 1rem 1.5rem;
  max-width: 260px;
  background-color: #006437;
}
.feature-icon {
  text-align: left;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.feature-title {
  text-align: left;
  font-family: "minhaFonte", serif;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: white;
}

.feature-desc {
  font-size: 1.25rem;
  color: white;
  text-align: left;
  font-weight: normal;
}

/* ================================================
   LIVRO DESTAQUE
================================================ */
.featured-book {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 2rem) clamp(1.5rem, 5vw, 3rem);
  background: var(--white);
}

.featured-cover {
  width: 320px;
  height: 510px;
  border-radius: 3px;
  box-shadow: 0 0 8px black;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-cover .book-title-visual {
  font-size: 1.1rem;
}
.featured-info .eyebrow {
  margin-bottom: 0.75rem;
}

.featured-title {
  font-family: "minhaFonte", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: bold;
  line-height: 1.2;
  color: #006437;
}

.featured-desc {
  margin: 1rem 0 2rem;
  text-align: justify;
  font-size: 1.25rem;
  color: black;
  max-width: 480px;
}

/* ================================================
   PREÇO
================================================ */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.price-tag strong {
  font-family: "minhaFonte", serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: #006437;
}
.price-tag span {
  font-size: 0.85rem;
}
.purchase-actions .btn {
  font-size: 0.8rem;
}

/* ================================================
   POPUP
================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  color: white;
}

.popup-box {
  background: #006437;
  border-top: 5px solid #004d2a;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.popup-title {
  font-family: "minhaFonte", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.popup-text {
  font-size: 0.95rem;
  color: white;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.popup-sair {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  cursor: pointer;
}
.popup-sair:hover {
  color: #ff6b6b;
}

/* ================================================
   WHATSAPP
================================================ */
.whatsapp-btn {
  font-family: "minhaFonte";
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 25px;
  text-shadow: #000 1px 1px 4px;
  z-index: 1000;
}

.whatsapp-btn:hover {
  box-shadow: 0 0 20px rgba(31, 255, 113, 0.966);
}

/* ================================================
   EBOOK / IMAGEM
================================================ */
.ebook-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.ebook-image {
  width: 350px;
  flex: 0 0 350px;
  text-align: center;
}

.ebook-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
.ebook-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.ebook-image a {
  text-decoration: none;
}
.ebook-image .text14 {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
}

/* ================================================
   CLASSES DE TEXTO
================================================ */
.text1 {
  font-family: "minhaFonte";
  font-size: 20px;
  color: #000;
  font-weight: normal;
  font-style: normal;
  line-height: 1.2;
  list-style: none;
  text-decoration: none;
  text-align: justify;
}

.text2 {
  font-family: "minhaFonte";
  font-size: 14px;
  color: #fff;
  text-align: center;
  background-color: black;
  width: 100%;
  height: 10px;
  display: block;
  padding-top: 5px;
}

.text3 {
  font-family: "minhaFonte";
  font-size: 12px;
  color: white;
  font-weight: normal;
  font-style: normal;
  line-height: 1.4;
  list-style: none;
  text-decoration: none;
}

.text14 {
  font-family: "minhaFonte";
  font-size: 16px;
  color: #000;
  font-weight: bold;
  font-style: normal;
}

/* ================================================
   CONTATO
================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.25rem;
  font-size: 14px;
}
textarea {
  height: 140px;
  resize: vertical;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child {
  border-bottom: none;
}
.info-label {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.info-value {
  font-size: 1.25rem;
  color: var(--ink-soft);
}

/* ================================================
   COOKIE
================================================ */
.cookie-box {
  font-family: "minhaFonte";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  z-index: 99999;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.cookie-inner {
  font-family: "minhaFonte";
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 12px;
}

.cookie-inner span {
  flex: 1;
}

.cookie-inner a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

.cookie-inner button {
  font-family: "minhaFonte";
  background: #006437;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  white-space: nowrap;
}

.cookie-inner button:hover {
  background: rgb(34, 255, 0);
  color: black;
}

/* ================================================
   CATÁLOGO
================================================ */
.catalog-header {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.5rem, 5vw, 4rem) 2rem;
  border-bottom: 1px solid var(--line);
}

.catalog-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  background: white;
  padding: 0;
}

.book-item.card {
  border: none !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
}

.book-cover,
.book-cover img {
  border: none !important;
  outline: none !important;
}

.book-item {
  width: 300px;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
  border: none !important;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.book-item:hover {
  background: transparent;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.book-cover {
  width: 100%;
  height: 440px;
  background: var(--ink);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.book-item:hover .book-cover img,
.book-item:focus-within .book-cover img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

.book-cover .book-spine-sm,
.book-cover .book-title-visual,
.book-cover .book-author-visual {
  position: relative;
  z-index: 1;
}

.book-info {
  width: 100%;
  padding: 1rem .95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-name {
  width: 100%;
  font-family: "minhaFonte", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.book-synopsis {
  width: 100%;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.book-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.book-price {
  width: 100%;
  font-family: "minhaFonte", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

html body .book-footer a.btn.btn-outline,
html body .book-footer .btn-outline {
  font-weight: bold;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

html body .book-footer a.btn.btn-outline:hover,
html body .book-footer .btn-outline:hover {
  background-color: black !important;
  color: white !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

/* ================================================
   UTILITÁRIOS
================================================ */
.notice-box {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: white;                  /* ✅ era white — texto invisível */
  font-size: 0.84rem;
  line-height: 1.6;
  border-radius: var(--radius);
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-left: 4px solid white;     /* ✅ era white */
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.pending {
  background: #fff8e6;
  color: #7a5a00;
}
.status-pill.approved {
  background: #edf7ed;
  color: #2e6b2e;
}
.status-pill.info {
  background: #f4f1ea;
  color: var(--ink-soft);
}

.helper-text {
  font-size: 0.8rem;
  color: var(--ink-mute);
  line-height: 1.6;
}
.text-link {
  color: var(--ink);
  text-decoration: underline;
}
.muted {
  color: var(--ink-mute);
}
.hidden {
  display: none !important;
}

/* ================================================
   AUTH / DASHBOARD
================================================ */
.auth-box {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px var(--radius);
  padding: 2rem;
  font-size: 14px;
  
}
.auth-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr;
}
.dashboard-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--cream);
}
.kpi strong {
  display: block;
  font-family: "minhaFonte", serif;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

/* ================================================
   CONFIRMAÇÃO
================================================ */
.confirm-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
}
.confirm-box {
  max-width: 560px;
  text-align: center;
}
.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #006437;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 2rem;
  color: white;
}
.confirm-title {
  font-family: "minhaFonte", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.confirm-desc {
  color: black;
  font-size: 1.25rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.steps {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;                 /* ✅ era "6px black" — valor inválido */
  overflow: hidden;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: white;
}
.step:last-child {
  border-bottom: none;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #006437;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.step-text {
  font-size: 1.1rem;
  color: black;
  line-height: 1.55;
}
.step-text strong {
  color: black;
}

/* ================================================
   CARRINHO
================================================ */
.cart-layout {
  font-family: "minhaFonte";
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.cart-table {
  font-family: "minhaFonte";
  width: 100%;
  border-collapse: collapse;
  color: black;
  background-color: white;
}
.cart-table th {
  font-family: "minhaFonte";
  text-align: left;
  font-size: 0.92rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: black;          /* ✅ ADICIONADO — estava herdando preto */
  color: white;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
}
.cart-table td {
  font-family: "minhaFonte";
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: black;
  background-color: white;
}
.cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-thumb {
  flex: 0 0 84px;
  width: 84px;
}
.cart-thumb img {
  width: 84px;
  height: 118px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.cart-product-info {
  min-width: 0;
}
.cart-book-name {
  font-family: "minhaFonte";
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
}
.cart-qty {
  font-family: "minhaFonte";
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: black;
}
.qty-btn {
  font-family: "minhaFonte";
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 500;
}
.qty-btn:hover {
  background: black;
  color: white;
}
.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #c40000;
  font-size: 0.8rem;
}
.remove-btn:hover {
  color: #8b1a1a;
  font-weight: bold;
}
.order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--white);
  position: sticky;
  top: 84px;
}
.summary-title {
  font-family: "minhaFonte", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: black;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0;
  font-weight: 500;
  color: black;
}
.summary-total span:last-child {
  font-family: "minhaFonte", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: black;
}
.empty-cart {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-cart p {
  color: var(--ink-mute);
  margin: 0.75rem 0 2rem;
}

/* ================================================
   PAGAMENTO
================================================ */
.payment-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  color: black;
}
.payment-box {
  max-width: 480px;
  width: 100%;
  color: black;
}
.payment-status {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);           /* ✅ era "bla" — valor inválido */
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.status-header {
  background: var(--gold-lt);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.status-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.status-title {
  font-family: "minhaFonte", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.status-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.status-body {
  padding: 1.5rem 2rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  color: var(--ink-mute);
}
.detail-value {
  font-weight: 500;
  color: var(--ink);
}
.status-pending .status-header {
  background: #fff8e6;
}
.status-approved .status-header {
  background: #edf7ed;
}
.pix-box {
  border: 1px solid var(--gold-lt);
  background: #fff8ec;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.pix-qr {
  width: 160px;
  height: 160px;
  background: var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  font-size: 0.75rem;
  color: var(--ink-mute);
}
.pix-copy {
  font-size: 0.75rem;
  font-family: "minhaFonte", monospace;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  word-break: break-all;
  color: var(--ink-soft);
  margin: 0.75rem 0;
}

/* ================================================
   CHECKOUT
================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.checkout-form-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-section-title {
  font-family: "minhaFonte", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.payment-methods {
  display: grid;
  gap: 0.75rem;
}
.payment-option {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s;
}
.payment-option:has(input:checked) {
  border-color: var(--ink);
  background: #f5f3ef;
}
.payment-option input[type="radio"] {
  width: auto;
  accent-color: var(--ink);
}
.payment-icon {
  font-size: 1.3rem;
}
.payment-label {
  font-size: 1.10rem;
  font-weight: bold;
}
.payment-desc {
  font-size: 0.75rem;
  color: var(--ink-mute);
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.summary-item-name {
  color: var(--ink-soft);
}
.summary-total-val {
  font-family: "minhaFonte", serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.security-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.badge-item {
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dashboard-header { text-align: center; margin-bottom: 3rem; }
    .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
    .kpi-card { background: #fff; border: 1px solid #eee; padding: 1.5rem; text-align: center; border-radius: 4px; }
    .kpi-value { display: block; font-family: 'Serif Display', serif; font-size: 2rem; color: var(--gold-dark); margin-top: 0.5rem; }
    .orders-section { background: #fafafa; padding: 2rem; border-radius: 4px; border: 1px solid #eee; }
    .orders-list { list-style: none; padding: 0; margin-top: 1.5rem; }
    .orders-list li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid #eee; }
    .orders-list li:last-child { border-bottom: none; }

/* ================================================
   RESPONSIVO
================================================ */

@media (max-width: 1024px) {
  .navbar {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .navbar .nav-links {
    gap: 1.25rem;
  }
  .navbar .nav-links a {
    font-size: 1rem;
  }
  .featured-book {
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .auth-box {
    max-width: 520px;
  }
  .section {
    padding: 2.5rem 2rem;
  }
  .section-sm {
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 860px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 0.65rem 1rem;
    gap: 0;
  }
  .menu-toggle {
    display: block;
  }
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
  }
  .navbar .nav-links.open {
    display: flex !important;
  }
  .navbar .nav-links li {
    width: 100%;
  }
  .navbar .nav-links a {
    display: block;
    width: 100%;
    padding: 0.65rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .navbar .nav-links a::after {
    display: none;
  }
  .navbar .nav-links .nav-cart {
    display: block;
    margin-top: 0.6rem;
    text-align: center;
    width: 100%;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    display: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1rem;
  }
  .featured-book {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .featured-cover {
    width: 200px;
    height: 315px;
  }
  .featured-desc {
    text-align: left;
  }
  .book-item {
    width: calc(50% - 12px);
  }
  .book-cover {
    height: 280px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ebook-container {
    flex-direction: column;
    align-items: center;
  }
  .ebook-image {
    width: 100%;
    max-width: 320px;
    flex: none;
  }
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .cookie-inner button {
    width: 100%;
    text-align: center;
  }
  .btn {
    font-size: 0.8rem;
    padding: 0.65rem 1.4rem;
  }
  .btn-sm {
    font-size: 0.72rem;
    padding: 0.45rem 1rem;
  }
  .section {
    padding: 2rem 1.25rem;
  }
  .section-sm {
    padding: 1.5rem 1.25rem;
  }
  .page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
  .eyebrow {
    font-size: 1rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-card {
    padding: 1.1rem;
  }
  .auth-box {
    padding: 1.5rem 1.25rem;
  }
  .toast-stack {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }
  .toast {
    min-width: unset;
    max-width: 100%;
  }
  .input,
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }
  .card:hover {
    transform: none;
  }
  .summary-list li {
    flex-direction: column;
    gap: 0.25rem;
  }
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  .navbar .nav-brand img {
    height: 32px;
  }
  .menu-toggle {
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
  }
  .nav-cart {
    font-size: 20px;
    font-weight: bold;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .featured-cover {
    width: 160px;
    height: 250px;
  }
  .book-item {
    width: 100%;
    max-width: 320px;
  }
  .book-cover {
    height: 360px;
  }
  .page-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-subtitle {
    font-size: 0.9rem;
  }
  .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .btn-sm {
    width: auto;
  }
  .section {
    padding: 1.5rem 0.75rem;
  }
  .section-sm {
    padding: 1.25rem 0.75rem;
  }
  .footer-grid {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .kpi strong {
    font-size: 1.4rem;
  }
  .auth-box {
    padding: 1.25rem 0.75rem;
  }
  .flash {
    font-size: 0.8rem;
    padding: 0.75rem 0.9rem;
  }
  .input,
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    font-size: 0.8rem;
  }
  textarea {
    height: 110px;
  }
  .status-pill {
    font-size: 0.65rem;
    padding: 0.28rem 0.65rem;
  }
  .divider {
    margin: 1.25rem 0;
  }
  .toast {
    font-size: 0.8rem;
    padding: 0.75rem 0.85rem;
  }
}
@media (max-width: 640px) {
  .cart-product {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cart-thumb,
  .cart-thumb img {
    width: 64px;
  }

  .cart-thumb img {
    height: 92px;
  }
}
