/* CSS Específico para Hatchbacks - Layout de Estoque */

/* Hero Section - Removido */

/* Seção de Estoque de Carros */
.car-stock {
    background: #ffffff;
    padding: 40px 0;
    min-height: 100vh;
}

/* Seção de Marca */
.brand-section {
    margin-bottom: 60px;
    background: none;
    border: none;
    padding: 0;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.brand-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 2px;
    margin: 0;
}

/* Grid de Carros Vertical - Desktop */
.cars-grid-vertical {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 30px;
    padding: 0 20px 40px 20px;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    white-space: nowrap;
}

/* Garantir que funcione no desktop */
@media (min-width: 769px) {
    .cars-grid-vertical {
        display: flex !important;
    }
}

.cars-grid-vertical::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Setas de navegação para desktop */
.brand-section {
    position: relative;
}

.brand-section .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    margin-top: 20px; /* Ajustar para centralizar na área dos carros */
}

.brand-section .scroll-arrow:hover {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-50%) scale(1.1);
}

.brand-section .scroll-arrow.left {
    left: 20px;
}

.brand-section .scroll-arrow.right {
    right: 20px;
}

.brand-section .scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Esconder setas no mobile */
@media (max-width: 768px) {
    .brand-section .scroll-arrow {
        display: none !important;
    }
}

/* Carrossel Mobile - Scroll Horizontal Simples */
.cars-carousel {
    display: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.cars-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cars-carousel-container {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
}

/* Indicador mobile */
.cars-carousel.has-scroll::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    animation: fadeInOut 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 480px) {
    .cars-carousel.has-scroll::after {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        right: 8px;
    }
}

@media (max-width: 360px) {
    .cars-carousel.has-scroll::after {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        right: 6px;
    }
}

/* Card de Carro */
.car-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 350px;
    flex-shrink: 0;
    width: 350px;
}

.car-card:hover .car-img {
    transform: none !important;
    filter: none !important;
    animation: none !important;
    animation-play-state: paused !important;
}

/* Desabilitar todas as animações específicas do CSS principal */
.car-image {
    animation: none !important;
    animation-play-state: paused !important;
}

.car-image:nth-child(1),
.car-image:nth-child(2),
.car-image:nth-child(3) {
    animation: none !important;
    animation-delay: 0s !important;
}

/* Desabilitar keyframes específicos */
@keyframes float {
    0%, 100% { transform: none !important; }
    50% { transform: none !important; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: none !important; }
    40% { transform: none !important; }
    60% { transform: none !important; }
}

@keyframes pulse {
    0%, 100% { filter: none !important; }
    50% { filter: none !important; }
}

/* Forçar posicionamento estático para todos os elementos de imagem */
.car-card .car-image,
.car-card .car-img,
.cars-grid-vertical .car-image,
.cars-grid-vertical .car-img,
.cars-carousel .car-image,
.cars-carousel .car-img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none !important;
    animation-play-state: paused !important;
}


/* Logo do Carro */
.car-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.brand-logo-mini {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Imagem do Carro */
.car-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    animation: none !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    animation-play-state: paused !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Sobrescrever todas as animações do CSS principal */
.car-image {
    animation: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

.car-image .car-img {
    animation: none !important;
    animation-play-state: paused !important;
    position: static !important;
    transform: none !important;
}

/* Informações do Carro */
.car-info {
    padding: 20px;
}

.car-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

/* Especificações */
.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Preço */
.car-price {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Botões */
.car-buttons {
    display: flex;
    gap: 10px;
}

.btn-details,
.btn-contact {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-details {
    background: #2c3e50;
    color: white;
}


.btn-contact {
    background: #3498db;
    color: white;
}


/* Header do Estoque */
.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Título da Seção */
.section-title {
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 0;
    padding-left: 0;
}

.section-title::after {
    background: #3498db;
    width: 100px;
    height: 3px;
    margin-top: 10px;
    margin-left: 0;
}

/* Container da Barra de Pesquisa */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Barra de Pesquisa */
.search-bar {
    width: 400px;
    height: 45px;
    padding: 12px 45px 12px 15px;
    border: none;
    border-radius: 25px;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    outline: none;
}

.search-bar::placeholder {
    color: #999;
    font-style: italic;
}

.search-bar:focus {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

/* Ícone de Pesquisa */
.search-icon {
    position: absolute;
    right: 15px;
    color: #666;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-bar:focus + .search-icon {
    color: #3498db;
}

/* Esconder seções desnecessárias */
.partner-brands,
.about-us {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .car-stock {
        padding: 40px 0;
    }
    
    .stock-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .section-title {
        padding-left: 0;
        margin-bottom: 0;
    }
    
    .search-bar {
        width: 100%;
        max-width: 300px;
    }
    
    .brand-header {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .cars-grid-vertical {
        display: none !important;
    }
    
    .cars-carousel {
        display: block;
        padding: 0 60px 0 20px;
    }
    
    .cars-carousel-container .car-card {
        min-width: 220px;
        width: 220px;
        flex-shrink: 0;
    }
    
    .car-card {
        border-radius: 8px;
    }
    
    .car-image {
        height: 150px;
    }
    
    .car-info {
        padding: 10px;
    }
    
    .car-title {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .car-specs {
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        margin-bottom: 10px;
    }
    
    .spec-label {
        font-size: 0.6rem;
    }
    
    .spec-value {
        font-size: 0.75rem;
    }
    
    .car-price {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .price-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .price-value {
        font-size: 1.05rem;
    }
    
    .car-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-details,
    .btn-contact {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .car-stock {
        padding: 30px 0;
    }
    
    .section-title {
        padding-left: 0;
        margin-bottom: 25px;
    }
    
    .brand-header {
        padding: 0 10px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .cars-carousel {
        padding: 0 50px 0 15px;
    }
    
    .cars-carousel-container .car-card {
        min-width: 200px;
        width: 200px;
    }
    
    .car-image {
        height: 140px;
    }
    
    .car-info {
        padding: 6px;
    }
    
    .car-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
        line-height: 1.1;
    }
    
    .car-specs {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        margin-bottom: 6px;
    }
    
    .spec-label {
        font-size: 0.55rem;
    }
    
    .spec-value {
        font-size: 0.7rem;
    }
    
    .car-price {
        padding: 5px;
        margin-bottom: 6px;
    }
    
    .price-label {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }
    
    .price-value {
        font-size: 0.95rem;
    }
    
    .btn-details,
    .btn-contact {
        padding: 5px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .section-title {
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .cars-carousel {
        padding: 0 45px 0 12px;
    }
    
    .cars-carousel-container .car-card {
        min-width: 180px;
        width: 180px;
    }
    
    .car-image {
        height: 130px;
    }
    
    .car-info {
        padding: 5px;
    }
    
    .car-title {
        font-size: 0.8rem;
        margin-bottom: 3px;
        line-height: 1.1;
    }
    
    .car-specs {
        gap: 1px;
        margin-bottom: 5px;
    }
    
    .spec-label {
        font-size: 0.5rem;
    }
    
    .spec-value {
        font-size: 0.65rem;
    }
    
    .car-price {
        padding: 4px;
        margin-bottom: 5px;
    }
    
    .price-label {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }
    
    .price-value {
        font-size: 0.9rem;
    }
    
    .btn-details,
    .btn-contact {
        padding: 4px 6px;
        font-size: 0.65rem;
    }
}