.car-card {
    flex: 1;
    min-width: 250px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    position: relative;
    border: solid 1px #CCCCCC;
    /* opacity: 0; */
    transition: all 0.3s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.car-card-link {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 99;
}

.car-image-container {
    /* height: 170px; */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    flex: 1;
    min-height: 80px;
    background-size: cover;
    background-position: bottom;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-badge {
    position: absolute;
    top: 0;
    left: 20px;
    padding: 4px 6px;
    border-radius: 0 0 2px 2px;
    font-family: Jost, sans-serif;
    text-transform: uppercase;
    z-index: 2;
    font-weight: 800;
    font-size: 8px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;
}

.car-badge.top-offer {
    background-color: #FFD447;
    color: #000;
}

.car-badge.coming-soon {
    background-color: #32FFDD;
    color: #000;
}

.car-details {
    padding: 20px;
    padding-bottom: 17px;
}

.car-title {
    font-family: Jost, sans-serif;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-family: Jost, sans-serif;
    color: #000000;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    min-height: 42px;
    opacity: .5;
}

.car-spec {
    display: inline-block;
    margin-right: 4px;
}

.car-spec:not(:last-child)::after {
    content: "•";
    margin-left: 4px;
}

.car-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #CCCCCC;

    cursor: pointer;
    transition: all 0.3s ease;
}

.price-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.current-price-wrapper {
    flex: 1;
}

.price-amimated-container {
    position: relative;
    height: 40px; /* Înălțime fixă pentru a preveni jump-ul */
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 60px;
}

.current-price {
    display: inline-block;
    background-color: #00E5B9;
    padding: 6px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 18px;
    line-height: 16px;
    font-family: Jost, sans-serif;
}

.old-price {
    color: #CCCCCC;
    font-size: 14px;
    margin-left: 6px;
    font-family: Jost, sans-serif;
    font-weight: 400;
    line-height: 14px;
    text-align: center;
    display: inline-block;
    position: relative;
}

.old-price::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 5px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='5' viewBox='0 0 60 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.16893C17.5 1.16888 46.5 0.668925 59 1.16893' stroke='%23FF005D' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 5px;
    transform: translateY(-50%);
    pointer-events: none;
}

.monthly-price {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 14px;
    font-family: Jost, sans-serif;

    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s ease;
    text-align: right;
    white-space: nowrap;
}

.car-card:hover .zero-advance {
    transform: translateY(-50px);
    opacity: 0;
}

.car-card:hover .monthly-price {
    transform: translateY(-50%);
    opacity: 1;
}

.monthly-value {
    font-family: Jost;
    font-weight: 700;
    font-size: 14px;
    line-height: 120%;
    text-align: right;
    display: block;
}

.monthly-label {
    font-family: Jost;
    font-weight: 400;
    font-size: 10px;
    line-height: 100%;
    text-align: right;

    display: block;
}

.zero-advance {
    color: #000000;
    font-family: Jost, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 120%;
    text-align: right;
    transition: all 0.4s ease;
}

.zero-advance strong {
    font-weight: 700;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .cars-grid {
        flex-wrap: wrap;
    }
    
    .car-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    
    .cars-grid {
        flex-direction: column;
    }
    
    .car-card {
        width: 100%;
        min-width: auto;
    }

    .car-details {
        padding: 12px;
        /* height: calc(100% - 120px); */
    }

    .car-specs {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .car-price-container {
        margin-top: 12px;
        padding-top: 12px;
    }

    .price-amimated-container {
        height: 30px;
    }

    .car-card {
        border-radius: 10px;
    }

    .current-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .car-card {
        height: 288px;
    }

}