﻿


.navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding:10px;
}

#mainTabs {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

    #mainTabs li {
        min-width: 160px;
        padding: 15px 30px;
        text-align: center;
        color: #fff;
        cursor: pointer;
        font-size: 18px;
        font-weight: 600;
        transition: .3s;
    }

        #mainTabs li.active {
            background: #ec407a;
        }



/*==============================
    SUB TABS
==============================*/

#subTabs {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.sub-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
    gap: 20px;
}

    .sub-tabs li {
        padding: 14px 20px;
        cursor: pointer;
        font-weight: 600;
        white-space: nowrap;
        transition: .3s;
    }

        .sub-tabs li.active {
            color: #ec407a;
            border-bottom: 3px solid #ec407a;
        }





/* ==========================================
   VEHICLE GRID
========================================== */


.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
    margin-top: 30px;
}

.vehicle-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    transition: .35s ease;
    display: flex;
    flex-direction: column;
}

    .vehicle-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(0,0,0,.18);
    }

.vehicle-image {
    padding: 20px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .vehicle-image img {
        width: 100%;
        max-width: 260px;
        height: 190px;
        object-fit: contain;
        transition: .35s;
    }

.vehicle-card:hover img {
    transform: scale(1.08);
}

.vehicle-details {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color:darkslateblue;
}

.vehicle-details h2{
    color:whitesmoke!important;
}


.vehicle-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.offer {
    color: #d9e11a;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: normal;
}
.vehicle-details p {
    color: whitesmoke !important;
}


.desc {
    color: #666;
    line-height: 24px;
    flex: 1;
}


.button-group {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.btncard,
.btncard2 {
    display: inline-block;
    padding: 12px 30px;
    background: #e53935;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: .3s;
    width: 155px;
    text-align: center;
    box-sizing: border-box;
}

    .btncard:hover,
    .btncard2:hover {
        background: #c62828;
    }




/*.btncard {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #e53935;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: .3s;
    width: 155px
}

    .btncard:hover {
        background: #c62828;
    }



.btncard2 {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #e53935;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: .3s;
    width: 155px

}

    .btncard2:hover {
        background: #c62828;
    }
*/


@media (max-width: 576px) {
    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btncard,
    .btncard2 {
        width: 100%;
    }
}




@media (max-width:1200px) {

    .vehicle-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:768px) {

    .vehicle-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }

    .vehicle-image {
        height: 180px;
    }

        .vehicle-image img {
            height: 150px;
        }

    .vehicle-name {
        font-size: 20px;
    }

    .offer {
        font-size: 18px;
    }
}

@media (max-width:480px) {

    .vehicle-grid {
        grid-template-columns: 1fr;
    }
}

.no-vehicle {
    text-align: center;
    padding: 60px 20px;
}

    .no-vehicle h2 {
        margin-top: 20px;
    }

    .no-vehicle p {
        color: #777;
    }


@media(max-width:768px) {

    .navigation {
        padding: 0 10px;
    }

    #mainTabs {
        width: 100%;
    }

        #mainTabs li {
            flex: 1;
            min-width: auto;
            padding: 12px;
            font-size: 16px;
        }

    #subTabs {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

        #subTabs::-webkit-scrollbar {
            display: none;
        }

    .sub-tabs {
        min-width: max-content;
        gap: 10px;
    }

        .sub-tabs li {
            padding: 12px 15px;
            font-size: 14px;
        }
}


