/* ==========================================================================
   Gêmeos Car Multimarcas — estilos
   Paleta: vermelho + preto + branco
   ========================================================================== */

:root {
  --bg: #0a0b0a;
  --bg-2: #0f110f;
  --surface: #151815;
  --surface-2: #1c201c;
  --border: #262b26;
  --text: #f4f6f4;
  --muted: #9aa39a;
  --muted-2: #6e756e;

  --red: #e60012;
  --red-2: #b3000e;
  --red-glow: rgba(230, 0, 18, .38);
  --accent: #ff2b39;
  --accent-2: #b3000e;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .5);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  color: var(--red);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 14px;
}
.display {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.5px;
  text-transform: uppercase;
  margin: 0;
}
.display .accent {
  background: linear-gradient(92deg, var(--red), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 16px 0 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  border: 1px solid transparent; transition: .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(92deg, var(--red-2), var(--red));
  color: #ffffff; box-shadow: 0 10px 30px var(--red-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--red-glow); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-wa { background: #25d366; color: #ffffff; box-shadow: 0 10px 30px rgba(37,211,102,.3); }
.btn-wa:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(92deg, var(--accent-2), var(--accent)); color: #ffffff; }

/* ---------- topbar + nav ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red-2), var(--red));
  color: #ffffff; font-weight: 600; font-size: .86rem;
}
.topbar .wrap { display: flex; gap: 22px; align-items: center; padding: 8px 0; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .spacer { margin-left: auto; }
.topbar svg { width: 15px; height: 15px; }

header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 10, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; }
/* Logo Gêmeos — lockup completo (símbolo + nome já na própria imagem) */
.brand img { height: 34px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 30px; margin-left: 26px; }
.nav-links a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: 60px 0; background: #050605; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 46%; z-index: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,6,5,.94) 0%, rgba(5,6,5,.6) 55%, rgba(5,6,5,.32) 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-inner { max-width: 720px; position: relative; z-index: 2; }
.hero h1 { margin: 0 0 22px; }
.hero p.lead { color: #d6dcd6; font-size: 1.18rem; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.7rem; font-weight: 900; color: var(--red); }
.hero-stats div span { color: var(--muted); font-size: .86rem; }

/* ---------- destaque (veículo em destaque) ---------- */
.destaque-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.destaque-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.destaque-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.destaque-media .badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,.7); border: 1px solid var(--red);
  color: var(--red); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem;
}
.destaque-info h3 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 900; text-transform: uppercase; margin: 6px 0 14px; }
.destaque-info .preco { font-size: 2.1rem; font-weight: 900; color: var(--red); margin: 4px 0 20px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.spec {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.spec span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.spec strong { font-size: 1.05rem; }

/* ---------- cards de carro ---------- */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.car-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: .22s ease;
  display: flex; flex-direction: column;
}
.car-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow); }
.car-card .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.car-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.car-card:hover .thumb img { transform: scale(1.05); }
.car-card .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.car-card .cat {
  position: absolute; bottom: 12px; left: 12px;
  background: linear-gradient(92deg, var(--red-2), var(--red));
  color: #ffffff; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
}
/* badge de situação (canto superior direito) */
.car-card .sit {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; backdrop-filter: blur(4px);
}
.car-card .sit.modificado { background: rgba(0,0,0,.72); color: var(--accent); border: 1px solid var(--accent); }
.car-card .sit.preparacao { background: rgba(245,163,0,.94); color: #111; }
.car-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.car-card h4 { font-size: 1.08rem; margin: 0 0 8px; line-height: 1.25; }
.car-card .meta { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.car-card .meta b { color: var(--muted); font-weight: 400; }
.car-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.car-card .price { font-size: 1.3rem; font-weight: 900; color: var(--red); }
.car-card .foot a { color: var(--accent); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- diferenciais ---------- */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
}
.feat .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(230,0,18,.14); color: var(--red); margin-bottom: 20px;
}
.feat .ico svg { width: 26px; height: 26px; }
.feat h4 { margin: 0 0 10px; font-size: 1.2rem; }
.feat p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- clientes (carrossel) ---------- */
.clientes { background: var(--bg-2); }
.stars { color: var(--accent); letter-spacing: 3px; }
/* carrossel automático (marquee) — anda sozinho, sem controle manual */
.carousel {
  position: relative; overflow: hidden; padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.carousel-track {
  display: flex; width: max-content;
  animation: marquee var(--marquee-dur, 24s) linear infinite;
}
/* SEM will-change aqui de propósito: -webkit-mask-image + will-change:transform
   deixa o carrossel em branco no Safari do iPhone. Sem will-change, máscara +
   animação funcionam (mesma receita do projeto gti, que roda liso no iOS). */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* lista duplicada + espaço via margin = loop perfeito */
}
.cliente-card {
  flex: 0 0 auto; width: 360px; aspect-ratio: 4 / 3; margin-right: 22px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); position: relative;
}
.cliente-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.cliente-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-weight: 700; font-size: .95rem;
}
.cliente-card .cap small { display: block; color: var(--red); font-weight: 600; }
.carousel-nav { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.carousel-nav button:hover { border-color: var(--red); color: var(--red); }
.carousel-nav button svg { width: 20px; height: 20px; }

/* ---------- avaliações do Google ---------- */
.reviews-badge {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 22px; padding: 12px 20px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.rb-g { width: 24px; height: 24px; display: inline-grid; place-items: center; }
.rb-g svg { width: 24px; height: 24px; }
.rb-score { font-weight: 900; font-size: 1.35rem; }
.rb-stars { color: #ffb703; letter-spacing: 2px; font-size: 1.05rem; }
.rb-txt { color: var(--muted); font-size: .9rem; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}
.review {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-top { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.review-id { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.review-id strong { font-size: .98rem; }
.review-g { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; }
.review-g svg { width: 22px; height: 22px; }
.review-stars { display: inline-flex; gap: 2px; color: #ffb703; }
.review-stars svg { width: 18px; height: 18px; }
.review-text { color: var(--muted); margin: 0; font-size: .97rem; line-height: 1.6; }

/* ---------- redes ---------- */
.redes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.rede {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: .2s;
}
.rede:hover { border-color: var(--red); transform: translateY(-4px); }
.rede .ico { color: var(--red); margin-bottom: 16px; }
.rede .ico svg { width: 30px; height: 30px; }
.rede strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.rede span { color: var(--muted); font-size: .9rem; }

/* ---------- localização ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.loc-item { display: flex; gap: 16px; margin-bottom: 22px; }
.loc-item > div:last-child { flex: 1 1 auto; min-width: 0; }
.loc-item .ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(230,0,18,.14); color: var(--red);
}
.loc-item .ico svg { width: 22px; height: 22px; }
.loc-item strong { display: block; margin-bottom: 2px; }
.loc-item span { color: var(--muted); }
.loc-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.loc-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.horario { list-style: none; padding: 0; margin: 8px 0 24px; max-width: 420px; }
.horario li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.horario li span:first-child { color: var(--text); }
.horario li span:last-child { color: var(--red); font-weight: 600; }

/* ---------- CTA final ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(230,0,18,.16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; text-transform: uppercase; margin: 0 0 16px; }
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer.foot { background: #060706; border-top: 1px solid var(--border); padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand img { height: 58px; width: auto; object-fit: contain; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 260px; }
.foot h5 { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: var(--muted-2); margin: 0 0 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 11px; }
.foot ul li a, .foot ul li span { color: var(--muted); font-size: .92rem; transition: .2s; }
.foot ul li a:hover { color: var(--red); }
.foot-social { display: flex; gap: 12px; margin-top: 6px; }
.foot-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: .2s;
}
.foot-social a:hover { border-color: var(--red); color: var(--red); }
.foot-social svg { width: 20px; height: 20px; }
.foot-bottom {
  border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted-2); font-size: .85rem;
}

/* ---------- botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }

/* ==========================================================================
   PÁGINA ESTOQUE
   ========================================================================== */
.page-head { padding: 56px 0 10px; }
.page-head .eyebrow { text-align: left; }
.estoque-layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; padding-bottom: 100px; }
.filtros {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: sticky; top: 90px;
}
.filtros-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filtros h3 { margin: 0; font-size: 1.1rem; }
/* X pra fechar o painel de filtros — só no mobile (no desktop ele fica sempre aberto) */
.filtros-close { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px; margin: -4px -4px -4px 0; }
.filtros-close svg { width: 24px; height: 24px; }
.filtro-group { margin-bottom: 20px; }
.filtro-group > label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: .18s;
}
.chip:hover { color: var(--text); }
.chip.active { background: linear-gradient(92deg, var(--red-2), var(--red)); color: #ffffff; border-color: transparent; font-weight: 700; }

/* abas de situação do estoque (Disponíveis / Modificados / Em preparação) */
.sit-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; -webkit-overflow-scrolling: touch; }
.sit-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 10px 20px; border-radius: 999px; font-size: .95rem; font-weight: 700; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .18s;
}
.sit-tab:hover { color: var(--text); border-color: var(--muted-2); }
.sit-tab.active { background: linear-gradient(92deg, var(--red-2), var(--red)); color: #fff; border-color: transparent; }
.sit-tab .n { font-size: .8em; font-weight: 600; opacity: .7; }
.sit-tab.active .n { opacity: .85; }
.filtros select, .filtros input[type="search"] {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .92rem;
}
.filtros input[type="range"] { width: 100%; accent-color: var(--red); margin: 6px 0 4px; }
.range-val { color: var(--red); font-weight: 700; font-size: .9rem; }
.limpar { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: .86rem; width: 100%; text-align: center; margin-top: 12px; }

/* grupos colapsáveis (details/summary) */
.fgroup { border-top: 1px solid var(--border); padding: 16px 0; }
.fgroup summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; margin-right: 3px;
}
.fgroup[open] summary::after { transform: rotate(-135deg); }
.fgroup summary + * { margin-top: 14px; }

/* linhas de checkbox com contagem */
.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: .92rem; color: var(--text); padding: 4px 0;
}
.check-row input { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }
.check-row span { flex: 1; }
.check-row em { color: var(--muted-2); font-style: normal; font-size: .82rem; }
.check-row:hover span { color: var(--red); }

.ver-btn { width: 100%; justify-content: center; margin-top: 20px; }
/* select "Ordenar por" — estilizado */
.ordenar-sel {
  width: auto; min-width: 170px;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 44px 12px 20px; font-size: .9rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: .2s;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
}
.ordenar-sel:hover { border-color: var(--red); }
.ordenar-sel:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.ordenar-sel option { background: var(--surface); color: var(--text); }

/* ícone inline do WhatsApp (telefones que abrem o WhatsApp) */
.wa-inline { display: inline-flex; width: 14px; height: 14px; margin-right: 6px; color: #25d366; vertical-align: -2px; }
.wa-inline svg { width: 100%; height: 100%; }

.estoque-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.estoque-top .count { color: var(--muted); margin-left: auto; }
.estoque-top .count b { color: var(--text); }
.busca-wrap { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.busca-wrap input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.busca-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.no-results { text-align: center; color: var(--muted); padding: 60px 0; }
.mobile-filtros-btn { display: none; }

/* ==========================================================================
   PÁGINA DETALHE
   ========================================================================== */
.crumbs { color: var(--muted-2); font-size: .88rem; padding: 26px 0 8px; }
.crumbs a:hover { color: var(--red); }
.detalhe-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; padding-bottom: 40px; }
.galeria-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #000; cursor: zoom-in;
}
.galeria-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.galeria-main .zoom-ico {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px;
  border-radius: 10px; background: rgba(0,0,0,.6); display: grid; place-items: center; color: #fff;
}
.galeria-main .counter {
  position: absolute; left: 14px; bottom: 14px; background: rgba(0,0,0,.6);
  padding: 5px 12px; border-radius: 999px; font-size: .82rem;
}
.galeria-main .nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55);
  border: 0; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.galeria-main .nav-arrow:hover { background: var(--red); color: #ffffff; }
.galeria-main .prev { left: 12px; } .galeria-main .next { right: 12px; }
.galeria-main .nav-arrow svg { width: 22px; height: 22px; }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumbs img {
  width: 92px; height: 68px; object-fit: cover; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; opacity: .6; transition: .2s;
}
.thumbs img:hover { opacity: 1; }
.thumbs img.active { border-color: var(--red); opacity: 1; }
.detalhe-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; position: sticky; top: 90px;
}
.detalhe-card .eyebrow { text-align: left; margin-bottom: 8px; }
.detalhe-card h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; margin: 0 0 6px; }
.detalhe-card .preco { font-size: 2.3rem; font-weight: 900; color: var(--red); margin: 10px 0 22px; }
.detalhe-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.detalhe-card .btn { width: 100%; justify-content: center; }
.detalhe-card .check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.detalhe-card .check svg { width: 16px; height: 16px; color: var(--red); }
/* selos como pílulas que fluem e quebram linha (bom mesmo com 10 selos) */
.selos-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.selo-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text); font-size: .8rem; font-weight: 500; line-height: 1;
}
.selo-pill svg { width: 14px; height: 14px; color: var(--red); flex: none; }
.desc-block { padding: 20px 0 70px; }
.desc-block h2 { font-size: 1.6rem; margin: 0 0 16px; }
.desc-block p { color: var(--muted); max-width: 760px; white-space: pre-wrap; }
.opcionais { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 22px; margin-top: 22px; max-width: 820px; }
.opcionais li { list-style: none; display: flex; align-items: center; gap: 9px; color: var(--text); font-size: .94rem; }
.opcionais li svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.opcionais { padding: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 10px; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; cursor: pointer; }
.lightbox .lb-close svg { width: 34px; height: 34px; }
.lightbox .lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.1);
  border: 0; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-arrow:hover { background: var(--red); color: #ffffff; }
.lightbox .lb-prev { left: 22px; } .lightbox .lb-next { right: 22px; }
.lightbox .lb-arrow svg { width: 28px; height: 28px; }

/* outros carros */
.outros-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .destaque-grid, .loc-grid, .detalhe-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .estoque-layout { grid-template-columns: 1fr; }
  .filtros { position: static; display: none; }
  .filtros.show { display: block; }
  .filtros-close { display: inline-flex; }
  .mobile-filtros-btn { display: inline-flex; }
  .detalhe-card { position: static; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .spec-grid, .detalhe-specs { grid-template-columns: 1fr 1fr; }

  /* topbar enxuta */
  .topbar .wrap { font-size: .72rem; gap: 10px; }
  #tb-insta { display: none; }

  /* nav: logo + hambúrguer */
  .nav-cta .btn { display: none; }
  .nav .wrap { gap: 12px; }
  .brand img { height: 27px; }

  /* HERO — enxuto no mobile: menos texto, botões menores, imagem respira */
  .hero { align-items: flex-end; min-height: 82vh; padding: 40px 0 34px; }
  /* a foto é vertical e a tela também → quase toda a imagem apareceria (muito céu).
     Um zoom na faixa da placa foca no nome da loja. */
  .hero-bg { transform: scale(2.2); transform-origin: 55% 50%; }
  .hero-inner { width: 100%; max-width: 100%; box-sizing: border-box; padding-inline: 20px; }
  .hero .display { font-size: 1.55rem; line-height: 1.08; margin-bottom: 16px; }
  .hero .eyebrow { font-size: .64rem; letter-spacing: .18em; margin-bottom: 10px; }
  .hero p.lead { font-size: 1rem; margin-bottom: 20px; } /* subtítulo aparece também no mobile */
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 18px; font-size: .86rem; }
  .hero-stats { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .hero-stats div { min-width: 0; }
  .hero-stats div strong { font-size: 1.1rem; overflow-wrap: anywhere; }
  .hero-stats div span { font-size: .68rem; line-height: 1.3; overflow-wrap: anywhere; }

  /* títulos/seções menores */
  .display { font-size: 1.95rem; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: .95rem; }

  /* CARROS — 2 colunas, cards compactos (estilo Belloni) */
  .cars-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .car-card { border-radius: 14px; }
  .car-card .body { padding: 11px 12px 13px; }
  .car-card h4 { font-size: .9rem; margin-bottom: 6px; }
  .car-card .meta { font-size: .73rem; margin-bottom: 10px; }
  .car-card .foot { flex-direction: column; align-items: flex-start; gap: 7px; border-top: 1px solid var(--border); padding-top: 10px; }
  .car-card .price { font-size: 1.05rem; }
  .car-card .foot a { font-size: .82rem; }
  .car-card .tag { font-size: .68rem; padding: 4px 9px; }
  .car-card .cat { font-size: .62rem; padding: 3px 9px; }
  .car-card .sit { font-size: .58rem; padding: 3px 9px; top: 10px; right: 10px; letter-spacing: .02em; }

  /* slider da home: mostra ~1 card e espia o próximo */
  .es-track { gap: 14px; }
  .es-track .car-card { flex: 0 0 80%; }

  /* destaque */
  .destaque-info h3 { font-size: 1.7rem; }
  .destaque-info .preco { font-size: 1.8rem; }
  .destaque-grid { gap: 26px; }

  /* clientes: card menor no celular (largura fixa, como no gti) */
  .cliente-card { width: 260px; margin-right: 16px; }

  /* avaliações: 2 por linha no celular (cards compactos) */
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .review { min-width: 0; }
  .review { padding: 16px 14px; gap: 10px; border-radius: 14px; }
  .review-top { gap: 9px; }
  .review-avatar { width: 34px; height: 34px; font-size: .95rem; }
  .review-id strong { font-size: .84rem; line-height: 1.25; }
  .review-g { display: none; }
  .review-stars svg { width: 15px; height: 15px; }
  .review-text { font-size: .82rem; line-height: 1.5; }
  .reviews-badge { gap: 8px 10px; padding: 10px 16px; }
  .rb-txt { flex-basis: 100%; text-align: center; font-size: .82rem; }

  /* detalhe */
  .detalhe-card { padding: 22px; }
  .detalhe-card h1 { font-size: 1.5rem; }
  .detalhe-card .preco { font-size: 2rem; }
  .thumbs img { width: 72px; height: 54px; }
  .opcionais { grid-template-columns: 1fr 1fr; }

  /* estoque: busca/ordenar */
  .estoque-top { gap: 10px; }
  .busca-wrap { max-width: none; }
  .ordenar-sel { flex: 1; min-width: 0; }
  .estoque-top .count { order: 3; margin-left: 0; }
}

/* menu mobile — dropdown ancorado embaixo/à direita do hambúrguer.
   É position:absolute pra NÃO empurrar o conteúdo do site pra baixo;
   fica sobreposto ao hero, alinhado ao lado direito (embaixo do botão). */
.nav .wrap:last-child { padding: 0; }            /* wrapper do menu não ocupa altura */
.mobile-menu {
  display: none; position: absolute; top: 100%; right: 20px;
  flex-direction: column; gap: 2px;
  min-width: 200px; max-width: 78vw;
  padding: 6px 18px 12px; text-align: center;
  background: rgba(10, 11, 10, .97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
}
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 13px 2px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 941px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   PRELOADER (só na página inicial — primeira entrada e ao recarregar)
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: #050505;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; width: min(300px, 78vw); }
.pl-logo {
  width: min(300px, 76vw); height: auto; object-fit: contain;
  animation: plpulse 1.6s ease-in-out infinite;
}
@keyframes plpulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 16px var(--red-glow)); }
  50%      { transform: scale(1.04); filter: drop-shadow(0 0 40px var(--red-glow)); }
}
.pl-bar { width: 100%; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-2), var(--red)); border-radius: 999px; }
.pl-pct { font-weight: 900; font-size: 1.35rem; color: var(--text); letter-spacing: .04em; }
.pl-name { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-2); }
body.loading { overflow: hidden; }

/* ==========================================================================
   REVEAL AO ROLAR (aparece conforme scrolla)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
/* leve escalonamento dos diferenciais */
.feats .feat:nth-child(2) { transition-delay: .08s; }
.feats .feat:nth-child(3) { transition-delay: .16s; }
.feats .feat:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   SLIDER DE ESTOQUE NA HOME (uma linha + setinhas)
   ========================================================================== */
.estoque-slider { position: relative; }
.es-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; padding: 6px 2px 14px; scrollbar-width: none;
}
.es-track::-webkit-scrollbar { display: none; }
.es-track .car-card { flex: 0 0 300px; scroll-snap-align: start; }
.es-arrow {
  position: absolute; top: calc(50% - 26px); transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; z-index: 3;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px var(--red-glow);
  transition: .2s;
}
.es-arrow:hover { transform: translateY(-50%) scale(1.08); }
.es-arrow svg { width: 24px; height: 24px; }
.es-prev { left: -16px; }
.es-next { right: -16px; }
@media (max-width: 760px) {
  .es-arrow { display: none !important; } /* no celular, arrasta pro lado */
  .es-track { scroll-snap-type: x mandatory; }
}
