@import url("https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto+Slab|Roboto:300,400,500,700,900");

:root {

    --grey: #DFDFDF;

    --white: #ffff;

    --main-color: #2296D2;

    --black: #000000;

    --text-color: #707578;

    --main-width: 1380px;

    --border-gird: #D6D6D6;

}


body {
    font-family: "Roboto", sans-serif;
}

.dealer-stock {

    width: var(--main-width);

    margin: 0 auto;

    margin-top: 1rem;



    .head-title {

        background-color: var(--main-color);

        padding: 15px;

        text-align: center;

        color: #fff;

        margin: 0 !important;

        font-size: 18px;

        letter-spacing: .5;

        border: 1px solid var(--main-color);

        border-top-left-radius: 10px;

        border-top-right-radius: 10px;

    }



    .btn-primary {

        background: var(--main-color);

    }


   .content-search{
     width: 100%;
     border: 2px solid var(--main-color);
     border-radius: 10px;
     padding: 1.5%;
     margin-bottom: 1rem;
     .grid-search{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: .5rem;
     }
   }


    .search-left {

        width: 23%;

        margin-right: 2%;

        .search-body {

            border: 1px solid var(--border-gird);

            border-bottom-left-radius: 10px;

            border-bottom-right-radius: 10px;



            .search-item {

                padding: 15px 0;

                border-top: 1px solid var(--border-gird);

                position: relative;



                .title {

                    width: 90%;

                    margin: 0 auto;

                    display: flex;

                    justify-content: space-between;

                    align-items: center;



                    h4 {

                        padding: 0;

                        margin: 0 !important;

                        font-size: 17px;

                        font-weight: 600;

                    }



                    img {

                        width: 18px;

                        object-fit: contain;

                    }

                }



                .body-search {

                    margin-top: 10px;

                    max-height: 400px;

                    overflow-y: scroll;

                    overflow-x: hidden;

                    display: none;

                    transform-origin: top center;



                    input {

                        width: 96%;

                        height: 40px;

                        border-radius: 5px;

                        border: 1px solid var(--border-gird);

                        padding-left: 4%;

                        font-weight: 500;

                        color: #c1c1c1;

                        margin: 0 2.5%;

                        background-color: #F5F5F5;

                    }

                    select {

                        width: 96%;

                        height: 40px;

                        border-radius: 5px;

                        border: 1px solid var(--border-gird);

                        padding-left: 4%;

                        font-weight: 500;

                        font-size: 14px;

                        color: #242424;

                        margin: 0 2.5%;

                        background-color: #F5F5F5;

                    }



                    input::placeholder {

                        color: #bdbdbd;

                    }



                    .list-items {

                        display: flex;

                        justify-content: space-between;

                        align-items: center;

                        margin: 0 5%;

                        cursor: pointer;

                        img {

                            width: 40px;

                            min-height: 50px;

                            object-fit: contain;

                        }



                        h5 {

                            margin: 0;

                            font-size: 14px;

                            color: #949494;

                            font-weight: 500;

                            letter-spacing: .5px;

                        }



                        .maker h5 {

                            color: var(--black);

                            font-size: 15px;

                        }

                        &:hover {

                            /* background-color: var(--main-color); */

                            h5 {

                                color: var(--main-color);

                                font-weight: 900;

                            }

                        }

                    }



                }



                .body-search-model {

                    .list-items {

                        margin: 0 5%;

                        padding: 10px 0;

                    }

                }



                .body-search-year {

                    overflow-y: hidden;



                    input {

                        width: 50%;

                    }

                }



                .body-search-type,

                .body-search-drive,

                .body-search-color {

                    .list-items h5 {

                        margin: .5rem 0;

                        color: var(--black);

                    }

                }



                .input-word {

                    width: 90%;

                    margin: 0 auto;

                }



                .input-word input {

                    width: 100%;

                    height: 40px;

                    border-radius: 5px;

                    border: 1px solid var(--border-gird);

                    padding-left: 4%;

                    font-weight: 500;

                    color: #949494;

                    background-color: #F5F5F5;



                    &::placeholder {

                        color: #bdbdbd;

                    }

                }



                .body-search::-webkit-scrollbar {

                    background: transparent;

                    width: 8px;

                    height: 0px;

                }



                /* Track */

                .body-search::-webkit-scrollbar-track {

                    background: #f1f1f1;

                }



                /* Handle */

                ::-webkit-scrollbar-thumb {

                    background-color: #2296D2;

                }



                ::-webkit-scrollbar-thumb:vertical {

                    border-radius: 10px;

                    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);

                }



                /* Handle on hover */

                .body-search::-webkit-scrollbar-thumb:hover {

                    background: var(--main-color);

                }

            }

        }

    }



    .car-body-list {

        width: 100%;



        h3 {

            font-size: 30px;

            font-weight: 700;

        }



        .sub-title {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-top: .5rem;

            margin-bottom: 1rem;



            h5 {

                font-size: 20px;

                color: var(--text-color);

                margin: 0;

                font-weight: 500;

            }



            .see-more {

                font-size: 16px;

                color: var(--text-color);

                margin: 0;

                font-weight: 500;

            }

        }

    }



    .list-all-car {

        .title {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-bottom: 1rem;

            h3 {

                font-size: 24px;

                margin: 0;

            }



            select {

                word-wrap: normal;

                border-radius: 5px;

                padding: 4px;

                font-size: 14px;

                font-weight: 500;

                color: var(--text-color);

                background-color: #F5F5F5;

                background-image: linear-gradient(#fff, #e0e0e0);

                border: 1px solid var(--border-gird);

            }

        }



        .line {

            border: 1.5px solid var(--text-color);

        }

    }



    .result-body {
           display: grid;
           grid-template-columns: 1fr 1fr;
           column-gap: 1.5rem;
        & a {

            text-decoration: none;

            color: #000000;

        }

        .car-result {

            display: flex;

            padding-bottom: 1rem;

            border-bottom: 1px solid var(--text-color);

            margin-bottom: 1rem;



        }



        .grid-container {

            width: 305px;

            display: grid;

            column-gap: 5px;

        }



        .item1 {

            grid-column: 1;

            grid-row: 1 / span 2;



            img {

                width: 200px;

                min-height: 150px;

                object-fit: cover;

            }

        }



        .item2 {

            grid-column: 2;

            grid-row: 1;



            img {

                width: 100px;

                height: 96%;

                margin-bottom: 1%;

                object-fit: cover;

            }

        }



        .item3 {

            img {

                width: 100px;

                height: 96%;

                margin-top: 1%;

                object-fit: cover;

            }



            grid-column: 2;

            grid-row: 2;

        }



        .car-bodys {

            width: 100%;

            margin-left: 1rem;

            position: relative;



            h4 {

                font-size: 18px;

            }



            ul {

                font-size: 14px;

                color: var(--text-color);

                padding-left: 0;



                i {

                    font-size: 10px;

                    color: #c7c7c7;

                }



                li {

                    margin-right: 10px;

                    display: inline;

                }

            }



            .stock {



                h5 {

                    font-size: 16px;

                    font-weight: 600;



                    span {

                        color: var(--main-color);

                    }

                }

            }



            .location-price {

                width: 100%;

                position: absolute;

                bottom: 0;

                display: flex;

                justify-content: space-between;

                align-items: center;



                h5 {

                    font-size: 14px;

                    color: var(--text-color);

                    font-weight: 500;

                    margin: 0;

                }



                .price {

                    color: red;

                    font-size: 18px;

                    font-weight: 600;

                }

            }



        }

    }

}



/* reponse */

@media(max-width:1400px) {

    .dealer-stock {

        width: auto;

        .search-left {

            margin: 1%;

        }

         .content-search{
            padding: .8%;
            .grid-search{
                gap: .3rem;
            }

            .btn{
                width: 80px !important;
                font-size: 14px;
            }
        }

        .car-body-list {

            margin-right: 1%;

        }



        .result-body {

            .car-bodys {





                .location-price {

                    h5 {

                        h5 {

                            font-size: 12px;

                        }

                    }



                    .price {

                        font-size: 16px;

                    }

                }



            }

        }





    }

}



@media(max-width:1270px) {



    .dealer-stock {

        .search-left {

            width: 20%;

            margin: 0 1%;

        }

           .content-search{
            padding: .8%;
            .grid-search{
                gap: .3rem;
            }

            .btn{
                width: 80px !important;
                font-size: 14px;
            }
            ::placeholder{
                font-size: 12px;
            }
        }

        & .search-left {

            & .search-body {

                & .search-item {

                    & .body-search {

                        & .list-items {

                            .maker h5 {

                                color: var(--black);

                                font-size: 14px;

                            }

                            & h5 {

                                font-size: 13px;



                            }



                        }

                    }

                }

            }

        }



        & .search-left {

            & .search-body {

                & .search-item {

                    & .title {

                        h4 {

                            font-size: 15px;

                        }

                    }

                }

            }

        }



    }

}

@media(max-width:1280px) {
    .dealer-stock {
        .search-left {
            width: 25%;
        }
    }

}

@media(max-width:1180px) {
    .dealer-stock {
       .content-search{
            padding: .8%;
            .grid-search{
                grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
                gap: .3rem;
            }
            select{
                font-size: 13px;
            }
        }
            .result-body {
           grid-template-columns: 1fr;
            }
        & .search-left {
            & .search-body {

                & .search-item {

                    & .body-search {

                        & .list-items {

                            .maker h5 a {

                                font-size: 12px;

                            }

                            & h5 a {

                                font-size: 12px;



                            }



                        }

                    }

                }

            }

        }
    }
}

@media(max-width:980px) {
    .dealer-stock {
        width: auto;
        padding: 0 1rem;
        .content-search{
            padding: 1.5%;
            .grid-search{
                grid-template-columns: 1fr 1fr 1fr 1fr;
                gap: .3rem;
            }
            select{
                font-size: 13px;
            }
        }
        .list-all-car {
            .title {
                h3 {
                    font-size: 22px;
                    margin: 0;
                }
            }
        }

        .car-body-list {
            width: 100%;
        }

        .result-body {
            .item1 img {
                min-width: 180px;
                width: 100%;
            }
        }

        .search-left {
            display: none;
        }

        & .result-body {
            & .car-bodys {
                h4 {
                    font-size: 16px;
                }

                & .stock {
                    h5 {
                        font-size: 14px;
                        font-weight: 600;
                    }

                    & .location-price {
                        .price {
                            font-size: 14px;
                        }
                    }
                }
            }
        }
    }

}

@media(max-width:880px) {
          .dealer-stock{
             .content-search{
            .grid-search{
                grid-template-columns: 1fr 1fr 1fr;
                gap: .5rem;
            }
        }
          }
}

@media(max-width:780px) {

    .dealer-stock {

        .result-body {
            .grid-container {
                width: 250px;
            }

            .item1 img {
                min-width: 150px;
                width: 100%;
            }

            & .car-bodys {
                h4 {
                    font-size: 14px;
                }

                & .stock {
                    h5 {
                        font-size: 13px;
                        font-weight: 600;
                    }

                    & .location-price {
                        .price {
                            font-size: 13px;
                        }
                    }
                }

                & ul {
                    font-size: 13px;
                }
            }
        }
    }

}

@media(max-width:680px) {

    .dealer-stock {
         .content-search{
            .grid-search{
                grid-template-columns: 1fr 1fr;
                gap: .5rem;
            }
            select,.btn{
                font-size: 11px;
            }
        }
        .list-all-car {
            .title {
                h3 {
                    font-size: 20px;
                    margin: 0;
                }
            }
        }

        .result-body {
            .grid-container {
                width: 250px;
            }

            .item1 img {
                min-width: 180px;
                width: 100%;
                min-height: 120px;
            }

            .item2,
            .item3 {
                display: none;
            }

            & .car-bodys {
                h4 {
                    font-size: 13px;
                }

                & .stock {
                    h5 {
                        font-size: 12px;
                        font-weight: 600;
                    }

                }

                & .location-price {
                    h5 {
                        font-size: 12px;
                    }

                    .price {
                        font-size: 12px;
                    }
                }

                & ul {
                    font-size: 12px;
                    margin-bottom: .2rem
                }
            }
        }
    }

}

@media(max-width:500px) {

    .dealer-stock {
        .list-all-car {
            .title {
                h3 {
                    font-size: 16px;
                    margin: 0;
                }

                select {

                    font-size: 12px;
                }
            }
        }

        .result-body {
            .grid-container {
                width: 120px;
            }

            .item1 img {
                min-width: 100px;
                width: 100%;
                min-height: 90px;
                height: unset;
                object-fit: contain;
            }

            .item2,
            .item3 {
                display: none;
            }

             .car-result{
                    padding-bottom: .5rem;
                    margin-bottom:.5rem
                }

            & .car-bodys {
               
                h4 {
                    font-size: 13px;
                    margin-bottom: 0;
                }

                & .stock {
                    h5 {
                        font-size: 13px;
                        font-weight: 600;
                    }

                }

                & .location-price {
                    h5 {
                        font-size: 13px;
                    }

                    .price {
                        font-size: 13px;
                    }
                }

                & ul {
                    font-size: 12px;
                    margin-bottom: 0rem;
                    li {
                        margin-right: 5px;
                    }
                    i{
                       font-size: 10px;
                    }
                }
            }
        }
    }

}

@media(max-width:400px) {
    .dealer-stock {
        & .result-body {
            .grid-container {
                width: 80px;
                display: flex;
                align-items: center;
            }

            .item1 img {
                min-width: 80px;
                min-height: auto;
                max-height: 80px;
                height: unset;
                object-fit: contain;
            }

            & .car-bodys {
                h4 {
                    font-size: 11px;
                    margin-bottom: 0;
                }

                & ul {
                    margin-bottom: 0;
                    li {
                        margin-right: 2px;
                    }
                                    i {
                    font-size: 8px;
                    color: #c7c7c7;
                }
                }

                & .stock {
                    h5 {
                        font-size: 11px;
                        font-weight: 600;
                    }
                }
            .location-price {
                width: 100%;
                position:static;
                bottom: 0;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            }
        }
    }
}