.navbar {
    background-color: #ffffff;
    z-index: 491;
    box-shadow: 0 3px 10px 0 rgb(0 0 0 / 3%);

    &.sticky {
        position: fixed;
        top: 0;
        width: 100%;
        border-bottom: 1px solid #ececec
    }

    @media (max-width: $screen-xs-max) {
        &.sticky {
            position: relative !important;
            top: auto !important;
            width: 100%;
        }
    }

    .navbar-toggler {
        font-size: 1rem;
    }

    .navbar-categories-dropdown {
        .dropdown-toggle {
            padding: 12px 25px 12px 15px;
            border-radius: 10px;
            background-color: #f1f1f1;

            &:after {
                display: none;
            }
        }

        .dropdown-menu {
            top: 10px;
        }
    }

    .nav-item {
        .nav-link {
            font-size: 14px;
            text-align: center;
            color: $dark-blue;
        }
    }

    @media (max-width: $screen-md-max) {
        padding: 0 15px;

        .navbar-order {
            order: 3;

            &:nth-child(1) {
                order: 2;
            }

            &:nth-child(2) {
                order: 1;
            }

            .nav-notify-cart-dropdown {
                svg {
                    width: 14px !important;
                    height: 14px !important;
                }

                .dropdown .badge {
                    width: 16px !important;
                    height: 16px !important;
                    font-size: .7rem;
                }
            }
        }

        .navbar-toggle-content {
            position: fixed;
            top: 110%;
            right: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 501;
            /* لا تُفعِّل display بدون .show إلا لتجاوز collapse — ذلك كان يترك المنيو ظاهرة دائماً على الموبايل */
            background-color: #ffffff;
            transition: top 0.4s cubic-bezier(0.43, 0.83, 0.54, 1.02), opacity .4s linear;
            border-radius: 0;
            padding: 20px;

            &.show {
                top: 0;
                display: block !important;
            }
        }

        .navbar-nav {
            > li {
                width: 100%;
                padding: 8px 0;


                .nav-link {
                    text-align: left;

                    .rtl & {
                        text-align: right;
                    }
                }
            }
        }
    }
}

.navbar-brand {
    width: 170px;
    height: 50px;

    @media (max-width: $screen-sm-max) {
        width: 88px;
        max-width: 88px;
        margin-right: 0;
        img {
            height: auto !important;
        }
    }
}
