#wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0 20px;
}

#wrapper .col-l {
    flex-basis: 70%;
}

#wrapper .col-r {
    flex-basis: 28%;
}

#wrapper .col-b {
    flex-basis: 70%;
    margin-top: 1em;
}

#wrapper .col-qc {
    flex-basis: 28%;
}

/*chi tiết xe*/
#wrapper .car-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--gray4);
    border-radius: 4px;
}

#wrapper .col-l .title {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    font-weight: 700;
}

/*danh sách ảnh xe*/
.car-info .box-img {
    flex-basis: 47%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.car-info .box-img #main-photo {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px
}

#main-photo img {
    height: 305px;
}

.car-info .box-img .list-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row wrap;
    overflow-y: auto;
    height: 83px;
}

.col-l .list-img li {
    flex-basis: 24%;
    margin-bottom: 5px;
}

.col-l .list-img:after {
    content: '';
    flex-basis: 24%;
}

.col-l .list-img .photo-list {
    display: inline-block;
    width: 100%;
}

.col-l .list-img .photo-list img {
    object-fit: cover;
    height: 78px;
    width: 100%;
}

/*thông tin xe và người bán*/
.car-info .box-info {
    flex-basis: 52%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
}

.car-info .box-info .item-info {
    flex-basis: 49%;
}

.box-info .item-info .item {
    padding: 10px;
    border-bottom: 1px solid var(--gray2);
    display: flex;
    align-items: center;
}

.box-info .item-info .item:last-child {
    border-bottom: none;
}

.box-info .item-info .item span {
    flex-basis: 40%;
}

.item-info .item .price {
    font-size: 17px;
    font-weight: bold;
}

.box-member-sell {
    flex-basis: 100%;

    padding: 10px 5px;
}

.box-member-sell h4 {
    padding-bottom: 6px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.box-member-sell .item {
    padding: 5px 0;
}

.hotline {
    background: var(--red);
    display: block;
    padding: 0.6em !important;
    font-size: 1.2em;
    color: var(--white);
    border-radius: 4px 0 4px 0;
    text-align: center;
}

.hotline span {
    font-size: 1.2em;
}

/*tiêu đề xe H1*/
.title-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.title-detail .title {
    flex-basis: 70%;
    text-transform: uppercase;
    font-size: 1.3em;
}

.title-detail .giaxe {
    flex-basis: 29%;
    text-align: end;
    font-weight: 700;
    font-size: 1.4em;
    display: contents;
}

/*lật ảnh*/
.item img {
    width: 100%;
    max-width: 100%;
    vertical-align: middle;
    object-fit: cover;
    height: 200px;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
    overflow: hidden;
}

.item img:hover {
    -moz-transform: scaleX(1.1);
    -o-transform: scaleX(1.1);
    -webkit-transform: scaleX(1.1);
    transform: scaleX(1.1);

}

/*mô tả xe*/
#wrapper .car-description {
    display: block;
    background: var(--gray4);
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    min-height: 320px;
}

.car-description h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
}

.car-description p {
    margin: 10px 0;
}

/*vay trả góp*/
.col-r .installment {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 10px 0;
}

.installment .item {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    margin-bottom: 10px;
}

.installment .item:last-child {
    margin-bottom: 0;
}

.installment .item label {
    margin-bottom: 5px;
}

.installment .item input, .installment .item select {
    width: 100%;
    height: 35px;
    border: none;
    outline: none;
    padding-left: 10px;
    background: var(--gray4);
    border-radius: 4px;
}

.installment .item .icon {
    color: var(--red);
    font-weight: bold;
}

.installment .item .car-price {
    cursor: no-drop;
}

.installment .btn-send {
    text-align: right;
    flex-basis: auto;
    margin-top: 5px;
}

.installment input[type="text"][disabled] {
    font-weight: bold;
}

.installment .btn-send a {
    display: inline-block;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    font-weight: bold;
    padding: 6px 30px;
    border-radius: 4px;
}

.installment .btn-send a:hover {
    background: var(--redHover);
}

.rs-installment {
    border-radius: 4px 0 4px 0;
    padding: 5px 15px;
    background: var(--gray4);
    margin: 5px 0 15px;
}

.rs-installment .item {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px dotted var(--bd);
    justify-content: space-between;
}

.rs-installment .item:last-child {
    border-bottom: none;
}

.rs-installment .item label {
    margin-bottom: 5px;
    font-weight: bold;
    flex-basis: 55%;
}

.rs-installment .item span {
    color: var(--red);
    font-weight: bold;
    flex-basis: 45%;
    text-align: right;
}

/*xe mới về*/
.col-b .title {
    margin-bottom: 15px;
}

.col-b .list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.col-b .list .item {
    flex-basis: 32%;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.133) 0 3.2px 7.2px 0, rgba(0, 0, 0, 0.11) 0 0.6px 1.8px 0;
}

.col-b .list .item .img img {

}

.col-b .item .info .car {
    display: inline-grid;
    width: auto;
    margin-bottom: 3px;
    font-weight: bold;
    padding: 6px;
}

.col-b .item .info .car:hover {
    color: var(--red);
}

.col-b .list .item .info {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: var(--gray4);
}

#mess-installment {
    display: none;
    margin-bottom: 10px;
    background: #FFECEC;
    padding: 10px;
    border-radius: 4px;
    color: darkred;
    border: 1px solid darkred;
    font-weight: bold;
}

@media only screen and (max-width: 1200px) {
    #wrapper {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    #wrapper .col-l {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    #wrapper .col-r {
        flex-basis: 100%;
    }

    #wrapper .car-description {
        min-height: auto;
    }

    /*vay trả góp*/
    #wrapper .col-r {
        flex-basis: 100%;
    }

    #wrapper .col-r .box-installment {
        flex-basis: 100%;
    }

    .box-installment select option {
        width: 100%;
    }
}

.giaxe {
    color: var(--red);
    font-size: 1em;
    margin-left: 5px;
}

@media only screen and (max-width: 1024px) {
    /*xe mới về*/
    #wrapper .col-b {
        flex-basis: 100%;
    }

    /*quảng cáo*/
    #wrapper .col-qc {
        flex-basis: 100%;
    }

    .advertisement-img {
        width: 100%;
    }

    .advertisement-img img {
        height: 500px;
    }
}

@media only screen and (max-width: 991px) {
    /*chi tiết xe*/
    #wrapper .car-info {
        flex-wrap: wrap;
    }

    .car-info .box-img {
        flex-basis: 100%;
        margin-bottom: 10px;
    }

    .car-info .box-info {
        flex-basis: 100%;
    }

    /*danh sách ảnh xe*/
    #main-photo img {
        height: 550px;
    }

    .car-info .box-img .list-img {
        height: 156px;
    }

    .col-l .list-img .photo-list img {
        height: 153px;
    }

    /*thông tin người bán*/
    #wrapper .car-description {
        padding: 10px;
    }
}

@media only screen and (max-width: 768px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 480px;
    }

    .col-l .list-img .photo-list img {
        height: 115px;
    }

    .car-info .box-img .list-img {
        height: 118px;
    }

    /*ảnh quảng cáo*/
    .advertisement-img img {
        height: 300px;
    }
}

@media only screen and (max-width: 668px) {
    .cm-tag span {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 640px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 400px;
    }

    .col-l .list-img .photo-list img {
        height: 95px;
    }

    .car-info .box-img .list-img {
        height: 98px;
    }
}

@media only screen and (max-width: 576px) {
    #wrapper {
        padding: 10px;
    }

    /*breadcrumb*/
    .breadcrumb {
        padding: 15px 10px 0;
    }

    /*danh sách ảnh xe*/
    #main-photo img {
        height: 360px;
    }

    .col-l .list-img .photo-list img {
        height: 85px;
    }

    .car-info .box-img .list-img {
        height: 88px;
    }

    #wrapper .col-l .title {
        align-items: flex-start;
        flex-direction: column;
    }

    #wrapper .col-l .title {
        margin-bottom: 10px;
    }

    .giaxe {
        margin: 8px 0 0 0;
        font-size: 21px;
    }

    /*xe mới về*/
    .col-b .list .item {
        flex-basis: 49%;
    }

    /*thông tin người bán*/
    .car-description h4 {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .cm-tag span {
        flex-basis: 49%;
    }
}

@media only screen and (max-width: 535px) {
    .cm-tag span {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 480px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 300px;
    }

    .col-l .list-img .photo-list img {
        height: 73px;
    }

    .car-info .box-img .list-img {
        height: 75px;
    }

    /*chi tiết thông tin xe*/
    .car-info .box-info .item-info {
        flex-basis: 100%;
    }

    .item-info .item .price {
        font-size: 18px;
    }

    .box-info .item-info .item span {
        flex-basis: 35%;
    }

    /*ảnh quảng cáo*/
    .advertisement-img img {
        height: 180px;
    }
}

@media only screen and (max-width: 420px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 260px;
    }

    .col-l .list-img .photo-list img {
        height: 63px;
    }

    .car-info .box-img .list-img {
        height: auto !important;
    }

    .car-info .box-img {
        flex-basis: 100%;
        margin-bottom: 0;
    }

    .col-b .list .item {
        flex-basis: 100%;
    }

    .cm-tag span {
        flex-basis: 49%;

    }

    span.fix-01 {
        text-align: end;
    }

    .col-b .item .info .car {
        height: auto;
    }

    .installment .btn-send {
        text-align: center;
        width: 100%;
    }
}

@media only screen and (max-width: 400px) {
    .hotline {
        display: flex;
        flex-wrap: wrap;
    }

    .hotline span {
        font-size: 1.1em;
        flex-basis: 100%;
        margin-bottom: 0.5em;
    }

    span.spfix {
        display: none;
    }
}


@media only screen and (max-width: 375px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 243px;
    }

    .col-l .list-img .photo-list img {
        height: 58px;
    }

    /*ảnh quảng cáo*/
    .advertisement-img img {
        height: 140px;
    }
}

@media only screen and (max-width: 320px) {
    /*danh sách ảnh xe*/
    #main-photo img {
        height: 199px;
    }

    .col-l .list-img .photo-list img {
        height: 48px;
    }

    /*xe mới về*/
    .col-b .list .item {
        flex-basis: 100%;
    }
}
