.flex-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
  
nav {
    position: relative;
    border-bottom: 1px solid var(--xaBlue);
}

.sa-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
   padding: 1.5rem 0 3rem;
}

.sa-wrapper .sa-col-l {
    flex-basis: 68%;
}

.sa-wrapper .sa-col-r {
    flex-basis: 28%;
}

.sa-wrapper .sa-col-b {
    flex-basis: 68%;
}

.sa-wrapper .sa-col-l .sa-title-car {
    
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.price-box
{
    margin-bottom: 1em;
    border: 1px dotted #ccc;
    padding: 0.5em;
    border-radius: 8px;
}
/*danh sách ảnh xe*/
.sa-box-img {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

#sa-main-photo {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
}

img
{
    border-radius: 4px;
}
#sa-main-photo img {
    height: 500px;
    
}

.sa-box-img .sa-list-img {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow-x: auto;
}

.sa-box-img .sa-list-img:after {
    content: '';
    flex-basis: 24%;
}

.sa-list-img .sa-item {
    margin-bottom: 0.5rem;
    margin-right: 1.5rem;
    flex: 0 0 25%;
}

.sa-list-img .sa-item:last-child {
    margin-right: 0;
}

.sa-list-img .sa-item .sa-photo-list {
    display: inline-block;
    width: 100%;
}

.sa-list-img .sa-item .sa-photo-list img {
    height: 150px;
    border-radius: 4px;
}

/*thông tin xe*/
.sa-box-info-car {
    padding: 0 1em;
    background: #e9e9e9 url(../images/trang-chu/transparent-bg.png) center top no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.sa-price-car {
    font-size: 2.0rem;
    line-height: 2.4rem;
    font-weight: bold;
    color: var(--xaRed);
}

.sa-box-info-car .sa-info-car {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.sa-box-info-car .sa-info-car .sa-item {
    flex-basis: 48%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 0;
   
}


.sa-box-info-car .sa-info-car .sa-item span {
    font-weight: bold;
}

/*thông tin salon*/
.sa-box-info-salon {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
   
    background: #e9e9e9;
    padding: 1.5rem;
}

.sa-box-info-salon p {
    margin-top: 1rem;
}

.sa-box-info-salon .sa-info-hotline {
    background: var(--xaRed);
    color: var(--xaWhite);
    padding: 1.5rem;
    font-size: 1.6rem;
    border-radius: 6px;
}

.sa-box-info-salon .sa-info-hotline:hover {
    background: var(--xaRedHover);
}

.sa-info-hotline b {
    color: var(--xaWhite);
    -webkit-text-fill-color: var(--xaWhite);
    font-size: 2.1rem;
}

/*nội dung tin xe*/
.sa-car-description {
    padding: 1.5rem 0;
}

.sa-car-description p {
    display: block;
    margin-top: 1rem;
    width: 100%;
}

/*phí sang tên*/
.sa-name-transfer-fee .sa-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sa-name-transfer-fee .sa-box .sa-item {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sa-name-transfer-fee .sa-pdb .sa-choose {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-name-transfer-fee .sa-pdb .sa-choose select {
    width: 130px;
    border: 1px solid #ccc;
}

.sa-name-transfer-fee .sa-cacu .gia-xe-co-bien{
    color: var(--xaRed);
    font-weight: bold;
}

.sa-name-transfer-fee .sa-note {
    text-align: center;
    font-style: italic;
    color: var(--xaGrayNote);
    border-bottom: 1px solid var(--xaGrayListCars);
    padding-bottom: 1rem;
}

/*vay trả góp*/
.sa-box-installment {
    margin-top: 3rem;
}

.sa-installment {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sa-installment .sa-item {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-installment .sa-item:last-child {
    margin-bottom: 0;
}

.sa-installment .sa-item label {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.sa-installment .sa-item  input,  .sa-installment .sa-item  select {
    width: 50%;
    height: 40px;
    outline: none;
    padding-left: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.sa-installment .sa-item .sa-icon {
    color: var(--xaRed);
}

.sa-installment .sa-item .car-price {
    cursor: no-drop;
}

.sa-installment .sa-btn-send {
    text-align: left;
    flex-basis: auto;
    margin-top: 5px;
}

.sa-installment input[type="text"][disabled] {
    font-weight: bold;
}

.sa-installment .sa-btn-send {
    text-align: right;
    width: 100%;
}

.sa-installment .sa-btn-send a {
    display: inline-block;
    text-transform: uppercase;
    color: var(--xaWhite);
   background: var(--xaRed);
    font-weight: bold;
    padding: 6px 30px;
    border-radius: 4px;
}

.sa-installment .sa-btn-send a:hover {
    color: black;
}

.sa-rs-installment {
    
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    margin-top: 2rem;
    background: #e9e9e9 url(../images/trang-chu/transparent-bg.png) center top no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.sa-rs-installment .sa-item {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sa-rs-installment .sa-item label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.sa-rs-installment .sa-item span {
    color: var(--xaRed);
    font-weight: bold;
}

/*xem thêm xe*/
.sa-car-new {
    margin-top: 2rem;
}

.sa-other-cars .sa-item {
    display: flex;
   align-items: flex-start;
   justify-content: space-between;
   flex-wrap: wrap;
   flex-basis: 49%;
   margin-bottom: 3rem;
   position: relative;
   background: #e9e9e9;
   border-radius: 4px;
   padding: 0.5em;
   box-shadow: 1px 2px 3px #888;
}

.sa-other-cars .sa-item .sa-box-img {
    width: 35%;
}

.sa-other-cars .sa-item .sa-box-info {
    width: 63%;
}

.sa-other-cars .sa-item .sa-box-img img {
    height: 190px;
    
}


.sa-other-cars .sa-box-info .sa-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.sa-other-cars .sa-box-info .sa-item-info {
    flex-basis: 32%;
    margin-bottom: 1.5rem;
}

.sa-other-cars .sa-box-info .sa-item-info i {
   
    margin-right: 0.3rem;
    font-size: 0.9em;
}

.sa-other-cars .sa-box-info .sa-box-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-image: linear-gradient(to right, #ffffff , #f0f0f0);
    border: 1px solid #c9c5c5;
    color: black;
    margin-top: 1em;
    margin-bottom: 2em;
    border-radius: 4px;
    padding: 0.5em;
}



.sa-other-cars .sa-box-price .sa-prepay {
   
}

@media only screen and (max-width: 1230px) {
    .sa-wrapper {
        padding: 1.5rem;
    }

    /*thông tin xe*/
    .sa-box-info .sa-price-car {
        font-size: 2.1rem;
        padding: 1.5rem 0;
    }

    .sa-box-info .sa-info-car .sa-item label {
        flex-basis: 40%;
    }

    /*thông tin salon*/
    .sa-box-info-salon .sa-info-hotline {
        font-size: 1.8rem;
    }

    .sa-info-hotline b {
        font-size: 2.1rem;
    }

    /*xem thêm xe*/
    .sa-car-new {
        margin-top: 0.5rem;
    }
}

@media only screen and (max-width: 1024px) {
    .sa-wrapper .sa-col-l {
        flex-basis: 100%;
    }

    .sa-wrapper .sa-col-b {
        flex-basis: 100%;
    }

    /*cột phải*/
    .sa-wrapper .sa-col-r {
        flex-basis: 100%;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .sa-wrapper .sa-col-r .sa-name-transfer-fee {
        flex-basis: 48%;
    }

    .sa-wrapper .sa-col-r .sa-box-installment {
        flex-basis: 48%;
    }

    .sa-wrapper .sa-col-r .sa-qc {
        flex-basis: 100%;
    }

    .sa-box-installment {
        margin-top: 1.5rem;
    }

    /*xem thêm xe*/
    .sa-other-cars .sa-item .sa-box-img img {
        height: 232px;
    }
    /*khoảng cách tiêu đề với ảnh QC*/
    .sa-car-new
    {
        margin-top: 2.5rem;
    }
}

@media only screen and (max-width: 768px) {
    .sa-wrapper {
        padding: 1.5rem 1rem;
    }

    .sa-wrapper .sa-col-l .sa-title-car {
        margin-bottom: 1rem;
    }

    /*danh sách ảnh xe*/
    #sa-main-photo img {
        height: 492px;
    }

    .sa-list-img .sa-item .sa-photo-list img {
        height: 123px;
    }

    /*thông tin xe*/
    .sa-other-cars .sa-item .sa-box-img {
        width: 40%;
    }

    .sa-other-cars .sa-item .sa-box-info {
        width: 58%;
    }

    .sa-other-cars .sa-item .sa-box-img img {
        height: 197px;
    }

    /*thông tin salon*/
    .sa-box-info-salon ul {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .sa-box-info-salon .sa-info-hotline {
        font-size: 1.6rem;
        padding: 1rem;
    }

    .sa-info-hotline b {
        font-size: 1.8rem;
    }
    /*ẩn header*/
    header
    {
        display: none;
    }
}

@media only screen and (max-width: 640px) {
    /*danh sách ảnh xe*/
    #sa-main-photo img {
        height: 406px;
    }

    .sa-list-img .sa-item .sa-photo-list img {
        height: 102px;
    }

    /*xem thêm xe*/
    .sa-other-cars .sa-item .sa-box-img img {
        height: 163px;
    }

    .sa-other-cars .sa-box-price .sa-price {
        padding: 0.5rem 1rem;
    }

    .sa-other-cars .sa-box-info .sa-info {
        margin-top: 2.5rem;
    }

    .sa-other-cars .sa-box-info .sa-item-info {
        margin-bottom: 1rem;
    }

    /*cột phải*/
    .sa-wrapper .sa-col-r .sa-name-transfer-fee {
        flex-basis: 100%;
        margin-top: 1.5em;
    }

    .sa-wrapper .sa-col-r .sa-box-installment {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 576px) {
    /*danh sách ảnh xe*/
    .sa-box-img {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #sa-main-photo {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    #sa-main-photo img {
        height: 364px;
    }

    .sa-list-img .sa-item .sa-photo-list img {
        height: 88px;
    }

    .sa-box-img .sa-list-img {
        flex-basis: 100%;
        flex-wrap: wrap;
    }

    .sa-list-img .sa-item {
        flex: none;
        flex-basis: 24%;
        margin-right: 0;
    }

    .sa-box-img .sa-list-img {
        overflow: hidden;
    }

    /*thông tin salon*/
    .sa-box-info-salon {
        padding: 1rem
    }

    /*thông tin xe*/
    .sa-box-info-car {
        margin-top: 0.5em;
    }

    .sa-box-info-car .sa-info-car .sa-item {
        flex-basis: 100%;
    }

    .sa-box-info-car .sa-info-car .sa-item {
        justify-content: flex-start;
    }

    .sa-box-info-car .sa-info-car .sa-item label {
        flex-basis: 50%;
    }

    .sa-box-info {
        margin-top: 0;
    }

    .sa-box-info .sa-info-car .sa-item {
        flex-basis: 100%;
    }

    .sa-box-info-car .sa-info-car .sa-item:last-child {
        border: none;
        padding-bottom: 0;
    }

    /*xem thêm xe*/
    
    .sa-other-cars .sa-item .sa-box-img {
        width: 100%;
    }

    .sa-other-cars .sa-item {
        
        padding: 1rem;
       margin-bottom: 1.5rem;
    }

    .sa-other-cars .sa-item .sa-box-img img {
        height: auto;
    }

    .sa-other-cars .sa-item .sa-box-info {
        width: 100%;
        padding-top: 1rem;
    }

    .sa-other-cars .sa-box-info .sa-info {
        margin: 2rem 0 0.5rem;
    }

    .sa-other-cars .sa-box-price .sa-price {
        position: static;
    }

    .sa-other-cars .sa-box-price .sa-prepay {
        position: static;
    }
}

@media only screen and (max-width: 480px) {
    .sa-wrapper .sa-col-r {
        margin-top: 0;
    }

    /*danh sách ảnh xe*/
    #sa-main-photo img {
        height: 300px;
    }

    .sa-list-img .sa-item .sa-photo-list img {
        height: 73px;
    }
}

@media only screen and (max-width: 420px) {
    /*danh sách ảnh xe*/
    #sa-main-photo img {
        height: 266px;
    }

    .sa-list-img .sa-item .sa-photo-list img {
        height: 64px;
    }

    /*thông tin salon*/
    .sa-box-info-salon .sa-info-hotline {
        font-size: 1.6rem;
    }

    .sa-info-hotline b {
        font-size: 1.8rem;
    }
    .sa-installment .sa-btn-send a
    {
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 375px) {
    /*danh sách ảnh xe*/
    #sa-main-photo img {
        height: 237px;
    }

    .sa-list-img .sa-item .sa-photo-list img {
        height: 57px;
    }
}

@media only screen and (max-width: 360px) {
    /*thông tin xe*/
    .sa-info-hotline b {
        font-size: 1.6rem;
    }

    /*xem thêm xe*/
    .sa-other-car .sa-info-car .sa-item-info i {
        line-height: 1.8rem;
        font-size: 1.2rem;
        margin-right: 0.1rem;
    }

    .sa-other-car .sa-info-car .sa-item-info {
        line-height: 1.8rem;
        font-size: 1.2rem;
    }

    .sa-other-cars .sa-box-info .sa-item-info {
        flex-basis: 49%;
    }
}

