/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* Estilo base */
body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    width: 100%;
    font-family: 'Kanit', sans-serif;
    align-items: center;
    font-size: 11px;
    line-height: 1.0;
}

#main-conteiner {
    flex: 1;
    min-height: 100px;
}


/* Cabeçalho */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    padding-bottom: 15px; /* Aumentar padding inferior para a linha neon */
    background-color: #1a1a1a;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap; /* Mantém os elementos em uma linha no desktop */
}

/* Linha neon animada */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Slightly thicker line */
    background: linear-gradient(90deg, 
        transparent 0%,
        #ffd700 20%,
        #ff8c00 40%,
        #ffa500 50%,
        #ff8c00 60%,
        #ffd700 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: neonLine 4s linear infinite;
    box-shadow: 
        0 0 5px rgba(255, 215, 0, 0.5),
        0 0 10px rgba(255, 215, 0, 0.3),
        0 0 15px rgba(255, 140, 0, 0.2),
        0 0 20px rgba(255, 140, 0, 0.1);
    opacity: 0.9;
    filter: blur(0.3px);
}

/* Animação da linha neon */
@keyframes neonLine {
    0% {
        background-position: 200% 0;
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        background-position: -200% 0;
        opacity: 0.9;
    }
}

/* Estilizando a div logo */
.logo {
    text-align: center; /* Centraliza o conteúdo dentro da div */
    margin: 20px ; /* Adiciona margem superior e inferior */
}

/* Estilizando a imagem do logo */
.logo img {
    max-width: 50%; /* Faz com que a imagem não ultrapasse a largura do contêiner */
    height: auto; /* Mantém a proporção da imagem */
    width: 180px; /* Define uma largura fixa para a imagem */
    border: none; /* Remove bordas, se houver */
}

/* Adicionando um efeito de hover ao link */
.logo a {
    text-decoration: none; /* Remove o sublinhado do link */
}

.logo a:hover img {
    opacity: 0.8; /* Diminui a opacidade da imagem ao passar o mouse */
    transition: opacity 0.3s; /* Adiciona uma transição suave */
}

header .logo:hover {
    transform: scale(1.1); /* Aumenta ligeiramente o logo ao passar o mouse */
}

header .social-media {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    margin-left: auto;
}

header .social-media a {
    color: #ffd700;
    font-size: 2.5em;
    margin-left: 25px;
    transition: color 0.5s ease, transform 0.5s ease;
}

header .social-media a:hover {
    transform: scale(1.2);
    color: #ffffff;
}

header .links-rodape {
    display: flex;
    margin-right: 50px;
    gap: 40px;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.links-rodape {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
    align-items: start;
    margin: 1px;
    font-weight: bold;
}

.links-rodape a {
    color: #ffd700;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links-rodape a:hover {
    color: #fff;
}



/* Ajuste geral da barra de pesquisa */
header .search-bar {
    max-width: 450px;
    background: #333333;
    margin-right: 20px;
    border-radius: 50px;
    padding: 8px 10px;
    margin: 15px auto; /* Alterado para centralizar */
    display: flex;
    flex: 0 0 auto;
    position: center;
}

.search-bar input[type="text"] {
    flex: 1;
    width: 100%;
    font-family: 'Kanit', sans-serif;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
    background: transparent;
    color: #ffd700;
}

.search-bar button {
    border: none;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.search-bar button:hover {
    background: linear-gradient(45deg, #ff8c00, #ffd700);
}

/* Ajuste da barra de pesquisa */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 40px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos do Menu Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffd700;
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%; /* Mudado de left para right */
    width: 80%;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 999;
    padding: 80px 20px 20px;
    transition: 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0; /* Mudado de left para right */
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.mobile-social a {
    font-size: 1.8em;
    border-bottom: none;
}

/* Menu Toggle Ativo */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {

    header .links-rodape,
    header .social-media {
        display: none;
    }

    
}

@media screen and (max-width: 1024px) {
    .card {
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .car-card {
        width: calc(50% - 20px); /* 2 cards por linha */
    }
}

@media (max-width: 480px) {
    .car-card {
        width: 100%; /* 1 card por linha */
    }
}



@media (max-width: 1200px) {
    .links-rodape {
        gap: 10px;
        align-items: flex-end;
        padding-left: 20px;
    }

}

/* Responsividade para telas médias */
@media (max-width: 1086px) {
    header {
        flex-direction: row;
        align-items: center;
        padding: 10px;
        flex-wrap: wrap;
    }

    header .links-rodape {
        justify-content: center;
        gap: 14px;
        width: 5px;
        padding-left: 20px;
        font-size: 8.0px;
        margin: 0px;
    }

    header .social-media {
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
        font-size: 9px;
    }

    .search-bar {
        max-width: 250px;
        margin: 10px 0;
    }

    .search-bar input[type="text"] {
        font-size: 14px;
        padding: 8px;
    }

    .search-bar button {
        padding: 8px;
        font-size: 14px;
    }
}

/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    header {
        flex-direction: center;
        align-items: center;
        padding: 5px;
        flex-wrap: wrap;
    }

    header .links-rodape {
        justify-content: center;
        gap: 8px;
        font-size: 7.8px;
        padding-left: 10px;
        margin: 0px;
    }

    header .social-media {
        justify-content: center;
        gap: 2px;
        margin: 10px 0;
    }

    header .search-bar {
        width: 60%;
        margin: 10px 0;
        padding: 5px;
        
        max-width: 210px;
    }

    .search-bar input[type="text"] {
        font-size: 10px;
        padding: 4.5px;
        padding-right: 50px;
        max-width: 200px;
    }

    .search-bar button {
        padding: 6px;
        font-size: 12px;
    }

    /* Certifique-se de que o conteúdo principal seja exibido */
    #main-conteiner {
        display: block;
        width: 100%;
        padding: 10px;
    }
}



/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo {
    width: 180px;
    height: 90px;
    margin: 0px;
    }

    header .links-rodape {
        display: none; /* Esconde os links do rodapé no celular */
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header .links-rodape.active {
        display: flex; /* Mostra os links quando o menu está ativo */
    }

    header .social-media {
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
    }

    .search-bar {
        width: 100%;
        margin: 10px 0;
    }

    .search-bar input[type="text"] {
        font-size: 14px;
        padding: 8px;
    }

    .search-bar button {
        padding: 8px;
        font-size: 14px;
    }

}

/* Responsividade para telas muito pequenas */
@media (max-width: 600px) {
    .links-rodape {
        display: none; /* Esconde os links do rodapé no celular */
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .links-rodape.active {
        display: flex; /* Mostra os links quando o menu está ativo */
    }

}


@media (max-width: 460px) {
    header .links-rodape {
        display: none; /* Oculta os links no celular */
    }

    /* Logo e Social Media em uma linha */
    .logo {
    align-items: start; /* Alinha o conteúdo à esquerda */
    justify-content: start;
}

.logo img {
    width: 100px;
    height: 100px;
    border: none; 
    margin: 0px 0;
}
    header .social-media {
        display: none;
        order: 1;
        justify-content: center; /* Centraliza os ícones */
        gap: 10px; /* Ajusta o espaçamento entre os ícones */
        margin-top: 0; /* Remove a margem superior */
    }

    header .social-media a {
        order: 1;
        font-size: 1.5em; /* Ajusta o tamanho dos ícones no celular */
    }

    /* Barra de pesquisa */
    .search-bar {
        max-width: 200px;
        order: 2; /* Inverte a ordem da barra de pesquisa e do logo */
        width: 200px; /* Ocupa toda a largura disponível */
        margin: 0px;
    }

    .search-bar input[type="text"] {
        width: 150%; /* Ajusta o tamanho do campo de entrada */
    }

    .search-bar button {
        width: 17%; /* Ajusta o tamanho do botão */
    }

    .links-rodape {
        display: none; /* Esconde os links no mobile */
    }
}

/* Media Queries - Header Responsiveness */
@media (max-width: 1200px) {
    header .links-rodape {
        gap: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 10px 15px;
    }


    header .search-bar {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 10px;
    }


    header .search-bar {
        order: 2;
        width: 70%;
        max-width: none;
        margin: 10px 0;
    }

    header .social-media {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }

    header .links-rodape {
        order: 4;
        width: 100%;
        justify-content: center;
        gap: 15px;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {

    header .social-media a {
        font-size: 1.8em;
        margin-left: 15px;
    }

    header .links-rodape {
        gap: 10px;
        font-size: 0.9em;
    }

    .search-bar input[type="text"] {
        font-size: 14px;
        padding: 8px;
    }

    .search-bar button {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* ----           ------       ----------         CSS CARROS.PHP------   --*/
/* ---     ----CSS CARROS.PHP----       --------*/
/* -------          -       ---CSS CARROS.PHP-----           -------*/
/* -----CSS CARROS.PHP-----         -------*/
/* -------           ---     ---     -------  - CSS CARROS.PHP--    ----     ---*/
/* --------        ---CSS CARROS.PHP---          ---------*/




/* Geral */
body {
    font-family: 'Kanit', sans-serif;   
    margin: 0;
    padding: 0;
    background-color: #ffffffbd;
}

#estoque {
    padding: 50px 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Card */
.car-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 20px;
    justify-content: center;
}

.car-card {
    width: 260px;
    height: auto;
    margin-bottom: 50px;
    min-width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s;
    cursor: pointer; 
    border-radius: 20px;
    background-color: #fff; /* Cor de fundo sólida */
    border: 1px solid #6d6d6d65; /* Borda sutil */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.33); /* Sombra leve */
    overflow: hidden
}

.card, .car-card {
    -webkit-tap-highlight-color: transparent; /* Remove o efeito azul ao clicar e segurar */
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.462);
}
.car-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 0;
    margin-bottom: 1px;
}

/* Imagem */
.car-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

@media (max-width: 768px) {
    .car-image {
        height: 320px;
        margin-bottom: 1px;
    }
    .car-image img {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .car-image {
        height: 320px;
        margin-bottom: 1px;
    }
    .car-image img {
        height: 100%;
    }
}

/* Informações do Carro */
.car-info {
    padding: 8px 20px 15px 20px;
    text-align: center;
}

.car-info h2 {
    font-size: 19px;
    margin-bottom: 3px;
    color: #1d1d1d;
    text-transform: capitalize; /* Add this line */
}

.car-info .model {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
    text-transform: capitalize;
}

.car-details {
    display: flex;
    justify-content: space-around;
    margin: 13px 0;
}

.car-detail-item {
    display: flex; /* Usa flexbox para alinhar o ícone e o texto */
    align-items: initial; /* Alinha o ícone e texto verticalmente no centro */
    gap: 5px; /* Aumenta o espaço entre ícone e texto */
    font-size: 13px; /* Define o tamanho do texto */
    color: #656565; /* Define a cor do texto */
    text-align: left; /* Garante alinhamento à esquerda dos itens internos */
    row-gap: 5px; /* Aumenta o espaço entre as linhas */
    text-transform: capitalize; /* Add this line */
}

.car-detail-item i {
    margin-right: 2px;
    color: #888;
}
.car-detail-item .fa-road{
    margin-left: 10px;
}

.car-detail-item .fa-calendar-alt {
    margin-right: 2px;
}

.car-detail-item .fa-brush {
    padding-left: 15px
}

.span {
    text-transform: capitalize;
}


hr {
    border: 0; /* Remove a borda padrão */
    border-top: 1px solid #0808082b;  /* Borda de 1px com opacidade */
    background-image: linear-gradient(to right, #000000, #FFD700);  /* Gradiente do preto para o amarelo */
    background-size: 100% 5px;  /* Controla a altura da linha do gradiente */
    background-repeat: no-repeat;  /* Impede a repetição do gradiente */
    margin: 15px 0; /* Espaçamento acima e abaixo */
    padding: 0.4px;
} 

/* Preço */
.car-price {
    font-size: 25px;
    color: #000000;
    padding: 4px;
    font-weight: bolder;
    margin: 10px 0;
    margin-top: 15px;
}

.view-car {
    margin-top: 10px;
    padding: 10px 40px;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ff4500);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px; /* Aumenta o tamanho da fonte */
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease; /* Adiciona transição para transformação */
    box-shadow: inset 0 0 0 0 #ff4500, 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.view-car:hover {
    background: linear-gradient(135deg, #ff4500, #ff8c00, #ffd700);
    box-shadow: inset 100px 0 0 0 #ff8c00, 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05); /* Aumenta ligeiramente o botão ao passar o mouse */
}

/* Efeito de linhas sutis em movimento */
.view-car::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.2;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in-out;
}

.view-car:hover::after {
    transform: translateX(100%);
}

/* Foco acessível */
.view-car:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.7), 0 0 8px rgba(255, 215, 0, 0.8);
}

/* Adiciona animação de pulsação */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 140, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

.view-car:hover {
    animation: pulse 1.5s infinite;
}


    /* Estilo do contêiner de paginação */
    .pagination {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* Estilo dos links de paginação */
    .pagination a {
        display: inline-block;
        padding: 8px 12px;
        margin: 0 4px;
        text-decoration: none;
        color: #333;
        background-color: #f4f4f4;
        border: 1px solid #ddd;
        border-radius: 4px;
        transition: background-color 0.3s, color 0.3s;
    }
    
    /* Estilo do link de paginação quando hover */
    .pagination a:hover {
        background-color: #ddd;
        color: #000;
    }
    
    /* Estilo do link de paginação ativo (página atual) */
    .pagination a.active {
        background-color:rgb(255, 208, 0);
        color: #fff;
        border-color:rgb(255, 162, 0);
    }



/* ----           ------       ----------         CSS CARROS.PHP------   --*/
/* ---     ----CSS CARROS.PHP----       --------*/
/* -------          -       ---CSS CARROS.PHP-----           -------*/
/* -----CSS CARROS.PHP-----         -------*/
/* -------           ---     ---     -------  - CSS CARROS.PHP--    ----     ---*/
/* --------        ---CSS CARROS.PHP---          ---------*/

/* Estilos para o rodapé */
footer {
    width: 100%;
    background-color: #1a1a1a;
    color: #ffd700;
    padding: 20px 0;
    text-align: center;
    position: relative; /* Use relative para evitar problemas de sobreposição */
    bottom: 0;
    flex-shrink: 0;
}

/* Responsividade para o rodapé em telas pequenas */
@media (max-width: 768px) {
    footer {
        padding: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        margin-bottom: 10px;
    }

    .footer-logo img {
        max-width: 80%;
        height: auto;
        margin:0px
    }
}




/* Ajuste o estilo do footer */
footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #ffd700;
    padding: 20px 0;
    text-align: center;
    margin-top: auto; /* Isso empurra o footer para baixo */
}
/* Logo e copyright juntos */
.footer-logo {
    display: flex;
    flex-direction: column; 
    align-items: flex-start; 
}

.footer-content {
    display: block;
    min-width: 10px;
    align-items: flex-start;
    align-self: baseline;
    align-content: space-around;
}
.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
}

/* Links do rodapé */
.footer-links {
    display: flex;
    font-weight: bold;
    gap: 50px;
    margin: 33px;
    justify-content: center; 
    align-items: center;
    flex-grow: 1; 
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    align-items: center;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Texto de copyright */
.footer-logo {
    font-size: 8px;
    color: #626060; 
}

/* Ajustes para prevenir zoom em dispositivos móveis */
@media (max-width: 768px) {
    .car-card {
        min-width: auto;
        width: calc(100% - 20px);
        max-width: 320px;
        margin: 10px;
    }

    .car-container {
        padding: 0 10px;
        gap: 20px;
    }

    .search-bar input[type="text"] {
        font-size: 16px; /* Previne zoom do iOS em inputs */
    }

    /* Ajuste do container principal */
    .container {
        padding: 0 10px;
        overflow-x: hidden;
    }

    #estoque {
        padding: 20px 0;
    }

    /* Ajuste da visualização de cards */
    .row {
        margin: 0;
        padding: 0;
        width: 100%;
    }
}

/* Ajustes do Menu Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: transparent;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffd700;
    margin: 5px 0;
    transition: 0.4s;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%; /* Mudado de left para right */
    width: 80%;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 999;
    padding: 80px 20px 20px;
    transition: 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0; /* Mudado de left para right */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr auto;
        padding: 15px;
        position: relative;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }


    .search-bar {
        margin-top: 10px;
        width: calc(100% - 30px);
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    header .search-bar {
        width: 80%;
        max-width: 280px;
        margin: 10px auto;
        order: 2;
        position: relative;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header .search-bar {
        width: 90%;
        max-width: 250px;
    }
}

/* Estilos do Filtro */
.filter-button {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 997;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.filter-button:hover {
    transform: scale(1.05);
}

.filter-panel {
    position: fixed;
    top: 120px;
    right: -300px;
    width: 280px;
    background: #fff;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 996;
    transition: right 0.3s ease;
    border-radius: 10px 0 0 10px;
    border-left: 3px solid #ffd700;
}

.filter-panel.active {
    right: 0;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.range-inputs {
    display: flex;
    gap: 10px;
}

.range-inputs input {
    width: 50%;
}

.filter-submit,
.filter-reset {
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.filter-submit {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: white;
}

.filter-reset {
    background: #f0f0f0;
    color: #333;
}

.filter-submit:hover {
    background: linear-gradient(45deg, #ff8c00, #ffd700);
}

.filter-reset:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .filter-button {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .filter-panel {
        top: auto;
        bottom: 80px;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Estilos do Filtro Ajustados */
.filter-section {
    background: #1a1a1a;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #ffd700;
    text-align: center;
}

.filter-toggle {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-toggle i {
    font-size: 14px;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filters-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    margin: 10px auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filters-container.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 20px;
}

/* Estilos do Filtro */
.filter-section {
    background: transparent;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
    text-align: center;
}

.filter-toggle {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-toggle i {
    font-size: 14px;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filters-container {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    margin: 10px auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filters-container.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 20px;
}

/* Responsividade do filtro */
@media (max-width: 768px) {
    .filter-toggle {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .filters-container.active {
        padding: 15px;
        margin: 15px 10px;
    }
}

/* Estilos dos Botões do Filtro */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-apply, 
.btn-reset {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-apply {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-reset {
    background: #333;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-apply:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    background: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-apply i,
.btn-reset i {
    font-size: 14px;
}

/* Ajuste linha única para sliders */
.range-slider { width: 100%; max-width: 500px; margin: 0 auto; }

/* Estilos do Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    overflow: visible;
}

.slider-container input[type="range"] {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: grab;
    pointer-events: all;
}

.slider-container input[type="range"]:active {
    cursor: grabbing;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #ff8c00;
}

/* Estilos do Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
}

.slider-container input[type="range"] {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #ff8c00;
}

.range-values {
    text-align: center;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.range-values span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.filter-section {
    margin: 20px auto;
    max-width: 800px;
    padding: 0 15px;
}

.filter-toggle {
    width: 100%;
    padding: 10px;
    background: #034f84;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.filters-container {
    display: none;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 10px;
}

.filters-container.active {
    display: block;
}

.filter-group {
    margin-bottom: 15px;
}

.range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.range-inputs input {
    width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-apply, .btn-reset {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-apply {
    background: #034f84;
    color: white;
}

.btn-reset {
    background: #f1f1f1;
    color: #333;
}