:root {
    --bg-orange: #f78400;
    --text-lit :#c1c1c1;
    --bg-lights: #eee;
    --bg-footer: #e2e8f0;
}
.h5-orange {
    color: var(--bg-orange);
}
.btn-orange {
    background: var(--bg-orange);
    color: #fff;
    font-family: 'Almarai', sans-serif;
    font-family: 'Cairo', sans-serif;
}

.bg-footer {
    background: var(--bg-footer);
}

.te-light {
    color: var(--text-lit);
}

.bg-lights {
    background: var(--bg-lights);
}

body{
    margin: 0;
    padding: 0;
    font-family: 'Almarai', sans-serif;
    font-family: 'Cairo', sans-serif;
}
h5 {
    font-family: 'Almarai', sans-serif;
    font-family: 'Cairo', sans-serif;
}


/* main */

.card {
    box-shadow: 3px 3px 6px #f3f0f0, -2px -2px 6px #f3f0f0;
    margin: 15px 0 15px 0;
    border: none;
}

.slide-container {
    max-width: 90%;
    width: 100%;
    margin-top: 20px;
}

.slide-content{
    margin: 0 40px;
}

.image-content,
.card-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 14px;
}

.card-wrapper .card {
    border-radius: 8px;
    background-color: #fff;
    width: 100px;
    height: 145px;
}

.card-image {
    position: relative;
    height: 90px;
    width: 90px;
    margin-bottom: -10px;
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    height: 40px; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-button-next:hover {
    color: var(--bg-orange);
}

.swiper-button-prev:hover {
    color: var(--bg-orange);
}

.slide-container-car {
    width: 100%;
    margin-top: 10px;
}

.car-adv b {
    position: relative;
}

.car-adv b::before {
    content: '';
    position: absolute;
    width: 100%;
    border-bottom: 2px #426ddd solid;
    bottom: -3px;
    border-radius: 5px;
}

.angle-car {
    width: 120px;
    height: 35px;
    border-radius: 50px;
    background: #bce1fe;
    display: flex;
    justify-content: space-between;
    padding: 5px;
}

.angle-car-left {
    background: #fff;
    padding: 0 0 0 8px;
    width: 25px;
    color: #426ddd;
    border-radius: 50px;
}

.angle-car-right {
    background: #fff;
    padding: 0 0 0 10px;
    width: 25px;
    color: #426ddd;
    border-radius: 50px;
}

.adv {
    width: 100%;
    height: 120px;
    background: #dddddd;
}
.adv img {
    width: 100%;
    height: auto;
  }

.col-md-3 {
    padding: 0;
}

.sidebar {
    box-shadow: 3px 3px 6px #f3f0f0, -2px -2px 6px #f3f0f0;
    border-radius: 8px;
    padding: 10px 5px;
}

.sidenav {
    z-index: 1;
    top: 0;
    left: 0;
    padding-top: 0px;
}

.sidenav a, .dropdown-btn {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 20px;
    color: #485885;
    display: block;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    outline: none;
}

.sidenav a:hover, .dropdown-btns:hover {
    background-color: #f1f1f1;
}

.active {
    background-color: green;
    color: white;
}

.dropdown-container {
    display: none;
    background-color: #f1f1f1;
    padding-left: 8px;
    transform: 0.3s;
    height: 100%;
    max-height: 200px;
    overflow-y: scroll;
    border-radius: 5px;
}

.dropdown-container::-webkit-scrollbar {
    width: 10px;
    background: var(--bg-orange);
    border-radius: 0 5px 5px 0;
}

.dropdown-container::-webkit-scrollbar-thumb {
    background: var(--text-lit);
    border-radius: 10px;
}

.fa-caret-down {
    float: left;
    padding-right: 135px;
    margin-top: 10px;
}

@media screen and (max-height: 599px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}

/* // main */
@media screen and (max-width: 599px) {

    .adv {
        width: 100%;
        height: 60px;
        background: #dddddd;
    }
    .adv img {
    width: 100%;
    height: 100%;
    max-height: 60px;
  }

    .sidebar-sm {
        display: none;
    }
    .navigation a,
        .navigation i {
            display: inline-flex;
            align-items: center; 
            margin-right: 5px;
            margin-left: 5px; 
        }
        .navigation i {
            transform: scaleX(-1);
            font-size: 0.8em;
            color: #6A7791;
            margin: 0 2px;
        }
        .navigation :last-child {
            margin-right: 0 !important;
        }
}

.card-img-adv {
    object-fit: cover;
    width: 100%;
    height: 290px;
}
@media only screen and (max-width: 767px) {
.card-img-adv {
    object-fit: cover;
    width: 100%;
    height: 370.96px;
}
}

.card-body {
padding-bottom: 10px
}

.card.m-2.ml-3 {
    width: var(--width-desktop);
}

#ads-swiper .swiper-slide {
    width: 17rem !important;
    margin-right: 6px;
    margin-left: 5.5px !important;
    height: auto;
}

#ads-swiper .slide-content {
    margin: 1px;
    padding-right: 0px;
    padding-left: 0px;
}

#ads-swiper .swiper-container {
    margin-left: 0px;
    margin-right: 0px;
}

#ads-swiper .col-md-12 {
    padding-right: 0px;
    padding-left: 0px;
}


@media only screen and (max-width: 767px) {
    #ads-swiper .swiper-slide {
        width: 20rem !important;
    }
    #ads-swiper .card.swiper-slide {
    margin-left: -14px !important;
    margin-right: 22px !important;
}
}

@media only screen and (max-width: 767px) {
    #ads-swiper .swiper-button-next-2,
    #ads-swiper .swiper-button-prev-2,
    #ads-swiper .swiper-button-pagination {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .card.m-2.ml-3 {
        width: var(--width-mobile);
        left: 5px;
        
    }
}

#ads-swiper {
    direction: rtl; 
}

.card {
    direction: ltr;
}

.ads-swiper .swiper-wrapper {
  gap: 0px;
}

  .filter-dropdown {
    position: relative;
    display: inline-block;
  }

  .filter-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #f9f9f9;
    width: 320px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    padding: 0 20px 20px 20px;
  }

  .filter-dropdown-content.hidden {
    display: none;
  }

  .filter-dropdown-content a {
    color: #fff;
    background: #426ddd;
    padding: 12px 16px;
    display: block;
  }


  .filter-dropdown:hover .filter-dropdown-content {
    display: block;
  }

  .filter-dropdown-content select {
    font-size: 20px; 
}
select.form-control:not([size]):not([multiple]) {
    height: calc(2.85rem + 2px);
    padding-top: 2px;
    padding-bottom: 8px;
    align-items: center;
}

  .filter-dropbtn {
    color: #426ddd;
    font-size: 17px;
    padding-top: 9px;
    border: none;
    cursor: pointer;
  }

  .filter-dropbtn:hover {
    background-color: transparent;
  }

  .filter-dropdown-content #filter-element {
    width: 310px;
    padding: 0 45px 0px 16px;
    padding-top: 26px;
}

.swiper-button-next, .swiper-button-prev {
position: absolute;
top: var(--swiper-navigation-top-offset, 60%);
}

#filtr {
    justify-content: space-between;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 0;
    background-image: linear-gradient(to right, rgba(7, 79, 142, 0.9) 0%, rgba(58, 126, 200, 0.9) 51%, rgba(7, 79, 142, 0.9) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    width: 82px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 25px 25px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

.new-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}