
:root { 
    --orange: #FF8C00; 
    --dark: #121212; 
    /* AQUI ESTÁ O CINZA VIVO SOLICITADO (Cor de carro metálico/cinza sólido) */
    --light-bg: #B8C1C8; 
    --text-dark: #1a202c; 
    --price-green: #27AE60; 
    --border-color: #E2E8F0;
    --card-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }
body { background-color: var(--light-bg); color: var(--text-dark); overflow-x: hidden; }

/* Header */
.topbar { background-color: var(--dark); color: white; display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; box-shadow: 0 2px 10px rgba(0,0,0,0.3);}
.logo img { height: 70px; object-fit: contain;} 
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; transition: color 0.3s;}
.nav-links a:hover { color: var(--orange); }
.nav-links .whatsapp { display: flex; align-items: center; gap: 8px; color: #25D366; background: rgba(37,211,102,0.15); padding: 8px 15px; border-radius: 20px;}
.nav-links .whatsapp img { width: 18px; }

/* Filtros */
.filter-section { background-color: transparent; padding: 30px 5%; text-align: center;}
.filter-section h2 { font-size: 1.6rem; margin-bottom: 25px; color: #2d3748; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;}

.filtros-container { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; max-width: 1200px; margin: 0 auto; }
.filtros-container input, .filtros-container select { padding: 12px 15px; border: none; border-radius: 8px; flex: 1; min-width: 180px; font-size: 14px; outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: box-shadow 0.3s;}
.filtros-container input:focus, .filtros-container select:focus { box-shadow: 0 0 0 2px var(--orange); }
.preco-filtros { display: flex; gap: 10px; flex: 2; min-width: 300px; }

#btn-limpar-filtros { padding: 12px 25px; background-color: white; color: #475569; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.2s; }
#btn-limpar-filtros:hover { background-color: #E2E8F0; color: #1E293B; }

/* Vitrine e Cards - Design estilo moldura branca */
.catalog-container { padding: 20px 5% 60px 5%; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; max-width: 1450px; margin: 0 auto; }
.car-card { background: white; border-radius: 20px; padding: 10px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: transform 0.3s; border: 1px solid rgba(255,255,255,0.5);}
.car-card:hover { transform: translateY(-5px); }

/* --- NOVO CARROSSEL TOUCH & SETAS --- */
.carousel-container { position: relative; width: 100%; height: 240px; border-radius: 12px; overflow: hidden; margin-bottom: 15px;}
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; height: 100%; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; opacity: 0; transition: opacity 0.3s; font-size: 16px; font-weight: bold;}
.carousel-container:hover .carousel-btn { opacity: 1; } /* Aparece ao passar o mouse */
.carousel-btn:hover { background: var(--orange); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Para dispositivos de toque, as setas podem ficar ocultas ou sempre visiveis. O Scroll-snap resolve o passar do dedo. */
@media (hover: none) {
    .carousel-btn { opacity: 0.7; } /* Em celulares, mostra as setinhas levemente */
}

/* Detalhes do Carro */
.car-details { padding: 10px 10px 20px 10px; flex-grow: 1; display: flex; flex-direction: column; }
.car-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; color: var(--text-dark);}
.car-specs { font-size: 0.85rem; color: #64748B; margin-bottom: 15px; font-weight: 500;}
.car-price { font-size: 1.6rem; color: var(--price-green); font-weight: 900; margin-bottom: 15px; letter-spacing: -0.5px;}

.btn-acessar { background-color: var(--dark); color: white; text-align: center; padding: 12px; text-decoration: none; font-weight: 700; font-size: 0.9rem; border-radius: 8px; margin-top: auto; border: none; cursor: pointer; transition: background-color 0.3s;}
.btn-acessar:hover { background-color: var(--orange); color: white;}

.btn-simular { background: transparent; color: #64748B; border: none; border-top: 1px solid #E2E8F0; padding: 15px; font-size: 0.85rem; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s, background 0.3s; margin: 0 10px;}
.btn-simular:hover { color: var(--orange); }

.btn-consultor { display: flex; align-items: center; justify-content: center; gap: 10px; background-color: #25D366; color: white; text-decoration: none; padding: 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; transition: background-color 0.3s; margin-top: 5px;}
.btn-consultor:hover { background-color: #1EBA59; }
.btn-consultor img { width: 20px; filter: brightness(0) invert(1); }

/* Utilitários */
.w-100 { width: 100%; }
.mt-1 { margin-top: 15px; }
.btn-whatsapp { background-color: #25D366; color: white; padding: 14px; border: none; font-weight: bold; border-radius: 6px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s;}
.btn-whatsapp:hover { background-color: #1EBA59; }

/* Sidebar do Simulador */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 998; display: none; opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(3px);}
.overlay.active { display: block; opacity: 1; }

.sidebar { position: fixed; top: 0; right: -420px; width: 100%; max-width: 420px; height: 100vh; background: white; z-index: 999; box-shadow: -5px 0 25px rgba(0,0,0,0.1); transition: right 0.3s ease-in-out; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar.open { right: 0; }

.btn-fechar { position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 28px; cursor: pointer; color: #94A3B8; transition: color 0.2s;}
.btn-fechar:hover { color: #EF4444;}
.simulador-section { padding: 40px 30px; }
.simulador-section h3 { font-size: 1.4rem; border-bottom: 2px solid var(--orange); padding-bottom: 12px; margin-bottom: 20px; color: var(--dark);}
.destaque-veiculo { color: var(--orange); font-weight: 700; margin-bottom: 25px; font-size: 1.1rem; line-height: 1.4;}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; color: #475569; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 1rem; background-color: white; outline: none; transition: border-color 0.3s;}
.form-group input:focus, .form-group select:focus { border-color: var(--orange); }
.form-group input[readonly] { background-color: #F1F5F9; color: #64748B; cursor: not-allowed;}

.resultado-box { display: none; margin-top: 30px; padding: 20px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; }
.resultado-box p { color: #475569; font-size: 0.9rem; line-height: 1.5;}
.parcela-destaque { font-size: 1.8rem; color: var(--price-green); font-weight: 800; display: block; margin-top: 5px;}

/* ==========================================
   RESPONSIVIDADE 
   ========================================== */
@media (max-width: 900px) {
    .filter-section h2 { font-size: 1.2rem; }
    .catalog-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .topbar { flex-direction: column; padding: 15px; gap: 15px; }
    .nav-links { width: 100%; justify-content: center; gap: 10px; flex-wrap: wrap;}
    
    .filter-section { padding: 25px 15px; }
    .filtros-container { flex-direction: column; width: 100%; }
    .preco-filtros { flex-direction: column; width: 100%; min-width: 100%;}
    
    .catalog-container { padding: 15px 15px 40px 15px; grid-template-columns: 1fr; }
    
    .sidebar { max-width: 100%; right: -100%; }
}
