
  :root {
    --bg: #faf9f6;
    --bg-soft: #f1efea;
    --surface: #ffffff;
    --surface-2: #f3f1ec;
    --line: rgba(23,23,26,0.08);
    --line-strong: rgba(23,23,26,0.16);
    --ink: #17171a;
    --ink-dim: #4a4b50;
    --steel: #6e6f74;
    --gray: #6f6f6d;
    --gray-bright: #2b2b2d;
    --gray-glow: rgba(111,111,109,0.16);
    --accent-red: #c0392b;
    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Work Sans', -apple-system, sans-serif;
    --tag-cut: 14px;
  }

  * { box-sizing: border-box; }
  /* header é sticky (~84px) — sem isso, um link âncora (#estoque, #diferenciais, #contato) rola o
     alvo pra debaixo do header, cortando o topo da seção. Cobre tanto o salto nativo do navegador
     ao entrar direto numa URL com #âncora quanto o scrollIntoView() do site.js (route()). */
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

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

  a { color: inherit; text-decoration: none; }

  .wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 56px);
  }

  ::selection { background: var(--gray); color: #fff; }

  :focus-visible {
    outline: 2px solid var(--gray-bright);
    outline-offset: 3px;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0;
    text-wrap: balance;
    color: var(--ink);
  }

  p { margin: 0; }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-bright);
  }
  .eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gray);
    display: block;
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 15px 26px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    clip-path: polygon(0 0, calc(100% - var(--tag-cut)) 0, 100% var(--tag-cut), 100% 100%, 0 100%);
  }
  .btn-primary {
    background: var(--gray);
    color: #fff;
  }
  .btn-primary:hover {
    background: var(--gray-bright);
    box-shadow: 0 10px 30px -8px var(--gray-glow);
    transform: translateY(-2px);
  }
  .btn-ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
    /* Sem o corte no canto — o clip-path de .btn corta a caixa toda, mas só o fundo sólido do
       btn-primary "preenche" até a linha do corte direito. No ghost, que não tem fundo, sobra só
       contorno até ali e o canto parece faltando (sem borda nenhuma fechando aquele triângulo). */
    clip-path: none;
  }
  .btn-ghost:hover {
    border-color: var(--gray);
    color: var(--gray-bright);
    transform: translateY(-2px);
  }
  .btn svg { width: 17px; height: 17px; flex: none; }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--gray);
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .brand img { height: 40px; width: auto; }
  nav.links {
    display: flex;
    align-items: center;
    gap: 34px;
  }
  nav.links a {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    position: relative;
    padding: 4px 0;
    transition: color 0.15s ease;
  }
  nav.links a:hover { color: #fff; }
  nav.links a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    background: #fff;
    transition: right 0.2s ease;
  }
  nav.links a:hover::after { right: 0; }
  .nav-cta { display: flex; align-items: center; gap: 16px; }
  .nav-cta .btn-primary { background: var(--ink); }
  .nav-cta .btn-primary:hover { background: #000; }
  .nav-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
  }
  .nav-phone span { font-size: 0.72rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
  .nav-phone strong { font-size: 0.95rem; font-variant-numeric: tabular-nums; color: #fff; }

  /* Botão hambúrguer — só existe pra ativar o drawer mobile abaixo de 980px, mesmo ponto em que
     nav.links some (ver @media 980px mais abaixo). */
  .nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .nav-menu-btn svg { width: 19px; height: 19px; }

  /* Drawer com os mesmos links de nav.links + um WhatsApp CTA próprio — sem isso, /sobre,
     /vendedores e /privacidade (páginas de verdade, não mais só âncoras da home) ficam sem
     nenhum jeito de navegar entre si num celular. */
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 96;
  }
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 97;
    width: min(300px, 84vw);
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--gray-bright);
    box-shadow: -12px 0 30px rgba(0,0,0,0.35);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .mobile-nav.is-open { transform: translateX(0); }
  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .mobile-nav-head span {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
  }
  .mobile-nav-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    cursor: pointer;
  }
  .mobile-nav-close svg { width: 16px; height: 16px; }
  /* :not(.btn) — o CTA de WhatsApp no fim do drawer é um .btn normal, não um item de lista */
  .mobile-nav a:not(.btn) {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.85);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .mobile-nav a:not(.btn):hover { color: #fff; }

  /* ---------- Hero ---------- */
  /* Foto real da fachada (recortada — ver public/assets/img/fachada-hero.jpg) como fundo, com um
     scrim escuro por cima pro texto continuar legível em qualquer trecho da imagem. Substituiu a
     ilustração de carro em SVG que existia só como placeholder antes de haver foto de verdade. */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 130px 0 110px;
    background-color: var(--ink);
  }
  /* Foto em camada própria, borrada — filter:blur() direto em .hero borraria o texto junto, por
     isso vai num ::before separado, maior que a seção (inset negativo) pra o desfoque não revelar
     uma borda nítida na beirada, cortada pelo overflow:hidden acima. */
  .hero::before {
    content: "";
    position: absolute;
    inset: -20px;
    background-image: var(--hero-photo);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    filter: blur(5px);
  }
  /* Scrim por cima da foto borrada, embaixo do texto. */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(10,10,12,0.88) 0%, rgba(10,10,12,0.62) 48%, rgba(10,10,12,0.32) 100%);
  }
  .hero-copy { position: relative; z-index: 1; max-width: 640px; }
  .hero .eyebrow { color: rgba(255,255,255,0.78); }
  .hero .eyebrow::before { background: var(--accent-red); }
  .hero h1 {
    margin-top: 18px;
    font-size: clamp(2.6rem, 4.6vw + 0.6rem, 4.6rem);
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #fff;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--accent-red);
  }
  .hero p.lead {
    margin-top: 22px;
    max-width: 46ch;
    font-size: 1.08rem;
    color: rgba(255,255,255,0.82);
  }
  .hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }
  /* .hero-actions sozinha é só o layout (flex/gap) — reaproveitada em várias seções de fundo
     claro (detalhe do veículo, Sobre, Vendedores). O botão branco só faz sentido dentro do
     banner escuro de verdade, por isso o escopo é .hero .hero-actions, não a classe sozinha. */
  .hero .hero-actions .btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
  .hero .hero-actions .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.12); }

  /* ---------- Carro em destaque da semana ---------- */
  /* Horizontal, ocupando o .wrap inteiro (largura total em vez de um card estreito centralizado
     com sobra dos dois lados) — mas baixo de propósito: foto e informações lado a lado, não
     empilhadas, então a altura total fica parecida com a de um único card do grid deitado. */
  .featured-block { padding: 32px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  /* Mesmo estilo de .eyebrow (fonte, tracking, tracinho ::before) — só troca a cor pro vermelho. */
  .featured-eyebrow { color: var(--accent-red); margin-bottom: 18px; }
  .featured-eyebrow::before { background: var(--accent-red); }

  .featured-card {
    display: grid;
    grid-template-columns: minmax(220px, 380px) 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .featured-card:hover { border-color: var(--line-strong); box-shadow: 0 16px 34px -20px rgba(0,0,0,0.5); }
  .featured-media {
    position: relative;
    display: block;
    height: 298px;
    background: radial-gradient(120% 100% at 20% 0%, rgba(111,111,109,0.10), transparent 60%), var(--surface-2);
  }
  .featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .featured-media svg.car-placeholder { width: 100%; height: 100%; padding: 26px; box-sizing: border-box; }
  .featured-media .car-tag { position: absolute; top: 14px; left: 14px; }
  .featured-info {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
  }
  .featured-info h2 { font-size: clamp(1.15rem, 1vw + 0.9rem, 1.5rem); text-transform: uppercase; }
  .featured-specs { display: flex; flex-wrap: wrap; gap: 8px; }
  .featured-price { font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; }
  .featured-price .price-old { font-size: 0.6em; font-weight: 600; color: var(--steel); text-decoration: line-through; margin-right: 8px; }
  .featured-price .price-promo { color: var(--accent-red); }
  .featured-actions { display: flex; flex-wrap: wrap; gap: 12px; }

  /* ---------- Barra de busca (estoque) ---------- */
  .search-bar {
    position: relative;
    margin-bottom: 22px;
  }
  .search-bar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--steel); pointer-events: none; }
  .search-bar input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
  }
  .search-bar input:focus { outline: none; border-color: var(--gray-bright); }
  .search-bar input::-webkit-search-cancel-button { cursor: pointer; }

  /* ---------- Trust strip ---------- */
  .trust {
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
  }
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .trust-item {
    padding: 26px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-left: 1px solid var(--line);
  }
  .trust-item:first-child { border-left: none; }
  .trust-item svg {
    width: 26px; height: 26px; flex: none;
    stroke: var(--gray-bright);
    margin-top: 2px;
  }
  .trust-item h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
  }
  .trust-item p {
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--steel);
  }

  /* ---------- Section shell ---------- */
  section.block { padding: 88px 0; }
  .block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 44px;
  }
  .block-head h2 {
    margin-top: 14px;
    font-size: clamp(1.9rem, 1.6vw + 1.1rem, 2.6rem);
    text-transform: uppercase;
  }
  .block-head p { color: var(--steel); max-width: 40ch; margin-top: 14px; }

  /* ---------- Inventory ---------- */
  .inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  /* Estoque não fica preso ao .wrap de 1220px do resto do site — a seção inteira (título, filtros
     e grid) se estica com a tela. auto-fit + minmax (não repeat(4,...) fixo) se comporta como um
     fluxo "inline-block": cada card tem no mínimo 300px (o bastante pra caber os 3 chips numa linha
     só, e garantir pelo menos 3 por linha nas larguras de desktop mais comuns), e a quantidade por
     linha nasce sozinha da largura disponível — 3, 4, 5... o que couber — sem precisar de
     breakpoints manuais. O min() dentro do minmax evita que o card force overflow horizontal numa
     tela mais estreita que 300px. O grid "Você também pode gostar" do detalhe continua fixo em 3
     (.inventory-grid puro, não tocado aqui). */
  #estoque .wrap { max-width: none; }
  #estoque .car-card { min-width: 300px; }
  /* auto-fill, não auto-fit: com auto-fit, 1 resultado sozinho esticava pra ocupar a largura da
     linha inteira (o card ficava enorme). auto-fill mantém o card no tamanho normal e só deixa as
     colunas vazias sobrando à direita — comportamento padrão de qualquer grid de resultado de busca. */
  #estoque .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
  .car-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  }
  .car-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  }
  .car-media {
    position: relative;
    height: 260px;
    overflow: hidden;
    background:
      radial-gradient(120% 100% at 20% 0%, rgba(111,111,109,0.10), transparent 60%),
      var(--surface-2);
    border-bottom: 1px solid var(--line);
  }
  .car-tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 5px 10px 4px;
    color: #fff;
  }
  .car-tag.novo { background: var(--gray); }
  .car-tag.semi { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink-dim); }
  /* Segunda tag com o ano, espelhada do outro lado da foto (Novo/Seminovo fica à esquerda). */
  .car-tag-year { left: auto; right: 16px; background: var(--gray-bright); }
  /* SVG ilustrativo (sem foto cadastrada) — preenche a mesma caixa que a foto real ocuparia,
     com o respiro (padding) que o desenho precisa pra não colar nas bordas. */
  .car-media svg.car-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 28px 22px 14px;
    box-sizing: border-box;
  }
  .car-media .car-body { fill: none; stroke: var(--ink-dim); stroke-width: 2.2; }
  .car-media .car-wheel { fill: var(--bg); stroke: var(--steel); stroke-width: 2.2; }
  .car-media .car-glass { fill: none; stroke: var(--gray-bright); stroke-width: 1.6; opacity: 0.8; }
  .car-card:hover .car-body { stroke: var(--ink); }
  /* Foto real do veículo — preenche a caixa inteira (o mockup só previa o SVG acima). */
  .car-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

  .car-body-copy { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .car-body-copy h3 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 600; }
  /* Preço isolado, sem rótulo "à vista" — só o número. clamp em vez de um tamanho fixo, pra preços
     de 7 dígitos (R$ 1.250.000) não estourarem o card. */
  .car-price { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.08rem, 0.9rem + 0.55vw, 1.34rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
  /* Preço "de/por" quando há promoção simulada (ver "Gerenciar publicação" no admin) — normal
     riscado e menor, promocional em destaque na cor de acento. */
  .car-price .price-old { font-size: 0.6em; font-weight: 600; color: var(--steel); text-decoration: line-through; margin-right: 6px; }
  .car-price .price-promo { color: var(--accent-red); }
  /* Emblemas de texto livre (ex: "IPVA Pago") — mesmo selo vermelho em card e detalhes. No card
     ficam sobre o rodapé da foto (ver .car-media .car-badges); na tela de detalhes ficam abaixo
     do título, em fluxo normal (ver .detail-info .car-badges mais abaixo). */
  .car-badges { display: flex; flex-wrap: wrap; gap: 6px; }
  .car-media .car-badges { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
  /* Só o selo em cima da foto (grid do estoque) fica com opacidade reduzida — no destaque e na
     tela de detalhes (fora de .car-media) o emblema fica com opacidade normal. */
  .car-media .car-badge { opacity: 0.86; }
  .car-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--accent-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  /* Chips de km/câmbio no rodapé do card (ano virou a segunda .car-tag, ver acima) — o card inteiro
     virou o link, substituindo o antigo texto corrido + botão "Ver detalhes" (ver site.js). */
  /* nowrap + cada chip podendo encolher (min-width:0) — os 3 ficam sempre lado a lado, igual no
     mobile e no desktop; se o texto não couber, o próprio chip trunca com reticências em vez de
     empurrar um deles pra segunda linha. */
  .car-specs { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; }
  /* Teste: ícone em cima, descritivo embaixo (em vez de lado a lado) — cantos menos arredondados
     que a pílula anterior, porque um retângulo alto fica melhor com conteúdo empilhado. */
  /* Tamanho fixo (não flex:auto) — os 3 chips saem sempre do mesmo tamanho, texto mais longo
     trunca com reticências (.car-spec-chip-text) em vez de esticar o chip. */
  .car-spec-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 80px;
    min-width: 0;
    flex: 0 1 auto;
    padding: 8px 4px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink-dim);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  /* Câmbio precisa de mais espaço que os outros dois pra caber "AUTOMÁTICO" sem truncar. */
  .car-spec-chip-wide { width: 108px; }
  .car-card:hover .car-spec-chip { border-color: var(--ink-dim); background: var(--surface-2); }
  .car-spec-chip svg { width: 15px; height: 15px; flex: none; color: var(--accent-red); }
  .car-spec-chip-text { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .inventory-foot { margin-top: 40px; display: flex; justify-content: center; }

  /* ---------- Filter tabs ---------- */
  .filter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
  .filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
  .filter-tab {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink-dim);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .filter-tab:hover { border-color: var(--gray); color: var(--ink); }
  .filter-tab.is-active { background: var(--gray); border-color: var(--gray); color: #fff; }
  .filter-toggle-btn { display: none; padding: 10px 18px 9px; }
  .filter-toggle-btn svg { width: 16px; height: 16px; }

  /* ---------- Filter panel (sidebar / mobile drawer) ---------- */
  .estoque-layout { display: grid; grid-template-columns: 272px 1fr; gap: 40px; align-items: start; }
  .filter-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }
  .filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
  }
  .filter-panel-head h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .filter-close { display: none; background: none; border: none; color: var(--steel); padding: 4px; cursor: pointer; }
  .filter-close svg { width: 18px; height: 18px; }
  .filter-body { padding: 4px 22px; }
  .filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .filter-group:last-child { border-bottom: none; }
  .filter-group h4 {
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 12px;
  }
  .check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    color: var(--ink-dim);
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.15s ease;
  }
  .check-row:hover { color: var(--ink); }
  .check-row input { width: 15px; height: 15px; accent-color: var(--gray); flex: none; cursor: pointer; }
  .check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 10px; }
  .range-row { display: flex; gap: 10px; }
  .range-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
  .range-field span { font-size: 0.7rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; }
  .range-field input {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.86rem;
    padding: 9px 10px;
  }
  .range-field input:focus-visible { outline: 2px solid var(--gray-bright); outline-offset: 1px; }
  .filter-actions { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
  .filter-actions .btn { width: 100%; }
  .filter-apply-mobile { display: none; }
  .filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 9, 0.65);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .filter-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .results-count {
    font-size: 0.8rem;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 18px;
  }
  .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    border: 1px dashed var(--line-strong);
    color: var(--ink-dim);
  }
  .empty-state a { margin-top: 18px; }

  /* ---------- Categories ---------- */
  .cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .cat-card {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    border: 1px solid var(--line);
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .cat-card:hover { border-color: var(--gray); background: var(--surface); }
  .cat-card svg { width: 40px; height: 40px; stroke: var(--gray-bright); }
  .cat-card h4 { font-size: 1.02rem; font-weight: 600; font-family: var(--font-body); }
  .cat-card span { font-size: 0.8rem; color: var(--steel); }

  /* ---------- About ---------- */
  .about {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .about-copy { max-width: 620px; margin: 0 auto; text-align: center; }
  .about-copy .eyebrow { justify-content: center; }
  .about h2 {
    margin-top: 14px;
    font-size: clamp(1.9rem, 1.8vw + 1rem, 2.5rem);
    text-transform: uppercase;
  }
  .about p.body-copy { margin-top: 20px; color: var(--ink-dim); }

  /* ---------- CTA banner ---------- */
  .cta-banner {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
  }
  .cta-banner h2 {
    font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
    text-transform: uppercase;
    max-width: 16ch;
  }
  .cta-banner p { color: var(--ink-dim); margin-top: 10px; max-width: 42ch; }

  /* ---------- Página institucional (Sobre / Vendedores / Privacidade) ---------- */
  .page-header { padding: 70px 0 8px; }
  .page-header h1 {
    margin-top: 14px;
    font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
    text-transform: uppercase;
    line-height: 1.03;
  }
  .page-header .lead { margin-top: 18px; max-width: 60ch; color: var(--ink-dim); font-size: 1.05rem; }

  .about-story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
  .about-story-copy h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); text-transform: uppercase; }
  .about-story-copy .body-copy { margin-top: 16px; color: var(--ink-dim); line-height: 1.7; }
  .about-story-copy .body-copy + .body-copy { margin-top: 12px; }
  .about-story-media img { width: 100%; height: 420px; object-fit: cover; display: block; }

  .seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
  .seller-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .seller-photo, .seller-photo-placeholder { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 16px; }
  .seller-photo { object-fit: cover; background: var(--surface-2); }
  .seller-photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--steel); }
  .seller-photo-placeholder svg { width: 38px; height: 38px; }
  .seller-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; text-transform: uppercase; }
  .seller-bio { margin-top: 10px; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.5; }
  .seller-card .btn { margin-top: 20px; width: 100%; }

  .legal-content { max-width: 760px; }
  .legal-content h2 { margin-top: 42px; font-size: 1.25rem; text-transform: uppercase; }
  .legal-content h2:first-child { margin-top: 0; }
  .legal-content p { margin-top: 14px; color: var(--ink-dim); line-height: 1.75; }
  .legal-content ul { margin-top: 14px; padding-left: 22px; color: var(--ink-dim); line-height: 1.75; }
  .legal-content li { margin-top: 6px; }

  /* ---------- Footer ---------- */
  footer { padding: 60px 0 34px; background: var(--gray); }
  .foot-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 40px;
  }
  .foot-brand img { height: 30px; margin-bottom: 14px; }
  .foot-brand p { color: rgba(255,255,255,0.72); font-size: 0.88rem; max-width: 32ch; }
  .foot-col h5 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
    font-weight: 600;
  }
  .foot-col a, .foot-col p {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 10px;
  }
  .foot-col a:hover { color: #fff; }
  .foot-social { display: flex; gap: 12px; margin-top: 4px; }
  .foot-social a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.32);
    color: rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .foot-social a:hover { border-color: #fff; color: #fff; }
  .foot-social-whatsapp { background: var(--ink); border-color: var(--ink); color: #fff; }
  .foot-social-whatsapp:hover { background: #000; border-color: #000; color: #fff; }
  .foot-social svg { width: 16px; height: 16px; }
  .foot-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.18);
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    flex-wrap: wrap;
    gap: 10px;
  }
  .foot-bottom a:hover { color: #fff; text-decoration: underline; }

  /* ---------- Vehicle detail page ---------- */
  #detail-view { padding: 52px 0 96px; }
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--steel);
    margin-bottom: 36px;
    transition: color 0.15s ease;
  }
  .back-link:hover { color: var(--gray-bright); }
  .back-link svg { width: 15px; height: 15px; }

  .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .detail-media {
    position: relative;
    height: 380px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
      radial-gradient(120% 100% at 20% 0%, rgba(111,111,109,0.12), transparent 60%),
      var(--surface);
  }
  .detail-media .car-tag { position: absolute; top: 18px; left: 18px; z-index: 2; }
  .detail-car-art { position: absolute; inset: 0; }
  .detail-car-art svg { width: 100%; height: 100%; padding: 40px 28px 30px; box-sizing: border-box; }
  .detail-car-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .detail-car-art.has-photos { cursor: zoom-in; }
  .thumb-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
  .thumb {
    flex: 1;
    min-width: 64px;
    max-width: 96px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    background: var(--surface-2);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease;
  }
  .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumb:hover { border-color: var(--line-strong); }
  .thumb.is-active { border-color: var(--ink-dim); }

  /* ---------- Lightbox (galeria expandida) ---------- */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,10,0.94);
  }
  .lightbox[hidden] { display: none; }
  .lightbox-img { max-width: 88vw; max-height: 84vh; object-fit: contain; }
  .lightbox-close,
  .lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
  }
  .lightbox-close:hover,
  .lightbox-nav:hover { background: rgba(255,255,255,0.18); }
  .lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; }
  .lightbox-close svg { width: 18px; height: 18px; }
  .lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
  .lightbox-nav svg { width: 20px; height: 20px; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
  }

  .detail-info h1 {
    margin-top: 14px;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
    text-transform: uppercase;
    line-height: 1.05;
  }
  /* Só um respiro pequeno entre o título e os emblemas — aqui eles ficam em fluxo normal (não
     sobre a foto, como no card). */
  .detail-info .car-badges { margin-top: 6px; }
  .detail-price { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
  .detail-price span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); }
  .detail-price strong { font-family: var(--font-body); font-weight: 700; font-size: 2.1rem; font-variant-numeric: tabular-nums; }
  .detail-price .price-old { font-size: 1.3rem; font-weight: 600; color: var(--steel); text-decoration: line-through; }
  .detail-price .price-promo { color: var(--accent-red); }

  .detail-specs {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--line);
  }
  .spec-item {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .spec-item:nth-child(2n) { border-right: none; }
  .spec-item:nth-last-child(-n+2) { border-bottom: none; }
  .spec-item span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--steel); }
  .spec-item strong { font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; font-variant-numeric: tabular-nums; }

  .detail-desc { margin-top: 26px; color: var(--ink-dim); max-width: 56ch; }
  .detail-options { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { font-size: 0.8rem; padding: 7px 12px; border: 1px solid var(--line-strong); color: var(--ink-dim); }

  .similar-block { margin-top: 84px; }
  .similar-block h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 28px;
  }

  /* ---------- Reveal animation ---------- */
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  [data-reveal].in-view { opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    [data-reveal] { transition: none; opacity: 1; transform: none; }
    .drift { animation: none; }
  }

  /* ---------- Responsive ---------- */
  /* #estoque não precisa de breakpoint manual pro grid — auto-fit + minmax (ver acima) já se
     ajusta sozinho em qualquer largura. Só o resto da seção (sidebar de filtros vira gaveta). */
  @media (max-width: 980px) {
    nav.links, .nav-phone { display: none; }
    .nav-menu-btn { display: inline-flex; }
    .hero { padding: 100px 0 80px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-left: none; }
    .inventory-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .similar-block .inventory-grid { grid-template-columns: repeat(2, 1fr); }
    .about-story { grid-template-columns: 1fr; gap: 30px; }
    .about-story-media { order: -1; }

    .estoque-layout { grid-template-columns: 1fr; }
    .filter-toggle-btn { display: inline-flex; }
    .filter-panel {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      top: auto;
      max-height: 82vh;
      z-index: 95;
      transform: translateY(100%);
      transition: transform 0.3s ease;
      border-left: none;
      border-right: none;
      border-bottom: none;
    }
    .filter-panel.is-open { transform: translateY(0); }
    .filter-close { display: block; }
    .filter-apply-mobile { display: block; }
  }
  @media (max-width: 620px) {
    .brand img { height: 40px; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-media { height: 180px; }
    .featured-info { padding: 20px; }
    /* Vira botão só-ícone no header (o rótulo continua por extenso dentro do drawer) — com
       hambúrguer + WhatsApp + logo, o texto "Chamar no WhatsApp" não cabe numa tela de celular. */
    .nav-cta .btn-primary .btn-label { display: none; }
    .nav-cta .btn-primary { padding: 10px; }
    .inventory-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-card { padding: 16px 14px; gap: 16px; }
    .cat-card svg { width: 28px; height: 28px; }
    .cat-card h4 { font-size: 0.92rem; }
    .cat-card span { font-size: 0.74rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-left: none; border-top: 1px solid var(--line); }
    .trust-item:first-child { border-top: none; }
    .foot-grid { grid-template-columns: 1fr; gap: 30px; }
    .block-head { flex-direction: column; align-items: flex-start; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .about-copy { text-align: left; }
    .about-copy .eyebrow { justify-content: flex-start; }
    .about-copy .hero-actions { justify-content: flex-start !important; }
    .detail-specs { grid-template-columns: 1fr; }
    .spec-item { border-right: none; }
    .spec-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
    .spec-item:last-child { border-bottom: none; }
    .similar-block .inventory-grid { grid-template-columns: 1fr; }
  }
