@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,600;0,800;1,400;1,800&display=swap');


* {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
    
    -webkit-tap-highlight-color: transparent;
    /* drag */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 50vh;
}

::-webkit-scrollbar-thumb:hover {
    background: #e2e2e2;
    border-radius: 50vh;

}




body {
    background-color: var(--color-bg);
    max-width: 100%;
    margin: auto;
}



.wrapper {
    background-color: var(--color-bg);
    max-width: 100%;
    margin: auto;
}


@media screen and (min-width : 1400px) {

    .wrapper {
        max-width: 80%;
    }

}


a {
    text-decoration: none;
    color: var(--color-text);
}


/* ================================= library ============== */


.error_msg{
    margin:20px 0;
    text-align:center;
    color:tomato;
}


/* -- button -- */

.button {
    height: 36px;
    padding: 0 20px;
    margin: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-button-text);
    border-radius: var(--radius-button);
    cursor: pointer;

}

.button.mini {
    width: max-content;
}


.button.gradient {
    background-image: linear-gradient(to left, var(--color-button), var(--color-button-dark));
}

.button.solid {
    background: var(--color-button);
}

/* --card --- */

.card {
    border-radius: var(--radius-card);
    background-color: var(--color-card);
    margin: 10px;
    padding: 15px;
}

.card>.heading {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-accent);
    text-align: center;
}

/* -- animation --  */
/* -click- */
.anim-click-down {
    transition: all 0.05s;
}

.anim-click-down:active {
    transform: scale(0.95);
}

.anim-click-up {
    transition: all 0.05s;
}

.anim-click-up:active {
    transform: scale(1.05);
}


/* -hover- */
.anim-hover-down {
    transition: all 0.1s;
}

.anim-hover-down:hover {
    transform: scale(0.90);
}

.anim-hover-up {
    transition: all 0.1s;
}

.anim-hover-up:hover {
    transform: scale(1.10);
}



/* -rotate  */

.anim-rotate {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* -gradient text- */


.anim-text-gradient {
    background: linear-gradient(-45deg, #006eff, #6726ff,#00cf64, #00cf64);
    background-size: 300%;
    text-transform: uppercase;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animated_text 10s ease-in-out infinite;
    -moz-animation: animated_text 10s ease-in-out infinite;
    -webkit-animation: animated_text 10s ease-in-out infinite;
}

@keyframes animated_text {
    0% {
        background-position: 0px 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0px 50%;
    }
}


/*--- pagination ----*/



/* =============Pagination========= */

.pagination {
  display: inline-block;
  margin: 50px 0px;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid #e3e3e3;
}

.pagination a.active {
  background-color: #0366fc;
  color: white;
  border: 1px solid #0366fc;
}

.pagination a:hover {
  background-color: #0366fc;
  color: white;
  border: 1px solid #0366fc;
}

a.disabled {
  pointer-events: none;
  cursor: default;
}

/* ================================================= Header ==================== */

@font-face {
    font-family: logo;
    src: url('../assets/font/logo.otf');
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: calc(100% - 20px);
}

header .logo {
    display: flex;
    align-items: center;
    cursor:pointer;
}


header .logo img {
    height: 60px;
}


header .logo .site_name {
    font-size: 4vmin;
    font-weight: bolder;
    color: var(--color-primary);
    transition: all 0.3;
    font-family: logo, Arial, Helvetica, sans-serif;
    margin-bottom: 15px;
    margin-left: 10px;
}

.logo_font {
    font-family: logo, Arial, Helvetica, sans-serif;
}


/*============ Header profile =*/


header .user .profile {
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-right:15px;
    position:relative;
    z-index: 1;
}

header .user .profile img {
    width: 50px;
    height:50px;
    border-radius:50vh;
    object-fit:cover;
    box-shadow:1px 1px 3px 3px #e3e3e3;
}



header .user .profile ul {
    position: absolute;
    background-color: white;
    box-shadow: 0px 0px 3px 3px #00000015;
    z-index: 10;
    border-radius: 5px;
    width: max-content;
    display: none;
    transition: display .3s;
    top:50px;
    right:0;
    padding:10px;
}


header .user .profile ul {
  flex-direction:column;
  align-items:center;
}

header .user .profile ul .name{
  font-size:14px;
}

header .user .profile ul .email{
 margin-bottom:20px;
 font-size:12px;
 margin-top:7px;
}


header .user .profile ul a{
 margin-top:10px;
}

header .user .profile ul a:hover{
 color:DodgerBlue;
}



header .user:hover .profile ul {
    display: flex;
    overflow: hidden;
}



header .user {
    display: flex;
    align-items:center;
    justify-content:flex-end;
    height: 80px;
    width:100px;
    cursor:pointer;
}


header .user .login {
    
    
    
}


/* -- responsive -- */

@media screen and (max-width : 450px) {
    header .logo .site_name {
        display: none;
    }

}




/* ==================================================Footer ============================ */



footer {
    width: 100%;
    color: var(--color-footer-40);
    background-color: var(--color-footer-10);
}



.footer-link {
    text-decoration: none;
}

#footer_content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem 3.5rem;
}

#footer_contacts h1 {
    margin-bottom: 0.75rem;
}

#footer_social_media {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

#footer_social_media .footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    color: var(--color-footer-40);
    border-radius: 50%;
    transition: all 0.4s;
}

#footer_social_media .footer-link i {
    font-size: 1.25rem;
}

#footer_social_media .footer-link:hover {
    opacity: 0.8;
}

#youtube {
    background: #f11515;
}

#instagram {
    background: linear-gradient(#7f37c9, #ff2992, #ff9807);
}

#facebook {
    background-color: #4267b3;
}

#whatsapp {
    background-color: #25d366;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.footer-list .footer-link {
    color: var(--color-footer-30);
    transition: all 0.4s;
}

.footer-list .footer-link:hover {
    color: var(--color-accent);
}


#footer_copyright {
    display: flex;
    justify-content: center;
    background-color: var(--color-footer-0);
    font-size: 0.9rem;
    padding: 1.5rem;
    font-weight: 100;
}






/* ================================================================================================================================================================================== Home Pages Categories ================== */


.categories {}

.categories .category {
    position: relative;
}

.categories .category .category_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories .category .left,
.categories .category .right {
    position: absolute;
    top: 40%;
    background-color: rgba(138, 138, 138, 0.212);
    padding: 30px 5px;
    z-index: 5;
    color: white;
    cursor: pointer;
    transition: all 0.5s;
}

.categories .category .left {
    left: 0px;
    border-radius: 0 10px 10px 0;
}

.categories .category .right {
    right: 0px;
    border-radius: 10px 0px 0px 10px;
    font-size: 20px;
}

.categories .category .left:hover,
.categories .category .right:hover {
    background-color: rgba(100, 100, 100, 0.575);
    padding: 30px 10px;
}



.categories .category .left i,
.categories .category .right i {}



.categories .category .category_top .title {
    font-size: 16px;
    font-weight: bold;
    border-left: 5px solid var(--color-accent);
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.categories .category .category_top .view_more {
    height: 36px;
    padding: 0 15px;
    margin: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-button-text);
    border-radius: 3px;
    cursor: pointer;
    background-image: linear-gradient(to left, var(--color-button), var(--color-button-dark));
    font-size: 18px;
}


.categories .category .cars {
    overflow-y: hidden;
    overflow-x: scroll;
    display: flex;
}

.categories .category .cars.grid {
    overflow-y: hidden;
    overflow-x: scroll;
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-gap: 5px;
}


.categories .category .cars .car {
    background-color: white;
    border-radius: 10px;
    max-width: 300px;
    min-width: 300px;
    margin: 10px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
}

.categories .category .cars .car .cover {
    width: 100%;
    background-image: url('../assets/images/placeholder.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.categories .category .cars .car .cover img {
    width: 100%;
    max-height: 190px;
    min-height: 190px;
    object-fit: cover;
}

.categories .category .cars .car .details {
    display: flex;
    flex-direction: column;
    margin: 10px;
}


.categories .category .cars .car .details .title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}



.categories .category .cars .car .details .price {
    color: var(--color-text-gray);
    font-size: 16px;
    margin: 10px 0;
}

.categories .category .cars .car .details .tags {
    margin: 10px 0;
    width: max-content;
    color: var(--color-text);
    background-color: #0051ff0a;
    border-radius: 50vh;
    padding: 3px 10px;
    letter-spacing: 1px;
    transition: all .2s;
}

.categories .category .cars .car .details .other {
    display: flex;
    justify-content: space-between;
    margin: 20px 0px 0px 0px;
}

.categories .category .cars .car .details .area {
    display: flex;
    align-items: center;
    width: max-content;
    width: max-content;
    border: 1px solid #e3e3e3;
    border-radius: 15px;
    padding: 7px 10px;
    letter-spacing: 1px;
    transition: all .2s;
    color: var(--color-accent);
    font-size: 14px;
}

.categories .category .cars .car .details .area i {
    margin: 2px 5px;
}


.categories .category .cars .car .details .more {
    display: flex;
    align-items: center;
    width: max-content;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    padding: 7px 10px;
    letter-spacing: 1px;
    transition: all .2s;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.categories .category .cars .car .details .more:hover {
    transform: scale(0.95);
}



.categories .category .cars .car .details .more i {
    margin: 2px 5px;
}


@media screen and (max-width:500px) {

    .categories .category .cars .car {
        max-width: 280px;
        min-width: 280px;
    }

    .categories .category .category_top .view_more {
        height: 30px;
        padding: 0 10px;
        margin: 0;
        font-size: 14px;
    }


}







/* contact  */



footer .contact {
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: white;
    border-bottom: 0.10px solid rgb(40, 40, 40);
    padding: 15px;
}

footer .contact .links {
    margin: 10px;
    display: flex;
    align-items: center;
}

footer .contact .links i {
    margin: 0px 5px;
    font-size: 25px;
    color: rgb(255, 140, 0);
}

footer .contact .links .text {
    margin-left: 15px;
}

footer .contact .links .text .big {
    font-weight: bold;
    font-size: 16px;
}

footer .contact .links .text .small {
    font-size: 14px;
    color: gray;
    margin: 3px 0px;
}


@media screen and (max-width: 768px) {
    #footer_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 426px) {
    #footer_content {
        grid-template-columns: repeat(1, 1fr);
        padding: 3rem 2rem;
    }
}


/* =========================================================================================================================================================================== ======= Search ============= */


.search {
    max-width: calc(100% - 60px);
    margin: 20px auto;
    border-radius: 10px;
}

.search .search_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.search .search_box .filter .button {
    margin: 10px;
    padding: 10px;
    color: var(--color-accent);
    border-radius: 0px;
    cursor: pointer;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.search .search_box .filter ul {
    position: absolute;
    background-color: white;
    box-shadow: 0px 0px 7px 3px #00000015;
    z-index: 10;
    border-radius: 10px;
    width: max-content;
    display: none;
    transition: display .3s;
}

.search .search_box .filter.open:hover ul {
    display: block;
    overflow: hidden;
}


.search .search_box .filter ul option {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e7ebee;
    transform: scale(1);
    transition: transform .3s, border .3s;
}

.search .search_box .filter ul option:hover ,.search .search_box .filter ul option.active {
    transform: translate(5px);
    border-bottom: 1px solid var(--color-accent);
    background-color: #f7f7f7;
}


.search .search_box input[type=text] {
    height: 40px;
    width: 100%;
    border: 1px solid #cfdbe2;
    color: var(--color-text);
    padding: 10px;
    padding-left: 50px;
    border-radius: 0px;
    margin-left: -50px;
    border-radius: 10px 0 0 10px;
}


.search .search_box input[type=text]:hover {
    outline: none;
    border: 1px solid var(--color-accent);
}

.search .search_box input[type=text]:focus {
    outline: none;
    border: 1px solid var(--color-accent);
}


.search .search_box label.button {
    margin: 0px;
    padding: 10px;
    background-color: var(--color-button);
    border-radius: 0px;
    cursor: pointer;
    height: 40px;
    width: 120px;
    overflow: hidden;
    border-radius: 0 10px 10px 0;
}

.search .search_box label.button i {
    display: none;
}


.search .search_box input[type=submit] {
    display: none;
}

.search .search_box label.button span {
    display: inline-block;
}

@media screen and (min-width : 720px) {
    .search {
        max-width: 70%;
    }
}


@media screen and (max-width : 600px) {


    .search {
        max-width: calc(100% - 20px);
    }


    .search .search_box label.button i {
        display: inline-block;
    }

    .search .search_box label.button span {
        display: none;
    }

    .search .search_box label.button {
        width: 60px;
    }

}

.search .search_tags {
    display: flex;
    margin: 10px;
    font-size: 14px;
    width: 100%;
    flex-wrap: wrap;
}

.search .search_tags span {
    color: var(--color-text);
    font-weight: bold;
}


.search .search_tags a {
    margin: 15px 15px 0 0;
    color: var(--color-accent);
    background-color: #f5f7ff;
    border-radius: 50vh;
    padding: 3px 10px;
    letter-spacing: 1px;
    transition: all .2s;
}


.search .search_tags a:hover ,.search .search_tags a.active {
    color: white;
    background-color: var(--color-accent);
}



/*====================================================================================================================================================================  Cars List =========================*/


.cars_list {
    position: relative;
}

.cars_list .cars_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.cars_list .cars_top .title {
    font-size: 16px;
    font-weight: bold;
    border-left: 5px solid var(--color-accent);
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
}


.cars_list .cars {
    display: grid;
    grid-template-columns:repeat(auto-fill,minmax(280px , 1fr));
    grid-gap:10px;
    margin:10px 0;
}

.cars_list .cars.few {
    grid-template-columns:repeat(auto-fill,minmax(240px , 1fr));
}




.cars_list .cars .car {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e6e6e6;
}

.cars_list .cars .car .cover {
    width: 100%;
    background-image: url('../assets/images/placeholder.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.cars_list .cars .car .cover img {
    width: 100%;
    max-height: 200px;
    min-height: 200px;
    object-fit: cover;
}

.cars_list .cars .car .details {
    display: flex;
    flex-direction: column;
    margin: 10px;
}


.cars_list .cars .car .details .title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}



.cars_list .cars .car .details .price {
    color: var(--color-text-gray);
    font-size: 16px;
    margin: 10px 0;
}

.cars_list .cars .car .details .tags {
    margin: 10px 0;
    width: max-content;
    color: var(--color-text);
    background-color: #0051ff0a;
    border-radius: 50vh;
    padding: 3px 10px;
    letter-spacing: 1px;
    transition: all .2s;
}

.cars_list .cars .car .details .other {
    display: flex;
    justify-content: space-between;
    margin: 20px 0px 0px 0px;
}

.cars_list .cars .car .details .area {
    display: flex;
    align-items: center;
    width: max-content;
    width: max-content;
    border: 1px solid #e3e3e3;
    border-radius: 15px;
    padding: 7px 10px;
    letter-spacing: 1px;
    transition: all .2s;
    color: var(--color-accent);
    font-size: 14px;
}

.cars_list .cars .car .details .area i {
    margin: 2px 5px;
}


.cars_list .cars .car .details .more {
    display: flex;
    align-items: center;
    width: max-content;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    padding: 7px 10px;
    letter-spacing: 1px;
    transition: all .2s;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.cars_list .cars .car .details .more:hover {
    transform: scale(0.95);
}



.cars_list .cars .car .details .more i {
    margin: 2px 5px;
}



/* ================================================================================================================================================================  Brands ================ */


:root {
    --total-brand: 14;
    --logo-width: 12rem;
    --total-logo-width: calc(var(--total-brand) * var(--logo-width) * 2);
    --animation-duration: calc(var(--total-brand) * 1.5s);
}

.brands_slider {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 35px 0 10px 0;
}

.brands_slider::before,
.brands_slider::after {
    position: absolute;
    content: "";
    display: block;
    height: 100%;
    width: var(--logo-width);
    z-index: 2;
}

.brands_slider::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, #fff0 100%);
}

.brands_slider::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, #fff0 100%);
}

.brands_slider .brands {
    list-style: none;
    width: var(--total-logo-width);
    display: flex;
    animation: slideLeft var(--animation-duration) linear infinite;

}

.brands_slider .brands .brand img {
    height: 70px;
    cursor: pointer;
}

.brands_slider .brands .brand {
    cursor: pointer;
}


.brands_slider:hover .brands {
    animation-play-state: paused;
}

.brands_slider .brands .brand:hover img {
    filter: grayscale(0);
}

@keyframes slideLeft {
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.brands_slider .brands .brand {
    width: var(--logo-width);
    text-align: center;
}

@media screen and (max-width:600px) {

    .brands_slider .brands .brand img {
        height: 60px;
        cursor: pointer;
    }
}