﻿.main-header {
    width: 100%;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, top 0.3s ease-in-out;
    border-bottom: 1px solid #eee;
    direction: rtl;
    position: fixed;
    z-index: 1000;
    
}


.header-inner {
    width: 100%;
    height: 87px;
    padding: 0 73px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-right-menu {
    width: 42%;
    display: flex;
    align-items: center;
    position: static;
}


    .header-right-menu .navbar {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 0;
        background: transparent;
        justify-content: flex-start;
        border: none;
    }


.main-menu-list {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 0;
    padding: 0;
    float: right;
}



    .main-menu-list > li {
        float: none;
        position: static;
    }


        .main-menu-list > li > a {
            display: block;
            padding: 10px 9px;
            color: #252525 !important;
            font-size: 12.5px;
            font-weight: 600;
            white-space: nowrap;
            background: transparent !important;
            text-decoration: none;
            transition: color .2s ease;
        }


            .main-menu-list > li > a:hover,
            .main-menu-list > li > a:focus {
                color: #777777;
                background: transparent !important;
            }


.all-link .menu-title a {
    position: relative;
    padding-right: 15px;
}

    .all-link .menu-title a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 30px;
        background-color: black;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .all-link .menu-title a:hover::before {
        opacity: 1;
    }

.header-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}


    .header-logo a {
        display: block;
    }


    .header-logo img {
        display: block;
        width: auto;
        max-width: 270px;
        max-height: 35px;
    }

.header-left-icons {
    width: 42%;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


    .header-left-icons .list-inline {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        margin: 0;
        padding: 15px 0;
    }


        .header-left-icons .list-inline > li {
            margin: 0;
            padding: 0 9px;
        }


.header-icon {
    width: 19px;
    height: 17px;
    display: block;
    object-fit: contain;
    transition: opacity .2s ease;
}


    .header-icon:hover {
        opacity: .6;
    }

.divider-vertical {
    width: 1px !important;
    height: 18px;
    padding: 0 !important;
    margin: 0 8px !important;
    background: #000;
}


.cart-icon {
    position: relative;
}


    .cart-icon .badge {
        position: absolute;
        top: 1px;
        right: -10px;
        min-width: 15px;
        height: 14px;
        padding: 0;
        line-height: 16px;
        border-radius: 50%;
        background: #000000;
        color: #ffffff;
        font-size: 9px;
        font-weight: 600;
        text-align: center;
    }

.mega-menu-item {
    position: static !important;
}

.mega-menu-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-76%) !important;
    margin: 0 !important;
    padding: 35px 0 40px !important;
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    display: block !important;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity .25s ease, visibility .25s ease;
}



.mega-menu-item:hover > .mega-menu-dropdown {
    visibility: visible;
    opacity: 1;
}

.mega-menu-row {
    display: flex;
    flex-wrap: wrap;
    direction: rtl;
    gap: 35px;
}


.mega-column {
    width: 150px;
    text-align: right;
}


    .mega-column ul {
        margin: 0;
        padding: 0;
    }


    .mega-column li {
        list-style: none;
        margin: 0;
        padding: 0;
    }


        .mega-column li a {
            display: block;
            position: relative;
            color: #666666;
            font-size: 13.5px;
            line-height: 2.3;
            padding: 0 17px 5px 0;
            text-decoration: none;
            font-weight: 500;
            transition: color .15s ease, transform .25s ease;
        }

.mega-menu-dropdown a {
    position: relative;
    transition: color .15s ease, transform .25s ease;
}

    .mega-menu-dropdown a::before {
        content: '';
        position: absolute;
        right: -10px;
        top: 50%;
        transform: translateY(-50%);
        width: 5px;
        height: 22px;
        background-color: #000;
        opacity: 0;
        transition: opacity .25s ease;
    }

    .mega-menu-dropdown a:hover {
        transform: translateX(-8px);
    }

        .mega-menu-dropdown a:hover::before {
            opacity: 1;
        }

.mega-column li a:hover {
    color: #000000;
    transform: translateX(-8px);
}

    .mega-column li a:hover::before {
        opacity: 1;
    }

.mega-column li a::before {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background-color: #000;
    opacity: 0;
    transition: opacity .25s ease;
}


.mega-menu-title {
    margin-bottom: 8px !important;
}


    .mega-menu-title a {
        color: #111111 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
    }


.all-link a {
    color: #888888 !important;
    font-size: 13.5px !important;
}

.mega-menu-dropdown {
    top: calc(100% + 15px);
}

.custom-sizing-menu {
    padding-right: 10rem !important;
}

.mega-column li:not(.mega-menu-title) a:hover {
    color: #000;
    transform: translateX(-8px);
}

    .mega-column li:not(.mega-menu-title) a:hover::before {
        opacity: 1;
    }

.category-heading span {
    display: block;
    color: #111111;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    padding: 5px 17px 5px 0;
}

.main-menu-list > li {
    position: relative;
}

    .main-menu-list > li > .dropdown-menu {
        display: none;
    }

    .main-menu-list > li.open > .dropdown-menu {
        display: block;
    }

.main-menu-list li {
    position: relative;
}

    .main-menu-list li > .dropdown-menu {
        display: none;
    }

    .main-menu-list li:hover > .dropdown-menu {
        display: block;
    }

.main-menu-list > li.full-width-menu {
    position: static !important;
}

.full-width-menu > .dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-76%) !important;
    margin: 0 !important;
    padding: 17px 10rem !important;
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    display: block !important;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity .25s ease, visibility .25s ease;
    direction: rtl;
}

.full-width-menu:hover > .dropdown-menu {
    visibility: visible;
    opacity: 1;
}

.dropdown-menu > li > a {
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: start;
    padding: 8px 20px;
}

.dropdown-menu > li > a:hover{
    clear: both;
    background: transparent;
    font-weight: 400;
    color: #333;
    text-align: start;
}

.language-dropdown,
.profile-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}


    .language-dropdown .dropdown-list {
        display: none;
        position: absolute;
        top: calc(100% + 11px);
        right: 50%;
        transform: translateX(50%);
        background: #fff;
        padding: 5px 9px;
        z-index: 1000;
        min-width: 45px;
        border-radius: 0;
    }

    .language-dropdown:hover .dropdown-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .language-dropdown .list-entry {
        display: block;
        width: 100%;
        text-align: center;
        color: #191919;
        text-decoration: none;
        padding: 5px 0;
    }
        .language-dropdown .list-entry:not(:last-child) {
            border-bottom: 1px solid #747474;
        }

    .language-dropdown .dropdown-list::before {
        content: "";
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #fff;
        position: absolute;
        top: -9px;
        right: 14px;
    }


    .profile-dropdown .dropdown-list {
        display: none;
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        top: calc(100% + 11px);
        background: #fff;
        padding: 5px 13px;
        min-width: max-content;
        z-index: 1000;
        border-radius: 0;
    }

    .profile-dropdown:hover .dropdown-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-dropdown .list-entry {
        display: block;
        padding: 4px 0;
        color: #747474;
        text-decoration: none;
        white-space: nowrap;
        text-align: center;
        font-size: 12px;
    }

    .profile-dropdown .dropdown-list::before {
        content: "";
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-bottom: 9px solid #fff;
        position: absolute;
        top: -8px;
        right: 39px;
    }


    .profile-dropdown .list-entry:not(:last-child) {
        content: "";
        display: block;
        border-bottom: 1px solid #747474 !important;
        width: 100%;
        margin-top: 0;
    }


.search-dropdown {
    position: relative;
}

.search-checkbox {
    display: none;
}

.search-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-dropdown-box {
    position: absolute;
    top: calc(100% + 48px);
    right: 50%;
    transform: translateX(50%) translateY(-10px);
    width: 320px;
    height: 41px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.search-checkbox:checked ~ .search-dropdown-box {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(50%) translateY(0);
}

.search-dropdown-box form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
    border-bottom: 2px solid #555;
    border-left: 2px solid #555;
}


.search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 12px;
    text-align: right;
    font-size: 14px;
}

.search-button {
    width: 42px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .search-button img {
        width: 15px;
        height: 15px;
    }

label {
    margin-bottom: 0px;
}

.mobile-header {
    display: none;
}

@media (max-width: 1500px){
    .header-inner {
        width: 100%;
        height: 87px;
        padding: 0 20px 0 49px;
        display: flex;
        align-items: center;
        position: relative;
    }

    .header-logo img {
        display: block;
        width: auto;
        max-width: 231px;
        max-height: 35px;
    }

    .main-menu-list > li > a {
        display: block;
        padding: 10px 4px;
    }

    .mega-menu-dropdown {
        position: absolute;
        top: calc(100% + 15px);
        left: 44% !important;
        width: 100vw !important;
    }
}

@media (max-width: 1200px) {
    .header-inner {
    width: 100%;
    height: 87px;
    padding: 0 49px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-logo img {
    display: none;
    width: auto;
    max-width: 231px;
    max-height: 35px;
}

.main-menu-list > li > a {
    display: block;
    padding: 10px 7px;
}

.mega-menu-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 44% !important;
    width: 100vw !important;
}
}


@media (max-width: 767px) {


    .main-header {
        display: none !important;
    }


    .mobile-header {
        display: block;
        width: 100%;
        background: transparent;
        position: fixed;
        z-index: 9999;
    }

        .mobile-header.scrolled {
            background-color: rgba(255, 255, 255, 0.1) !important;
            border-bottom: 1px solid rgba(220, 220, 220, 0.4) !important;
            backdrop-filter: blur(3px) !important;
            transition: all 0.3s ease;
        }

   

    .mobile-menu-checkbox {
        display: none;
    }


    .mobile-header-top {
        height: 80px;
        padding: 0 17px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: top 0.3s ease;
    }


    .mobile-logo img {
        width: 180px;
        display: block;
    }



    .mobile-header-icons {
        display: flex;
        align-items: center;
        gap: 18px;
    }


    .mobile-cart {
        position: relative;
        display: flex;
        align-items: center;
    }


        .mobile-cart img {
            width: 20px;
            height: 20px;
        }


        .mobile-cart .badge {
            position: absolute;
            top: 2px;
            right: -17px;
            min-width: 15px;
            height: 15px;
            padding: 0;
            border-radius: 50%;
            font-size: 9px;
            line-height: 15px;
        }



    .mobile-menu-button {
        width: 18px;
        height: 14px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }


        .mobile-menu-button span {
            display: block;
            width: 100%;
            height: 2px;
            background: #1e1e1e;
            transition: transform .5s cubic-bezier(.77, 0, .18, 1), opacity .3s ease;
        }


    .mobile-menu-checkbox:checked ~ .mobile-header-top
    .mobile-menu-button span:nth-child(2) {
        -webkit-transform: rotate3d(0, 0, 1, 144deg);
    }



    .mobile-menu {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        padding: 0 26px;
        transition: max-height .7s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, transform .6s cubic-bezier(.22, 1, .36, 1), padding .6s ease;
    }



    .mobile-menu-checkbox:checked ~ .mobile-menu {
        max-height: calc(100vh - 62px);
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding-top: 10px;
        padding-bottom: 30px;
        overflow-y: auto;
        background-color: #fff;
    }

    .mobile-menu::-webkit-scrollbar {
        width: 3px;
    }


    .mobile-menu::-webkit-scrollbar-track {
        background: transparent;
    }


    .mobile-menu::-webkit-scrollbar-thumb {
        background: #cfcfcf;
        border-radius: 10px;
    }


    .mobile-search {
        width: 100%;
        height: 53px;
        background: #f5f5f5;
        margin-bottom: 13px;
        border-bottom: 1px solid #00000066;
        border-left: 1px solid #00000066;
    }


        .mobile-search form {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            direction: ltr;
        }


        .mobile-search button {
            width: 45px;
            height: 100%;
            border: none;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
        }


            .mobile-search button img {
                width: 17px;
                height: 17px;
            }


        .mobile-search input {
            flex: 1;
            height: 100%;
            border: none;
            outline: none;
            background: transparent;
            text-align: right;
            direction: rtl;
            font-family: inherit;
            font-size: 12px;
        }



    .mobile-quick-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 16px;
    }


    .mobile-quick-item {
        height: 47px;
        border: 1px solid #c8c8c8;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0px;
        color: #777;
        text-decoration: none;
    }


        .mobile-quick-item img {
            width: 22px;
            height: 20px;
            object-fit: contain;
            opacity: .7;
        }


        .mobile-quick-item span {
            font-size: 10px;
            font-weight: 400;
            white-space: nowrap;
        }


    .mobile-navigation {
        direction: rtl;
        width: 100%;
    }

        .mobile-navigation > ul {
            direction: rtl;
            width: 100%;
        }

    .mobile-navigation ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }


    .mobile-navigation > ul > li {
        min-height: 43px;
        display: flex;
        align-items: center;
        direction: rtl;
        text-align: right;
    }


        .mobile-navigation > ul > li > a {
            width: 100%;
            display: block;
            color: #222;
            text-decoration: none;
            font-size: 11px;
            font-weight: 700;
            direction: rtl;
            text-align: right;
        }



    .mobile-details {
        width: 100%;
    }


        .mobile-details summary {
            width: 100%;
            min-height: 43px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            list-style: none;
            font-size: 12px;
            font-weight: 600;
        }


            .mobile-details summary::-webkit-details-marker {
                display: none;
            }


    .mobile-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    }


        .mobile-arrow svg {
            width: 16px;
            height: 16px;
            display: block;
        }


    .mobile-details[open] .mobile-arrow {
        transform: rotate(180deg);
    }


    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-right: 15px !important;
        transition: max-height .5s ease, opacity .3s ease;
    }


    .mobile-details[open] .mobile-submenu {
        max-height: 500px;
        opacity: 1;
    }


    .mobile-submenu li {
        min-height: 34px;
        display: flex;
        align-items: center;
    }


        .mobile-submenu li a {
            color: #777;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
        }


    .mobile-inner-details {
        width: 100%;
    }


        .mobile-inner-details summary {
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            list-style: none;
            cursor: pointer;
            font-size: 12px;
            color: #444;
        }


            .mobile-inner-details summary::-webkit-details-marker {
                display: none;
            }


    .mobile-inner-arrow {
        display: flex;
        align-items: center;
        transition: transform .4s ease;
    }


    .mobile-inner-details[open]
    .mobile-inner-arrow {
        transform: rotate(180deg);
    }


    .mobile-inner-submenu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding-right: 14px !important;
        transition: max-height .5s ease, opacity .3s ease;
    }


    .mobile-inner-details[open]
    .mobile-inner-submenu {
        max-height: 500px;
        opacity: 1;
    }


    .mobile-inner-submenu li {
        min-height: 32px;
        display: flex;
        align-items: center;
    }


        .mobile-inner-submenu li a {
            font-size: 12px;
            font-weight: 600;
            color: #777;
            text-decoration: none;
        }


    .mobile-language {
        display: flex !important;
        justify-content: space-between;
    }


        .mobile-language > span {
            font-size: 11px;
            font-weight: 700;
        }


        .mobile-language > div {
            display: flex;
            gap: 10px;
        }


        .mobile-language a {
            color: #777;
            font-size: 10px;
            text-decoration: none;
        }
}