:root {
    --color-lvl1-1: #c3c2c7;
    --color-lvl1-2: #e2e0e3;
    --color-lvl2-1: #d8d6dc;
    --color-lvl2-2: #f3f1f4;
    --color-lvl3-1: #e8e6ec;
    --color-lvl3-2: #f3f1f4;
    --color-lvl3: #c4c2c8;
    --color-border-1: #7f7d7f;
    --color-font-1: #060226;
    --color-font-2: #68687b;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red: #ff0000;
    --color-green: #00ff00;
    --color-blue: #0000ff;
    --color-blue2: #096999;
    --color-purple: #6e066e;
    --color-gray: #c3c2c7;
    --color-gray-2: #787679;
}

.title-font {
    font-family: Vazir;
    font-weight: normal;
    font-size: 16px;
    color: var(--color-font-1);
}

.normal-font-black {
    font-family: Vazir;
    font-weight: normal;
    font-size: 14px;
    color: var(--color-black);
}

.normal-font-gray {
    font-family: Vazir;
    font-weight: normal;
    font-size: 14px;
    color: var(--color-font-2);
}

.normal-font-link-1 {
    font-family: Vazir;
    font-weight: normal;
    font-size: 14px;
    color: var(--color-blue);
}

.normal-font-link-2 {
    font-family: Vazir;
    font-weight: normal;
    font-size: 14px;
    color: var(--color-font-1);
}


.rounded-10 {
    border-radius: 10px;
}

.home-category-div {
    border-radius: 10px;
    height: 150px;
}

    .home-category-div:hover {
        background-color: var(--color-lvl2-2);
        border-radius: 10px;
        text-decoration: none;
        height: 150px;
    }

.home-mahboob-div-back {
    height: 150px;
}

.home-mahboob-div-title {
    background: linear-gradient(to bottom,var(--color-lvl2-2),var(--color-lvl2-2) );
    background-attachment: fixed;
    border-bottom: 1px solid var(--color-lvl1-1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 25px;
}

.home-mahboob-div {
    background: linear-gradient(to bottom,var(--color-lvl2-2),var(--color-lvl2-2) );
    background-attachment: fixed;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    height: 125px;
}

.home-brands-div {
    background: linear-gradient(to bottom,var(--color-white),var(--color-white) );
    background-attachment: fixed;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    height: 125px;
}

.home-hot-div {
    background-color: var(--color-lvl2-2);
    border-radius: 10px;
    height: 100px;
}

    .home-hot-div:hover {
        background-color: var(--color-lvl1-1);
        border-radius: 10px;
        text-decoration: none;
        height: 100px;
    }

.home-news-div {
    background-color: var(--color-lvl1-1);
    border-radius: 10px;
    height: 330px;
}

.home-news-title {
    background-color: var(--color-lvl2-2);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid var(--color-lvl1-1);
    height: 30px;
}

.home-news-body {
    background-color: var(--color-lvl2-2);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    height: 270px;
    overflow: hidden;
}

.home-bottom-left-ad-div {
    height: 160px;
}

.bg-lvl1-1-color {
    background: var(--color-lvl1-1);
}

.bg-lvl1-2-color {
    background: var(--color-lvl1-2);
}

.bg-lvl2-1-color {
    background: var(--color-lvl2-1);
}

.bg-lvl2-2-color {
    background: var(--color-lvl2-2);
}

@font-face {
    font-family: 'vazir';
    src: url('../font/Vazir.woff') format("woff");
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    transition: all .25s ease;
}


    .navbar-nav .nav-link:hover {
        color: #0d6efd;
        transform: translateY(-2px);
    }

.navar .dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

.dropdown-menu {
    border-radius: 10px;
    border: none;
    min-width: 200px;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.dropdown-item {
    padding: 8px 18px;
    transition: all .2s;
}


    .dropdown-item:hover {
        /* background-color: #f1f1f1;*/
        background-color: var(--color-white);
        padding-right: 22px;
    }
/*اگر فقط در موبایل بخواهیم*/
/*@media (max-width: 768px){*/
.nav-link.dropdown-toggle.show {
    color: var(--color-black) !important;
    background-color: var(--color-white);
    border-radius: 5px;
}
/*}*/

@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .navbar,
    .navbar-collapse,
    .container,
    .container-fluid,
    .row {
        overflow: visible !important;
    }

    .dropdown-menu {
        position: absolute !important;
        z-index: 20000 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

        .dropdown-menu .dropdown-menu {
            left: 0 !important;
            top: 100% !important;
            margin-top: 2px !important;
        }

    .dropdown-item {
        white-space: normal !important;
        word-break: break-word !important;
    }
}


#header2, #login {
    position: relative;
    overflow: visible;
    / مهم / z-index: 1;
}

.navbar-collapse {
    position: relative !important;
    z-index: 1050 !important;
    / بالاتر از header2 و login */
}

    .navbar-collapse .dropdown-menu {
        position: relative;
        / مهم / z-index: 9999;
        / همیشه بالاتر از div های پایین */
    }

.user_profile-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user_Alarms-img {
    height: 30px;
    width: 30px;
    object-fit: cover;
    display: block;
}

.badge-alarm {
    position: absolute;
    top: 12px;
    left: 15px;
    transform: translate(50%,-50%);
    background-color: red;
    color: white;
    font-size: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
}

.divider_vertical_right {
    position: relative;
}

.divider_vertical::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 7px;
    bottom: 7px;
    width: 1px;
    background: var(--color-black);
}

.line-White-hor {
    border-top: 2px solid var(--color-white);
    margin: 0 160px;
}

.line-White-ver {
    border-left: 1px solid var(--color-white);
    margin: 10px 0;
}

.alarm_badge {
    left: 15px;
}

.loginUserNameFont {
    font-family: Vazir;
    font-weight: normal;
    font-size: 14px;
    color: var(--color-black);
}

.title-category-font {
    font-family: Vazir;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-blue2);
}

.esaakht_logo {
    width: 204px;
    height: 44px;
}

.bg_level_1 {
    background: linear-gradient(to bottom,#c3c2c7,#e2e0e3 );
    background-attachment: fixed;
    padding-left: 15px;
    padding-right: 15px;
    height: 254vh;
}

.bg_level_2 {
    background: linear-gradient(to bottom,#d8d6dc,#f3f1f4 );
    background-attachment: fixed;
    margin-left: 15px;
    margin-right: 15px;
    height: 175vh;
}

.costum-login {
    background-color: var(--color-lvl1-1);
}
/*در حالت موبایلی*/
@media (max-width: 768px) {
    .badge-alarm {
        position: absolute;
        top: 12px;
        left: 5px;
        transform: translate(50%,-50%);
        background-color: red;
        color: white;
        font-size: 8px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid white;
    }

    .loginUserNameFont {
        font-family: Vazir;
        font-weight: normal;
        font-size: 10px;
        color: var(--color-black);
    }

    .title-category-font {
        font-family: Vazir;
        font-weight: normal;
        font-size: 12px;
        color: var(--color-blue2);
    }

    .esaakht_logo {
        width: 95px;
        height: 22px;
    }

    .bg_level_1 {
        background: linear-gradient(to bottom,#c3c2c7,#e2e0e3 );
        background-attachment: fixed;
        height: 387vh;
    }

    .bg_level_2 {
        background: linear-gradient(to bottom,#d8d6dc,#f3f1f4 );
        background-attachment: fixed;
        height: 289vh;
    }

    .costum-login {
        background-color: var(--color-lvl3-1);
    }
}

.div_radius {
    border-radius: 10px;
}

.bg_header_1 {
    background: linear-gradient(to bottom,#e8e6ec,#f3f1f4 );
    background-attachment: fixed;
}

.bg_header_2 {
    background-attachment: fixed;
}

.top_banner {
    background-attachment: fixed;
    height: 160px;
}

.bg_footer {
    background: linear-gradient(to bottom,#d8d6dc,#f3f1f4 );
    background-attachment: fixed;
    height: 370px;
}


.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--color-white);
    z-index: 9999;
}

.footer-glass {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    z-index: 1;
}

.footer-center {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
}

    .footer-center::before {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 7px solid var(--color-lvl1-1);
        / نور لبه */ box-shadow: 0 0 10px rgba(255,255,255,0.7);
        z-index: -1;
    }

    .footer-center:hover {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: var(--color-blue);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 30;
    }

.footer-item {
    text-align: center;
    font-size: 12px;
    color: var(--color-gray-2);
    border: none; /* 1px solid var(--color-border-1);*/
    border-radius: 10px;
    z-index: 2;
}

    .footer-item:hover {
        text-align: center;
        font-size: 12px;
        border: 1px solid var(--color-blue);
        background: var(--color-lvl2-1);
        border-radius: 10px;
        z-index: 2;
    }

    .footer-item img {
        height: 30px;
        margin-bottom: 4px;
    }

/*جستجو*/
.dk-search {
    width: 100%;
}

    .dk-search .input-group {
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #ddd;
    }

    .dk-search:focus-within .input-group {
        border-color: yellow;
        box-shadow: 0 0 0 2px rgba(239,57,78,.15);
    }

.search-result {
    display: none;
    position: absolute;
    top: 105%;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 10px;
    z-index: 2000;
    max-height: 300px;
    overflow-y: auto;
}

.loading-box {
    display: none;
    padding: 20px;
    text-align: center;
}

.result-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

    .result-item:hover {
        background: #f8f8f8;
        color: #ef394e;
    }

.highlight {
    background: yellow;
    font-weight: bold;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

    .result-item:hover {
        background: #f7f7f7;
        color: var(--color-blue);
    }

    .result-item img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 6px;
        border: 1px solid #eee;
    }

.highlight {
    background: yellow;
    font-weight: bold;
}

.group-title {
    font-size: 12px;
    color: gray;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}
/*swiper brands Ad slider*/
.brands-card {
    background: var(--color-white);
    padding: 5px;
    display: flex;
    flex-direction: row-reverse; /* مهم برای RTL */
    justify-content: space-between;
    align-items: center;
    text-align: right;
    height: 110px;
}

    .brands-card:hover {
        /* background: linear-gradient(to bottom,var(--color-white) ,var(--color-lvl3-2) );
*/
        padding: 5px;
        display: flex;
        flex-direction: row-reverse; /* مهم برای RTL */
        justify-content: space-between;
        align-items: center;
        text-align: right;
        height: 110px;
    }

    .brands-card img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        margin-left: 15px;
    }
/* حذف فلش پیش‌فرض */
.brandSwiper .swiper-button-next::after,
.brandSwiper .swiper-button-prev::after {
    display: none !important;
}
/* استایل دکمه */
.brandSwiper .swiper-button-next,
.brandSwiper .swiper-button-prev {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.01);
    / فقط color /
}
/* آیکون **/
.brandSwiper .swiper-button-next {
    background-image: url('/icon/arrow-left-short.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

.brandSwiper .swiper-button-prev {
    background-image: url('/icon/arrow-right-short.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

/*swipper Mahboobtarinha slider*/
.engineer-card {
    background: linear-gradient(to bottom,var(--color-lvl2-1),var(--color-lvl2-2) );
    border-radius: 5px;
    padding: 5px;
    display: flex;
    flex-direction: row-reverse; /* مهم برای RTL */
    justify-content: space-between;
    align-items: center;
    text-align: right;
    height: 110px;
}

    .engineer-card:hover {
        background: linear-gradient(to bottom,var(--color-lvl1-1),var(--color-lvl1-2) );
        border-radius: 5px;
        padding: 5px;
        display: flex;
        flex-direction: row-reverse; /* مهم برای RTL */
        justify-content: space-between;
        align-items: center;
        text-align: right;
        height: 110px;
    }

    .engineer-card img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        margin-left: 15px;
    }

.rating {
    margin-top: 8px;
    font-size: 14px;
    color: #f5a623;
}

.swiper {
    padding: 10px 0;
}

.engineer-section {
    padding: 0 10px;
}
/*حرکت نرمتر و مدرن تر*/
.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.half-height {
    flex: 0 0 auto;
}



/*swiper Newest News*/
.home-news-body {
    height: 290px;
}

.newsSwiper {
    height: 100%;
}

    .newsSwiper .swiper-slide {
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .newsSwiper a {
        text-decoration: none;
        color: var(--color-blue);
        font-size: 13px;
        transition: 0.5s;
    }

        .newsSwiper a:hover {
            color: var(--color-purple);
        }

    .newsSwiper .swiper-button-prev,
    .newsSwiper .swiper-button-next {
        color: #999;
        width: 25px;
        height: 25px;
    }

    .newsSwiper .swiper-button-prev {
        top: 30px;
    }

    .newsSwiper .swiper-button-next {
        bottom: 10px;
        top: auto;
    }
    /*فلش‌ها */
    /*حذف موقعیت پیشفرض*/
    .newsSwiper .swiper-button-next,
    .newsSwiper .swiper-button-prev {
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        color: var(--color-lvl1-1);
    }
/* فلش بالا */
.news-up {
    top: 5px;
}
/* فلش پایین */
.news-down {
    bottom: 5px;
}
/* 👇 مهم: تغییر جهت آیکن‌ها */
.news-up::after {
    transform: rotate(-90deg);
    font-size: 20px !important;
    color: var(--color-gray-2);
}

.news-down::after {
    transform: rotate(-90deg);
    font-size: 20px !important;
    color: var(--color-gray-2);
}

.shops-arrow::after {
    font-size: 20px !important;
    color: var(--color-gray-2);
}

.mohandesan-arrow::after {
    font-size: 20px !important;
    color: var(--color-gray-2);
}

.sanatgaran-arrow::after {
    font-size: 20px !important;
    color: var(--color-gray-2);
}

.khadamatkaran-arrow::after {
    font-size: 20px !important;
    color: var(--color-gray-2);
}

/*footer*/
.footer-top {
    margin: 10px;
    height: 280px;
}

.footer-middle {
    height: 210px;
}

.footer-middle-aboutUs {
    padding: 0px;
    height: 140px;
}

.footer-bottom {
    text-align: center;
    height: 40px;
}



body {
    font-family: Vazir;
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    body {
        font-family: Vazir;
        padding-bottom: 70px;
    }
}




/* در دسکتاپ*/
@media (min-width: 768px) {

    .footer-row #f-address,
    .footer-row #f-phone,
    .footer-row #f-socialmedia {
        border-top: 2px solid var(--color-white);
        border-bottom: 2px solid var(--color-white);
    }

    .footer-row #f-address {
        border-right: 2px solid var(--color-white);
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .footer-row #f-socialmedia {
        border-left: 2px solid var(--color-white);
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
}
/* در موبایل*/
@media (max-width: 767px) {

    .footer-row #f-address,
    .footer-row #f-phone,
    .footer-row #f-socialmedia
    .footer-row #f-enamad {
        border-top: 2px solid var(--color-white);
    }

    .footer-row #f-address {
        border-top-right-radius: 12px;
        border-right: 2px solid var(--color-white);
    }

    .footer-row #f-phone {
        border-top-left-radius: 12px;
        border-left: 2px solid var(--color-white);
    }

    .footer-row #f-enamad {
        border-bottom-left-radius: 12px;
        border-left: 2px solid var(--color-white);
        border-bottom: 2px solid var(--color-white);
    }

    .footer-row #f-socialmedia {
        border-bottom-right-radius: 12px;
        border-right: 2px solid var(--color-white);
        border-bottom: 2px solid var(--color-white);
    }
}




/*جهت ترتیب چیدمان در حالت موبایلی*/
@media (max-width: 767.98px) {
    /*کل صفحه در موبایلی ستونی شود*/
    .main-wrapper {
        display: flex;
        flex-direction: column;
    }

    /*footer*/
    .footer-top {
        margin: 10px;
        height: 390px;
    }

    .bg_footer {
        background: linear-gradient(to bottom,#d8d6dc,#f3f1f4 );
        background-attachment: fixed;
        height: 610px;
    }
    /*ترتیب در فوتر*/
    #topBanner {
        order: 1;
    }

    #homeBodyRight-top {
        order: 2;
    }




    /*ترتیب مورد نظر*/
    #topBanner {
        order: 1;
    }

    #homeBodyRight-top {
        order: 2;
    }

    #top-boxes {
        order: 3;
    }

    #homeBodyRight-bottom {
        display: flex;
        flex-direction: column;
    }

    #mahboobtarin-brands {
        order: 4;
    }

    #mahboobtarin-shops {
        order: 5;
    }

    #mahboobtarin-mohandesan {
        order: 6;
    }

    #mahboobtarin-sanatgaran {
        order: 7;
    }

    #mahboobtarin-khadamatkaran {
        order: 8;
    }

    #newest-news {
        order: 9;
    }

    #bottom-ad {
        order: 10;
    }
}
