@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/**
 * LOJA ABC DA GABI • ALFABETIZAR BRINCANDO EM CASA
 * Identidade Visual Oficial & Estilo Editorial Sóbrio
 * Paleta Oficial: "ativos_marca/Paleta de cores e textura/Design sem nome (1).png"
 */

/* ==========================================================================
   TIPOGRAFIA E FONTES LOCAIS
   - Fonte oficial da marca: 'Handy Casual' em todos os títulos (ajustada +25% a +30%).
   - Fonte convencional: 'Nunito' para parágrafos, botões e dados.
   ========================================================================== */
@font-face {
  font-family: 'Handy Casual';
  src: url('assets/fonts/handy-casual.woff') format('woff'),
       url('assets/fonts/handy-casual.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tons Principais da Paleta Oficial */
  --brand-green-base: #59af6f;       /* Verde primário oficial vibrante */
  --brand-green-light: #72bb84;      /* Verde claro da paleta (hover) */
  --brand-green-soft: #90d5a1;       /* Verde suave / menta */
  --brand-green-tint: rgba(89, 175, 111, 0.1);

  --brand-rose: #e28aa2;             /* Rosa suave dos blocos */
  --brand-rose-dark: #a33853;
  --brand-rose-tint: rgba(226, 138, 162, 0.14);

  --brand-blue: #7bb0dd;             /* Azul celeste dos blocos */
  --brand-blue-dark: #275982;
  --brand-blue-tint: rgba(123, 176, 221, 0.14);

  --brand-yellow: #fcd775;           /* Amarelo dourado dos blocos */
  --brand-yellow-dark: #8c600c;
  --brand-yellow-tint: rgba(252, 215, 117, 0.2);

  /* Fundo Off-White Papel de Aquarela de Algodão Poroso (Sem Rajados) */
  --bg-paper: #faf7f1;
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  /* Cores de Texto */
  --text-title: var(--brand-green-base);
  --text-secondary: #2c3831;         /* Texto corrido e descritivo */
  --text-muted: #5e7368;             /* Informações secundárias e detalhes */

  --border-light: rgba(89, 175, 111, 0.18);
  --border-medium: rgba(89, 175, 111, 0.35);

  /* Fontes Oficiais */
  --font-brand: 'Handy Casual', sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1360px;
  --radius-subtle: 6px;
  --radius-pill: 999px;
  --radius-card: 12px;
}

/* Reset Geral */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. CONTRASTE DE TEXTURA (SEM RAJADOS)
   - Cabeçalho: Branco Puro (#FFFFFF) e 100% liso.
   - Corpo: Papel de aquarela de algodão poroso isotrópico (sem listras/linhas).
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  background-color: #faf9f6;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar: Branco puro e liso */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(89, 175, 111, 0.1);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 6px 0;
  text-align: center;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Cabeçalho Principal: Branco Puro (#FFFFFF) e Liso */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(89, 175, 111, 0.16);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  padding: 14px 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logos no Cabeçalho */
.brand-header-link {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-header-link:hover {
  opacity: 0.92;
}

.brand-logo-blocos {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-text {
  height: 78px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Menu de Navegação */
.nav-categories {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link-item {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: var(--brand-green-base);
}

/* Botão Carrinho no Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1.5px solid var(--brand-green-base);
  border-radius: var(--radius-pill);
  color: var(--brand-green-base);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cart-button:hover {
  background-color: var(--brand-green-base);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(89, 175, 111, 0.28);
}

.cart-button:hover .cart-badge {
  background-color: #ffffff;
  color: var(--brand-green-base);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  background-color: var(--brand-green-base);
  color: #ffffff;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--text-secondary);
  margin: 4px 0;
  border-radius: 2px;
}

/* ==========================================================================
   7. AJUSTE PROPORCIONAL DO TAMANHO DA FONTE DA MARCA (+25% A +30%)
   ========================================================================== */
h1, h2, h3, h4,
.hero-title,
.section-title,
.section-collection-subtitle,
.book-title,
.product-title-text,
.product-detail-title,
.cart-page-title,
.cart-drawer-title,
.cart-main-card-title,
.summary-box-title,
.cross-sell-title,
.author-title {
  font-family: var(--font-brand);
  font-weight: normal;
  letter-spacing: 0.025em;
}

/* 3. Cabeçalho de Abertura da Página A */
.hero-section {
  padding: 44px 0 32px 0;
  text-align: center;
}

.hero-title {
  font-size: 3.1rem; /* Aumentado em ~32% */
  color: var(--text-title);
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Seções da Vitrine */
.products-section {
  padding: 16px 0 54px 0;
}

.section-title-wrap {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-collection-subtitle {
  font-size: 1.95rem; /* Aumentado em ~30% */
  color: var(--text-title);
  line-height: 1.2;
}

.section-subtitle-plain {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Grid em Fileira Horizontal (5 Produtos lado a lado) */
.products-grid-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.products-grid-row-comp {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

/* Card do Produto: Compacto, Sem Borda */
.book-card {
  background-color: transparent;
  border: none;
  border-radius: var(--radius-card);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 10px;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.28s ease,
              box-shadow 0.28s ease;
}

.book-card:hover {
  transform: translateY(-5px);
  background-color: var(--bg-card-hover);
  backdrop-filter: blur(6px);
  border: none;
  box-shadow: 0 14px 32px rgba(21, 58, 41, 0.08);
}

/* 5. Imagem Estática no Hover: Sem troca de imagem */
.book-cover-area {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.5);
}

.book-cover-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease;
}

/* Badge Em Breve */
.book-badge-soon {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #fcedcb;
  color: #7d5408;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 3;
  border: 1px solid rgba(140, 96, 12, 0.2);
}

/* Corpo do Card */
.book-card-body {
  padding: 10px 2px 2px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  margin-bottom: 6px;
  line-height: 1.25;
}

.book-title a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-title-text {
  font-size: 1.24rem; /* Aumentado em ~30% para compensar a proporção */
  color: var(--text-title);
  letter-spacing: 0.02em;
  line-height: 1.22;
}

.product-title-meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.book-title a:hover .product-title-text {
  color: var(--brand-green-light);
}

/* Preço Compacto */
.book-price-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(89, 175, 111, 0.2);
}

.book-format-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.book-price-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-title);
}

/* ==========================================================================
   6. COMPORTAMENTO DO BOTÃO "ADICIONAR AO CARRINHO" NO HOVER
   - Texto some no hover;
   - Ícone de carrinho surge centralizado;
   - Fundo muda para o tom mais claro (--brand-green-light);
   - Altura e largura permanecem idênticas (zero layout shift).
   ========================================================================== */
.book-buy-btn {
  width: 100%;
  height: 38px;
  background-color: var(--brand-green-base);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
  margin-bottom: 6px;
}

.book-buy-btn .btn-text {
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.book-buy-btn .btn-hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  color: #ffffff;
}

.book-buy-btn:hover {
  background-color: var(--brand-green-light); /* Tom mais claro da paleta */
  box-shadow: 0 4px 14px rgba(89, 175, 111, 0.4);
}

.book-buy-btn:hover .btn-text {
  opacity: 0;
  transform: scale(0.9);
}

.book-buy-btn:hover .btn-hover-icon {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.book-buy-btn.is-disabled {
  background-color: var(--brand-yellow-tint);
  border: 1px solid var(--brand-yellow);
  color: var(--brand-yellow-dark);
}

.book-buy-btn.is-disabled:hover {
  background-color: #faecc7;
}

.book-buy-btn.is-disabled .btn-hover-icon {
  display: none;
}

.book-buy-btn.is-disabled:hover .btn-text {
  opacity: 1;
  transform: none;
}

/* Botão Baixar Prévia em Pílula */
.book-sample-download-btn {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--brand-green-base);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 10px;
  border: 1px dashed var(--brand-green-base);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.18s ease;
  cursor: pointer;
}

.book-sample-download-btn:hover {
  background-color: var(--brand-green-tint);
  border-color: var(--brand-green-light);
  color: var(--brand-green-light);
}

/* Efeito Hover na Descrição: 1º tópico completo + 2º tópico cortado ao meio */
.book-card-teaser {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  transition: max-height 0.34s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease,
              margin-top 0.28s ease,
              padding-top 0.28s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-top: 1px dashed transparent;
}

.book-card:hover .book-card-teaser {
  max-height: 84px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 8px;
  border-top-color: rgba(89, 175, 111, 0.25);
}

.teaser-topic-1 {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.teaser-topic-2 {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--text-secondary);
  height: 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
}

.glyph-bullet {
  color: var(--brand-green-base);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   2. 3ª SEÇÃO: SOBRE A GABI
   ========================================================================== */
.author-section {
  background-color: transparent;
  padding: 56px 0;
  border-top: 1px solid var(--border-light);
}

.author-card {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.author-photo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(89, 175, 111, 0.35);
  box-shadow: 0 8px 24px rgba(21, 58, 41, 0.08);
  flex-shrink: 0;
  background-color: #ffffff;
}

.author-title {
  font-size: 2.1rem; /* Aumentado em ~30% */
  color: var(--text-title);
  margin-bottom: 12px;
}

.author-bio {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.68;
  margin-bottom: 16px;
}

/* Rodapé Institucional */
.main-footer {
  background-color: transparent;
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-col-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-title);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--brand-green-base);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
}

/* ==========================================================================
   PÁGINA C - CARRINHO (ESTILO SÉRGIO MORSELLI)
   ========================================================================== */
.cart-page-section {
  padding: 32px 0 64px 0;
  flex: 1;
}

.cart-stepper-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.stepper-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #8c9b93;
}

.stepper-step.is-active {
  color: var(--brand-green-base);
}

.stepper-step.is-active .stepper-icon {
  background-color: var(--brand-green-tint);
  color: var(--brand-green-base);
}

.stepper-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(140, 155, 147, 0.12);
  color: #8c9b93;
}

.stepper-arrow {
  color: #b0c0b8;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-main-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(21, 58, 41, 0.05);
  overflow: hidden;
  margin-bottom: 48px;
}

.cart-main-card-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  background-color: rgba(248, 252, 249, 0.7);
}

.cart-main-card-title {
  font-size: 1.95rem; /* Ajustado */
  color: var(--text-title);
  margin: 0;
}

.cart-main-card-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 28px;
}

.cart-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-incentive-box {
  background-color: rgba(89, 175, 111, 0.08);
  border: 1.5px dashed var(--brand-green-base);
  border-radius: 10px;
  padding: 16px 20px;
}

.incentive-message {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.incentive-message strong {
  color: var(--brand-green-base);
}

.incentive-progress-track {
  width: 100%;
  height: 12px;
  background-color: rgba(89, 175, 111, 0.16);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.incentive-progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background-image: repeating-linear-gradient(
    45deg,
    var(--brand-green-base),
    var(--brand-green-base) 10px,
    var(--brand-green-light) 10px,
    var(--brand-green-light) 20px
  );
  background-size: 28px 28px;
  animation: stripeMove 2s linear infinite;
  transition: width 0.4s ease;
}

@keyframes stripeMove {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

.cart-table-wrap {
  width: 100%;
}

.cart-table-head {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  padding: 10px 14px;
  background-color: rgba(245, 250, 246, 0.8);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cart-table-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  transition: background-color 0.15s ease;
}

.cart-table-row:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.cart-table-prod-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-row-remove-btn {
  border: none;
  background: transparent;
  color: #b34a64;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.cart-row-remove-btn:hover {
  color: #ffffff;
  background-color: #b34a64;
}

.cart-row-thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #f5faf6;
  padding: 2px;
  flex-shrink: 0;
}

.cart-row-title-wrap {
  display: flex;
  flex-direction: column;
}

.cart-row-title {
  font-family: var(--font-brand);
  font-size: 1.3rem; /* Ajustado */
  color: var(--text-title);
  line-height: 1.22;
}

.cart-row-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-row-price {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.cart-qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  background-color: #ffffff;
}

.cart-qty-btn {
  border: none;
  background: transparent;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.cart-qty-num {
  width: 24px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.cart-row-subtotal {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
}

.cart-coupon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cart-coupon-input {
  padding: 10px 18px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  max-width: 240px;
  outline: none;
}

.cart-coupon-input:focus {
  border-color: var(--brand-green-base);
}

.cart-coupon-btn {
  padding: 10px 22px;
  background-color: var(--brand-green-base);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-coupon-btn:hover {
  background-color: var(--brand-green-light);
}

.coupon-feedback {
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-col-right {
  display: flex;
  flex-direction: column;
}

.cart-summary-box {
  background-color: rgba(250, 253, 251, 0.95);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.summary-box-title {
  font-size: 1.55rem; /* Ajustado */
  color: var(--text-title);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.summary-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.summary-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.discount-val {
  color: var(--brand-rose-dark);
}

.summary-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: 16px 0;
}

.total-row .summary-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.total-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-title);
}

.btn-checkout-pill {
  width: 100%;
  display: block;
  text-align: center;
  background-color: var(--brand-green-base);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.btn-checkout-pill:hover {
  background-color: var(--brand-green-light);
  box-shadow: 0 4px 16px rgba(89, 175, 111, 0.4);
}

.summary-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

.cart-cross-sell-section {
  margin-top: 16px;
}

.cross-sell-title {
  font-size: 1.95rem; /* Ajustado */
  color: var(--text-title);
  margin-bottom: 20px;
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================================================
   PÁGINA B - PRODUTO (produto.html)
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.product-carousel-container {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green-base);
  cursor: pointer;
  z-index: 5;
  transition: all 0.18s ease;
}

.carousel-arrow:hover {
  background-color: var(--brand-green-base);
  color: #ffffff;
}

.carousel-arrow-prev { left: 12px; }
.carousel-arrow-next { right: 12px; }

.carousel-dots-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(89, 175, 111, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.carousel-dot.is-active {
  background-color: var(--brand-green-base);
  transform: scale(1.2);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-title {
  margin-bottom: 8px;
  line-height: 1.25;
}
.product-title-main {
  font-family: var(--font-brand);
  font-size: 2.15rem;
  color: #2b573a;
  font-weight: normal;
  letter-spacing: 0.01em;
}
.product-title-paren {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #666666;
  font-weight: 400;
  margin-left: 8px;
  vertical-align: baseline;
}
.product-title-main {
  font-family: var(--font-brand);
  font-size: 2.15rem;
  color: #2b573a;
  font-weight: normal;
  letter-spacing: 0.01em;
}
.product-title-paren {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #666666;
  font-weight: 400;
  margin-left: 8px;
  vertical-align: baseline;
}

.product-detail-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 20px;
}

/* Carrinho Lateral Offcanvas */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 43, 36, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background-color: #ffffff;
  background-image: url('assets/textures/papel_aquarela_algodao.webp');
  background-repeat: repeat;
  background-size: 512px 512px;
  z-index: 1060;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.9);
}

.cart-drawer-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-drawer-title {
  font-size: 1.55rem; /* Ajustado */
  color: var(--text-title);
  margin: 0;
}

.cart-drawer-count {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-green-base);
  background-color: var(--brand-green-tint);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.cart-drawer-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cart-drawer-close:hover {
  color: var(--text-title);
  background-color: var(--brand-green-tint);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-subtle);
}

.drawer-item-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #f7faf8;
  padding: 2px;
  flex-shrink: 0;
}

.drawer-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drawer-item-title {
  font-family: var(--font-brand);
  font-size: 1.25rem; /* Ajustado */
  color: var(--text-title);
  line-height: 1.2;
}

.drawer-item-parentheses {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.drawer-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
}

.drawer-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.drawer-qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  background: #ffffff;
  padding: 1px 4px;
}

.qty-btn {
  border: none;
  background: transparent;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.qty-val {
  width: 22px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.drawer-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--brand-rose-dark);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-drawer-empty {
  text-align: center;
  padding: 48px 16px;
  margin: auto 0;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-text {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  color: var(--text-title);
  margin-bottom: 6px;
}

.empty-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 24px;
}

.cart-drawer-footer {
  padding: 20px 22px;
  border-top: 1px solid var(--border-light);
  background-color: rgba(255, 255, 255, 0.95);
}

.cart-drawer-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.subtotal-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.subtotal-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-title);
}

.cart-drawer-format-badge {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-drawer-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--brand-green-base);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-drawer-checkout-btn:hover {
  background-color: var(--brand-green-light);
  box-shadow: 0 4px 14px rgba(89, 175, 111, 0.4);
}

.cart-drawer-continue-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.cart-drawer-continue-btn:hover {
  border-color: var(--brand-green-base);
  color: var(--brand-green-base);
  background-color: #ffffff;
}

/* WhatsApp Flutuante com Digitação */
.whatsapp-flutuante-wrap {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 990;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.whatsapp-flutuante {
  pointer-events: auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.whatsapp-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-flutuante:hover .whatsapp-icon-circle {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.atlas-wpp-balao {
  background-color: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(18, 43, 36, 0.12);
  position: absolute;
  right: 66px;
  white-space: nowrap;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atlas-wpp-balao.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.atlas-wpp-balao__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: var(--brand-green-base);
  margin-left: 2px;
  vertical-align: middle;
  animation: wppBlink 0.8s infinite;
}

@keyframes wppBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.atlas-wpp-balao__medida {
  position: absolute;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
}

/* Modal de Lead */
.clean-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 43, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.clean-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.clean-modal-box {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--border-medium);
  box-shadow: 0 16px 36px rgba(18, 43, 36, 0.18);
  overflow: hidden;
}

.clean-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clean-modal-title {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  color: var(--text-title);
}

.clean-modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.clean-modal-body {
  padding: 20px;
}

.lead-form-group {
  margin-bottom: 14px;
}

.lead-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.lead-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.lead-form-input:focus {
  border-color: var(--brand-green-base);
}

.lead-submit-btn {
  width: 100%;
  background-color: var(--brand-green-base);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.15s ease;
}

.lead-submit-btn:hover {
  background-color: var(--brand-green-light);
}

/* Responsividade */
@media (max-width: 1100px) {
  .products-grid-row,
  .products-grid-row-comp,
  .cross-sell-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .cart-main-card-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cart-summary-box {
    position: static;
  }
  .author-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .brand-header-link {
    gap: 20px;
  }
  .brand-logo-blocos {
    height: 52px;
  }
  .brand-logo-text {
    height: 58px;
  }
  .nav-categories {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cart-table-head {
    display: none;
  }
  .cart-table-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 8px;
  }
  .cart-stepper {
    padding: 8px 16px;
    gap: 10px;
  }
  .stepper-step {
    font-size: 0.78rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .products-grid-row,
  .products-grid-row-comp,
  .cross-sell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .book-card {
    padding: 6px;
  }
  .book-buy-btn {
    font-size: 0.76rem;
  }
  .book-sample-download-btn {
    font-size: 0.7rem;
    padding: 6px 6px;
  }
  .product-title-text {
    font-size: 1.05rem;
  }
}


/* ==========================================================================
   ESTILOS DE DESCRIÇÃO RICA E CHECKOUT INFINITEPAY (PÁGINA B E CARRINHO)
   ========================================================================== */

/* Pílulas de Metadados na Página B */
.product-metadata-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.metadata-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(89, 175, 111, 0.12);
  color: var(--brand-green-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(89, 175, 111, 0.22);
}

/* Botão de Destaque InfinitePay na Página B */
.btn-infinitepay-checkout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #00d369 0%, #009c4d 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 13px 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 156, 77, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  margin-bottom: 6px;
  text-align: center;
}

.btn-infinitepay-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 156, 77, 0.38);
  filter: brightness(1.03);
}

.btn-infinitepay-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-infinitepay-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 2px;
}

/* Barra de Confiança / Entrega */
.product-trust-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.trust-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Blocos de Descrição Pedagógica */
.product-desc-block {
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.product-desc-heading {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: var(--brand-green-deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.015em;
}

.product-desc-heading .glyph-diamond {
  color: var(--brand-green-base);
  font-size: 1.15rem;
}

.product-desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-desc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.product-desc-bullet {
  color: var(--brand-green-base);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Botão Secundário WhatsApp no Carrinho */
.btn-secondary-wpp {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  background-color: transparent;
  color: var(--brand-green-deep);
  border: 1.5px solid var(--brand-green-base);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-secondary-wpp:hover {
  background-color: rgba(89, 175, 111, 0.08);
}


/* ==========================================================================
   CHECKOUT BLINDADO, ESTADO DO STEPPER E ETAPA 3 ("PEDIDO CONCLUÍDO")
   ========================================================================== */

.stepper-step.is-completed {
  color: var(--brand-green-deep);
}
.stepper-step.is-completed .stepper-icon {
  background-color: var(--brand-green-tint);
  color: var(--brand-green-deep);
}

.cart-customer-form {
  margin-top: 18px;
  margin-bottom: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.cart-form-title {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-green-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-form-group {
  margin-bottom: 10px;
}

.cart-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cart-form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text-title);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.cart-form-input:focus {
  border-color: var(--brand-green-base);
  box-shadow: 0 0 0 3px rgba(89, 175, 111, 0.15);
}

.cart-form-input.is-invalid {
  border-color: #e04b4b !important;
  background-color: #fff9f9 !important;
}

.cart-form-error {
  font-size: 0.78rem;
  color: #b71c1c;
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.4;
  display: none;
}

/* Painel da Etapa 3 ("Pedido Concluído") */
.cart-success-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(21, 58, 41, 0.05);
  padding: 36px 32px;
  margin-bottom: 48px;
}

.success-card-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d369 0%, #009c4d 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 18px rgba(0, 156, 77, 0.25);
}

.success-card-title {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  color: var(--text-title);
  margin-bottom: 8px;
}

.success-card-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.success-order-details-box {
  background-color: rgba(250, 253, 251, 0.95);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.order-detail-item {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.order-detail-item strong {
  color: var(--brand-green-deep);
}

.success-alert-box {
  background-color: #f1f8e9;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #2e7d32;
  line-height: 1.55;
}

.success-downloads-section {
  margin-bottom: 32px;
}

.success-downloads-title {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  color: var(--text-title);
  margin-bottom: 16px;
}

.success-downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.success-download-card {
  background-color: #ffffff;
  border: 1.5px solid rgba(89, 175, 111, 0.35);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.success-card-thumb {
  width: 76px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background-color: #fafdfb;
}

.success-card-info {
  flex: 1;
}

.success-card-name {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  color: var(--text-title);
  margin-bottom: 4px;
  line-height: 1.25;
}

.success-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00d369 0%, #009c4d 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 156, 77, 0.25);
}

.btn-download-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 156, 77, 0.35);
}

.success-support-box {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.success-wpp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.success-wpp-btn:hover {
  transform: translateY(-2px);
}

.security-warning-box {
  text-align: center;
  padding: 40px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.security-warning-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.security-warning-box h3 {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  color: #c62828;
  margin-bottom: 12px;
}

.security-warning-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}


/* ==========================================================================
   ESTILO EDITORIAL LIVRARIA DE ALTO PADRÃO (SÉRGIO MORSELLI)
   ========================================================================== */

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-top: 8px;
  margin-bottom: 64px;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1.414; /* Proporção A4 paisagem */
  background-color: transparent;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.07));
  transition: opacity 0.2s ease;
}

.product-detail-title {
  margin-bottom: 8px;
  line-height: 1.25;
}
.product-title-main {
  font-family: var(--font-brand);
  font-size: 2.15rem;
  color: #2b573a;
  font-weight: normal;
  letter-spacing: 0.01em;
}
.product-title-paren {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #666666;
  font-weight: 400;
  margin-left: 8px;
  vertical-align: baseline;
}
.product-title-main {
  font-family: var(--font-brand);
  font-size: 2.15rem;
  color: #2b573a;
  font-weight: normal;
  letter-spacing: 0.01em;
}
.product-title-paren {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #666666;
  font-weight: 400;
  margin-left: 8px;
  vertical-align: baseline;
}

.product-detail-title .product-title-meta {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #63756a;
  font-weight: 500;
  display: inline-block;
  margin-left: 4px;
}

.product-detail-price {
  font-size: 1.48rem;
  font-weight: 700;
  color: #1a2e22;
  margin-bottom: 6px;
}

.product-delivery-notice {
  font-size: 0.88rem;
  color: #6d7e73;
  margin-bottom: 24px;
  line-height: 1.45;
  font-style: italic;
}

.product-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.btn-editorial-cart {
  width: 100%;
  background-color: #3b7b4e;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(59, 123, 78, 0.2);
}

.btn-editorial-cart:hover {
  background-color: #316b43;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 123, 78, 0.28);
}

.btn-editorial-cart.is-disabled {
  background-color: #9ab3a3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-editorial-sample {
  width: 100%;
  background-color: transparent;
  color: #2b573a;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1px solid #b8cdc0;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.btn-editorial-sample:hover {
  background-color: rgba(59, 123, 78, 0.06);
  border-color: #3b7b4e;
}

.editorial-divider {
  height: 1px;
  background-color: #e5ece7;
  margin: 6px 0 26px 0;
}

.editorial-section-block {
  margin-bottom: 24px;
}

.editorial-section-title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: #1a2e22;
  margin-bottom: 12px;
  font-weight: normal;
  letter-spacing: 0.015em;
}

.editorial-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editorial-bullet-item {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: #3d4f43;
}

.editorial-bullet-item::before {
  content: "*";
  position: absolute;
  left: 0;
  top: -1px;
  color: #3b7b4e;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
}

.editorial-sublist {
  list-style: none;
  padding-left: 14px;
  margin: 8px 0 4px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.editorial-subitem {
  position: relative;
  font-size: 0.90rem;
  line-height: 1.58;
  color: #435549;
}

@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}


/* ==========================================================================
   ESTILO LIVRARIA SÉRGIO MORSELLI: PÁGINA C (CARRINHO) E PÁGINA D (CHECKOUT)
   ========================================================================== */

/* Barra de Etapas (Stepper) em pílula verde suave */
.morselli-stepper-wrap {
  margin: 18px 0 28px 0;
}
.morselli-stepper {
  background-color: #f1f8f3;
  border-radius: 9999px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
}
.morselli-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8c9b90;
  font-weight: 500;
  text-decoration: none;
}
.morselli-step.is-active {
  color: #2b573a;
  font-weight: 700;
}
.morselli-step-icon {
  display: inline-flex;
  align-items: center;
}
.morselli-step-arrow {
  color: #b4c5b9;
  font-size: 0.95rem;
}

/* Layout Principal de 2 Colunas */
.morselli-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .morselli-cart-layout {
    grid-template-columns: 1fr;
  }
}

/* Card Branco com Cantos Arredondados */
.morselli-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e7ece8;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.morselli-card-title {
  font-size: 1.35rem;
  color: #222222;
  margin-bottom: 22px;
  font-weight: 700;
}

/* Banner de Frete Grátis / Liberação em Verde Claro com Barra Listrada */
.morselli-frete-banner {
  background-color: #dff6e5;
  border: 1px dashed #7bc990;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.morselli-frete-text {
  color: #1f5e32;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.morselli-frete-bar-track {
  width: 100%;
  height: 8px;
  background-color: #bee8ca;
  border-radius: 9999px;
  overflow: hidden;
}
.morselli-frete-bar-fill {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #2c4f36,
    #2c4f36 10px,
    #3f6c4c 10px,
    #3f6c4c 20px
  );
}

/* Tabela de Produtos Sérgio Morselli */
.morselli-table-head {
  display: grid;
  grid-template-columns: 1fr 100px 110px 100px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2ef;
  font-size: 0.76rem;
  font-weight: 700;
  color: #777777;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.morselli-table-row {
  display: grid;
  grid-template-columns: 1fr 100px 110px 100px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #f1f4f2;
}
.morselli-prod-col {
  display: flex;
  align-items: center;
  gap: 14px;
}
.morselli-remove-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #999999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.morselli-remove-btn:hover {
  color: #d32f2f;
}
.morselli-thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #fafafa;
}
.morselli-prod-title {
  font-size: 0.95rem;
  color: #333333;
  font-weight: 500;
  line-height: 1.35;
}
.morselli-price-col {
  color: #666666;
  font-size: 0.92rem;
  text-align: center;
}
.morselli-qty-col {
  display: flex;
  justify-content: center;
}
.morselli-qty-pill {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #d9e2db;
  border-radius: 9999px;
  padding: 3px 8px;
  gap: 8px;
}
.morselli-qty-btn {
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 2px 6px;
}
.morselli-qty-btn:hover {
  color: #2b573a;
}
.morselli-qty-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333333;
  min-width: 14px;
  text-align: center;
}
.morselli-subtotal-col {
  text-align: right;
  font-weight: 700;
  color: #2b573a;
  font-size: 1rem;
}

/* Linha do Cupom */
.morselli-coupon-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.morselli-coupon-input {
  flex: 1;
  max-width: 240px;
  padding: 9px 14px;
  border: 1px solid #d9e2db;
  border-radius: 9999px;
  font-size: 0.88rem;
  outline: none;
}
.morselli-coupon-btn {
  background-color: transparent;
  color: #2b573a;
  border: 1px solid #2b573a;
  border-radius: 9999px;
  padding: 9px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s;
}
.morselli-coupon-btn:hover {
  background-color: #2b573a;
  color: #ffffff;
}

/* Card Total no Carrinho (Coluna Direita) */
.morselli-summary-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #222222;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.morselli-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.92rem;
  color: #666666;
}
.morselli-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px 0;
  border-top: 1px solid #eef2ef;
  font-size: 1.05rem;
  color: #222222;
  font-weight: 600;
}
.morselli-total-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #2b573a;
}
.btn-continuar-finalizacao {
  display: block;
  width: 100%;
  background-color: #3b7b4e;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 4px 12px rgba(59, 123, 78, 0.22);
}
.btn-continuar-finalizacao:hover {
  background-color: #316b43;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 123, 78, 0.3);
}

/* ==========================================================================
   PÁGINA D (CHECKOUT / DETALHES DE COBRANÇA) - CONFORME FOTO DO SÉRGIO MORSELLI
   ========================================================================== */
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.checkout-form-group.full-width {
  grid-column: 1 / -1;
}
.checkout-label {
  font-size: 0.86rem;
  color: #444444;
  font-weight: 600;
}
.checkout-label span.req {
  color: #e53935;
}
.checkout-input, .checkout-select {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #d9e2db;
  border-radius: 9999px;
  font-size: 0.90rem;
  color: #333333;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.18s;
}
.checkout-input:focus, .checkout-select:focus {
  border-color: #3b7b4e;
}

/* Bloco de Pagamento na Página D */
.payment-methods-box {
  margin-top: 24px;
  border-top: 1px solid #eef2ef;
  padding-top: 20px;
}
.payment-option-row {
  margin-bottom: 14px;
}
.payment-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  font-size: 0.95rem;
}
.payment-cards-icons {
  display: flex;
  gap: 6px;
  margin: 10px 0 16px 26px;
}
.payment-card-badge {
  background-color: #f7f9f7;
  border: 1px solid #e1e7e2;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #444444;
}


/* Badge PDF Card */
.book-badge-pdf {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffffff;
  color: var(--brand-green-base, #1b4d3e);
  font-family: var(--font-body, inherit);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(27, 77, 62, 0.22);
  z-index: 3;
  pointer-events: none;
}

/* Badge PDF no Carrossel */
.carousel-badge-pdf {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #ffffff;
  color: var(--brand-green-base, #1b4d3e);
  font-family: var(--font-body, inherit);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(27, 77, 62, 0.24);
  z-index: 10;
  pointer-events: none;
}

/* Botão Oficial Instagram na Seção Sobre a Gabi */
.author-instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background-color: #ffffff;
  color: var(--brand-green-base, #1b4d3e);
  border: 1.5px solid var(--brand-green-base, #1b4d3e);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 6px;
}

.author-instagram-btn:hover {
  background-color: var(--brand-green-base, #1b4d3e);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(27, 77, 62, 0.18);
}

.author-instagram-btn strong {
  font-weight: 800;
}

/* ==========================================================================
   POLIMENTO RESPONSIVO COMPLETO PARA TABLET E CELULAR (SEM CORTES / SEM OVERFLOW)
   ========================================================================== */
@media (max-width: 1024px) {
  .brand-header-link {
    gap: 18px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-link-item {
    font-size: 0.86rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }
  .container {
    padding: 0 16px;
  }
  .main-header {
    padding: 10px 0;
  }
  .header-inner {
    gap: 10px;
  }
  .brand-header-link {
    gap: 10px;
  }
  .brand-logo-blocos {
    height: 42px;
  }
  .brand-logo-text {
    height: 46px;
  }
  .cart-button {
    padding: 8px 12px;
    font-size: 0.84rem;
    gap: 6px;
  }
  .hero-section {
    padding: 28px 0 18px 0;
  }
  .hero-title {
    font-size: 1.95rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 0.96rem;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .morselli-stepper-wrap {
    margin: 12px 0 20px 0;
  }
  .morselli-stepper {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
    font-size: 0.8rem;
    border-radius: 16px;
  }
  .morselli-card {
    padding: 20px 16px;
  }
  .morselli-card-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }
  .morselli-table-head {
    display: none;
  }
  .morselli-table-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "prod prod"
      "qty subtotal";
    gap: 12px;
    padding: 16px 0;
  }
  .morselli-prod-col {
    grid-area: prod;
    gap: 10px;
  }
  .morselli-price-col {
    display: none;
  }
  .morselli-qty-col {
    grid-area: qty;
    justify-content: flex-start;
  }
  .morselli-subtotal-col {
    grid-area: subtotal;
    align-self: center;
    font-size: 1rem;
  }
  .morselli-coupon-row {
    flex-direction: column;
    align-items: stretch;
  }
  .morselli-coupon-input {
    max-width: 100%;
    font-size: 16px;
  }
  .checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .checkout-input,
  .checkout-select {
    font-size: 16px;
  }
  .payment-cards-icons {
    flex-wrap: wrap;
    margin-left: 0;
  }
  .main-footer {
    padding-bottom: 84px;
  }
  .whatsapp-float,
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  .products-grid-row,
  .products-grid-row-comp,
  .cross-sell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .book-card {
    padding: 8px;
  }
  .book-price-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .product-title-text {
    font-size: 0.96rem;
    line-height: 1.25;
  }
  .product-title-meta {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .carousel-thumbnails {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-thumb-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 400px) {
  .products-grid-row,
  .products-grid-row-comp,
  .cross-sell-grid {
    grid-template-columns: 1fr;
  }
  .brand-logo-text {
    height: 38px;
  }
  .brand-logo-blocos {
    height: 36px;
  }
}

/* ==========================================================================
   CORREÇÃO DEFINITIVA: MENU MOBILE, PROPORÇÃO DA LOGO E TÍTULOS DOS PRODUTOS
   ========================================================================== */

.product-title-text {
  font-size: 1.9rem !important;
  line-height: 1.2 !important;
}

.book-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.book-card-actions {
  margin-top: auto !important;
}

.product-title-main {
  font-size: 2.4rem !important;
}

.mobile-nav-toggle {
  position: relative;
  z-index: 102;
}

.mobile-nav-toggle span {
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .main-header {
    position: sticky;
    top: 0;
    padding: 10px 0 !important;
  }

  .header-inner {
    position: relative;
    gap: 8px !important;
  }

  .brand-header-link {
    gap: 10px !important;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-logo-blocos {
    height: 54px !important;
    width: auto !important;
  }

  .brand-logo-text {
    height: 62px !important;
    width: auto !important;
  }

  .header-actions {
    gap: 8px !important;
    flex-shrink: 0;
  }

  .cart-button {
    padding: 7px 11px !important;
    font-size: 0.82rem !important;
  }

  .mobile-nav-toggle {
    display: block !important;
    padding: 6px 4px !important;
  }

  .nav-categories {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid rgba(89, 175, 111, 0.14);
    border-bottom: 2px solid rgba(89, 175, 111, 0.24);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    padding: 8px 20px 14px 20px;
    z-index: 101;
  }

  .nav-categories.is-open {
    display: block !important;
  }

  .nav-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(89, 175, 111, 0.12);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-link-item {
    display: block;
    width: 100%;
    padding: 13px 4px !important;
    font-size: 1.02rem !important;
    white-space: normal !important;
  }

  .product-title-text {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  .product-title-main {
    font-size: 1.95rem !important;
  }
}

@media (max-width: 640px) {
  .products-grid-row,
  .products-grid-row-comp,
  .cross-sell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-title-text {
    font-size: 1.58rem !important;
    line-height: 1.2 !important;
    min-height: 2.45em;
  }

  .btn-add-cart,
  .btn-sample-download {
    white-space: normal !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }
}

@media (max-width: 400px) {
  .products-grid-row,
  .products-grid-row-comp,
  .cross-sell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .book-card {
    padding: 8px !important;
  }

  .btn-add-cart,
  .btn-sample-download {
    font-size: 0.72rem !important;
    padding: 8px 6px !important;
  }

  .brand-logo-blocos {
    height: 46px !important;
  }

  .brand-logo-text {
    height: 52px !important;
  }

  .product-title-text {
    font-size: 1.52rem !important;
  }
}
