

/* =========================================================
GLOBAL
========================================================= */

#qm-cars{
    width:100%;
    padding:20px 10px;
    box-sizing:border-box;
}

#qm-cars *{
    box-sizing:border-box;
}

.cars-wrapper{
    width:100%;
}

.car-content{
    padding:7px
}
/* =========================================================
CARD
========================================================= */

.car-container{
    width:100%;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 5px 25px rgba(0,0,0,0.07);
    transition:0.25s ease;
    position:relative;
    border:1px solid #f1f1f1;
    width:300px;
}

.car-container:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 35px rgba(0,0,0,0.1);
}

/* =========================================================
MAIN IMAGE
========================================================= */

.main-img-cont{
    width:100%;
    height:260px;
    position:relative;
    overflow:hidden;
    background:#f5f5f5;
}

.main-img{
    width:100%;
    height:100%;
    object-fit:cover;
    cursor:pointer;
    transition:0.4s ease;
}

.main-img:hover{
    transform:scale(1.04);
}

/* =========================================================
PRICE TAG
========================================================= */

.price-tag{
    position:absolute;
    top:15px;
    right:15px;
    background:coral;
    color:white;
    padding:10px 15px;
    border-radius:14px;
    font-weight:700;
    font-size:15px;
    z-index:3;
    box-shadow:0 3px 12px rgba(0,0,0,0.15);
}

/* =========================================================
CAR INFO
========================================================= */

.car-name{
    padding:18px 18px 5px 18px;
}

.car-name h1{
    font-size:24px;
    margin:0;
    color:#1d1d1d;
    font-weight:700;
}

.model{
    background:#f3f3f3;
    color:#555;
    font-size:12px;
    padding:7px 12px;
    border-radius:999px;
    margin-right:7px;
    margin-top:10px;
    font-weight:600;
    width:max-content;
    white-space: nowrap;
}

/* =========================================================
THUMBNAILS
========================================================= */

.imgs-cont-wrapper{
    width:100%;
    position:relative;
    padding:10px 0;
}

.imgs-cont{
    width:100%;
    overflow-x:auto;
    display:flex;
    gap:10px;
    scroll-behavior:smooth;
    padding:0 50px;
}

.imgs-cont::-webkit-scrollbar{
    height:6px;
}

.imgs-cont::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:20px;
}

.scrollable-img-cont{
    flex-shrink:0;
}

.thumb-cont{
    width:90px;
    height:75px;
    border-radius:14px;
    overflow:hidden;
    cursor:pointer;
    border:2px solid transparent;
    transition:0.25s ease;
    background:#f7f7f7;
}

.thumb-cont:hover{
    border:2px solid coral;
    transform:translateY(-2px);
}

.car-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* =========================================================
SCROLL BUTTONS
========================================================= */

.gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:white;
    box-shadow:0 2px 12px rgba(0,0,0,0.15);
    z-index:3;
    cursor:pointer;
    font-size:17px;
    font-weight:bold;
    transition:0.2s ease;
}

.gallery-arrow:hover{
    background:coral;
    color:white;
}

.gallery-arrow.left{
    left:7px;
}

.gallery-arrow.right{
    right:7px;
}

/* =========================================================
SPECS
========================================================= */

.specs-cont{
    padding:15px;
    gap:12px;
}
.main-img-cont{
    position: relative;
}
.fa-gas-pump{
    color:rgb(29, 169, 4) !important
}
.gas-pump{
    color:rgb(29, 169, 4)
}
.fa-car{color:#d6a803}
.car{color:#d6a803 !important}
.fa-road{color:#0453c1}
.road{color:#0453c1 !important}
.make-model{
    position: absolute;
    bottom:0;
    left:0;
    font-size:18px;
    backdrop-filter: blur(5px);
    padding: 10px;
    background: rgba(255, 255, 255, 0.07);
    width:100%
}

.specs{
    flex:1;
    width:70px;
    background:#fafafa;
    border-radius:18px;
    padding:15px 10px;
    align-items:center;
    border:1px solid #f0f0f0;
    transition:0.2s ease;
}

.specs:hover{
    background:#fff6f2;
}

.specs-icon{
    width:28px;
    height:28px;
    object-fit:contain;
    margin-bottom:7px;
}

.specs label{
    font-size:12px;
    color:#888;
    margin-bottom:4px;
}

.specs-value{
    font-size:12px;
    font-weight:700;
    color:#222;
}

/* =========================================================
DESCRIPTION
========================================================= */

.car-description{
    padding:0 18px 15px 18px;
    color:#666;
    font-size:14px;
    line-height:1.6;
}

/* =========================================================
BUTTONS
========================================================= */

.btns{
    background:coral;
    color:white;
    padding:13px 20px;
    border-radius:14px;
    text-align:center;
    font-weight:700;
    cursor:pointer;
    margin:15px;
    transition:0.2s ease;
}

.btns:hover{
    opacity:0.92;
}

/* .feature-item{
    display:flex;
    align-items:center;
    gap:8px;
    background:#f8f8f8;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    color:#444;
} */

.feature-icon{
    color:coral;
}

.btns-outlined{
    width:48px;
    height:48px;
    border-radius:50%;
    border:2px solid coral;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:0.2s ease;
    cursor:pointer;
    margin:0 5px 15px 5px;
}

.btns-outlined:hover{
    background:coral;
}

.icons{
    width:22px;
    height:22px;
}

/* =========================================================
MODAL / IMAGE VIEWER
========================================================= */

#imageModal{
    width:100%;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    background:rgba(0,0,0,0.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
    overflow:hidden;
}

.modal-content-wrapper{
    position:relative;
    width:90%;
    max-width:1200px;
    height:90vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

#modalImage{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:10px;
    transition:transform 0.25s ease;
    cursor:grab;
}

.closeModal{
    position:absolute;
    top:20px;
    right:20px;
    width:50px;
    height:50px;
    border-radius:50%;
    background:white;
    border:none;
    font-size:24px;
    cursor:pointer;
    z-index:20;
}

.modal-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    border-radius:50%;
    border:none;
    background:white;
    font-size:24px;
    cursor:pointer;
    z-index:20;
}

.modal-prev{
    left:20px;
}

.modal-next{
    right:20px;
}

/* =========================================================
ZOOM CONTROLS
========================================================= */

.zoom-controls{
    position:absolute;
    bottom:20px;
    display:flex;
    gap:10px;
}

.zoom-btn{
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:white;
    font-size:22px;
    cursor:pointer;
}

/* =========================================================
RESPONSIVE
========================================================= */

@media(max-width:700px){

    .cars-wrapper{
        
    }

    .main-img-cont{
        height:220px;
    }

    .car-name h1{
        font-size:20px;
    }

    .imgs-cont{
        padding:0 45px;
    }

    .thumb-cont{
        width:80px;
        height:65px;
    }

    .specs{
        min-width:90px;
    }

}