/* Auto&Cia — site público (do mockup B). Paleta do AGENTS.md; display Alfa Slab One (OFL), corpo na fonte do sistema. */
@font-face { font-family: "Alfa Slab One"; src: url("/static/alfa.ttf") format("truetype"); font-display: swap; }
:root {
  --creme: #F5EFE3; --papel: #FFFDF8; --tinta: #1C1917; --ferrugem: #C2410C; --ferrugem-escura: #9A3412;
  --verde: #00873E; --cinza: #57534E; --borda: #E3D9C6; --r: 12px;
  --display: "Alfa Slab One", Georgia, serif;
  --sombra: 0 1px 2px rgba(28, 25, 23, .08), 0 8px 18px -10px rgba(28, 25, 23, .35);
  /* ruído de papel/graxa: SVG inline, sem arquivo extra */
  --ruido: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --zebra: repeating-linear-gradient(-45deg, var(--ferrugem) 0 14px, var(--tinta) 14px 28px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--creme); color: var(--tinta); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
body::before { content: ""; position: fixed; inset: 0; background: var(--ruido); opacity: .07; pointer-events: none; z-index: 0; }
body > * { position: relative; z-index: 1; }
.topo { z-index: 20; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--ferrugem); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Topo: placa preta sobre creme, busca sempre visível */
.topo { background: var(--creme); border-bottom: 3px solid var(--tinta); position: sticky; top: 0; z-index: 20; }
.topo-in { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.logo img { display: block; height: 48px; width: auto; }
.busca { flex: 1 1 280px; display: flex; border: 2px solid var(--tinta); border-radius: var(--r); overflow: hidden; background: var(--papel); }
.busca input { flex: 1; min-width: 0; border: 0; padding: .7rem .9rem; font-size: 1rem; background: transparent; color: var(--tinta); outline: none; }
.busca input::placeholder { color: #78716C; }
.busca button, .filtro button { border: 0; background: var(--tinta); color: var(--creme); font-weight: 800; font-size: .95rem; padding: 0 1.1rem; min-height: 46px; cursor: pointer; }

/* Hero: foto real de Opala sob degradê escuro + ficha de busca guiada */
.hero { color: var(--creme); padding: 1.1rem 0 1.4rem; background: linear-gradient(180deg, rgba(28, 25, 23, .45), rgba(28, 25, 23, .92) 62%), url("/static/opala.jpg") 60% 30% / cover, var(--tinta); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--ruido); opacity: .25; mix-blend-mode: overlay; pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 1rem; }
.selo { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #FDBA74; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; padding: .2rem 0; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 6.5vw, 3.4rem); line-height: 1.08; max-width: 20ch; }
.hero-txt h1 { margin-top: .45rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero h1 em { font-style: normal; color: #FB923C; }
.hero p { margin-top: .6rem; max-width: 52ch; color: #E7E0D2; }
.exemplos { display: none; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.exemplos a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid rgba(245, 239, 227, .45); font-size: .9rem; font-weight: 600; }
.exemplos a::before { content: "⌕"; margin-right: .4rem; opacity: .7; }
.exemplos a:hover { background: rgba(245, 239, 227, .12); }

.guia { position: relative; overflow: hidden; background: var(--papel); color: var(--tinta); border-radius: 14px; padding: calc(1rem + 8px) 1rem 1rem; display: grid; gap: .5rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.guia::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--zebra); }
.guia h2 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.15; }
.guia label { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .5rem; row-gap: .25rem; font-size: .8rem; font-weight: 800; color: var(--cinza); text-transform: uppercase; letter-spacing: .06em; }
.guia label span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tinta); color: var(--creme); font-size: .75rem; }
.guia select { grid-column: 1 / -1; min-height: 48px; padding: 0 .7rem; font-size: 1rem; border: 2px solid var(--tinta); border-radius: 10px; background: #fff; color: var(--tinta); }
.guia select:disabled { border-color: var(--borda); background: #F5F1EA; color: #A8A29E; }
.guia button { min-height: 52px; border: 0; border-radius: 10px; background: var(--ferrugem); color: #fff; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.guia button:hover { background: var(--ferrugem-escura); }

main.wrap { flex: 1; padding-top: 1.4rem; padding-bottom: 2.5rem; }
/* Título como letreiro pintado: faixa ferrugem embaixo */
.titulo { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; margin: 1.8rem 0 1rem; }
.titulo::after { content: ""; display: block; width: 64px; height: 6px; margin-top: .45rem; background: var(--zebra); border-radius: 2px; }
main > .titulo:first-child { margin-top: 0; }
.sub { color: var(--cinza); font-size: .9rem; }

/* Carros como placas (mesma linguagem da logo) */
.placas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.placa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 92px; padding: .7rem .5rem; background: var(--tinta); color: var(--creme); border-radius: 10px; box-shadow: inset 0 0 0 4px var(--tinta), inset 0 0 0 6px var(--creme); text-align: center; transition: transform .15s; }
.placa::before, .placa::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--creme); }
.placa::before { left: 12px; } .placa::after { right: 12px; }
.placa small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.placa b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.placa span { font-size: .8rem; font-weight: 700; color: #FB923C; font-variant-numeric: tabular-nums; }
a.placa:hover { transform: translateY(-2px); }

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.cat { display: flex; align-items: center; min-height: 48px; padding: .5rem .8rem; background: var(--papel); border: 1px solid var(--borda); border-left: 4px solid var(--ferrugem); border-radius: 8px; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.cat:hover { border-color: var(--ferrugem); }

/* Grade de peças */
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem .7rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--papel); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(154, 52, 18, .55); }
.thumb, .pdp-foto { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #EDE4D3 0 12px, #E6DCC8 12px 24px); color: #A8A29E; font-size: .8rem; font-weight: 600; }
.loja { position: absolute; right: .45rem; bottom: .45rem; padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.loja-ml { background: #FFE600; color: #2D3277; }
.loja-shopee { background: #D73211; color: #fff; }
.frete { position: absolute; left: .45rem; top: .45rem; padding: .2rem .5rem; border-radius: 6px; background: var(--verde); color: #fff; font-size: .68rem; font-weight: 800; }
.aval { font-size: .78rem; color: var(--cinza); }
.estrelas { color: #B45309; font-weight: 800; }
.vendedor { font-size: .74rem; font-weight: 700; color: #006B31; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frete-txt { color: var(--verde); }
.card-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: .65rem .7rem .75rem; }
.cond { align-self: flex-start; padding: .15rem .45rem; border-radius: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; border: 1.5px solid currentColor; }
.cond-nova { color: #006B31; }
.cond-nos { color: #fff; background: var(--ferrugem); border-color: var(--ferrugem); }
.cond-usada { color: var(--cinza); }
.cond-recondicionada { color: #fff; background: var(--tinta); border-color: var(--tinta); }
.cond-replica { color: var(--ferrugem-escura); border-style: dashed; }
.selos { display: flex; flex-wrap: wrap; gap: .3rem; }
.oem { padding: .15rem .45rem; border-radius: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: #1D4ED8; border: 1.5px solid #1D4ED8; }
.card h3 { font-size: .88rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.stretch:focus-visible) { outline: 3px solid var(--ferrugem); outline-offset: 2px; }
.stretch:focus-visible { outline: none; }
.fit { font-size: .8rem; font-weight: 700; color: var(--cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit::before { content: "🚗\FE0E  "; }
.fit-sem { font-weight: 600; font-style: italic; }
.fit-sem::before { content: ""; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; }
.preco { display: flex; flex-direction: column; min-height: 2.9rem; justify-content: flex-end; }
.de { font-size: .78rem; color: var(--cinza); }
.por { font-family: var(--display); font-size: 1.35rem; color: var(--verde); line-height: 1.05; font-variant-numeric: tabular-nums; }
.por small { font-family: system-ui, sans-serif; font-size: .75rem; font-weight: 700; color: var(--cinza); }
.sem-preco { font-size: .85rem; font-weight: 700; color: var(--cinza); }
.btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; background: var(--ferrugem); color: #fff; font-weight: 800; font-size: .95rem; transition: background .15s; }
.card:hover .btn, .btn:hover { background: var(--ferrugem-escura); }
.aviso { font-size: .74rem; line-height: 1.3; color: var(--cinza); }

/* Página do carro */
.trilha { font-size: .85rem; color: var(--cinza); margin-bottom: 1rem; }
.trilha a { text-decoration: underline; text-underline-offset: 2px; }
.v-topo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding: 1.1rem; border-radius: 14px; color: var(--creme); background: linear-gradient(90deg, rgba(28, 25, 23, .96) 35%, rgba(28, 25, 23, .55)), url("/static/opala.jpg") center 40% / cover; }
.v-topo h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 4.5vw, 2rem); line-height: 1.1; }
.v-topo .sub { color: #E7E0D2; margin-top: .25rem; }
.placa-grande { flex: none; width: 128px; min-height: 84px; }
/* Filtro: todos os campos opcionais; 2 colunas no celular, 1 linha no desktop */
.filtro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .6rem; margin-bottom: .8rem; padding: .8rem; background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r); }
.filtro label { display: flex; flex-direction: column; gap: .25rem; min-width: 0; font-size: .8rem; font-weight: 700; color: var(--cinza); }
.filtro select { width: 100%; min-height: 46px; padding: 0 .6rem; font-size: 1rem; border: 2px solid var(--tinta); border-radius: 10px; background: #fff; color: var(--tinta); }
.filtro select:disabled { border-color: var(--borda); background: #F5F1EA; color: #A8A29E; }
.filtro button { border-radius: 10px; grid-column: 1 / -1; }
@media (min-width: 768px) { .filtro button { grid-column: auto; } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .6rem; font-size: .85rem; }
.chips > span { font-weight: 700; color: var(--cinza); }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0 .75rem; border-radius: 999px; background: var(--tinta); color: var(--creme); font-weight: 700; }
.chip b { font-size: .75rem; opacity: .8; }
.chip:hover { background: var(--ferrugem); }
.chip-limpar { min-height: 36px; display: inline-flex; align-items: center; padding: 0 .5rem; color: var(--ferrugem-escura); font-weight: 700; text-decoration: underline; }
.chips-vazio, .contagem { font-size: .85rem; color: var(--cinza); margin-bottom: .6rem; }
.contagem { font-weight: 700; }
.c-topo { padding: 1.1rem; margin-bottom: .8rem; border-radius: 14px; background: var(--tinta); color: var(--creme); position: relative; overflow: hidden; }
.c-topo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--zebra); }
.c-topo h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.1; margin: .4rem 0 .2rem; }
.c-topo .sub { color: #E7E0D2; }
.subcats { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; margin-bottom: .9rem; padding-bottom: 2px; }
.subcats::-webkit-scrollbar { display: none; }
.sub-pill { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .95rem; border-radius: 999px; border: 2px solid var(--tinta); font-weight: 700; font-size: .88rem; background: var(--papel); }
.sub-pill.ativo { background: var(--ferrugem); border-color: var(--ferrugem); color: #fff; }
.mais { display: flex; align-items: center; justify-content: center; min-height: 48px; max-width: 320px; margin: 1.4rem auto 0; border: 2px solid var(--tinta); border-radius: 10px; font-weight: 800; background: var(--papel); }
.mais:hover { background: var(--tinta); color: var(--creme); }
.topo-link { display: none; align-items: center; min-height: 46px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.guia-todas { text-align: center; font-size: .85rem; font-weight: 700; color: var(--ferrugem-escura); text-decoration: underline; padding: .2rem 0; }

/* Página da peça */
.pdp { display: grid; gap: 1.2rem; background: var(--papel); border-radius: 16px; box-shadow: var(--sombra); padding: 1rem; }
.pdp-foto { border-radius: var(--r); font-size: 1rem; }
.pdp-info { display: flex; flex-direction: column; gap: .7rem; }
.pdp-info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 4.5vw, 2rem); line-height: 1.15; }
.ficha { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .92rem; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); padding: .7rem 0; }
.ficha dt { font-weight: 800; color: var(--cinza); }
.ficha small { color: var(--cinza); }
.preco-grande { min-height: 0; }
.preco-grande .por { font-size: 2.2rem; }
.conferido { font-size: .78rem; color: var(--cinza); margin-top: .2rem; }
.btn-grande { min-height: 52px; font-size: 1.05rem; }
.aviso-caixa { font-size: .88rem; font-weight: 700; color: var(--tinta); background: #FFF4E5; border-left: 4px solid var(--ferrugem); padding: .6rem .8rem; border-radius: 6px; }
.nota { font-size: .85rem; color: var(--cinza); }

.rodape { background: var(--tinta); color: #D6CFC2; font-size: .82rem; line-height: 1.6; padding: 1.6rem 0; border-top: 10px solid transparent; border-image: var(--zebra) 10; border-image-width: 10px 0 0 0; }
.rodape a { text-decoration: underline; }
.credito { font-size: .72rem; opacity: .75; }
.rodape-in { display: flex; gap: 1rem; align-items: center; }
.rodape img { flex: none; width: 64px; height: 64px; }
.rodape p + p { margin-top: .4rem; }

@media (min-width: 768px) {
  .hero { padding: 3.2rem 0; background: linear-gradient(90deg, rgba(28, 25, 23, .97) 0%, rgba(28, 25, 23, .8) 36%, rgba(28, 25, 23, .12) 72%, rgba(28, 25, 23, .3)), url("/static/opala.jpg") 70% 45% / cover, var(--tinta); }
  .hero-in { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 2.5rem; }
  .guia { padding: calc(1.3rem + 8px) 1.3rem 1.3rem; }
  .exemplos { display: flex; }
  .v-topo { padding: 1.6rem; min-height: 170px; }
  .placas { grid-template-columns: repeat(5, 1fr); gap: .8rem; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .grade { grid-template-columns: repeat(4, 1fr); gap: 1.2rem 1rem; }
  .titulo { font-size: 1.75rem; margin-top: 2.8rem; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 1.5rem; gap: 2rem; }
  .filtro { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .topo-link { display: inline-flex; }
  .rodape img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .card:hover, a.placa:hover { transform: none; } }

/* Estrutura do Mercado Livre (versão B) */
/* Largura do ML: conteúdo de 1156px (+ respiro lateral de 1rem de cada lado) */
.wrap { max-width: calc(1156px + 2rem); }
.lista { display: grid; gap: 1rem; align-items: start; }
.lateral details { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r); }
.lateral summary { min-height: 48px; display: flex; align-items: center; padding: 0 1rem; font-weight: 800; cursor: pointer; }
.lateral section { padding: .8rem 1rem; border-top: 1px solid var(--borda); }
.lateral h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cinza); margin-bottom: .35rem; }
.lateral ul { list-style: none; }
.lateral li { font-size: .92rem; }
.lateral li a { display: inline-flex; align-items: center; min-height: 34px; }
.lateral li a:hover, .lateral li a[aria-current] { color: var(--ferrugem-escura); font-weight: 800; }
.lateral li span { color: var(--cinza); font-size: .8rem; }
.lateral select { width: 100%; min-height: 44px; border: 2px solid var(--tinta); border-radius: 10px; padding: 0 .5rem; font-size: 1rem; background: #fff; }
.res-topo { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: .6rem; }
.res-topo h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.1; }
.res-topo > span { color: var(--cinza); font-size: .9rem; }
.res-topo label { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--cinza); }
.res-topo label select { min-height: 44px; border: 1px solid var(--borda); border-radius: 8px; padding: 0 .4rem; background: var(--papel); font-size: .9rem; }
.veja { margin-top: 1.2rem; font-size: .9rem; }
/* Preço fechado + login com Google + Minha garagem */
.preco-fechado { justify-content: flex-end; }
.ver-preco { position: relative; z-index: 2; min-height: 44px; border: 2px dashed var(--tinta); border-radius: 10px; background: var(--creme); color: var(--tinta); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.ver-preco:hover { border-style: solid; background: #fff; }
.entrar { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem; border: 2px solid var(--tinta); border-radius: 10px; background: var(--tinta); color: var(--creme); font: inherit; font-weight: 800; cursor: pointer; }
.entrar.logado { background: var(--papel); color: var(--tinta); font-size: .9rem; }
@media (max-width: 767px) { .entrar { order: 1; margin-left: auto; } .busca { order: 2; } }
#login { margin: auto; width: min(92vw, 400px); border: 0; border-radius: 16px; padding: 1.4rem; background: var(--papel); color: var(--tinta); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); }
#login::backdrop { background: rgba(28, 25, 23, .6); }
#login h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
#login ul { margin: .8rem 0 1rem 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; border: 1px solid #747775; border-radius: 10px; background: #fff; color: #1F1F1F; font-weight: 600; }
.btn-google:hover { background: #F2F2F2; }
.login-nota { margin-top: .6rem; font-size: .78rem; color: var(--cinza); text-align: center; }
.login-fechar { width: 100%; min-height: 44px; margin-top: .4rem; border: 0; background: none; color: var(--cinza); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.garagem { display: flex; flex-wrap: wrap; align-items: stretch; gap: .8rem; }
.add-carro { display: flex; align-items: center; justify-content: center; width: 128px; min-height: 84px; border: 2px dashed var(--tinta); border-radius: 10px; font-weight: 800; font-size: .9rem; text-align: center; }
.alertas { list-style: none; display: grid; gap: .5rem; }
.alertas li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; padding: .7rem 1rem; background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r); }
.alertas span { color: var(--cinza); font-size: .85rem; }
.alertas button { margin-left: auto; min-height: 44px; padding: 0 1rem; border: 2px solid var(--tinta); border-radius: 10px; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.loc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
/* Abas Peças | Carros à venda + classificado de carros */
.abas { background: var(--tinta); }
.abas .wrap { display: flex; gap: .25rem; }
.abas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; color: #D6CFC2; font-weight: 800; font-size: .95rem; border-bottom: 4px solid transparent; }
.abas a[aria-current] { color: #fff; border-bottom-color: var(--ferrugem); }
.abas a:hover { color: #fff; }
.pendente { margin-bottom: 1rem; padding: .6rem .9rem; border-left: 6px solid #CA8A04; background: #FEF9C3; font-size: .88rem; font-weight: 700; }
.loja-quem { background: var(--tinta); color: var(--creme); }
.anunciar { margin-left: auto; padding: 0 1rem; }
.anos { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.pdp-info .ver-preco { width: 100%; }
button.btn { width: 100%; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.loc-tags:not(:empty) { margin-bottom: .45rem; }
button.chip { min-height: 44px; border: 0; font: inherit; font-size: .85rem; cursor: pointer; }
.local { font-size: .74rem; color: var(--cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.local::before { content: "📍\FE0E "; }
.veja a { color: var(--ferrugem-escura); font-weight: 800; text-decoration: underline; }
.deptos { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.depto { background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r); padding: .9rem 1rem; }
.depto h3 { font-family: var(--display); font-weight: 400; font-size: 1.15rem; margin-bottom: .4rem; }
.depto ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .9rem; }
.depto li a { display: inline-flex; min-height: 32px; align-items: center; color: var(--cinza); }
.depto li a:hover { color: var(--ferrugem-escura); }
.depto li span { color: var(--cinza); font-size: .78rem; }
.depto:first-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .deptos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .lista { grid-template-columns: 250px minmax(0, 1fr); gap: 1.5rem; }
  #filtros > summary { display: none; }
  .lateral section:first-of-type { border-top: 0; }
  .lista .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deptos { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1200px) {
  .lista { grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; }
  .lista .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem .75rem; }
  main > .grade { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 900px) { .depto:first-child { grid-column: auto; } }

/* Site real: foto da peça, links com toque >= 44px, paginação e estados vazios */
.thumb img, .pdp-foto img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.pdp-foto { overflow: hidden; }
.card .btn { position: relative; z-index: 2; }
.v-topo { background: linear-gradient(90deg, rgba(28, 25, 23, .98), rgba(28, 25, 23, .85)); }
.v-topo-foto { background: linear-gradient(90deg, rgba(28, 25, 23, .96) 35%, rgba(28, 25, 23, .55)), url("/static/opala.jpg") center 40% / cover; }
.lateral li a { min-height: 44px; }
.chip { min-height: 44px; }
.chip-limpar { min-height: 44px; }
.res-topo form { margin-left: auto; }
.lateral form select { margin-top: .2rem; }
.lateral .loc-tags { margin-bottom: .45rem; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1.4rem; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; border-radius: 10px; font-weight: 800; }
.pager a { border: 2px solid var(--tinta); background: var(--papel); }
.pager a[aria-current] { background: var(--tinta); color: var(--creme); }
.vazio { padding: 1.4rem; background: var(--papel); border: 1px solid var(--borda); border-radius: var(--r); }
.vazio p { color: var(--cinza); }
.parceiros { display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 640px) { .parceiros { grid-template-columns: 1fr 1fr; } }
.desc { font-size: .9rem; color: var(--cinza); white-space: pre-line; }
.depto h3 span { font-family: system-ui, sans-serif; font-size: .8rem; color: var(--cinza); }
.ficha a { text-decoration: underline; }
.depto li a { min-height: 44px; }
