
/* ─── BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #E9E5DC;   /* fundo fora do box */
  color: #1A1410;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── BOX CENTRAL ──────────────────────────────────── */
/* Tudo vive aqui. Sem nada full-width. */
.box {
  max-width: 1200px;
  margin: 0 auto;
  background: #FAFAF7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 8px 40px rgba(0,0,0,.12);
  min-height: 100vh;
}

/* ─── HEADER ───────────────────────────────────────── */
/* position:sticky — mantém espaço no fluxo. Zero padding-top no body. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #E2DDD4;
}

/* Linha logo + busca */
.hl {
  display: flex;
  align-items: center;     /* alinha tudo no centro vertical */
  gap: 14px;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid #E2DDD4;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
/* .logo-sq removido */
.logo-txt { font-size: 1.05rem; font-weight: 800; color: #1A1410; letter-spacing: -.03em; }
.logo-txt span { color: #E8490F; }
/* .logo-tag removido */

/* Busca */
.search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 38px;          /* altura fixa e explícita */
  max-width: 480px;
  background: #F3F0E8;
  border: 1.5px solid #E2DDD4;
  border-radius: 999px;
  padding: 0 5px 0 14px;
  gap: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within {
  background: #fff;
  border-color: #E8490F;
  box-shadow: 0 0 0 3px rgba(232,73,15,.12);
}
.search input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  font-family: inherit; font-size: .875rem; color: #1A1410;
  /* line-height explícito para não crescer o container */
  line-height: 38px;
  height: 38px;
}
.search input::placeholder { color: #9B9590; }
.search-btn {
  flex-shrink: 0;
  height: 28px;            /* altura explícita */
  padding: 0 16px;
  border: none; border-radius: 999px;
  background: #E8490F; color: #fff;
  font-family: inherit; font-size: .75rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
  /* garante que não força o pai a crescer */
  display: flex; align-items: center;
}
.search-btn:hover { background: #FF5E20; }

/* Linha de categorias */
/* ─── SLIDER DE CATEGORIAS ─────────────────────────── */
.cats-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E2DDD4;
  background: #fff;
  height: 44px;
  overflow: hidden;
}
.cat-all {
  flex-shrink: 0;
  align-self: center;
  margin: 0 8px 0 14px;
  padding-right: 14px;
  border-right: 1.5px solid #E2DDD4;
}
.cats-slider-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
}
.cats-track {
  display: inline-flex;      /* inline-flex: colapsa ao conteúdo, nunca quebra */
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  white-space: nowrap;
  flex-wrap: nowrap;
  will-change: transform;
}
.cats-track .cat-pill { flex-shrink: 0; }
.cats-slider-wrap::before,
.cats-slider-wrap::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 28px;
  pointer-events: none; z-index: 2;
}
.cats-slider-wrap::before { left: 0;  background: linear-gradient(to right, #fff 30%, transparent); }
.cats-slider-wrap::after  { right: 0; background: linear-gradient(to left,  #fff 30%, transparent); }

.cat-pill {
  /* dimensões completamente fixas */
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: .73rem;
  font-weight: 500;
  color: #7A736A;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
  /* elimina qualquer diferença de renderização entre browsers */
  line-height: 1;
  -webkit-appearance: none;
}
.cat-pill:hover   { color: #1A1410; background: #F3F0E8; }

.pill-ct {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.1);
  color: inherit;
  font-size: .56rem; font-weight: 700;
  border-radius: 20px;
  padding: 0 5px;
  min-width: 18px; height: 14px;
  margin-left: 3px;
  line-height: 1;
}
.cat-pill.on .pill-ct { background: rgba(255,255,255,.25); }

.cat-pill.on {
  color: #E8490F;
  border-color: #E8490F;
  background: #FEF0EB;
  font-weight: 700;
}

/* ─── BARRA DE FILTROS ─────────────────────────────── */
/* Sticky logo abaixo do header. Como o header já é sticky,
   top = altura do header (104px = 60+1+44-1). Mas usamos CSS var
   atualizada por JS para flexibilidade. */
.filter-bar {
  position: sticky;
  top: 104px;   /* fallback; JS ajusta se necessário */
  z-index: 190;
  background: #fff;
  border-bottom: 1px solid #E2DDD4;
}
.filter-in {
  display: flex;
  align-items: center;   /* TUDO centrado verticalmente — resolve desalinhamento */
  height: 44px;          /* altura fixa do container */
  padding: 0 24px;
  gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-in::-webkit-scrollbar { display: none; }

/* Todos os filhos têm height igual → alinhamento perfeito */
.filter-in > * { flex-shrink: 0; }

.fl {
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: #9B9590; white-space: nowrap;
  line-height: 1;
}

/* Select: altura 30px igual aos toggles */
.fs {
  height: 30px;
  padding: 0 26px 0 10px;
  border: 1.5px solid #E2DDD4;
  border-radius: 999px;
  background: #F3F0E8;
  font-family: inherit; font-size: .73rem; font-weight: 600;
  color: #1A1410;
  cursor: pointer; outline: none;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239B9590' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .15s;
  /* força a altura sem deixar o navegador expandir */
  line-height: 28px;
  white-space: nowrap;
}
.fs:focus { border-color: #E8490F; background-color: #fff; }

.fsep {
  width: 1px; height: 18px;
  background: #E2DDD4;
  align-self: center;   /* centraliza o divisor dentro do flex */
}

/* Toggle: mesmo height 30px dos selects */
.ft {
  height: 30px;
  padding: 0 12px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid #E2DDD4;
  border-radius: 999px;
  background: #F3F0E8;
  font-family: inherit; font-size: .72rem; font-weight: 600;
  color: #7A736A;
  cursor: pointer; white-space: nowrap;
  transition: all .15s;
  line-height: 1;
}
.ft:hover { color: #1A1410; border-color: #1A1410; }
.ft.on    { color: #E8490F; border-color: #E8490F; background: #FEF0EB; }

.f-spacer { flex: 1; }
#clbl {
  font-size: .7rem; font-weight: 600;
  color: #9B9590; white-space: nowrap;
  line-height: 1;
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  padding: 2.75rem 24px 2.25rem;
  background: #FAFAF7;
  border-bottom: 1px solid #E2DDD4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-eyebrow {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #E8490F; margin-bottom: .5rem;
}
.hero-h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
}
.hero-h1 em { color: #E8490F; font-style: normal; }
.hero-sub {
  margin-top: .5rem;
  font-size: .875rem; color: #7A736A; max-width: 400px; line-height: 1.65;
}
.stats { display: flex; gap: .625rem; flex-wrap: wrap; }
.stat {
  min-width: 78px; padding: .6rem 1rem; text-align: center;
  background: #fff; border: 1px solid #E2DDD4; border-radius: 10px;
}
.stat-n {
  display: block;
  font-size: 1.85rem; font-weight: 800; letter-spacing: -.04em;
  line-height: 1; color: #E8490F;
}
.stat-l {
  font-size: .58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #9B9590; margin-top: 3px;
}

/* ─── GRID DE PRODUTOS ─────────────────────────────── */
.page-wrap { padding: 2rem 24px 3.5rem; }
.cat-block { margin-bottom: 2.5rem; }
.cat-hd {
  display: flex; align-items: center; gap: .625rem;
  padding-bottom: .75rem; margin-bottom: 1rem;
  border-bottom: 2px solid #E2DDD4;
}
.cat-hd h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.cat-n {
  font-size: .65rem; font-weight: 700;
  color: #fff; background: var(--c-acc);
  border-radius: 20px; padding: 2px 9px;
  margin-left: 6px;
  letter-spacing: .02em;
  align-self: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: .875rem;
}

/* ─── CARD ─────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1.5px solid #E2DDD4;
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .2s cubic-bezier(.34,1.4,.64,1),
              box-shadow .2s ease, border-color .15s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  border-color: rgba(232,73,15,.35);
}
.c-pct {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: #E8490F; color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: 3px 7px; border-radius: 5px;
  box-shadow: 0 2px 6px rgba(232,73,15,.35);
}
/* .c-com removido — dado de afiliado */
.c-img {
  aspect-ratio: 1; padding: .625rem;
  background: #F7F5F0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.c-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
}
.card:hover .c-img img { transform: scale(1.07); }
.c-badge {
  padding: 4px 12px;
  font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.c-badge.imp { background: #1D4ED8; color: #fff; }
.c-badge.ms  { background: #C2410C; color: #fff; }
.c-body {
  padding: .8rem; flex: 1;
  display: flex; flex-direction: column; gap: .35rem;
}
.c-img-link { display: block; text-decoration: none; }
.c-name {
  font-size: .78rem; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none; color: var(--c-text);
}
.c-name:hover { color: var(--c-acc); text-decoration: underline; }
.c-rat { font-size: .65rem; color: #9B9590; display: flex; align-items: center; gap: .25rem; }
.c-stars { color: #F59E0B; letter-spacing: -1px; }
.c-price { margin-top: .2rem; }
.c-was { font-size: .68rem; color: #9B9590; text-decoration: line-through; }
.c-now { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.c-eco { font-size: .65rem; font-weight: 700; color: #15803D; margin-top: 2px; }
.c-parc { font-size: .65rem; color: #555; margin-top: 2px; }
.parc-sj { color: #15803D; font-weight: 700; }
.c-tags { display: flex; gap: 3px; flex-wrap: wrap; margin-top: .2rem; }
.tag { font-size: .58rem; font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.tag-fr { background: #DCFCE7; color: #15803D; }
/* .tag-ex removido — dado de afiliado */
.c-foot { padding: .7rem .8rem; border-top: 1px solid #F0EDE6; }
.c-cta {
  display: flex; align-items: center; justify-content: center;
  height: 36px;
  text-decoration: none;
  background: #E8490F; color: #fff;
  font-family: inherit; font-size: .78rem; font-weight: 700;
  border-radius: 8px;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 8px rgba(232,73,15,.25);
}
.c-cta:hover { background: #FF5E20; transform: translateY(-1px); }

/* ─── EMPTY ────────────────────────────────────────── */
#empty { display: none; text-align: center; padding: 4rem 1rem; }
#empty p { color: #9B9590; margin: .75rem 0 1.5rem; }
.btn-reset {
  height: 38px; padding: 0 22px;
  background: #E8490F; color: #fff; border: none;
  border-radius: 8px; font-family: inherit;
  font-size: .875rem; font-weight: 700; cursor: pointer;
}

/* ─── BACK TO TOP ──────────────────────────────────── */
#btt {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 300;
  width: 40px; height: 40px; border-radius: 50%;
  background: #1A1410; color: #fff; border: none;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#btt.on { opacity: 1; pointer-events: auto; }
#btt:hover { transform: translateY(-2px); }

/* ─── FOOTER ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #E2DDD4;
  background: #fff;
  padding: 20px 24px 24px;
  font-size: .72rem; color: #9B9590;
}
.footer-disc {
  background: #FFF8E7;
  border: 1px solid #F5E6C0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: .73rem;
  line-height: 1.6;
  color: #5C4A1E;
}
.footer-disc strong { color: #3D2F00; }
.footer-disc a { color: #B45309; text-decoration: underline; }
.footer-copy {
  text-align: center;
  font-size: .68rem;
  color: #B0AA9F;
}



/* ─── CTA WHATSAPP ──────────────────────────────────────── */
.wa-cta-wrap {
  padding: 28px 16px;
  display: flex;
  justify-content: center;
}
.wa-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 20px;
  padding: 20px 28px;
  max-width: 520px;
  width: 100%;
  text-decoration: none;
  color: var(--c-text);
  box-shadow: 0 4px 24px rgba(37,211,102,.12);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.wa-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.25); }
/* Fundo branco interno (z-index 1) */
.wa-cta::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  border-radius: 18px;
  background: #fff;
  z-index: 1;
}
/* Disco giratório que gera a borda animada */
.wa-border-spinner {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    transparent 0deg,
    transparent 160deg,
    #25D366 180deg,
    #A8F0C0 210deg,
    #128C7E 230deg,
    transparent 250deg,
    transparent 360deg
  );
  animation: wa-spin 2.8s linear infinite;
  z-index: 0;
}
@keyframes wa-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.wa-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.wa-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,211,102,.35);
}
.wa-icon svg { width: 26px; height: 26px; }
.wa-text { flex: 1; }
.wa-text strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.wa-text span {
  font-size: .75rem;
  color: #6B7280;
  margin-top: 2px;
  display: block;
}
.wa-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 14px;
  white-space: nowrap;
  letter-spacing: .03em;
}
@media (max-width: 400px) {
  .wa-btn { display: none; }
  .wa-cta { padding: 14px 18px; }
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 680px) {
  .hl, .cats, .filter-in, .page-wrap, .hero { padding-left: 16px; padding-right: 16px; }
  .hl { height: 54px; }
  /* .logo-tag removido */
  .hero { padding-top: 1.75rem; padding-bottom: 1.5rem; }
  .hero-h1 { font-size: 1.75rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
  .stats { gap: .5rem; }
  .stat { min-width: 70px; }
  .stat-n { font-size: 1.6rem; }
  /* Ajusta top do filter-bar em mobile */
  .filter-bar { top: 98px; }
}
@media (max-width: 380px) {
  .grid { gap: .5rem; }
  .c-now { font-size: 1.15rem; }
}
