/* ==========================================================================
   D2 Motos — style.css
   Mobile-first · Inter (Google Fonts) · sem dependências de build
   ========================================================================== */

/* ─── Variáveis ──────────────────────────────────────────────────────────── */
:root {
  --red:        #AF0002;
  --red-dark:   #8a0002;
  --gold:       #E8BD3F;
  --bg:         #F5F5F5;
  --card:       #ffffff;
  --text:       #1a1a1a;
  --muted:      #666666;
  --border:     #e0e0e0;
  --green:      #22c55e;
  --blue:       #3b82f6;
  --wa:         #25D366;
  --wa-dark:    #1da851;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.07);
  --shadow-md:  0 2px 10px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.14);

  --r:          12px;
  --r-sm:       8px;

  --font:       'Inter', system-ui, sans-serif;
  --header-h:   64px;
  --ease:       cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img  { display: block; max-width: 100%; }
svg  { flex-shrink: 0; }
a    { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ─── Utilitários ────────────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.hidden { display: none !important; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.header-slogan {
  font-size: .62rem;
  font-weight: 500;
  color: #999;
  letter-spacing: .04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.header-address {
  display: none;
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: center;
}
.header-address svg { width: 14px; height: 14px; }
.btn-wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.btn-wa-header:hover { background: var(--wa-dark); transform: translateY(-1px); }
.btn-wa-header svg   { width: 18px; height: 18px; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, #c50003 0%, #AF0002 45%, #6e0001 100%);
  padding: 52px 0 56px;
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
/* Detalhe decorativo de fundo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 110% 120%, rgba(232,189,63,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at -10% -10%, rgba(255,255,255,.06) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,189,63,.12);
  border: 1.5px solid rgba(232,189,63,.45);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-highlight { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: .97rem;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 32px;
}
/* Search bar pill com botão */
.search-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 6px 32px rgba(0,0,0,.28);
  padding: 6px 6px 6px 52px;
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #aaa;
  pointer-events: none;
}
.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: .97rem;
  color: var(--text);
  background: transparent;
  padding: 10px 8px;
  -webkit-appearance: none;
}
.search-input::placeholder { color: #aaa; }
.btn-search {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 22px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s var(--ease);
  white-space: nowrap;
}
.btn-search:hover { background: var(--red-dark); }

/* ─── Barra de filtro mobile ─────────────────────────────────────────────── */
.catalog-body { padding-top: 20px; padding-bottom: 60px; }
.mobile-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .18s, box-shadow .18s;
}
.btn-filter-toggle svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.btn-filter-toggle:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(175,0,2,.1);
}
.results-count-mobile {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Layout catálogo ────────────────────────────────────────────────────── */
.catalog-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.catalog-main { flex: 1; min-width: 0; }
.results-count-desktop {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar-overlay {
  display: none;
}
.sidebar {
  display: none;    /* oculto no mobile por padrão */
  width: 272px;
  flex-shrink: 0;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.2px;
}
.btn-sidebar-close {
  background: none;
  border: none;
  padding: 4px;
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
}
.btn-sidebar-close:hover { background: var(--bg); color: var(--text); }
.sidebar-body { padding: 16px 20px 24px; }
.results-count {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ─── Grupos de filtro ───────────────────────────────────────────────────── */
.filter-group { margin-bottom: 20px; }
.filter-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* Select customizado */
.select-wrapper {
  position: relative;
}
.select-wrapper svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.filter-select {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .88rem;
  color: var(--text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.filter-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(175,0,2,.1);
}

/* Range inputs */
.range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.range-sep { color: var(--muted); font-size: .85rem; flex-shrink: 0; }
.filter-input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .85rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
.filter-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(175,0,2,.1);
}
.filter-input::placeholder { color: #bbb; }
/* Remove setas do input number */
.filter-input::-webkit-outer-spin-button,
.filter-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.filter-input[type=number] { -moz-appearance: textfield; }

/* Pills */
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  padding: 5px 11px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.pill:hover { border-color: var(--red); color: var(--red); }
.pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Botão buscar mobile (fecha o drawer) */
.btn-buscar-mobile {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--red);
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  transition: background .18s var(--ease);
}
.btn-buscar-mobile:hover { background: var(--red-dark); }
@media (min-width: 900px) { .btn-buscar-mobile { display: none; } }

/* Botão limpar */
.btn-clear {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .18s, color .18s;
}
.btn-clear:hover { border-color: var(--red); color: var(--red); }

/* ─── Empty state ────────────────────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 64px 16px;
  color: var(--muted);
}
.no-results svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  stroke: #ccc;
}
.no-results h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.no-results p  { font-size: .9rem; }

/* ─── Grid de cards ──────────────────────────────────────────────────────── */
.motos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
.moto-card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.moto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Foto do card */
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.moto-card:hover .card-photo img { transform: scale(1.04); }

/* Badge */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.badge-destaque { background: var(--gold);  color: #1a1a1a; }
.badge-fipe     { background: var(--green); color: #fff; }
.badge-novo     { background: var(--blue);  color: #fff; }

/* Botões de navegação de fotos */
.btn-photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .2s, transform .2s;
  box-shadow: 0 1px 6px rgba(0,0,0,.18);
}
.btn-photo-nav svg { width: 16px; height: 16px; }
.moto-card:hover .btn-photo-nav { opacity: 1; }
.btn-photo-prev { left: 8px; }
.btn-photo-next { right: 8px; }
.btn-photo-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }

/* Contador de fotos */
.photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Corpo do card */
.card-body { padding: 14px 16px 16px; }
.card-name {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}
.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.card-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--muted);
}
.card-spec svg { width: 13px; height: 13px; }
.card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.btn-wa-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  transition: background .18s var(--ease);
}
.btn-wa-card:hover { background: var(--wa-dark); }
.btn-wa-card svg   { width: 17px; height: 17px; flex-shrink: 0; }
.btn-details {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 2px solid var(--red);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.btn-details:hover { background: var(--red); color: #fff; }

/* ─── View detalhe ───────────────────────────────────────────────────────── */
.detail-wrap {
  padding: calc(var(--header-h) + 24px) 0 60px;
  min-height: 100vh;
}
.detail-back-row { margin-bottom: 20px; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
  transition: color .18s;
}
.btn-back svg    { width: 18px; height: 18px; }
.btn-back:hover  { color: var(--red); }

/* Layout detalhe */
.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Galeria */
.detail-gallery { flex-shrink: 0; }
.gallery-main-wrap {
  border-radius: var(--r);
  overflow: hidden;
  background: #e8e8e8;
  aspect-ratio: 4 / 3;
}
.gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 70px;
  height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2.5px solid transparent;
  background: #e8e8e8;
  flex-shrink: 0;
  padding: 0;
  transition: border-color .18s;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb.active  { border-color: var(--red); }
.gallery-thumb:hover:not(.active) { border-color: var(--border); }

/* Info do detalhe */
.detail-info {}
.detail-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.detail-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -.5px;
  margin-bottom: 24px;
}

/* Grid de specs */
.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.spec-item {
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.spec-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

/* Descrição */
.detail-desc { margin-bottom: 28px; }
.detail-desc h3 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.detail-desc p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text);
}

/* Botão WhatsApp detalhe */
.btn-wa-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-wa-detail:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,211,102,.45);
}
.btn-wa-detail svg { width: 22px; height: 22px; }

/* Botão voltar secundário */
.btn-back-bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  transition: border-color .18s, color .18s;
  width: 100%;
  justify-content: center;
}
.btn-back-bottom svg    { width: 16px; height: 16px; }
.btn-back-bottom:hover  { border-color: var(--red); color: var(--red); }

/* ─── Por que escolher ───────────────────────────────────────────────────── */
.why-section {
  background: var(--bg);
  padding: 72px 0 80px;
}
.why-label {
  display: block;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.why-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--text);
  margin-bottom: 12px;
}
.why-sub {
  text-align: center;
  font-size: .97rem;
  color: var(--muted);
  margin-bottom: 48px;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.2px;
}
.why-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #111111;
  color: #ccc;
  padding: 48px 0 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.footer-desc {
  font-size: .88rem;
  line-height: 1.65;
  color: #999;
}
.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .88rem;
  line-height: 1.55;
  color: #ccc;
  margin-bottom: 16px;
}
.footer-addr svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 700;
  transition: background .18s var(--ease);
}
.footer-wa-btn:hover { background: var(--wa-dark); }
.footer-wa-btn svg { width: 20px; height: 20px; }
.footer-map iframe {
  display: block;
  border-radius: 10px;
  width: 100%;
  height: 180px;
  border: 0;
}
.footer-copy {
  font-size: .8rem;
  color: #555;
  text-align: center;
  padding: 20px 0;
}

/* ─── Responsive — tablet (≥ 640px) ─────────────────────────────────────── */
@media (min-width: 640px) {
  .motos-grid   { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .why-grid     { grid-template-columns: repeat(4, 1fr); }
  .footer-cols  { grid-template-columns: 1fr 1fr; }
  .header-address { display: flex; }
}

/* ─── Responsive — desktop (≥ 900px) ────────────────────────────────────── */
@media (min-width: 900px) {
  .footer-cols { grid-template-columns: 1.2fr 1fr 1.4fr; }
  .hero { padding: 80px 0 72px; }

  /* Esconde barra de filtro mobile */
  .mobile-filter-bar { display: none; }

  /* Sidebar sempre visível no desktop */
  .sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    /* scrollbar fina */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .sidebar::-webkit-scrollbar       { width: 4px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  /* Esconde botão fechar no desktop */
  .btn-sidebar-close { display: none; }

  .detail-layout {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
  .detail-gallery { width: 52%; }
  .detail-info    { flex: 1; min-width: 0; }
}

/* ─── Sidebar mobile — drawer inferior ───────────────────────────────────── */
@media (max-width: 899px) {
  /* Overlay */
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
  }
  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar como drawer inferior */
  .sidebar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 201;
    border-radius: 20px 20px 0 0;
    max-height: 86vh;
    overflow-y: auto;
    transform: translateY(105%);
    transition: transform .35s var(--ease);
    box-shadow: 0 -4px 30px rgba(0,0,0,.18);
  }
  .sidebar.open { transform: translateY(0); }

  /* Alça visual do drawer */
  .sidebar-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
  .sidebar-header { position: relative; padding-top: 24px; }
}

/* ─── Touch device: sempre mostrar controles de foto ─────────────────────── */
@media (hover: none) {
  .btn-photo-nav { opacity: 1; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .header, .hero, .sidebar, .footer, .btn-details, .btn-wa-detail,
  .btn-back, .btn-back-bottom { display: none !important; }
  .detail-wrap { padding-top: 0; }
}
