@charset "utf-8";
/* ============================================================
   MELLO VEÍCULOS - Modern Stylesheet
   Paleta: Azul-escuro + Laranja | Estilo: Moderno e clean
   ============================================================ */

/* ---------- Fontes ---------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap");

/* ---------- Variáveis ---------- */
:root {
  --primary: #0f2a43;        /* azul-escuro */
  --primary-dark: #0a1e30;
  --primary-light: #1b3a5c;
  --accent: #f97316;         /* laranja */
  --accent-dark: #ea580c;
  --accent-light: #ffedd5;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(15, 42, 67, 0.08);
  --shadow: 0 4px 16px rgba(15, 42, 67, 0.10);
  --shadow-lg: 0 12px 32px rgba(15, 42, 67, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  color: var(--primary);
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
a:focus,
a:active,
button:focus,
button:active,
input:focus,
input:active,
select:focus,
select:active,
textarea:focus,
textarea:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: var(--accent); }
#topmenu { list-style: none; margin: 0; padding: 0; }
#topmenu li { display: inline-block; }
#topsocial { list-style: none; margin: 0; padding: 0; text-align: right; }
#topsocial li { display: inline-block; margin-left: 12px; }
#topsocial i { font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--primary);
  padding: 0;
  margin: 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 82px;
  border-radius: 0px;
}
.navbar .container {
  min-height: 82px;
}
.navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  height: 82px;
  padding: 8px 0;
  margin-right: 20px;
  float: left;
  overflow: hidden;
}
.navbar .navbar-brand img {
  display: block;
  max-height: 62px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.navbar .navbar-collapse {
  float: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.navbar .navbar-nav {
  float: right;
  margin: 0;
}
.navbar .navbar-nav > li {
  float: left;
}
.navbar .navbar-nav > li > a,
.navbar .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 28px 18px 24px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  background: transparent;
}
.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .navbar-nav > li.active > a,
.navbar .navbar-nav > li > a:hover {
  color: #fff;
  background: transparent;
  border-bottom-color: #fff;
}
.navbar .navbar-toggle {
  display: none;
}
.navbar .navbar-form {
  float: right;
  margin: 15px 0;
}
.navbar .input-group {
  display: flex;
  align-items: center;
  width: 100%;
}
.navbar .input-group .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding: 11px 18px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  min-height: 42px;
}
.navbar .input-group .form-control::placeholder { color: #94a3b8; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.navbar .input-group .btn-accent {
  border-radius: 0 50px 50px 0;
  min-width: 48px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Subbar (ofertas topo) ---------- */
.subbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
}
.subbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  padding: 0 12px;
}
.subbar .offer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text);
  transition: var(--transition);
  min-height: 90px;
  width: 100%;
  overflow: hidden;
}
.subbar .offer:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.subbar .offer img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
}
.subbar .offer span {
  font-size: 0.8rem;
  line-height: 1.3;
  display: block;
  min-width: 0;
}
.subbar .offer strong {
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

/* ---------- Carousel de parceiros (logos) ---------- */
#logos .carousel-item {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
#logos .carousel-item > div { flex: 0 0 auto; }
#logos .carousel-item img {
  width: 140px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: var(--transition);
}
#logos .carousel-item img:hover { filter: grayscale(0%); transform: scale(1.05); }

/* ---------- Slider ---------- */
#mainSlider {
  margin-bottom: 0;
  background: transparent;
  overflow: hidden;
  width: 100%;
  height: 520px;
  margin-left: 0;
  border: none;
}
#mainSlider .carousel-inner,
#mainSlider .carousel-inner > .item,
#mainSlider .carousel-inner > .item > img {
  width: 100%;
  height: 100%;
  border: none;
}
#mainSlider .carousel-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
}
#mainSlider .carousel-inner > .item {
  position: relative;
  display: none;
  overflow: hidden;
  border: none;
  height: 100%;
}
#mainSlider .carousel-inner > .active {
  display: block;
  animation: mainSliderFade 0.7s ease;
}
#mainSlider .slider-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: mainSliderImageFade 0.9s ease;
  border: none;
  background: #061b2d;
}
@keyframes mainSliderFade {
  from { opacity: 0.15; }
  to { opacity: 1; }
}
@keyframes mainSliderImageFade {
  from { opacity: 0.2; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
#mainSlider .carousel-caption {
  background: transparent;
  border-radius: 0;
  padding: 0 30px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: none;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#mainSlider .carousel-caption .offer-banner {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  min-height: 72px;
  max-width: 100%;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  border: none;
  outline: none;
}
#mainSlider .carousel-caption .offer-banner:focus,
#mainSlider .carousel-caption .offer-banner:hover,
#mainSlider .carousel-caption .offer-banner:active {
  border: none;
  outline: none;
  text-decoration: none;
}
#mainSlider .carousel-caption .offer-tag,
#mainSlider .carousel-caption .offer-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
#mainSlider .carousel-caption .offer-tag {
  background: #1d8de0;
  color: #fff;
  font-size: 1.15rem;
  border-radius: 10px 0 0 10px;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
  padding-right: 44px;
}
#mainSlider .carousel-caption .offer-name {
  background: rgba(12, 12, 12, 0.92);
  color: #fff;
  font-size: 1.7rem;
  border-radius: 0 10px 10px 0;
  padding-left: 32px;
  padding-right: 32px;
}
#home {
  padding-top: 20px;
}
#home h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 700;
}
#mainSlider .carousel-control-prev,
#mainSlider .carousel-control-next { width: 8%; }

/* ---------- Filtro de busca ---------- */
.filter-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 18px;
  padding: 12px 12px 10px;
  margin: 0 0 30px;
  box-shadow: var(--shadow);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.filter-field {
  min-width: 0;
  width: 100%;
  display: block;
}
.filter-box .row {
  margin: 0;
}
.filter-box .form-label { color: #cbd5e1; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-box .mb-3 {
  margin-bottom: 10px !important;
}
.filter-box .form-select,
.filter-box .select2-container,
.filter-box .select2-container--default {
  width: 100% !important;
  display: block !important;
  max-width: 100%;
}
.filter-box .form-select {
  border-radius: 10px;
  border: none;
  padding: 16px 14px;
  background-color: rgba(255,255,255,0.95);
  color: var(--text);
  min-height: 56px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #1f2937 50%), linear-gradient(135deg, #1f2937 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.filter-box .select2-container .select2-selection--single {
  height: 56px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  display: block;
}
.filter-box .select2-container .select2-selection__rendered {
  line-height: 56px;
  padding-left: 14px;
  color: var(--text);
  font-weight: 500;
}
.filter-box .select2-container .select2-selection__arrow {
  height: 56px;
}
.filter-box .select2-container .selection,
.filter-box .select2-container .select2-selection,
.filter-box .select2-container .select2-selection__rendered {
  width: 100% !important;
  max-width: 100%;
}
.filter-button {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 0;
  min-height: 56px;
  font-weight: 700;
  width: 100%;
  align-self: stretch;
}

/* ---------- Títulos de seção ---------- */
h3 {
  font-size: 1.3rem;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Grid de veículos (cards) ---------- */
.grid { 
  margin: 0;
  padding: 0;
}
.grid .row {
  margin-left: -12px;
  margin-right: -12px;
  row-gap: 24px;
}
.grid .col-lg-4,
.grid .col-md-6,
.grid .col-12 {
  padding-left: 12px;
  padding-right: 12px;
}
.item-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 0;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  color: var(--text);
  text-decoration: none;
  height: 100%;
  min-height: 520px;
}
.item-grid:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
  color: var(--text);
  border-color: var(--accent);
}

/* Image wrapper com badges e contador */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.item-grid:hover .card-image {
  transform: scale(1.05);
}

/* Badges de oferta */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  width: fit-content;
}
.badge-oferta {
  background: #e63946;
  color: #fff;
}
.badge-abaixo {
  background: #2a9d8f;
  color: #fff;
}

/* Contador de fotos */
.card-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Card body com informações */
.card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.card-title {
  margin: 0 0 4px;
  text-align: left;
}
.card-title h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.card-version {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
  text-align: left;
}

/* Especificações em linha */
.card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.spec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.spec-label {
  font-size: 0.7rem;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
  text-align: left;
}
.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
}

/* Preço */
.card-price {
  margin-bottom: 12px;
  text-align: left;
}
.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
}

/* Botão Ver mais */
.btn-parcelas {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.btn-parcelas:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
  .item-grid {
    min-height: 480px;
  }
  .card-specs {
    gap: 6px;
  }
  .spec-value {
    font-size: 0.85rem;
  }
  .spec-label {
    font-size: 0.65rem;
  }
  .price {
    font-size: 1.2rem;
  }
  .card-image-wrapper {
    height: 200px;
  }
  .card-body {
    padding: 14px;
  }
  .card-title h4 {
    font-size: 1rem;
  }
  .btn-parcelas {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .item-grid {
    min-height: 450px;
  }
  .card-specs {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px 0;
  }
  .card-image-wrapper {
    height: 180px;
  }
  .card-body {
    padding: 12px;
  }
  .card-title h4 {
    font-size: 0.95rem;
  }
  .card-version {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  .price {
    font-size: 1.1rem;
  }
  .spec-value {
    font-size: 0.8rem;
  }
  .btn-parcelas {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}

/* ---------- Sidebar ---------- */
.list-group.alt { border: none; }
.list-group.alt h3 { margin-top: 0; }
.list-group.alt .row { margin-left: -5px; margin-right: -5px; }
.list-group.alt .col-6 {
  padding-left: 5px;
  padding-right: 5px;
  width: 50%;
  float: left;
}
.list-group-item {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 10px;
  padding: 8px;
  background: var(--white);
  transition: var(--transition);
  overflow: hidden;
  box-sizing: border-box;
}
.list-group-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.popular-item {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.popular-item img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
  margin: 0 auto 6px;
  background: #eef2f7;
}
.popular-item strong {
  color: var(--primary);
  display: block;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.popular-item span {
  color: var(--text-muted);
  font-size: 0.72rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ---------- Depoimentos ---------- */
.testimonials { margin-top: 30px; }
.testimonials-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin: 10px;
  text-align: center;
}
.testimonials-item .img img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--accent-light);
}
.testimonials-item em { color: var(--text-muted); font-style: italic; display: block; margin-bottom: 10px; }
.testimonials-item strong { color: var(--accent); }

/* ---------- Paginação ---------- */
.pagination > li > a {
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0 3px;
  padding: 8px 14px;
}
.pagination > li.active > a {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination > li > a:hover { background: var(--accent-light); }

/* ---------- Footer ---------- */
.middlefoot {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 50px 0 30px;
  margin-top: 50px;
}
.middlefoot h2 {
  color: #fff;
  border-left: 3px solid var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.middlefoot p { color: #94a3b8; font-size: 0.9rem; }
.middlefoot a { color: var(--accent); }
.bread-top {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 15px;
  margin-bottom: 30px;
  font-size: 0.85rem;
}
.breadcrumbs a { color: #e2e8f0; }
.go-top {
  text-align: right;
}

.go-top a {
  color: #e2e8f0;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.go-top a:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-3px);
}

.bottomfoot {
  background: var(--primary);
  color: #94a3b8;
  padding: 20px 0;
  font-size: 0.85rem;
}
.bottomfoot p { color: #94a3b8; margin: 0; }
.social { list-style: none; margin: 0; padding: 0; text-align: right; }
.social li { display: inline-block; margin-left: 8px; }
.social li a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
  border-radius: 50%;
  transition: var(--transition);
}
.social li a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ---------- Página de detalhe ---------- */
#car .pagetitle {
  margin-bottom: 28px;
}

#car .pagetitle h2 {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
/* Detail Page Premium Layout */
#car .gallery-section {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 42, 67, 0.08);
}

#car .detail-sidebar {
  position: sticky;
  top: 20px;
}

/* Price Highlight */
.price-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.25);
  position: relative;
  overflow: hidden;
}

.price-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.price-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 8px;
  font-weight: 600;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Contact Card */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(15, 42, 67, 0.06);
}

#car .contact-title {
  margin: 0 0 24px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

#car .formcontact {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

#car .formcontact .form-group {
  margin-bottom: 16px;
}

#car .formcontact label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

#car .formcontact .form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 11px 13px;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(15, 42, 67, 0.02);
}

#car .formcontact .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
  background: #fff;
}

#car .formcontact .btn-contact {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  transition: var(--transition);
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

#car .formcontact .btn-contact:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #d35800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

/* Specifications Grid */
.specs-section {
  margin: 40px 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}

.specs-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(15, 42, 67, 0.1);
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff5f0 0%, #fef9f6 100%);
}

.spec-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
  text-align: center;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
  width: 100%;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  word-wrap: break-word;
  text-align: center;
  width: 100%;
}

/* Features Section */
.features-section {
  margin: 40px 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}

.features-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.feature-group-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 1.15rem;
  line-height: 1.5;
}

.feature-item i {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

/* Description Section */
.description-section {
  margin: 40px 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}

.description-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.description-content {
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
}

.description-content p {
  color: var(--text-dark);
  margin: 0;
}
#car .nav-tabs { display: none; }
#car .nav-tabs > li > a {
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 20px;
}
#car .nav-tabs > li.active > a {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  background: transparent;
}
#car .list-group-item { border: none; background: var(--bg); }
#car .list-group-item i { color: var(--accent); margin-right: 6px; }

/* Detail Page Carousel */
#carousel-car {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

#carousel-car .carousel-inner {
  border-radius: 12px;
  background: #000;
}

#carousel-car .carousel-inner > .item {
  display: none;
  position: relative;
  width: 100%;
}

#carousel-car .carousel-inner > .item > img,
#carousel-car .carousel-inner > .item > a > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

#carousel-car .carousel-inner > .item.active {
  display: block;
  animation: fadeCarousel 0.5s ease-in-out;
}

@keyframes fadeCarousel {
  from { opacity: 0; }
  to { opacity: 1; }
}

#carousel-car .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  transition: all 0.3s ease;
  opacity: 0.7;
}

#carousel-car .carousel-control:hover {
  opacity: 1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#carousel-car .carousel-control.left {
  left: 15px;
}

#carousel-car .carousel-control.next {
  right: 15px;
  left: auto;
}

#carousel-car .carousel-control i {
  color: var(--primary);
  font-size: 1.2rem;
}

#carousel-car .carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  margin: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  display: flex;
  gap: 8px;
}

#carousel-car .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

#carousel-car .carousel-indicators li.active {
  background: #fff;
  width: 24px;
  border-radius: 5px;
}

#carousel-car .carousel-indicators li:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Responsive Detail Page */
@media (max-width: 991px) {
  #car .col-md-8 {
    margin-bottom: 24px;
  }
  
  #car .detail-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .price-value {
    font-size: 2rem;
  }
  
  .specs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  #car .pagetitle h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  #car .pagetitle {
    margin-bottom: 16px;
  }
  
  #car .pagetitle h2 {
    font-size: 1.2rem;
  }
  
  .price-value {
    font-size: 1.6rem;
  }
  
  .price-highlight {
    padding: 16px;
  }
  
  .contact-card {
    padding: 16px;
  }
  
  #car .contact-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  
  .specs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  
  .spec-card {
    padding: 12px;
  }
  
  .spec-icon {
    font-size: 1.4rem;
  }
  
  .spec-label {
    font-size: 0.75rem;
  }
  
  .spec-value {
    font-size: 0.95rem;
  }
  
  .features-grid {
    gap: 12px;
  }
}

/* ---------- Página de contato ---------- */
.cform { padding: 20px 0 0; }
#contact .cform h2 { border-left: 4px solid var(--accent); padding-left: 12px; }
#contact .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 12px 14px;
}
#contact .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
}
#contact .btn:hover { background: var(--accent-dark); }

/* ---------- Página sobre ---------- */
.history h2 { border-left: 4px solid var(--accent); padding-left: 12px; }
.team p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

/* ---------- Alertas ---------- */
.alert { border-radius: var(--radius-sm); border: none; }
.alert-warning { background: var(--accent-light); color: var(--accent-dark); }
.alert-info { background: #e0f2fe; color: #0369a1; }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
  .navbar .nav-link { padding: 12px 15px; border-bottom: none; }
  .navbar .nav-link:hover, .navbar .nav-link.active { border-bottom: none; }
  .navbar .input-group { margin: 10px 0 15px; }
  .subbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .navbar {
    min-height: 70px;
  }
  .navbar .container {
    min-height: 70px;
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
  }
  .navbar .navbar-brand {
    float: left;
    height: 70px;
    margin: 0;
    padding: 6px 0;
  }
  .navbar .navbar-brand img {
    max-height: 52px;
    width: auto;
  }
  .navbar .navbar-toggle {
    display: block;
    float: right;
    margin-top: 18px;
    margin-right: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 4px;
    padding: 8px 10px;
  }
  .navbar .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    margin: 4px 0;
  }
  .navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    float: none;
    clear: both;
    width: 100%;
    display: none;
    background: rgba(15, 42, 67, 0.98);
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
    z-index: 9999;
  }
  .navbar .navbar-collapse.in,
  .navbar .navbar-collapse.collapsing {
    display: block;
  }
  .navbar .navbar-nav {
    float: none;
    width: 100%;
    margin: 0;
  }
  .navbar .navbar-nav > li {
    float: none;
    width: 100%;
  }
  .navbar .navbar-nav > li > a,
  .navbar .nav-link {
    color: #fff;
    padding: 12px 15px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .navbar .navbar-form {
    float: none;
    width: 100%;
    margin: 10px 0 12px;
    padding: 0 10px;
  }
  .navbar .navbar-form .input-group {
    width: 100%;
  }
  .navbar .navbar-form .form-control {
    width: 100%;
  }
  .filter-box {
    padding: 14px;
  }
  .filter-box .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 10px;
  }
  .filter-box .form-select {
    width: 100%;
  }
  .filter-box .btn-accent {
    width: 100%;
    display: block;
    margin-top: 4px;
  }
  .subbar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subbar .offer { min-height: 82px; }
  .item-grid img { height: 180px; }
  .social { text-align: center; margin-top: 10px; }
  #topsocial { text-align: left; margin-top: 6px; }
}


.row.g-3 {
    display: flex;
    flex-wrap: wrap;
}


.row.g-3 div.col-lg-4 {
    padding: 20px;
}

.row.pagetitle {
    margin-top: 30px;
}


.subbar-grid {
    width: 1200px;
    justify-self: center;
}


@media (min-width: 800px) {
.subbar .offer img {
    width: 50%;
    height: 100%;

}

.subbar .offer span {
    font-size: 1.2rem;
}

}

/* ============================================================
   CORREÇÕES RESPONSIVAS - APENAS CELULAR (max-width: 800px)
   ============================================================ */
@media (max-width: 800px) {
.list-group.alt.row {
    padding: 20px;
}


  /* Subbar não transborda */
  .subbar-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-self: center;
  }

  /* Slide mais fino */
  #mainSlider {
    height: 260px;
  }
  #mainSlider .carousel-caption .offer-tag,
  #mainSlider .carousel-caption .offer-name {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  /* Formulário de pesquisa: um select por linha */
  .filter-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .filter-field {
    width: 100%;
  }
  .filter-field .form-select,
  .filter-field .select2-container {
    width: 100% !important;
    min-height: 56px;
  }

  /* Cards um por linha ocupando toda a largura */
  .grid .row.g-3 > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  /* Textos dos cards alinhados à esquerda */
  .card-body {
    text-align: left;
  }
  .card-title,
  .card-title h4,
  .card-version,
  .card-price,
  .price {
    text-align: left;
  }
  .spec {
    align-items: flex-start;
    text-align: left;
  }
  .spec-label,
  .spec-value {
    text-align: left;
  }
}

html {
    font-size: 83%;
}