@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-light: rgba(37, 99, 235, 0.08);
    --secondary-color: #0f172a;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.09), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --bottom-nav-height: 64px;
    --btn-secondary-bg: #f1f5f9;
    --btn-secondary-hover-bg: #e2e8f0;
}

body.dark-theme {
    --secondary-color: #f8fafc;
    --background-color: #0b0f19;
    --surface-color: #151d30;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #243049;
    --primary-light: rgba(37, 99, 235, 0.22);
    --btn-secondary-bg: #243049;
    --btn-secondary-hover-bg: #1e293b;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* --- ANIMAÇÃO DE ENTRADA SUAVE --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- CABEÇALHO COM GLASSMORPHISM --- */
header {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    height: 64px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-theme header {
    background-color: rgba(21, 29, 48, 0.88);
    border-bottom-color: rgba(36, 48, 73, 0.7);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 34px;
    max-height: 38px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.03);
}

@media (min-width: 769px) {
    header {
        height: 72px;
    }
    .header-container {
        padding: 0 24px;
    }
    .logo img {
        height: 42px;
        max-height: 48px;
        max-width: 210px;
    }
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-desktop {
    display: none;
}

@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 28px;
    }
    .nav-desktop a {
        font-weight: 700;
        font-size: 14px;
        color: var(--text-color);
        transition: all 0.2s ease;
        position: relative;
        padding: 6px 0;
    }
    .nav-desktop a:hover, .nav-desktop a.active {
        color: var(--primary-color);
    }
    .nav-desktop a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2.5px;
        background-color: var(--primary-color);
        border-radius: 99px;
    }
}

/* --- MENU INFERIOR FIXO (MOBILE - ESTILO APP PROFISSIONAL) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .bottom-nav {
    background-color: rgba(21, 29, 48, 0.90);
    border-top-color: rgba(36, 48, 73, 0.8);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    flex: 1;
    height: 100%;
    gap: 3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item.active svg {
    transform: translateY(-2px) scale(1.1);
    stroke: var(--primary-color);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 4px;
    width: 18px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 999px;
}

.bottom-nav-item.whatsapp-nav {
    color: #10b981;
}

.bottom-nav-item.whatsapp-nav svg {
    fill: currentColor;
    stroke: none;
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

/* --- CARROSSEL DE BANNERS (HERO) --- */
.hero-carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    background-color: #0f172a;
    border-radius: 0;
    height: auto;
}

@media (min-width: 769px) {
    .hero-carousel-container {
        border-radius: var(--radius-md);
        margin: 24px auto;
        max-width: 1200px;
        box-shadow: var(--shadow-md);
    }
}

.hero-carousel-slides {
    display: flex;
    width: 100%;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hero-carousel-slides::-webkit-scrollbar {
    display: none;
}

.hero-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    scroll-snap-align: start;
    position: relative;
    display: block;
}

.hero-carousel-img {
    width: 100%;
    height: auto;
    max-height: 260px;
    display: block;
    object-fit: contain; /* Não corta os banners nas laterais ou altura, mostrando a imagem completa */
    background-color: #0b0f19; /* Fundo preto neutro caso as proporções variem */
}

@media (min-width: 769px) {
    .hero-carousel-img {
        max-height: 480px;
    }
}

.hero-carousel-fallback {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: flex-end;
}

@media (min-width: 769px) {
    .hero-carousel-fallback {
        height: 380px;
    }
}

.hero-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: white;
    z-index: 5;
}

.hero-carousel-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-carousel-subtitle {
    font-size: 13px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (min-width: 769px) {
    .hero-carousel-title {
        font-size: 32px;
    }
    .hero-carousel-subtitle {
        font-size: 18px;
    }
    .hero-carousel-overlay {
        padding: 80px 40px 40px 40px;
    }
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.hero-carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* --- BUSCA RÁPIDA --- */
.search-container {
    padding: 0 16px;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.search-input-group {
    position: relative;
    margin-bottom: 12px;
}

.search-input-group svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-group input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
    background-color: var(--background-color);
}

.search-input-group input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px var(--primary-light);
    transition: opacity 0.2s;
}

.search-btn:active {
    opacity: 0.95;
}

@media (min-width: 769px) {
    .search-box {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 12px;
    }
    .search-input-group {
        margin-bottom: 0;
        flex: 1;
    }
    .search-btn {
        width: auto;
        padding: 12px 28px;
    }
}

/* --- CATEGORIAS / MARCAS RÁPIDAS --- */
.categories-section {
    padding: 0 16px;
    margin-bottom: 28px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-color);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.brands-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}

.brands-scroller::-webkit-scrollbar {
    display: none; /* Safari e Chrome */
}

.brand-card {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-card:active, .brand-card:hover {
    transform: translateY(-4px) scale(1.04);
}

.brand-card:hover .brand-icon {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px -4px var(--primary-light);
}

.brand-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.brand-card:hover .brand-icon img {
    transform: scale(1.1);
}

.brand-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- CARDS DE VEÍCULOS (MODERNOS E APP STYLE) --- */
.vehicles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto 36px auto;
}

@media (min-width: 520px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .vehicles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vehicle-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.vehicle-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    background-color: #f1f5f9;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.vehicle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover .vehicle-img-wrapper img {
    transform: scale(1.07);
}

.vehicle-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    color: white;
}

.badge-disponivel {
    background-color: var(--primary-color);
}

.badge-vendido {
    background-color: var(--danger-color);
}

.badge-reservado {
    background-color: var(--warning-color);
}

.vehicle-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.9);
    color: #b45309;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vehicle-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-brand-model {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.vehicle-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.vehicle-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.vehicle-attr-tag {
    background-color: var(--background-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 6px;
    border-radius: 4px;
}

/* --- FILTROS ESTOQUE --- */
.stock-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.filter-toggle-btn {
    width: 100%;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.filter-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    background-color: var(--surface-color);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-drawer.open {
    left: 0;
}

.filter-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-body {
    padding: 16px;
    overflow-y: auto;
    flex-grow: 1;
}

.filter-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
    display: block;
}

.filter-control {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    outline: none;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    display: none;
}

.filter-overlay.open {
    display: block;
}

@media (min-width: 769px) {
    .stock-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 24px;
        padding-top: 24px;
    }
    .filter-toggle-btn {
        display: none;
    }
    .filter-drawer {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        height: auto;
        display: block;
    }
    .filter-header {
        border-bottom: 1px solid var(--border-color);
    }
    .filter-footer {
        flex-direction: column;
    }
    .filter-overlay {
        display: none !important;
    }
}

/* --- PÁGINA DE DETALHES DO VEÍCULO --- */
.vehicle-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #000;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-slides::-webkit-scrollbar {
    display: none;
}

.carousel-slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.carousel-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--secondary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s;
}

.carousel-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-btn-prev { left: 10px; }
.carousel-btn-next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.vehicle-detail-main {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.detail-header-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 8px 0;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
}

.detail-badge-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 8px;
}

/* Ficha técnica */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

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

.spec-item {
    background-color: var(--background-color);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 8px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.spec-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    color: white;
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Opcionais */
.options-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 16px 0;
}

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

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.option-item svg {
    color: var(--success-color);
    width: 18px;
    height: 18px;
}

/* Form de contato/financiamento */
.lead-form-box {
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.lead-form-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.lead-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.lead-tab-btn.active {
    color: var(--primary-color);
}

.lead-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--background-color);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

/* --- BOTÕES E COMPONENTES APP --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: 16px;
    background-color: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

@media (min-width: 769px) {
    .whatsapp-float-btn {
        bottom: 24px;
        right: 24px;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px var(--primary-light);
    transition: opacity 0.2s;
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
}

.btn-success {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.2);
    transition: opacity 0.2s;
}

.btn-primary:active, .btn-success:active {
    opacity: 0.95;
}

@media (min-width: 769px) {
    .vehicle-detail-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 24px;
        padding-top: 24px;
    }
}

/* --- FOOTER DESKTOP --- */
footer.desktop-footer {
    background-color: #0f172a; /* Cor escura fixa no tema claro */
    color: #f1f5f9;
    padding: 40px 16px;
    margin-top: 40px;
}

body.dark-theme footer.desktop-footer {
    background-color: #080d19; /* Tom de preto mais profundo no tema escuro */
    border-top: 1px solid var(--border-color);
}

.footer-column p a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-column p a:hover {
    color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 769px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.footer-social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

@media (min-width: 769px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* --- AVISO DE SUCESSO/ERRO --- */
.toast-msg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    display: none;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; top: 10px; }
    10% { opacity: 1; top: 20px; }
    90% { opacity: 1; top: 20px; }
    100% { opacity: 0; top: 10px; }
}

/* --- LIGHTBOX POPUP --- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 25, 0.96);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10010;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    /* Removido cursor de zoom para favorecer o gesto de pinça nativo */
}

/* Botões de Navegação do Lightbox */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10010;
    user-select: none;
}

.lightbox-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-btn-prev {
    left: 20px;
}

.lightbox-btn-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 26px;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .lightbox-btn-prev {
        left: 10px;
    }
    .lightbox-btn-next {
        right: 10px;
    }
}
