﻿html {
    overflow: unset !important
}

.car-view {
    background: #F3F6F6;
    border-radius: 47px;
}

.frozen-grid {
    display: grid;
    grid-template-columns: 180px repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
}

    .frozen-grid .label-col {
        font-weight: bold;
    }

    .frozen-grid .row {
        padding: 10px 5px;
        border-bottom: 1px solid #eee;
    }

.card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px #80808029 solid;
}

.spec-details {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    /*  padding: 12px; */
    font-size: 14px;
}

@media (max-width: 768px) {
    .spec-details {
        font-size: 12px;
        padding: 10px;
    }
}


/* MAIN SLIDER */
#sync1 .item img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

#sync3 .item {
    border-radius: 20px;
    overflow: hidden;
}


    #sync3 .item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* مهم‌ترین خط */
    }

#sync3 .owl-item {
    opacity: 0.5;
    transform: scale(0.92);
}

    #sync3 .owl-item.center {
        opacity: 1;
        transform: scale(1);
    }

#sync3 .owl-dots {
    margin-top: 30px;
}

    #sync3 .owl-dots .owl-dot span {
        width: 28px;
        height: 4px;
        border-radius: 2px;
        background: #ccc;
        transition: all 0.5s ease;
    }

    #sync3 .owl-dots .owl-dot.active span {
        background: #000;
        width: 40px;
    }
/* THUMBNAILS */
#sync2 .item {
    padding: 4px;
    cursor: pointer;
}

    #sync2 .item img {
        width: 100%;
        height: auto;
        opacity: 0.6;
        border-radius: 10px;
        transition: 0.5s;
    }

#sync2 .current img {
    opacity: 1;
    border: 2px solid #111;
}



.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: grey;
    transform: scale(1.3);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    #sync2 .item img {
        border-radius: 6px;
    }

    #x3-txt {
        max-width: 163px;
        max-height: 55px
    }
}

/* RESET */



/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 60px 8%;*/
    flex-wrap: wrap;
}

.hero-content {
    max-width: 550px;
    margin-top: var(--header-height);
    padding: 0 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
}

    .hero-title span {
        color: red;
    }

.hero-subtitle {
    margin: 20px 0 30px;
    font-size: 20px;
    color: #555;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-menu {
    z-index: 5;
}
    .hero-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
.hero-menu.menu-button {
    background: rgba(228, 228, 228, 1) !important;
}

.hero .menu-button {
    width: 52px !important;
    height: 52px !important;
}
/*
                                                       .hero-image img {
                                                            max-width: 600px;
                                                            width: 100%;

                                                        } */
.hero-image {
    position: relative;
    width: 100%;
    /*max-width: 700px;*/
}

.hero-bg {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%
}

.hero-car {
    position: relative;
    width: 100%;
    z-index: 2;
    /* top: 60px*/
}

@media (max-width: 998px) {
    .hero {
        min-height: 70vh;
    }

    .hero-image {
        overflow: hidden;
    }

    .hero-car {
        width: 200%;
        max-width: none;
        margin-right: -53%;
    }
}
/* INFO SECTION */
.info {
    padding: 25px 7%;
}

.info-container {
    display: flex;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: space-between;
}
#info .info-container {
    gap: 14px !important;
}
.info-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    angle: 0 deg;
    opacity: 1;
    padding: 48px;
    overflow: hidden
}

    .info-content .picture img {
        scale: 2;
        width: 100%;
        transform: translateX(-30%);
    }

    .info-content h2 {
        font-size: 48px;
        margin-bottom: 20px;
    }

        .info-content h2 span {
            color: red;
        }

    .info-content p {
        line-height: 1.9;
        color: #555;
        margin-bottom: 30px;
    }

.info-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-menu {
    gap: 20px;
    angle: 0 deg;
    opacity: 1;
    padding: 48px;
}

/*  .info-menu h3 {
        margin-bottom: 25px;
    }*/

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: auto;
}

    .accordion button {
        padding: 12px 20px;
        border-radius: 30px;
        border: none;
        background: #f2f2f2 !important;
        color: black !important;
        cursor: pointer;
        transition: 0.3s;
    }

        .accordion button:hover {
            background: #111 !important;
            color: #fff !important;
        }

.nav-link .icon-white {
    display: none !important;
    max-width: 20px !important;
    width: auto !important;
    height: auto !important;
}

.nav-link .icon-black {
    display: inline-block !important;
    max-width: 20px !important;
    width: auto !important;
    height: auto !important;
}

/* hover / focus: سفید */
.nav-link:hover .icon-white,
.nav-link:focus .icon-white {
    display: inline-block !important;
}

.nav-link:hover .icon-black,
.nav-link:focus .icon-black {
    display: none !important;
}

/* active: سفید */
.nav-link.active .icon-white {
    display: inline-block !important;
}

.nav-link.active .icon-black {
    display: none !important;
}
#info .info-container {
    gap: 14px !important;
}
#info .accordion button {
    text-align: right !important;
}

@media (max-width: 995px) {
    #option .accordion {
        flex-direction: row !important
    }

    #option img {
        max-width: 100% !important
    }
}
/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-menu {
        display: none !important
    }

    .info-container {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-content {
        flex-wrap: wrap !important
    }

    .info-menu {
        width: 100%;
        grid-column: span 2;
    }

    .info-content {
        width: 100%;
    }

    .nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .accordion button {
        text-wrap: nowrap !important;
    }
}

@media(max-width: 992px) {
    .info-menu {
        text-align: right !important;
        padding: 22px 20px !important;
    }

    .info-content {
        padding: 10px
    }

    .btn-catalogue {
        padding: 10px 16px !important
    }

    .info-content .picture img {
        margin: 64px 0px;
        scale: 1.5;
        width: 100%;
        transform: translateX(-21%);
    }

    .viewer img {
        width: auto;
        max-width: 100% !important;
        height: auto !important;
        right: 20px
        /*margin:auto;*/
    }
    #tbl_technicalInfo{
        width:100% !important
    }
}

@media (max-width: 768px) {
    .info-content {
    font-size:12px !important
    }

    .slider-controls {
        display: none !important;
     
    }
      /*  .owl-dots {
        bottom: -15%;
    }*/
    #tbl_technicalInfo tr td {
        font-size: 11px !important
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .info {
        padding: 50px 4% !important;
    }

    .info-container {
        grid-template-columns: 1fr;
        text-align: right;
    }

 
    .info-actions {
        justify-content: center;
    }

        .info-actions.btn {
            width: 100% !important;
        }

    .viewer, .inside-viewer {
        height: 250px !important;
    }

        .viewer img {
            width: auto;
            /*  max-width: 400px !important;*/
            height: auto !important;
            right: 10px
            /*margin:auto;*/
        }

    img.icon-white, img.icon-black {
        width: 15px !important;
        height: 15px !important
    }
}


/* .viewer {
                                                    width: 600px;
                                                    height: 400px;
                                                    margin: 50px auto;
                                                    background-image: url("images/car-sprite.jpg");
                                                    background-repeat: no-repeat;
                                                    background-size: 2400% 100%;
                                                    cursor: grab;
                                                }*/

.inside-viewer {
    padding: 0px 14px;
    max-width: 96% !important;
    width: 100% !important;
    height: 800px;
    position: relative;
    margin: 0 auto;
}
.viewer {
    max-width: 800px;
    width: 100%;
    height: 404px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.viewer {
    cursor: grab;
}

    .viewer:active {
        cursor: grabbing;
    }
    .viewer img {
        -webkit-user-drag: none;
    }
    .viewer .frame:not(.icon-360):not(.icon-360-mobile) {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: translate(-50%, -50%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.08s linear;
        pointer-events: none;
    }

    .viewer .frame.active:not(.icon-360):not(.icon-360-mobile) {
        opacity: 1;
        visibility: visible;
    }
.frame {
    position: absolute;
    width: auto;
    opacity: 0;
    transition: opacity 0.15s linear;
}

    .frame.active {
        opacity: 1;
    }
.viewer #img1,
.viewer #img2 {
    position: absolute;
    top: 43%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: none !important;
    pointer-events: none;
}

    .viewer #img1.active,
    .viewer #img2.active {
        opacity: 1;
        visibility: visible;
    }

.icon-360 {
    bottom: 1% !important;
    opacity: 1 !important
}

.icon-360-mobile {
    display: none;
}
#sw-btn {
   top: 70%; 
   left: 30%;
}
#monitor-btn {
    top: 55%;
    left: 52%;
}
#sunroof-btn {
    top: 21%;
    left: 52%;
}
#start-btn {
    top: 70%;
    left: 44%;
}
#gearbox-btn {
    top: 90%;
    left: 52%;
}
#air-btn {
    top: 65%;
    left: 59%;
}
#rotation .info-container {
    gap: 1px !important
}


@media (max-width: 768px) {
    .viewer {
        width: 100% !important;
        height: 290px !important;
        margin: 0 auto;
        overflow: hidden;
    }

        .viewer #img1,
        .viewer #img2 {
           
            left: 50% !important;
            right: auto !important;
            top: 30% !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: contain;
            transform: translate(-50%, -50%) !important;
        }
    #rotation .info-container.mobile-interior {
        background-image: url('/images/Products/x3/gallery/g2-mobile.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

        #rotation .info-container.mobile-interior .interior-viewport {
            background: transparent;
        }

        #rotation .info-container.mobile-interior .main-img {
            opacity: 0;
        }
    .icon-360-mobile {
        display: block !important;
        bottom: 24% !important;
        opacity: 1 !important
    }

    .icon-360 {
        display: none !important;
    }
    #sw-btn {
        top: 55%;
        left: 30%;
    }

    #monitor-btn {
        top: 45%;
        right: 5%;
    }

    #sunroof-btn {
        top: 12%;
        right: 10%;
    }
    #start-btn {
        top: 61%;
        left: 58%;
    }
    #gearbox-btn {
        top: 78%;
        left: 80%;
    }
    #air-btn {
        top: 54%;
        left: 94%;
    }
}

#option .info-container {
    align-items: flex-start;
}

#optionSection .accordion-button {
    width: auto;
    justify-content: space-between;
    background-color: #f3f3f3;
}

    #optionSection .accordion-button::after {
        background-image: url('/images/icons/add-circle-black.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        content: '';
        font-size: 20px;
        font-weight: bold;
        margin-left: 6px;
    }

    #optionSection .accordion-button:not(.collapsed) {
        background-color: #000 !important;
        color: #fff !important;
        border-top-right-radius: 56px !important;
        border-bottom-right-radius: 56px !important;
        border-width: 1px !important;
        padding-top: 12px !important;
        padding-right: 20px !important;
        padding-bottom: 12px !important;
        padding-left: 20px !important;
        margin-bottom: 10px !important;
    }

        #optionSection .accordion-button:not(.collapsed)::after {
            background-image: url('/images/icons/close.png') !important;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            content: '';
        }

#optionSection .accordion-body {
    background-color: #000;
    color: #fff;
    border-top-left-radius: 32px;
    border-bottom-right-radius: 32px;
    border-bottom-left-radius: 32px;
    padding: 24px 20px;
}

#optionSection .accordion-button:hover::after {
    background-image: url('/images/icons/add-circle-white.png');
}
/*.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}*/
.compare-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: start;
}

.compare-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    align-self: start;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px;
    align-items: start;
}

.compare-card {
    padding: 12px;
    border-radius: 18px;
    font-size: 14px;
}

    .compare-card img {
        max-height: 120px;
        object-fit: contain;
        border-radius: 15px;
    }

.mini-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
}

.compare-card:hover {
    transform: translateY(-4px);
}

.add-card {
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 323px;
    order: 999;
}

.compare-details {
    overflow-x: auto;
}

.spec-row {
    display: grid;
    grid-template-columns: 114px repeat(1, 1fr);
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    justify-content: stretch;
    justify-items: start;
    align-content: start;
}

@media (max-width: 768px) {
    .compare-card img {
        max-height: 62px !important;
    }

    .add-card {
        height: 253px !important;
    }
}

@media (max-width:768px) {

    .compare-grid {
        grid-template-columns: repeat(3,1fr) !important;
        gap: 6px !important;
        padding: 8px !important;
    }

    .compare-card {
        padding: 6px !important;
        font-size: 11px;
    }

        .compare-card img {
            max-height: 60px !important;
        }
}


.car-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.car-option {
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

    .car-option img {
        max-width: 100%;
    }

    .car-option.selected {
        border-color: #000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        transform: translateY(-4px);
    }



.top-circle {
    position: absolute;
    top: 10px;
    right: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid white;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555; /* رنگ پلاس */
}

.part-title {
    position: absolute;
    bottom: 10px;
    left: 124px;
    transform: translateX(-50%);
    width: auto;
    height: 56px;
    border-radius: 16px;
    border: 3px solid white;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #555; /* رنگ پلاس */
}



/******Car Inside View********/
.interior-viewport {
    width: 100%;
    max-width: 96%;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    /* تعیین ارتفاع قاب */
    aspect-ratio: 16 / 9.5;
}

.interior-wrapper {
  /*  position: relative;*/
    width: 100%;
    height: 100%;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
}


.hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgb(255 255 255 / 34%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 5;
}


    .hotspot::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 1px solid white;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hotspot:hover {
    background-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.plus-icon {
    font-size: 18px;
    color: #000;
    font-weight: bold;
}
#carOptionModal .modal-content {
    background-color: #ffffffcc !important
}
#carOptionModal .modal-header .btn-close {
 
    margin: .5rem !important;
}

/* موبایل اپتیمایز */
@media (max-width: 768px) {
    .color-palette {
        margin: 5px 0px 5px 0px;
        padding: 1px !important;
    }
    .interior-viewport {
        aspect-ratio: 1 / 1;
    }
    .carview-btn{
        padding-top:5px !important;
        padding-bottom:5px !important
    }
    .carview-btn img {
        width: 25px !important
    }


    .car-inside-modal-content {
        position: relative;
        /*  background-image: url('/images/products/x3/interiortrim/steeringwheel.png');*/

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 400px;
    }

        .car-inside-modal-content::before {
            content: "";
            position: absolute;
            inset: 0;
           /* background: rgba(255,255,255,0.75);*/
            background: none;
            z-index: 1;
            pointer-events: none;
        }

        .car-inside-modal-content img {
            display: none;
        }


        .car-inside-modal-content .col-lg-6 {
            position: relative;
            z-index: 2;
        }
}









.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.play-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
/* کانتینر دات ها */

.slider-box {
    position: relative;
}

.custom-nav {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 100;
}


.mobile-title {
    display: none;
}

.desktop-title {
    display: block;
}


@media (max-width: 768px) {
    .mobile-title {
        display: block !important;visibility:hidden;
    }

    .desktop-title {
        display: none !important;
    }
}
#tbl_technicalInfo{
    width:80%;
    margin:0 auto;
   
}

    #tbl_technicalInfo tr td {
        border: 0 !important;
        padding: 16px;
    }
    #tbl_technicalInfo tr td:first-child {
        border-top-right-radius: 50px;
        border-bottom-right-radius: 50px;
        color: #757575;
        text-align: center;
        /*text-wrap:nowrap*/
    }

    #tbl_technicalInfo tr td:last-child {
        border-top-left-radius: 50px;
        border-bottom-left-radius: 50px;
        color: #1a1a1a;
        text-align: center !important
    }
#tbl_technicalInfo tr {
  
    
}



/* =========================
           Fullscreen Gallery
        ========================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, .94);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

    .gallery-lightbox.show {
        opacity: 1;
        visibility: visible;
    }


/* Slider */

#lightboxSlider {
    width: 100%;
    height: 100%;
}

    #lightboxSlider .owl-stage-outer,
    #lightboxSlider .owl-stage,
    #lightboxSlider .owl-item,
    #lightboxSlider .item {
        height: 100%;
    }

    #lightboxSlider .item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 50px;
    }

    #lightboxSlider img {
        max-width: 100%;
        max-height: calc(100dvh - 100px);
        width: 60%;
        height: auto;
        object-fit: contain;
        user-select: none;
        -webkit-user-drag: none;
    }


/* Close */

.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 34px;
    line-height: 40px;
    z-index: 100;
    cursor: pointer;
}


/* Arrows */

#lightboxSlider .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxSlider .owl-prev {
    left: 25px;
}

#lightboxSlider .owl-next {
    right: 25px;
}




/* Mobile */

@media (max-width: 768px) {
    #lightboxSlider .item {
        padding: 45px 15px;
    }

    #lightboxSlider img {
        max-width: 100%;
        width: auto !important;
        max-height: calc(100dvh - 90px);
    }

    .gallery-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    #lightboxSlider .owl-nav button {
        width: 38px;
        height: 38px;
        font-size: 24px !important;
    }

    #lightboxSlider .owl-prev {
        left: 8px;
    }

    #lightboxSlider .owl-next {
        right: 8px;
    }
}

#myTabContent{
    overflow-y:auto;
    max-height:500px
}

.iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@supports (-webkit-touch-callout: none) {
    #optionSection .accordion-button,
    .info-container .nav-link {
        transform: none !important;
        -webkit-transform: none !important;
        pointer-events: auto !important;
        touch-action: manipulation;
    }
}