.featured-cars {
    padding: 50px 0;
    background-color: #222;
    text-align: center;
}

.featured-cars h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #f1f1f1;
}

/* .carrossel.swiper-wrapper {
    justify-content: center;
} */

.car-item {
    position: relative;
    background-color: #333;
    width: 300px;
    border-radius: 10px;
    padding: 0 0 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: 0 auto;
}

.car-item.vendido {
    opacity: 0.5;
}

.car-item.vendido::before {
    content: "VENDIDO";
    position: absolute;
    top: 25px;
    left: -40px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 5px 50px;
    font-size: 1rem;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* .car-item > div{
    display: flex;
} */

.car-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.car-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-image {
    margin: 0;
}

.sem-foto {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    background: #2b2b2b;
    color: #d8d8d8;
    text-align: center;
}

.car-info {
    padding: 0 15px;
}

.car-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #f1f1f1;
    text-align: left;

}

.ano-valor{
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.ano-valor p {
    display: flex;
    align-items: center;
    gap: 5px;
    /* background-color: #2b2b2b; */
    font-weight: 300;
    padding: 5px 15px;
    border-radius: 5px;
}

.ano-valor p b {
    font-size: 1.1rem;
}

.ano-valor img{
    width: 20px;
    height: 20px;
    color: #f1f1f1;
}

.car-info p {
    margin-bottom: 10px;
}

.details-button {
    display: block;
    margin: auto;
    margin-top: 10px;
    padding: 10px 20px;
    width: 92%;
    background-color: #e74c3c;
    color: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.details-button:hover {
    background-color: #c0392b;
}

.titulo {
  display: -webkit-box;
  -webkit-line-clamp: 1;     /* número de linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
    .carrossel.swiper-wrapper {
        justify-content: flex-start;
    }
}
