/*danh sách tin xe*/

#wrapper .list-cars .list {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

#wrapper .list-cars .list .item {
    flex-basis: 32%;
    margin-bottom: 25px;
    border: 1px solid #d4d5d5;
    background: #f0eeee;
}

#wrapper .list-cars .list .item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

#wrapper .list-cars .list .item-last {
    border: none;
    margin-bottom: 0;
}

.list .item .img {
    display: block;
    overflow: hidden;
    margin-top: 4px;
}

.list .item .img img {
    height: 260px;
}

.list .item .info {
    background: var(--white);
}

.list .item .info .info-car {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 10px;
    padding-top: 1em;
}

.list .item .info .info-car .item-info {
    flex-basis: 49%;
    margin-bottom: 10px;
    color: #808080;
    font-size: 1.1em;
}

.info-car .item-info i {
    margin-right: 2px;
    color: #808080;
}

.list .item .info .car {
    display: inline-block;
    width: auto;
    padding: 15px 10px;
}

.list .item .info .box-year-price {
    padding: 5px 10px;
    background: var(--red);
    display: flex;
    justify-content: space-between;
}

.list .item .info .box-year-price .icon {
    color: var(--red);
}

.list .item .info .car:hover {
    color: var(--red);
}

.list .item .info .box-year-price .tra-truoc {
    color: #d3d6d6;
    font-style: italic;
    font-size: 1em;
}

/*Danh sách tin tức*/

.news {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    border-radius: 4px;
}

.news .box {
    flex-basis: 49%;
}

.news .list-news {
    margin-top: 20px;
}

.list-news .item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.list-news .item .img {
    display: inline-block;
    flex-basis: 25%;
}

.list-news .item .img img {
    height: 90px;
}

.list-news .info {
    flex-basis: 73%;
}

.list-news .info .car {
    display: inline-block;
    position: relative;
    top: -5px;
}

.list-news .info .car:hover {
    color: var(--red);
}

/*dịch vụ salon*/
#call {
    background: var(--blue2);
    position: relative;
    height: auto;
    padding-left: 1em;
    padding-right: 1em;
}

#call .salon-intro {
    color: var(--white);
    font-weight: bold;
    z-index: 100;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 1200px;
}

#call .salon-intro .item {
    border-radius: 4px;
    text-align: center;
    flex-basis: 32%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#call .salon-intro .item:hover a i, #call .salon-intro .item:hover a h3 {
    color: var(--red);
}

#call .salon-intro .item h3 {
    color: var(--white);
    font-weight: bold;
    margin-top: 25px;
    font-size: 18px;
    text-transform: uppercase;
}

#call .salon-intro .item i {
    color: var(--white);
    font-size: 60px;
}

.list-products:after {
    content: '';
    flex-basis: 32%;
}

/* CSS cho phiên bản mobile */
@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 15px 0;
    }

    #wrapper .list-cars {
        padding: 0 15px;
    }

    /*dịch vụ salon*/
    #call .salon-intro {
        width: 100%;
    }
}

@media only screen and (max-width: 1024px) {
    /*danh sách tin xe*/
    #wrapper .list-cars .list .item {
        flex-basis: 32%;
    }

    .list .item .img img {
        height: 200px;
    }
}

@media only screen and (max-width: 991px) {
    /*danh sách tin xe*/
    

    .list .item .info .box-year-price .tra-truoc {
        margin-top: 5px;
    }

    /*danh sách tin tức*/
    .news {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .news .box {
        flex-basis: 100%;
    }

    .list-news .item .img img {
        height: 135px;
    }

    /*dịch vụ salon*/
    #call .salon-intro .item i {
        font-size: 50px;
    }

    #call .salon-intro .item h3 {
        margin-top: 20px;
        font-size: 16px;
    }
    .list .item .info .info-car .item-info
    {
        font-size: 0.9em;
    }
}
@media only screen and (max-width: 816px)
{
    .list .item .info .box-year-price {
        display: flex;
        flex-direction: column;
    }
    .list .item .info .info-car .item-info
    {
        font-size: 11px;
        
    }
}

@media only screen and (max-width: 768px) {
    /*danh sách tin xe*/
    #wrapper .list-cars .list {
        margin-top: 15px;
    }

    #wrapper .list-cars .list .item {
        margin-bottom: 15px;
    }

    

    .list .box-year-price .icon {
        display: none;
    }

    .list .item .img img {
        height: 150px;
    }

    .list .item .info .car {
        padding: 10px 5px;
    }

    .list .item .info .box-year-price {
        padding: 5px;
    }

    .list .item .info .info-car {
        padding: 0 5px;
        padding-top: 0.6em;
    }

    .list .item .info .info-car .item-info {
        font-size: 12px;
        flex-basis: 100%;
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }
    

    .info-car .item-info i {
        font-size: 12px;
        flex-basis: 99%;
    }

    .price {
        font-size: 14px;
    }

    /*danh sách tin tức*/
    .news .list-news {
        margin-top: 15px;
    }

    .list-news .item .img img {
        height: 103px;
    }

    /*dịch vụ salon*/
    #call .salon-intro .item i {
        font-size: 40px;
    }

    #call .salon-intro .item h3 {
        margin-top: 15px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 594px) {
    /*danh sách tin xe*/
    .list .item .info .car {
        min-height: 44px;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách tin xe*/
    #wrapper .list-cars {
        padding: 0 10px;
    }

    #wrapper .list-cars .list .item {
        flex-basis: 49%;
    }

    .list .item .info .car {
        min-height: 22px;
    }

    /*danh sách tin tức*/
    .news {
        padding: 10px;
    }

    /*phân trang*/
    .pagination {
        margin-bottom: 15px;
    }

    /*dịch vụ salon*/
    

    #call .salon-intro .item i {
        font-size: 30px;
    }

    #call .salon-intro .item h3 {
        margin-top: 15px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách tin xe*/
    .list .item .info .info-car .item-info {
        margin-bottom: 3px;
        flex-basis: 99%;
    }

    .list .item .info .car {
        padding: 5px;
    }

    .list .item .info .box-year-price .tra-truoc {
        margin-top: 3px;
    }

    .list .item .info .box-year-price {
        padding: 0 5px;
    }

    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 90px;
    }

    .list-news .item {
        margin-bottom: 15px;
    }

    /*fanpage*/
    .list-news .item iframe {
        height: 250px;
    }
}

@media only screen and (max-width: 480px) {
    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 76px;
    }
}

@media only screen and (max-width: 420px) {
    /*danh sách tin xe*/
    .list .item .img img {
        height: 180px;
    }

    /*danh sách tin xe*/
    .list-news .item .img {
        display: inline-block;
        flex-basis: 20%;
    }

    .list-news .info {
        flex-basis: 78%;
    }

    .list-news .item .img img {
        height: 52px;
    }
    
}

@media only screen and (max-width: 394px) {
    /*danh sách tin xe*/
    .list .item .info .car {
        min-height: 44px;
    }
    #wrapper .list-cars .list .item
    {
        flex-basis: 100%;
    }
    .list .item .info .info-car .item-info
    {
        flex-basis: 49%;
    }
    .list .item .info .box-year-price
    {
        flex-direction: row;
    }
}

@media only screen and (max-width: 351px) {
    .list-news .info .description {
        display: none;
    }
}

@media only screen and (max-width: 320px) {
    /*danh sách tin xe*/
    #wrapper .list-cars .list .item {
        flex-basis: 100%;
    }

    .list .item .img img {
        height: 168px;
    }

    .list .item .info .car {
        min-height: auto;
    }

    .list .item .info .box-year-price {
        display: inline-block;
    }

    .list .box-year-price .icon {
        display: inline-block;
    }

    /*danh sách tin tức*/
    .list-news .item .img img {
        height: 42px;
    }

    .list-news .item {
        margin-bottom: 10px;
    }

    /*dịch vụ salon*/
    #call {
        height: 150px;
    }

    #call .salon-intro .item i {
        font-size: 24px;
    }

    #call .salon-intro .item h3 {
        margin-top: 8px;
        font-size: 10px;
        line-height: 16px;
    }
}
