
.nsg-title {
    padding: .8rem 0;
}

.nsg-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

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

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

.nsg-wrapper .nsg-col-l .nsg-title-car {
    
    margin: 1.5rem 0;
}

.nsg-box-car-detail {
    
    border-radius: 4px;
}

/*danh sách ảnh xe*/
.nsg-box-img {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

#nsg-main-photo {
    flex-basis: 100%;
}

#nsg-main-photo img {
    width: 100%;
	height: 420px;
	object-fit: cover;
    border-radius: 4px;
}
.nsg-box-img .nsg-list-img {
    list-style: none;
    padding: 5px 0px;
    border: 1px solid #eee;
    margin-top: 8px;
    border-radius: 4px;
    padding: 4px;
}
.nsg-box-img .nsg-list-img:after {
    content: '';
    flex-basis: 24%;
}
.nsg-list-img .nsg-item {
    float: left;
    width: 20%;
    padding: 4px;
    position: relative;
}
.nsg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./icon-video.png) center center no-repeat;
    background-size: contain;
    cursor: pointer;
}
#view-video {
	display:none;
}
#view-video video {
    height: 100%;
    padding: 16px;
    max-width: 100%;
}
.view-videoopen {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
    text-align: center;
    background: #2f2f2fb5;
	display:block !important;
}
#close-video {
    position: absolute;
    top: 32px;
    right: 4px;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
}
.nsg-list-img .nsg-item:last-child {
    margin-bottom: 0;
}

.nsg-list-img .nsg-item:nth-child(2) img {
    border-top-right-radius: 4px;
}
.nsg-list-img .nsg-item .nsg-photo-list img {
    height: 50px;
    border-radius: 3px;
    width: 100%;
	object-fit: cover;
}
.nsg-list-img .nsg-item .nsg-photo-list video {
    float: left;
    width: 100%;
    height: 50px;
    border-radius: 3px;
}
.nsg-box-info-salon{
    padding: 1em;
    border: 1px dotted #6b6b69;
    padding-left: 0;
    border-radius: 4px;
}
.tt-vt{  
    padding-top: 2em;
}
.active-btn{
    background:var(--vtcolorlink);
}
.w3-black{
    border-radius: 4px;
}
.nsg-car{
    display: inline-block;
    width: 100%;
    text-align: center;
}
.nsg-car b {
    color: var(--vtbgmenu);
        
}
.nsg-item .nsg-car b:hover{
    color: var(--vtcolorlink) !important;
}
.price-ok{
    background: var(--vtcolorlink);
    text-align: center;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    border-radius: 0 0 4px 4px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--vtWhite);
}

.nsg-item-info span {
    color: var(--vtcolorlink);
    margin-right: 0.2rem;
    font-size: 1.2em;
}

.xe-da-ban{
    background: var(--vtcolorlink);
    color: red;
    text-transform: uppercase;
    padding: 0.5em 1em;
    border-radius: 4px;
    font-weight: bold;
}
/*begin lớp background trên ảnh sản phẩm*/
.anh-sp{
    position: relative;
}
.anh-sp:hover .overlay {
    width: 100%;
}
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    background: var(--vtcolorlink);
    overflow: hidden;
    width: 0;
    height: 100%;
    transition: .5s ease;
    opacity: 0.6;
}
.text {
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    opacity: 0;
}
.image {
    display: block;
    width: 100%;
    height: auto;
}
/*end lớp background trên ảnh sản phẩm*/

/*thông tin xe*/
.nsg-box-info {
    margin-top: -0.5rem;
}
.nsg-box-info .nsg-price-car {
    padding: 2rem 0;
    background: var(--vtbgmenu);
    font-size: 2.6rem;
    font-weight: bold;
    color: var(--vtyellow);
    text-align: center;
    border-radius: 0 0 4px 4px;
}
.nsg-box-info .nsg-info-car {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1.5rem;
    padding-left: 0;
}

.nsg-box-info .nsg-info-car .nsg-item {
    flex-basis: 49%;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.nsg-box-info .nsg-info-car .nsg-item label {
    flex-basis: 35%;
}
.gia-ban{
    font-size: 1.3em;
    font-weight: 700;
    color: var(--vtcolorlink);
}

/*vay trả góp*/
.box-installment {
    margin-top: 20px;
    
    border-radius: 4px;
}
.installment {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.installment .item {
    flex-basis: 49%;
    margin-bottom: 10px;
}
.installment .item:last-child {
    margin-bottom: 0;
}
.installment .item label {
    margin-bottom: 5px;
    display: inline-block;
}

.installment .item  input,  .installment .item  select {
    width: 100%;
    height: 35px;
    border: 1px solid #bcb8b8;
    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: left;
    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 {
    background: var(--vtWhite);
    border-radius: 4px;
    padding: 5px 15px;
    border: 1px solid var(--yellow4);
    margin: 15px 0 0;
    box-shadow: 0px 1px 3px 0px #888888;
}
.rs-installment .item {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px dotted var(--gray);
    color: #000;
}
.rs-installment .item:last-child {
    border-bottom: none;
}
.rs-installment .item label {
    margin-bottom: 5px;
    font-weight: bold;
}
.rs-installment .item span {
    color: var(--red);
    font-weight: bold;
}

.nsg-name-transfer-fee {
    border: 1px dotted;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-radius: 4px;
    background: #f8f1c5;
}

.nsg-name-transfer-fee .nsg-box {
    flex-basis: 100%;
}

.nsg-name-transfer-fee .nsg-box-img {
    flex-basis: 49%;
}

.nsg-name-transfer-fee .nsg-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.nsg-name-transfer-fee .nsg-item:last-child {
    margin-bottom: 0;
}

.nsg-name-transfer-fee .nsg-row {
    flex-basis: 58%;
}
.nsg-row span, .nsg-row label, .font-fix
{
    font-size: 0.9em !important;
}
.nsg-name-transfer-fee .nsg-pdb .nsg-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.nsg-name-transfer-fee .nsg-row input {
    margin-right: 0.5rem;
    position: relative;
    top: 1px;
}

.nsg-name-transfer-fee .nsg-choose {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nsg-name-transfer-fee .nsg-choose select {
    height: 30px;
    width: 100px;
    
    font-size: 0.9em;
}

.nsg-name-transfer-fee .nsg-cacu {
    border-top: 1px solid #fff;
    padding-top: 1.5rem;
}

.nsg-name-transfer-fee .nsg-cacu label {
    font-weight: bold;
}

.nsg-name-transfer-fee .nsg-cacu span {
    font-weight: bold;
    
    font-size: 0.9em;
}

/*xe cùng khoảng giá*/
.nsg-box-other-car {
    margin-top: 1rem;
    flex-basis: 100%;
}

.nsg-other-car {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nsg-other-car .nsg-item {
    flex-basis: 32%;
    background: var(--alGrayListCars);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.nsg-other-car .nsg-item a {
    display: inline-block;
    width: 100%;
}

.nsg-other-car .nsg-item a .nsg-img-car {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 230px;
}

.nsg-other-car .nsg-car {
    padding: 1rem 1rem 0;
    font-weight: 800;
}

.nsg-other-car .nsg-box-price {
    
    margin: 1rem;
}

.nsg-other-car .nsg-price {
    display: inline-block;
    clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 0% 100%);
    background: #1f1f1f;
    background-image: linear-gradient(to right, black , #1f1f1f);
    padding: 0.4rem 1.6rem;
    color: var(--vtyellow);
}

.nsg-other-car .nsg-info-car {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 1rem 0;
}

.nsg-other-car .nsg-info-car .nsg-item-info {
    flex-basis: 25%;
    color: var(--alGrayInfoCars);
    margin-bottom: 1rem;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.nsg-other-car .nsg-info-car .nsg-item-info i {
    color: var(--alGrayInfoCars);
    margin-right: 0.2rem;
}

.nsg-item-info img {
    width: 13px;
    height: 13px;
    object-fit: cover;
    vertical-align: middle;
    margin-top: -3px;
}

/*chỉ cần trả trước*/
.nsg-box-price
{
    text-align: center;
    padding-bottom: 1em;
}

/*tin tức*/
.nsg-wrapper .nsg-col-r .nsg-box-news {
    margin-bottom: 1rem;
}

.nsg-col-r .nsg-news {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nsg-news .nsg-item {
    flex-basis: 100%;
    border-bottom: 1px solid var(--alGray);
    padding: 1.5rem 0;
    color: var(--alBlack);
}

.nsg-news .nsg-item:last-child {
    border-bottom: none;
}

.nsg-box-news .nsg-item a {
    color: var(--alBlack);
    font-weight: 600;
}

@media only screen and (max-width: 1230px) {
    .nsg-wrapper {
        padding: 0 1.5rem 1.5rem;
        margin-bottom: 0;
    }

    /*thông tin xe*/
    .nsg-box-info .nsg-price-car {
        font-size: 2.1rem;
        padding: 1.5rem 0;
    }

    .nsg-box-info .nsg-info-car .nsg-item label {
        flex-basis: 40%;
    }

    /*thông tin salon*/
    .nsg-box-info-salon .nsg-info-hotline {
        font-size: 1.8rem;
    }

    .nsg-info-hotline b {
        font-size: 2.1rem;
    }

    /*phí sang tên*/
    

    .nsg-name-transfer-fee .nsg-choose {
        flex-basis: 85%;
    }

    .nsg-name-transfer-fee .nsg-item {
        justify-content: space-between;
    }

    .nsg-name-transfer-fee .nsg-choose {
        flex-basis: 100%;
    }
}

@media only screen and (max-width: 1080px)
{
    .nsg-other-car .nsg-info-car .nsg-item-info
    {
        flex-basis: 50%;
    }
}
@media only screen and (max-width: 1024px) {
    .nsg-wrapper .nsg-col-l {
        flex-basis: 100%;
    }

    .nsg-wrapper .nsg-col-r {
        margin-top: 1rem;
        flex-basis: 100%;
        
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nsg-wrapper .nsg-col-r .nsg-box-news {
        flex-basis: 48%;
    }

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

    /*xe cùng khoảng giá*/
    .nsg-other-car .nsg-item a .nsg-img-car {
        height: 212px;
    }
}
@media only screen and (max-width: 850px)
{
    .nsg-other-car .nsg-item a {
        /* display: inline-block; */
        width: 100%;
        display: table;
        height: 54px;
    }
}

@media only screen and (max-width: 768px) {
    .nsg-wrapper {
        padding: 0 1rem 1.5rem;
    }

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

    .nsg-list-img .nsg-item .nsg-photo-list img {
        height: 66px;
    }

    /*thông tin xe*/
    .nsg-box-info .nsg-info-car .nsg-item label {
        flex-basis: 50%;
    }

    /*phí sang tên*/
    .nsg-box-name-transfer-fee {
        margin-top: 0;
    }

    .nsg-name-transfer-fee .nsg-box-img {
        display: none;
    }

    .nsg-name-transfer-fee .nsg-box {
        flex-basis: 100%;
    }

    /*xe cùng khoảng giá*/
    .nsg-box-other-car {
        margin-top: 0;
    }

    .nsg-other-car .nsg-item a .nsg-img-car {
        height: 200px;
    }

    /*tin tức*/
    .nsg-news .nsg-item {
        padding: 1rem 0;
    }
    .nsg-other-car .nsg-info-car .nsg-item-info
    {
        font-size: 0.9em;
    }
    .nsg-other-car .nsg-item
    {
        flex-basis: 49%;
    }
	 .nsg-other-car .nsg-item:last-child {
        display: none;
    }
}

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

    .nsg-list-img .nsg-item .nsg-photo-list img {
        height: 54px;
    }

    /*xe cùng khoảng giá*/
    .nsg-other-car .nsg-item a .nsg-img-car {
        height: 190px;
    }
    .nsg-other-car .nsg-item
    {
        flex-basis: 49%;
        margin-bottom: 1em;
    }
}


@media only screen and (max-width: 576px) {
    /*danh sách ảnh xe*/
    .nsg-box-img {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    #nsg-main-photo {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    #nsg-main-photo img {
        height: 370px;
        border-top-left-radius: 0;
    }

    .nsg-list-img .nsg-item .nsg-photo-list img {
        height: 89px;
    }

    .nsg-list-img .nsg-item:nth-child(2) img {
        border-top-right-radius: 0;
    }

    .nsg-box-img .nsg-list-img {
        flex-basis: 100%;
    }

    .nsg-list-img .nsg-item {
        flex-basis: 24%;
    }

    /*thông tin xe*/
    .nsg-box-info {
        margin-top: 0;
    }

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

    /*xe cùng khoảng giá*/
    .nsg-other-car .nsg-item {
        flex-basis: 49%;
        margin-bottom: 1rem;
    }
   .nsg-other-car li:last-child {
        display:none;
    }
    .nsg-other-car .nsg-item:last-child {
        margin-bottom: 0;
    }

    .nsg-other-car .nsg-item a .nsg-img-car {
        height: 181px;
    }
    .nsg-other-car .nsg-info-car .nsg-item-info
    {
        flex-basis: 49%;
    }
}

@media only screen and (max-width: 480px) {
    .nsg-wrapper .nsg-col-r {
        margin-top: 0;
    }

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

    .nsg-list-img .nsg-item .nsg-photo-list img {
        height: 74px;
    }

    /*xe cùng khoảng giá*/
    .nsg-other-car .nsg-item a .nsg-img-car {
        height: 150px;
    }

    /*tin tức*/
    .nsg-wrapper .nsg-col-r .nsg-box-news {
        flex-basis: 100%;
        margin-bottom: 0;
    }
}

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

    .nsg-list-img .nsg-item .nsg-photo-list img {
        height: 64px;
    }

    /*thông tin salon*/
    .nsg-box-info-salon .nsg-info-hotline {
        font-size: 1.6rem;
    }

    .nsg-info-hotline b {
        font-size: 1.8rem;
    }

    /*xe cùng khoảng giá*/
    .nsg-other-car .nsg-item a .nsg-img-car {
        height: 240px;
    }

    .nsg-other-car .nsg-car {
        padding: 0.5rem 0.5rem 0;
    }

    .nsg-other-car .nsg-box-price {
        margin: 0.5rem;
    }

    .nsg-other-car .nsg-info-car {
        padding: 0.5rem 0.5rem 0;
    }

    .nsg-other-car .nsg-info-car .nsg-item-info {
        line-height: 2.0rem;
        font-size: 1.3rem;
    }

    .nsg-other-car .nsg-info-car .nsg-item-info i {
        line-height: 2.0rem;
        font-size: 1.3rem;
        margin-right: 0.1rem;
    }
    .tinh
    {
        width: 100%;
    }
    .nsg-other-car .nsg-item
    {
        flex-basis: 100%;
    }
    .nsg-other-car .nsg-info-car .nsg-item-info
    {
        flex-basis: 25%;
    }
    /*hiện xe số 3*/
    .xe-so-3
    {
        display: block;
    }
}

@media only screen and (max-width: 400px)
{
    .nsg-other-car .nsg-item
    {
        flex-basis: 100%;
    }
    .nsg-other-car .nsg-item a .nsg-img-car
    {
        height: 200px;
    }
}

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

    .nsg-list-img .nsg-item .nsg-photo-list img {
        height: 57px;
    }

    /*xe cùng khoảng giá*/
    
}

@media only screen and (max-width: 360px) {
    /*thông tin xe*/
    .nsg-info-hotline b {
        font-size: 1.6rem;
    }

    /*phí trước bạ*/
    .nsg-name-transfer-fee {
        padding: 1.5rem 0.5rem;
    }

    /*danh sách xe đang bán*/
    .nsg-other-car .nsg-info-car .nsg-item-info i {
        line-height: 1.8rem;
        font-size: 1.2rem;
        margin-right: 0.1rem;
    }

    .nsg-other-car .nsg-info-car .nsg-item-info {
        line-height: 1.8rem;
        font-size: 1.2rem;
    }
}
@media only screen and (max-width: 350px)
{
    .nsg-other-car .nsg-info-car .nsg-item-info
    {
        flex-basis: 50%;
    }
}

