/* Variaveis Globais e Reset */
:root {
  --branco: #ffffff;
  --verde-floresta: #206A0B;
  --verde-escuro: #004000;
  --verde-lima: #8DFB36;
  --preto: #000000;
  
  --primary-dark: #000000;
  --surface-dark: #004000;
  --surface-card: #0d1f0d;
  --bg-page: #ffffff;
  --bg-white: #ffffff;
  --border-light: #e5ece5;
  --border-dark: #123016;
  --text-main: #000000;
  --text-muted: #59655a;
  --text-light: #ffffff;
  --danger: #d90429;
  --warning: #ffb703;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* clip (e nao hidden) evita rolagem lateral sem quebrar position: sticky */
  overflow-x: clip;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo-image {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: #f0f7ef;
  color: var(--verde-floresta);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid #d7ebd6;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name,
.logo-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--preto);
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-sub,
.logo-subtitle {
  font-size: 10px;
  font-weight: 800;
  color: var(--verde-floresta);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--verde-floresta);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: #f0f4f0;
  font-size: 15px;
  position: relative;
}

.action-btn:hover {
  background: #e2ede2;
}

.action-btn.cart-btn {
  color: var(--verde-floresta);
  background: #f0f7ef;
  border: 1px solid #d7ebd6;
}

.action-btn.cart-btn:hover {
  background: var(--verde-floresta);
  color: #ffffff;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--verde-floresta);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Busca no cabecalho: a barra fica SEMPRE visivel entre o menu e os botoes
   de acao (a lupa foi removida). O filtro acontece ao digitar. */
.header-search {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 620px;
  margin: 0 auto;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 6px 0 13px;
  background: #f0f4f0;
  /* Uma unica borda verde no container inteiro. O input interno nao tem
     borda/outline, para nao criar a linha dupla que aparecia no foco. */
  border: 1px solid var(--verde-floresta);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Indicador de foco do conjunto: so o fundo clareia, sem segunda linha. */
.header-search-form:focus-within {
  background: #ffffff;
}

.header-search-icone {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--text-main);
}

.header-search-input:focus,
.header-search-input:focus-visible {
  border: none;
  outline: none;
  box-shadow: none;
}

.header-search-fechar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.header-search-fechar:hover {
  background: #e2ede2;
  color: var(--preto);
}

.header-search-resultados {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 62vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  z-index: 130;
}

.header-search-resultados.aberto {
  display: block;
}

.header-search-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  text-align: left;
  color: var(--text-main);
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.header-search-item:last-child {
  border-bottom: none;
}

.header-search-item:hover,
.header-search-item.ativa {
  background: #f0f7ef;
}

.header-search-item-foto {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f7f5;
  flex-shrink: 0;
}

.header-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.header-search-item-nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--preto);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search-item-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--verde-floresta);
}

.header-search-vazio {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.header-search-ver-todos {
  width: 100%;
  padding: 11px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--verde-floresta);
  background: #f6fbf5;
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}

.header-search-ver-todos:hover {
  background: #eaf6e8;
}

.mobile-menu-toggle {
  display: none;
  font-size: 20px;
  color: var(--text-main);
  padding: 6px;
}
/* Drawer Mobile */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-white);
  z-index: 1000;
  border-left: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: right 0.35s ease-in-out;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-drawer .nav-menu {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  display: none;
}

.mobile-backdrop.open {
  display: block;
}

/* Botoes Universais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: var(--verde-floresta);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--verde-escuro);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--verde-floresta);
  border: 1px solid var(--verde-floresta);
}

.btn-outline:hover {
  background: var(--verde-floresta);
  color: #ffffff;
  border-color: var(--verde-floresta);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1ebc59;
}

/* Footer Padronizado */
.footer {
  background: var(--primary-dark);
  color: #c0ccc2;
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 32px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--verde-lima);
}

.footer-desc {
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0 20px;
  color: #9cb19f;
}

.footer-col .logo .brand-name {
  color: #ffffff;
}

/* Logo do rodape: arte BRANCA com transparencia (logo2.png), feita para o
   fundo escuro. O header usa a arte verde (logo.png) sobre fundo claro.
   Sem bloco de fundo: a branca desapareceria sobre fundo branco. */
.footer-col .logo .brand-logo-image {
  height: 54px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 12px;
  color: #a9baa9;
}

.footer-col ul li a:hover {
  color: var(--verde-lima);
  padding-left: 4px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 34px;
  height: 34px;
  background: var(--surface-card);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid var(--border-dark);
}

.social-links a:hover {
  background: var(--verde-floresta);
  color: #ffffff;
  border-color: var(--verde-floresta);
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pay-badge {
  background: var(--surface-card);
  color: #d1ded2;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7d8f80;
}

.dev-credit {
  color: #b1c7b3;
  font-weight: 600;
}

.dev-credit a {
  color: var(--verde-lima);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dev-credit a:hover {
  color: #ffffff;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  border-left: 4px solid var(--verde-lima);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-item i {
  color: var(--verde-lima);
  font-size: 16px;
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

.toast-item.toast-erro {
  background: #dc2626;
  color: #ffffff;
  border-left: 4px solid #991b1b;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.45), 0 8px 10px -6px rgba(220, 38, 38, 0.25);
}

.toast-item.toast-erro i {
  color: #ffffff;
}

/* Utilitarios */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.text-center {
  text-align: center;
}

.strike {
  text-decoration: line-through;
}

.text-warning {
  color: var(--warning);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.mt-20 {
  margin-top: 20px;
}

/* Paginas Institucionais e Confirmacao */
.page-hero-banner {
  background: #ffffff;
  color: var(--preto);
  padding: 36px 32px 24px;
  border-bottom: 1px solid var(--border-light);
}

.page-hero-banner h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--preto);
}

.page-hero-banner p {
  color: #556257;
  font-size: 14px;
}

.institutional-container {
  max-width: 960px;
  margin: 40px auto 70px;
  padding: 0 24px;
}

.institutional-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  line-height: 1.8;
  color: #2b3a2f;
  font-size: 14px;
}

.institutional-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.institutional-card h2:first-child {
  margin-top: 0;
}

.institutional-card p {
  margin-bottom: 14px;
}

.institutional-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.institutional-card ul li {
  margin-bottom: 8px;
}

.success-order-box {
  text-align: center;
  padding: 40px 20px;
}

.success-check-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: #eaf8e8;
  color: #20ba5a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
  animation: badgePop 0.5s ease-out;
}

.success-order-details {
  background: #f7faf7;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  max-width: 440px;
  margin: 24px auto;
  text-align: left;
  font-size: 13px;
}

/* Pagina /obrigado: titulo, aviso, destaque "FALTA POUCO!", seta e acoes. */
.success-order-box h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 12px;
}

.obrigado-aviso {
  max-width: 560px;
  margin: 6px auto 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

.falta-pouco-box {
  max-width: 520px;
  margin: 0 auto 6px;
  padding: 18px 20px 8px;
  background: #eaf8e8;
  border: 1px solid #cdeccb;
  border-radius: 12px;
}

.falta-pouco-titulo {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--verde-escuro);
  margin-bottom: 6px;
}

.falta-pouco-box p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: #2b3a2f;
}

.seta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--verde-floresta);
  animation: setaDesce 1.4s ease-in-out infinite;
}

@keyframes setaDesce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

.obrigado-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 28px;
}

.obrigado-acoes .btn {
  flex: 1 1 240px;
  max-width: 320px;
}

.btn-whatsapp-pulsa {
  animation: whatsappPulsa 1.8s ease-in-out infinite;
}

@keyframes whatsappPulsa {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.obrigado-texto-sem-wa {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 12px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .seta-whatsapp,
  .btn-whatsapp-pulsa {
    animation: none;
  }
}

.justify-center {
  justify-content: center;
}

.d-flex {
  display: flex;
}


/* Botao de WhatsApp flutuante: fixo na janela do navegador, fora do
   header, do menu, do banner e do rodape. E so UMA bolinha - Instagram e
   Facebook ficam apenas no rodape. z-index 500 mantem o botao por cima do
   conteudo normal, mas por baixo do drawer (1000), do backdrop (999) e dos
   toasts (9999), entao nunca bloqueia menu ou janela.
   A sombra leva !important porque sem-sombra.css zera box-shadow em *. */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1eb754;
  color: #ffffff;
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #0b6b33;
  outline-offset: 3px;
}

/* Link "Ver informacoes" nos cards: parece texto, mas leva a pagina do
   produto. Discreto de proposito. */
.product-ver-info {
  display: block;
  margin-top: 10px;
  padding: 7px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--verde-floresta, #206a0b);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: var(--transition);
}

.product-ver-info:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
}