/* ============================================================
   AUTOPRIME — ESTILOS COMPLETOS
   Design: tema escuro premium com dourado/âmbar
   ============================================================ */

/* ── VARIÁVEIS ───────────────────────────────────────────── */
:root {
  --bg:          #0C0F1A;
  --bg-card:     #141828;
  --bg-card-2:   #1A2038;
  --border:      rgba(255,255,255,.07);
  --gold:        #D4A843;
  --gold-light:  #F0C862;
  --gold-dim:    rgba(212,168,67,.15);
  --text:        #E8EAED;
  --text-muted:  #8A93A8;
  --text-dim:    #5A6478;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --transition:  .25s ease;
  --header-h:    68px;
  --lang-bar-h:  36px;
}

/* ── LANG BAR ─────────────────────────────────────────────── */
.lang-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--lang-bar-h);
  background: rgba(8,10,20,.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.lang-btn:hover {
  color: var(--text);
  border-color: var(--border);
}
.lang-btn.active {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-dim);
}
.lang-btn img {
  display: block;
  border-radius: 2px;
}

/* ── RESET / BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }

/* ── BOTÕES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: #0C0F1A;
}
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,168,67,.35); }
.btn--outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover { background: var(--gold-dim); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--danger { background: #dc2626; color: #fff; }
.btn--danger:hover { background: #b91c1c; }

/* ── SEÇÃO HEADER COMUM ───────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── HEADER ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: var(--lang-bar-h);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12,15,26,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
}
.logo__icon { font-size: 1.4rem; }
.logo__text strong { color: var(--gold); }
/* Desktop: nav fica fixo alinhado ao header, à direita */
.nav {
  position: fixed;
  top: var(--lang-bar-h);
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
}
.nav__list { display: flex; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--text); background: rgba(255,255,255,.06); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV BACKDROP / DRAWER ────────────────────────────────── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-close { display: none; }
.drawer-lang  { display: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h) + var(--lang-bar-h));
  overflow: hidden;
}
.hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,168,67,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212,168,67,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,.3);
  color: var(--gold);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__stat { text-align: center; }
.hero__stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); font-family: 'Space Grotesk', sans-serif; }
.hero__stat span { font-size: .85rem; color: var(--text-muted); }
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: .78rem;
  letter-spacing: .05em;
}
.hero__scroll-arrow {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SOBRE ────────────────────────────────────────────────── */
.sobre { background: var(--bg-card); }
.sobre__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.sobre__card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.sobre__card:hover { border-color: var(--gold); transform: translateY(-3px); }
.sobre__icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}
.sobre__card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.sobre__card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ── DESTAQUES ────────────────────────────────────────────── */
.destaques__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.destaques__cta { text-align: center; }

/* ── LOADING SPINNER ──────────────────────────────────────── */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px;
  color: var(--text-muted);
  font-size: .9rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CARD DE CARRO ────────────────────────────────────────── */
.carro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carro-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.carro-card__thumb {
  position: relative;
  height: 200px;
  background: var(--bg-card-2);
  overflow: hidden;
}
.carro-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.carro-card:hover .carro-card__thumb img { transform: scale(1.05); }
.carro-card__badge-destaque {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--gold);
  color: #0C0F1A;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.carro-card__fotos {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0,0,0,.65);
  border-radius: 20px;
  font-size: .75rem;
  color: #fff;
}
.carro-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: .8rem;
}
.carro-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.carro-card__nome { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; }
.carro-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.carro-card__tag {
  padding: 3px 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .72rem;
  color: var(--text-muted);
}
.carro-card__preco {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
  padding-top: 8px;
}

/* ── CATÁLOGO ─────────────────────────────────────────────── */
.catalogo { background: var(--bg-card); }
.filtros {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filtros__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: var(--text-muted);
  transition: var(--transition);
}
.filtros__search:focus-within { border-color: var(--gold); }
.filtros__search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: .95rem;
}
.filtros__search input::placeholder { color: var(--text-dim); }
.filtros__selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filtros__selects select {
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A93A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filtros__selects select:focus { border-color: var(--gold); }
.filtros__selects select option { background: var(--bg-card); }
.catalogo__contador {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 20px;
}
.catalogo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.catalogo__vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 24px;
  color: var(--text-muted);
  text-align: center;
}
.catalogo__vazio svg { color: var(--text-dim); }

/* ── CONTATO ──────────────────────────────────────────────── */
.contato__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.contato__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: var(--transition);
}
.contato__card:hover { border-color: var(--gold); transform: translateY(-2px); }
.contato__card--whatsapp { border-color: rgba(37,211,102,.25); }
.contato__card--whatsapp:hover { border-color: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,.15); }
.contato__card--whatsapp .contato__icon { background: rgba(37,211,102,.15); color: #25D366; }
.contato__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contato__card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.contato__card p { font-size: .88rem; color: var(--text-muted); }
.contato__horario {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contato__horario h3 { font-size: .95rem; color: var(--text-muted); margin-bottom: 8px; }
.contato__horario p { font-size: 1rem; }
.contato__horario strong { color: var(--gold); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__brand p { font-size: .88rem; color: var(--text-muted); margin-top: 12px; max-width: 240px; }
.footer__links h4, .footer__social h4 { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: .9rem; color: var(--text-muted); transition: var(--transition); }
.footer__links a:hover { color: var(--gold); }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--text-dim);
}
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  opacity: 0.25;
  color: var(--text-dim);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-admin-link:hover { opacity: 0.65; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(env(safe-area-inset-top), 24px) 24px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: scale(.95);
  transition: transform .25s ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}
.modal__close:hover { background: var(--gold); color: #0C0F1A; }
.modal__gallery { position: relative; }
.gallery__main {
  position: relative;
  height: 320px;
  background: var(--bg);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.65);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition);
}
.gallery__nav:hover { background: var(--gold); color: #0C0F1A; }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 10px;
  background: rgba(0,0,0,.7);
  border-radius: 20px;
  font-size: .75rem;
  color: #fff;
}
.gallery__thumbs {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gallery__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery__thumb.active { border-color: var(--gold); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__video-main {
  position: absolute;
  inset: 0;
  background: #000;
}
.gallery__video-main iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.gallery__thumb--video {
  position: relative;
  background: #000;
  overflow: hidden;
}
.gallery__thumb--video iframe {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border: none;
  pointer-events: none;
}
.modal__summary {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.modal__tabs-wrap {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding: 0 24px 24px;
}
.modal__header { display: flex; flex-direction: column; gap: 6px; }
.modal__header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; }
.modal__preco { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--gold); }
.modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.modal__spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.modal__spec-label { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.modal__spec-value { font-size: .92rem; font-weight: 500; }
.modal__descricao { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }
.modal__descricao p  { margin: 0 0 .6em; }
.modal__descricao ul, .modal__descricao ol { padding-left: 1.4em; margin: 0 0 .6em; }
.modal__descricao li { margin-bottom: .25em; }
.modal__descricao strong { color: var(--text); }

/* Especificações extras (rich text) */
.modal__specs-extra {
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.modal__specs-extra p  { margin: 0 0 .5em; }
.modal__specs-extra ul, .modal__specs-extra ol { padding-left: 1.4em; margin: 0 0 .5em; }
.modal__specs-extra li { margin-bottom: .2em; }
.modal__specs-extra strong { color: var(--text); }

/* ── MODAL TABS ─────────────────────────────────────────── */
.modal__tabs { display: flex; flex-direction: column; }
.modal__tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}
.modal__tab-btn {
  flex: 1;
  padding: 14px 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.modal__tab-btn:hover { color: var(--text); }
.modal__tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.modal__tab-panel { padding: 16px 0 4px; }
.modal__tab-panel.hidden { display: none; }
.modal__empty-tab {
  font-size: .88rem;
  color: var(--text-dim);
  text-align: center;
  padding: 24px 0;
}

/* Embed de vídeo */
.modal__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.modal__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── CATÁLOGO — PÁGINA DEDICADA ──────────────────────────── */
.catalogo--page { padding-top: calc(var(--header-h) + var(--lang-bar-h) + 48px); }

.catalogo__page-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.catalogo__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── PAGINAÇÃO ────────────────────────────────────────────── */
.paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.paginacao__btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.paginacao__btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.paginacao__btn:disabled { opacity: .35; cursor: not-allowed; }

.paginacao__nums {
  display: flex;
  align-items: center;
  gap: 4px;
}

.paginacao__num {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.paginacao__num:hover { border-color: var(--gold); color: var(--gold); }

.paginacao__num.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0C0F1A;
  font-weight: 700;
}

.paginacao__ellipsis {
  color: var(--text-dim);
  padding: 0 4px;
  font-size: .9rem;
}

/* ── ADMIN — TELA LOGIN ───────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-card .logo { justify-content: center; font-size: 1.4rem; margin-bottom: 8px; }
.login-card h1 { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 32px; }
.form-group { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-bottom: 16px; }
.form-label { font-size: .85rem; font-weight: 500; color: var(--text-muted); }
.form-input {
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--text-dim); }
.login-error { font-size: .85rem; color: #f87171; margin-bottom: 12px; display: none; }
.login-error.visible { display: block; }
.input-password-wrap { position: relative; display: flex; align-items: center; }
.input-password-wrap .form-input { width: 100%; padding-right: 44px; }
.btn-eye {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 0 10px;
  transition: color .2s;
}
.btn-eye:hover { color: var(--gold); }
.eye-icon { display: block; pointer-events: none; }

/* ── ADMIN — DASHBOARD ────────────────────────────────────── */
.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.admin-header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header .logo { flex: 1; }
.admin-title { font-size: .85rem; color: var(--text-muted); }
.admin-body { flex: 1; padding: 32px 24px; max-width: 1100px; margin: 0 auto; width: 100%; }
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-toolbar h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; }
.admin-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  background:
    linear-gradient(to right, #141828 20%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left,  #141828 20%, transparent) right center / 40px 100% no-repeat local,
    linear-gradient(to right, rgba(255,255,255,.08), transparent) left center / 20px 100% no-repeat scroll,
    linear-gradient(to left,  rgba(255,255,255,.08), transparent) right center / 20px 100% no-repeat scroll,
    var(--bg-card);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-table .thumb-cell img {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.admin-table .thumb-placeholder {
  width: 60px;
  height: 44px;
  background: var(--bg-card-2);
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: .7rem;
}
.admin-table .actions-cell { display: flex; gap: 8px; }
.admin-loading { padding: 48px; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.admin-vazio { padding: 48px; text-align: center; color: var(--text-muted); }

/* ── ADMIN — FORMULÁRIO CARRO ─────────────────────────────── */
.modal--form {
  grid-template-columns: 1fr;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
}
.form-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.form-modal-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; }
.form-modal-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group--full { grid-column: 1 / -1; }
.form-textarea {
  resize: vertical;
  min-height: 90px;
}
.form-select {
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A93A8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-select:focus { border-color: var(--gold); }
.form-select option { background: var(--bg-card); }
.form-checkbox-group { display: flex; align-items: center; gap: 10px; }
.form-checkbox-group input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--gold); }
.form-checkbox-group label { font-size: .9rem; cursor: pointer; }

/* Upload de imagens */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: var(--gold-dim); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone__icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { font-size: .9rem; color: var(--text-muted); }
.upload-zone span { font-size: .8rem; color: var(--text-dim); }
.upload-progress { margin-top: 8px; }
.progress-bar-wrap { background: var(--bg); border-radius: 20px; height: 6px; overflow: hidden; margin-top: 4px; }
.progress-bar { height: 100%; background: var(--gold); border-radius: 20px; transition: width .2s; }

/* Preview de imagens */
.imagens-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.img-preview-item {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}
.img-preview-item.principal { border-color: var(--gold); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item__del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(220,38,38,.85);
  border-radius: 50%;
  color: #fff;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.img-preview-item__del:hover { background: #dc2626; }
.img-preview-item__principal-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: .6rem;
  padding: 1px 5px;
  background: var(--gold);
  color: #0C0F1A;
  border-radius: 3px;
  font-weight: 700;
}
.form-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

/* ── MODAL CONFIRMAÇÃO ────────────────────────────────────── */
.modal-confirm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.modal-confirm h3 { font-size: 1.1rem; margin-bottom: 10px; }
.modal-confirm p { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; }
.modal-confirm .actions { display: flex; gap: 12px; justify-content: center; }

/* ── TOAST ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  box-shadow: var(--shadow);
  animation: slideIn .25s ease;
}
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast--success { border-color: rgba(34,197,94,.4); }
.toast--success .toast-dot { background: #22c55e; }
.toast--error   { border-color: rgba(239,68,68,.4); }
.toast--error   .toast-dot { background: #ef4444; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── RESPONSIVO ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .modal { grid-template-columns: 1fr; }
  .gallery__main { height: 260px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: auto;
    width: min(280px, 82vw);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: calc(var(--lang-bar-h) + 56px) 20px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 102;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .nav.open { transform: translateX(0); }
  .nav-backdrop { z-index: 101; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 12px 16px; }
  .drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(var(--lang-bar-h) + 8px);
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 1;
  }
  .drawer-lang {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__stats { gap: 24px; }
  .modal { max-height: 96vh; max-height: 96dvh; }
  .modal-overlay { padding: max(env(safe-area-inset-top), 12px) 12px 12px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .admin-table td:nth-child(4), .admin-table th:nth-child(4) { display: none; }
  .admin-table { min-width: 540px; }
  .admin-title { display: none; }
  .admin-header { padding: 0 16px; gap: 12px; }
  .admin-body { padding: 20px 16px; }
  .form-input, .form-select { font-size: 16px; }
  input[type="text"], input[type="email"], input[type="number"],
  input[type="password"], input[type="tel"], select, textarea { font-size: 16px; }
  .filtros__search input { font-size: 16px; }
  .modal--form { max-height: 96vh; }
  .catalogo__page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .filtros__selects { flex-direction: column; align-items: stretch; }
  .filtros__selects select, .filtros__selects .btn { width: 100%; }
  .filtros__search { width: 100%; }
  .modal__specs { grid-template-columns: 1fr; }
  .sobre__grid { grid-template-columns: 1fr; }
  .contato__grid { grid-template-columns: 1fr; }
  .admin-table td:nth-child(3), .admin-table th:nth-child(3) { display: none; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .destaques__grid { grid-template-columns: 1fr; }
  .catalogo__grid { grid-template-columns: 1fr; }
  .paginacao__nums { gap: 2px; }
  .paginacao__num { min-width: 34px; height: 34px; font-size: .82rem; }
  .btn { white-space: normal; text-align: center; }
  .login-card { padding: 28px 20px; }
  .imagens-preview { gap: 8px; }
  .img-preview-item { width: 70px; height: 52px; }
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { width: 100%; }
}

/* ── ESTADO BADGE (admin) ────────────────────────────────── */
.estado-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.estado-badge--ativo   { background: rgba(34,197,94,.15); color: #4ade80; }
.estado-badge--inativo { background: rgba(148,163,184,.12); color: #94a3b8; }

/* ── SUMMERNOTE — dark theme (admin) ─────────────────────── */
.note-editor.note-frame,
.note-editor.note-airframe {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.note-toolbar {
  background: var(--bg-card-2) !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 6px 8px !important;
}
.note-editable {
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 120px;
  font-size: .95rem;
  caret-color: var(--text);
}
.note-editable.card-block { border-radius: 0; }
.note-placeholder { color: var(--text-dim) !important; font-style: normal !important; }
.note-statusbar {
  background: var(--bg-card-2) !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
/* toolbar buttons */
.note-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  border-radius: 4px !important;
}
.note-btn:hover,
.note-btn:focus,
.note-btn.active {
  background: var(--border) !important;
  color: var(--gold) !important;
}
.note-btn-group .note-btn + .note-btn { margin-left: 0; }
/* dropdowns */
.note-dropdown-menu {
  background: var(--bg-card-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-lg) !important;
}
.note-dropdown-item,
.note-dropdown-menu .note-dropdown-item {
  color: var(--text) !important;
}
.note-dropdown-item:hover {
  background: var(--border) !important;
  color: var(--gold) !important;
}
/* color picker */
.note-color-select { color: var(--text-muted) !important; }
/* modal (link, imagem) */
.note-modal .note-modal-content {
  background: var(--bg-card-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
}
.note-modal .note-modal-header,
.note-modal .note-modal-footer {
  border-color: var(--border) !important;
  background: var(--bg-card-2) !important;
}
.note-modal .note-form-control {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
}
.note-modal .note-btn {
  border: 1px solid var(--border) !important;
}
.note-modal .note-btn-primary {
  background: var(--blue-primary) !important;
  color: #fff !important;
  border-color: var(--blue-primary) !important;
}
/* codeview (textarea) */
.note-codable {
  background: #0d1117 !important;
  color: #c9d1d9 !important;
  border: none !important;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: .875rem;
}
