/*//////////////////////////Corpo//////////////////////////*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; 
    color: #333; 

/*//////////////////////////////Cabeçalho///////////////////////////////*/
header {
    background-color: #333; 
    color: #fff; 
    padding: 1rem 2rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.5rem;
    display: inline-block;
}

header a:hover {
    text-decoration: none;
    
}

/*//////////////////////// Voltar para o catálago////////////////////*/
.back-link {
    
    display: inline-flex; 
    text-decoration: none;
    background-color: #2ecc71;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: babsolute; 
    margin-top: 2px;
    margin-left: 30px; 
}


.back-icon {
    margin-right: 8px;
    font-size: 18px; 

}
.back-link:hover {
    background-color: #27ae60; 
    color: #fff;
}

/*///////////////////////// Main //////////////////////////////*/
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/*///////////////////////Detalhes do carro////////////////////////*/
.car-details {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-direction: column; 
    align-items: center;
}
/*///////////////// limitador da imagem/////////////////////*/
.image-container {
    display: flex;
    flex-direction: row; 
    gap: 2rem; 
    align-items: flex-start; 
    justify-content: center; 
    width: 100%; 
    margin: 0 auto;
}
/*////////////////////////seletor de imagens/////////////////////////*/
.thumbnail-bar {
    display: flex;
    flex-direction: column; 
    gap: 1rem;
    justify-content: flex-start; 
}

.thumbnail-bar img {
    width: 80px;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.thumbnail-bar img:hover {
    transform: scale(1.1); 
}
.image-zoom-container {
    position: relative;
    width: 600px; 
    height: auto;
    overflow: hidden;
}

/*/////////////////////// Imagem central///////////////////////////*/
.main-image {
    width: 100%; 
    height: auto;
    display: block;
}


.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease; 
}
.main-image img:hover {
    transform: scale(1.05); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/*///////////////////// fontes de informação///////////////////////*/
.car-details h2 {
    font-size: 2rem;
    color: #666;
    margin-top: 1rem;
}

.car-details p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center; 
}

.car-info {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
    margin-top: 1rem;
    max-width: 600px; 
    text-align: center; 
}

.info-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.info-item strong {
    font-weight: bold;
}
/*/////////////////////////////////////////////Desativado////////////////////////////////////////
.contact-button {
    background-color: #2ecc71;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  
  .contact-button:hover {
    background-color: #27ae60;
    text-decoration: none;
  }
  
 
  .contact-button a {
    text-decoration: none;
    color: #ffffff;
        
  }
 ///////////////////////////////////////////////Desativado/////////////////////////////////////////*/

 /*//////////////////////////////////////Rodapé///////////////////////////////////////*/
footer {
    background-color: #f8f9fa; 
    color: #333; 
    text-align: center; 
    font-size: 12px; 
    padding: 5px 10px;
    margin-top: 10px; 
    border-top: 1px solid #ddd; 
}

/* /////////////////////////////////////////////Desativado//////////////////////////////////////////
.contact-button:hover {
    background-color: #27ae60;
  }
  

  .contact-button a:hover {
    color: #fff;
    text-decoration: none;
  }
  
/////////////////////////////////////////////////Desativado//////////////////////////////////////////*/

/*//////////////////////////////////////////// Fodase /////////////////////////////////////////////////*/
a {
    color: #b3b3b3;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #27ae60;
    text-decoration: none;
}

/*///////////////////////////////////////////Responsividade///////////////////////////////////////////////////*/
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    .back-link{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 3%;
    }
    .image-container {
        flex-direction: column;
        gap: 1rem;
    }

    .thumbnail-bar {
        flex-direction: row;
        justify-content: center;
        width: auto;
    }

    .thumbnail-bar img {
        width: 60px;
    }

    .main-image img {
        width: 60%;
    }

    .car-info {
        grid-template-columns: 1fr; 
        gap: 0.5rem;
    }
    

    }