/* =========================================================
   MLNO NEW HEADER
   Reusable header styles
   ========================================================= */

:root {
    --mlno-blue: #1a56db;
    --mlno-blue-dark: #0f3fae;
    --mlno-ink: #0f172a;
    --mlno-muted: #64748b;
    --mlno-border: #e6e9ef;
    --mlno-bg-soft: #f6f8fb;
    --mlno-green: #16a34a;
    --mlno-purple: #7c3aed;
}


/* =========================================================
   GLOBAL NEW DESIGN BASICS
   ========================================================= */

.mlno-new-layout {
    color: var(--mlno-ink);
    background: #fff;
}


.mlno-new-layout a {
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.mlno-navbar {
    border-bottom: 1px solid var(--mlno-border);
    padding: .65rem 0;
}


.mlno-navbar .logo-img {
    height: 33px;
    width: auto;
}


.mlno-logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.02em;
}


/* =========================================================
   SEARCH
   ========================================================= */

.mlno-navbar .search-group .form-select {
    max-width: 170px;

    border-right: none;

    border-top-right-radius: 0;
    border-bottom-right-radius: 0;

    font-size: 14px;
}


.mlno-navbar .search-group .form-control {
    border-left: none;
    border-radius: 0;

    max-width: 245px;
}


.mlno-navbar .search-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


nav.navbar .form-control {
    font-size: 11px;
}


nav.navbar #mainNav .btn-primary {
    padding: 6px 16px !important;
}


/* =========================================================
   NAV ICONS
   ========================================================= */

.nav-icon-link {
    color: #374151;

    font-size: .85rem;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 2px;

    white-space: nowrap;

    border: 0;

    background: transparent;
}


.nav-icon-link i {
    font-size: 1.05rem;
}


.nav-icon-link:hover {
    color: var(--mlno-blue);
}


/* =========================================================
   SELL BUTTON
   ========================================================= */

.btn-sell {
    background: var(--mlno-blue);

    border-color: var(--mlno-blue);

    font-weight: 600;

    white-space: nowrap;
}


.btn-sell:hover {
    background: var(--mlno-blue-dark);

    border-color: var(--mlno-blue-dark);

    color: #fff;
}


/* =========================================================
   NOTIFICATION COUNT
   ========================================================= */

.notif-dot {
    position: absolute;

    top: -7px;
    right: 10px;

    background: #ef4444;

    color: #fff;

    font-size: .6rem;

    line-height: 1;

    min-width: 15px;
    height: 15px;

    padding: 2px 4px;

    border-radius: 999px;

    font-weight: 700;

    display: none;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   NOTIFICATION OVERLAY
   ========================================================= */

.new-notification-overlay {
    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, .25);

    z-index: 1040;

    display: none;
}


.new-notification-overlay.open {
    display: block;
}


/* =========================================================
   NOTIFICATION DRAWER
   ========================================================= */

.new-notification-drawer {
    position: fixed;

    top: 0;
    right: -390px;

    width: 380px;

    max-width: calc(100vw - 12px);

    height: 100vh;

    background: #fff;

    z-index: 1050;

    box-shadow:
        -8px 0 25px rgba(15, 23, 42, .16);

    transition: right .25s ease;

    display: flex;

    flex-direction: column;
}


.new-notification-drawer.open {
    right: 0;
}


.new-notification-drawer-header {
    min-height: 64px;

    padding: 0 18px;

    border-bottom: 1px solid var(--mlno-border);

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.new-notification-drawer-title {
    font-weight: 700;
    font-size: 1rem;
}


.new-notification-close {
    width: 36px;
    height: 36px;

    border: 0;

    border-radius: 50%;

    background: #f1f5f9;

    color: #334155;

    display: flex;

    align-items: center;

    justify-content: center;
}


.new-notification-body {
    flex: 1;

    overflow-y: auto;

    padding: 12px;
}


.new-notification-item {
    position: relative;

    display: flex;

    gap: 10px;

    align-items: flex-start;

    padding: 12px;

    margin-bottom: 8px;

    border: 1px solid var(--mlno-border);

    border-radius: 10px;

    background: #fff;
}


.new-notification-item.unseen {
    background: #f3f7ff;
}


.new-notification-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef2ff;

    color: var(--mlno-blue);
}


.new-notification-content {
    min-width: 0;
    flex: 1;
}


.new-notification-title {
    font-size: .82rem;

    font-weight: 700;

    color: #1e293b;
}


.new-notification-text {
    font-size: .76rem;

    color: var(--mlno-muted);

    line-height: 1.45;
}


.new-notification-delete {
    border: 0;

    background: transparent;

    color: #dc2626;

    padding: 2px 4px;
}


/* =========================================================
   PROFILE DROPDOWN
   ========================================================= */

.profile-dropdown {
    position: relative;
}


.profile-dropdown > .profile-toggle {
    cursor: pointer;
}


/* =========================================================
   PROFILE DROPDOWN MENU
   ========================================================= */

.profile-dropdown > .profile-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);

    right: 0;
    left: auto;

    width: 320px;
    min-width: 320px;
    max-width: min(320px, calc(100vw - 24px));

    /*
    |--------------------------------------------------------------------------
    | Important:
    | Dropdown itself becomes the scroll container.
    |--------------------------------------------------------------------------
    */

    max-height: calc(100vh - 90px);

    margin: 0;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    box-shadow:
        0 14px 35px rgba(15, 23, 42, .16);

    z-index: 1100;

    display: none;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #d7dee8 transparent;
}


/* =========================================================
   PROFILE DROPDOWN SCROLLBAR
   ========================================================= */

.profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}


.profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}


.profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar-thumb {
    background: #d7dee8;

    border-radius: 999px;
}


.profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #b9c4d2;
}


/* =========================================================
   DROPDOWN ARROW
   ========================================================= */

.profile-dropdown > .profile-dropdown-menu::before {
    content: "";

    position: absolute;

    top: -7px;
    right: 28px;

    width: 14px;
    height: 14px;

    background: #ffffff;

    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;

    transform: rotate(45deg);

    z-index: 1;
}


/* =========================================================
   SIDEBAR CONTENT
   ========================================================= */

.profile-dropdown-menu .sidebar,
.profile-dropdown-menu .user-sidebar {
    width: 100%;

    margin: 0;
    padding: 0;
}


.profile-dropdown-menu a {
    text-decoration: none;
}






/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 992px) {
    .profile-dropdown > .profile-dropdown-menu.show {
        display: block;
    }

    .profile-dropdown:hover > .profile-dropdown-menu {
        display: block;
    }
    .profile-dropdown > .profile-dropdown-menu:hover {
    display: block;
}

    .gap-lg-4 {
        gap: 1.1rem !important;
    }

}


@media (max-width: 991.98px) {

    .profile-dropdown > .profile-dropdown-menu {
        display: none;

        position: static;

        width: 100%;
        min-width: 0;

        margin-top: 4px;

        padding: 0;

        box-shadow: none;

        border-radius: 8px;

        border: 1px solid #e5e7eb;
    }

    .profile-dropdown > .profile-dropdown-menu::before {
        display: none;
    }

    .profile-dropdown.open > .profile-dropdown-menu {
        display: block !important;
    }

}



/* =========================================================
   MOBILE LOGIN
   ========================================================= */

.mobile-login-item {
    display: block;
}

.mobile-login-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
    text-decoration: none;
    color: #222;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-login-link i {
    font-size: 18px;
}

.mobile-login-link span {
    display: inline-block !important;
}

    /* =========================================================
       MOBILE NAVIGATION
       ========================================================= */

    @media (max-width: 991.98px) {

        .mlno-navbar {
            background: #ffffff !important;
        }

        .mlno-navbar .container {
            position: relative;
        }


        /* =====================================================
           MOBILE MENU TOGGLE BUTTON
           ===================================================== */

        .mlno-navbar .navbar-toggler.mlno-menu-toggle {
            display: inline-flex;

            align-items: center;
            justify-content: center;

            width: 48px;
            height: 48px;

            padding: 0;

            border: 1px solid #d9dee7;
            border-radius: 12px;

            background: #ffffff;

            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);

            transition:
                background-color .2s ease,
                border-color .2s ease,
                box-shadow .2s ease,
                transform .2s ease;
        }


        /* Remove Bootstrap default icon */
        .mlno-navbar .navbar-toggler.mlno-menu-toggle
        .navbar-toggler-icon {
            display: none;
        }


        /* Focus / keyboard accessibility */
        .mlno-navbar .navbar-toggler.mlno-menu-toggle:focus {
            outline: none;

            border-color: var(--mlno-blue);

            box-shadow:
                0 0 0 3px rgba(26, 86, 219, 0.12),
                0 2px 8px rgba(15, 23, 42, 0.06);
        }


        /* Hover */
        .mlno-navbar .navbar-toggler.mlno-menu-toggle:hover {
            border-color: #cbd5e1;

            background: #f8fafc;
        }


        /* =====================================================
           HAMBURGER ICON
           ===================================================== */

        .mlno-menu-icon {
            position: relative;

            width: 24px;
            height: 20px;

            display: flex;

            flex-direction: column;

            align-items: center;
            justify-content: space-between;

            pointer-events: none;
        }


        .mlno-menu-icon span {
            display: block;

            width: 24px;
            height: 2.5px;

            border-radius: 999px;

            background: #1f2937;

            transform-origin: center;

            transition:
                transform .22s ease,
                opacity .18s ease,
                width .22s ease,
                background-color .2s ease;
        }


        /* =====================================================
           OPEN STATE
           Bootstrap updates aria-expanded automatically
           ===================================================== */

        .mlno-navbar
        .navbar-toggler.mlno-menu-toggle[aria-expanded="true"] {

            border-color: #c7d2fe;

            background: #eef2ff;

            box-shadow:
                0 3px 10px rgba(26, 86, 219, 0.10);
        }


        .mlno-navbar
        .navbar-toggler.mlno-menu-toggle[aria-expanded="true"]
        .mlno-menu-icon span:nth-child(1) {

            transform: translateY(8.75px) rotate(45deg);
        }


        .mlno-navbar
        .navbar-toggler.mlno-menu-toggle[aria-expanded="true"]
        .mlno-menu-icon span:nth-child(2) {

            opacity: 0;

            width: 0;
        }


        .mlno-navbar
        .navbar-toggler.mlno-menu-toggle[aria-expanded="true"]
        .mlno-menu-icon span:nth-child(3) {

            transform: translateY(-8.75px) rotate(-45deg);
        }


        /* =====================================================
           COLLAPSE
           ===================================================== */

        #mainNav {
            width: 100%;

            background: #ffffff;
        }


        #mainNav.show {
            display: block;
        }


        /* =====================================================
           MOBILE SEARCH
           ===================================================== */

        #mainNav .search-group {
            width: 100%;

            margin: 14px 0 !important;
        }


       /* =========================================================
       MOBILE NAVIGATION LIST
       ========================================================= */

    #mainNav .navbar-nav {
        width: 100%;

        margin-top: 10px;

        padding: 8px 0;

        border-top: 1px solid #e6e9ef;

        gap: 2px !important;

        align-items: stretch !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Each mobile navigation item
    |--------------------------------------------------------------------------
    */

    #mainNav .navbar-nav > .nav-item {
        width: 100%;

        margin: 0;

        padding: 0;
    }

    #mainNav .navbar-nav > .nav-item > .nav-icon-link {
        display: flex !important;

        flex-direction: row !important;

        align-items: center;
        justify-content: flex-start;

        gap: 12px;

        width: 100%;

        min-height: 44px;

        padding: 9px 12px;

        border-radius: 8px;

        color: #374151;

        text-align: left;

        box-sizing: border-box;
    }


    #mainNav .navbar-nav > .nav-item > .nav-icon-link i {
        width: 22px;

        min-width: 22px;

        font-size: 1.05rem;

        text-align: center;
    }


    #mainNav .navbar-nav > .nav-item > .nav-icon-link:hover {
        background: #f6f8fb;

        color: var(--mlno-blue);
    }

    /* =====================================================
       MOBILE NAVIGATION COUNTS
       Wishlist + Notifications
       ===================================================== */

    #mainNav .wishlist-count,
    #mainNav .notif-dot {
        position: static !important;

        display: inline-flex;

        align-items: center;
        justify-content: center;

        flex: 0 0 auto;

        margin-left: 2px;

        min-width: 18px;
        height: 18px;

        padding: 0 5px;

        border-radius: 999px;

        font-size: 0.65rem;
        line-height: 1;

        font-weight: 700;
    }

     #mainNav .btn-sell {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        width: auto;

        min-width: 120px;

        min-height: 40px;

        margin: 8px 12px 4px;

        padding: 8px 16px !important;

        border-radius: 6px;
    }

     #mainNav .profile-dropdown > .profile-toggle {
        display: flex !important;

        flex-direction: row !important;

        align-items: center;

        justify-content: flex-start;

        gap: 12px;

        width: 100%;

        min-height: 44px;

        padding: 9px 12px;

        border-radius: 8px; color: #374151;

        text-align: left;
    }

    #mainNav .profile-dropdown > .profile-toggle i {
        width: 22px;

        min-width: 22px;

        text-align: center;
    }

        

        /* =====================================================
           SIGN IN
           ===================================================== */

        #mainNav .mobile-login-item {
            display: block !important;

            width: 100%;
        }


        #mainNav .mobile-login-link {
            display: flex !important;

            flex-direction: row !important;

            align-items: center;

            justify-content: flex-start;

            gap: 10px;

            width: 100%;

            min-height: 44px;

            padding: 10px 12px;

            color: #374151 !important;

            background: #ffffff !important;

            text-decoration: none;

            visibility: visible !important;

            opacity: 1 !important;
        }


        #mainNav .mobile-login-link i {
            display: inline-block;

            font-size: 20px;

            color: #374151 !important;
        }


        #mainNav .mobile-login-link:hover {
            color: var(--mlno-blue) !important;

            background: #f6f8fb !important;
        }


        #mainNav .mobile-login-link:hover i {
            color: var(--mlno-blue) !important;
        }
    }


@media (max-width: 767px) {

    .mlno-navbar {
        padding: .55rem 0;
    }


    .new-notification-drawer {
        width: 360px;
    }

}


/* =========================================================
   PROFILE DROPDOWN - NESTED USER SIDEBAR
   The same sidebar is also used as a standalone mobile
   sidebar. Inside header profile dropdown it must behave
   like normal dropdown content.
   ========================================================= */




/* =========================================================
   DESKTOP
   ========================================================= */

/* =========================================================
   PROFILE DROPDOWN - NESTED USER SIDEBAR
   ========================================================= */

.profile-dropdown
.profile-dropdown-menu
.user-admin-sidebar {

    width: 100%;

    min-width: 0;

    height: auto;

    min-height: 0;

    position: static;

    transform: none;

    box-shadow: none;

    border-right: 0;

    overflow: visible;

    padding: 8px;

    margin: 0;
}


/* =========================================================
   MOBILE PROFILE DROPDOWN
   ========================================================= */

@media (max-width: 991.98px) {




    /* =====================================================
       USER INFO
       ===================================================== */

    .profile-dropdown
    .profile-dropdown-menu
    .Dashboard-user-info {

        padding: 8px 8px 14px;

        margin-bottom: 8px;
    }


    /* =====================================================
       MENU ITEMS
       ===================================================== */

    .profile-dropdown
    .profile-dropdown-menu
    .Dashboard-menu-item {

        width: 100%;

        min-height: 42px;

        margin: 2px 0;

        padding: 0 10px;

        border-radius: 7px;
    }


    /* =====================================================
       ACCOUNT SECTION
       ===================================================== */

    .profile-dropdown
    .profile-dropdown-menu
    .Dashboard-account-setting {

        margin-top: 12px;

        padding-top: 10px;
    }

}

/* =========================================================
   MOBILE PROFILE DROPDOWN
   ========================================================= */

@media (max-width: 991.98px) {

    /*
    |--------------------------------------------------------------------------
    | Closed state
    |--------------------------------------------------------------------------
    */

    .profile-dropdown > .profile-dropdown-menu {
        display: none !important;

        position: static !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        max-height: calc(100vh - 100px);

        margin-top: 4px;

        padding: 0;

        background: #ffffff;

        border: 1px solid #e5e7eb;

        border-radius: 8px;

        box-shadow: none;

        overflow-x: hidden;
        overflow-y: auto;

        scrollbar-width: thin;
        scrollbar-color: #d7dee8 transparent;
    }


    /*
    |--------------------------------------------------------------------------
    | Open state
    |--------------------------------------------------------------------------
    */

    .profile-dropdown.open > .profile-dropdown-menu {
        display: block !important;
    }


    /*
    |--------------------------------------------------------------------------
    | No dropdown arrow on mobile
    |--------------------------------------------------------------------------
    */

    .profile-dropdown > .profile-dropdown-menu::before {
        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Inner old sidebar must behave like normal dropdown content
    |--------------------------------------------------------------------------
    */

    .profile-dropdown
    .profile-dropdown-menu
    .user-admin-sidebar {

        position: static !important;

        top: auto !important;
        left: auto !important;

        width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;

        padding: 10px !important;
        margin: 0 !important;

        transform: none !important;

        box-shadow: none !important;

        border: 0 !important;

        overflow: visible !important;

        z-index: auto !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Old standalone sidebar behavior must not control this menu
    |--------------------------------------------------------------------------
    */

    .profile-dropdown
    .profile-dropdown-menu
    .user-admin-sidebar.active {

        transform: none !important;

        position: static !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Hide old sidebar overlay/toggle if present inside profile menu
    |--------------------------------------------------------------------------
    */

    .profile-dropdown
    .profile-dropdown-menu
    .sidebar-toggle,

    .profile-dropdown
    .profile-dropdown-menu
    .sidebar-overlay {

        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Scrollbar
    |--------------------------------------------------------------------------
    */

    .profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar {
        width: 4px;
    }


    .profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar-track {
        background: transparent;
    }


    .profile-dropdown > .profile-dropdown-menu::-webkit-scrollbar-thumb {
        background: #d7dee8;
        border-radius: 999px;
    }

}