.dropdown-access .dropdown-menu {
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: 15px;
    overflow: hidden;
    min-width: 250px;
    padding: 0;
    background: #fff;
}

.dropdown-access .dropdown-menu .btn_1 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 1 !important;
    padding: 0 18px !important;
    background-color: #f6be00 !important;
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(246, 190, 0, 0.25) !important;
}

.dropdown-access .dropdown-menu .btn_1:hover {
    background-color: #e5b000 !important;
    color: #000000 !important;
}


.user_info_v2 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
}

.avatar_circle {
    width: 45px;
    height: 45px;
    background: #f6be00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(246, 190, 0, 0.3);
    margin-right: 12px;
}

.user_details h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.role_tag {
    display: inline-block;
    background: #f6be00;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    box-shadow: 0 2px 5px rgba(246, 190, 0, 0.2);
}

.dropdown-access ul {
    padding: 10px;
}

.dropdown-access ul li a {
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-access ul li a i {
    font-size: 18px;
    margin-right: 12px;
    color: #888;
    transition: all 0.3s ease;
}

.dropdown-access ul li a:hover {
    background: #fff9e6;
    color: #f6be00;
    transform: translateX(5px);
}

.dropdown-access ul li a:hover i {
    color: #f6be00;
}

.logout_item {
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    padding-top: 5px;
}

.logout_link {
    color: #dc3545 !important;
}

.logout_link:hover {
    background: #fff5f5 !important;
    color: #a71d2a !important;
}

.logout_link i {
    color: #dc3545 !important;
}

.total_drop .clearfix {
    color: #fff !important;
}

.total_drop .clearfix strong {
    color: #fff !important;
}

.total_drop .clearfix span {
    color: #fff !important;
}

.dropdown-cart ul li strong {
    color: #fff !important;
}

/* Mobile Dropdowns and Category Styles */
@media (max-width: 991px) {
    /* Force dropdown menus to be absolute and hidden by default */
    header ul.top_tools>li .dropdown-access .dropdown-menu,
    header ul.top_tools>li .dropdown-cart .dropdown-menu,
    header ul.top_tools>li .dropdown-categories .dropdown-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute;
        top: 45px !important;
        right: 0 !important;
        left: auto !important;
        float: none;
        z-index: 1050;
        transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
        transform: translateY(10px);
        border-radius: 14px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        padding: 0 !important;
        overflow: hidden;
    }

    /* Show state */
    header ul.top_tools>li .dropdown-access.show .dropdown-menu,
    header ul.top_tools>li .dropdown-cart.show .dropdown-menu,
    header ul.top_tools>li .dropdown-categories.show .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0);
    }

    /* Hamburger Dropdown Menu on Mobile (Dark Theme) */
    header ul.top_tools>li .dropdown-categories .dropdown-menu {
        background-color: #1a1a1a !important;
        border: 1px solid #2d2d2d !important;
        width: 280px !important;
        max-width: calc(100vw - 30px) !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        padding-bottom: 10px !important;
    }

    /* Mobile User Info in Dropdown */
    .dropdown-categories .user_info_v2 {
        background: linear-gradient(135deg, #242424 0%, #1e1e1e 100%) !important;
        border-bottom: 1px solid #333 !important;
        padding: 15px !important;
    }

    .dropdown-categories .user_details h6 {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .dropdown-categories .avatar_circle {
        background: #f6be00 !important;
        color: #111 !important;
        box-shadow: 0 4px 10px rgba(246, 190, 0, 0.3) !important;
    }

    /* Mobile Guest Box in Dropdown */
    .mobile-guest-box {
        background: #222222 !important;
        border-bottom: 1px solid #333 !important;
        padding: 14px 16px !important;
    }

    .mobile-guest-box .btn_1 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 40px !important;
        min-height: 40px !important;
        line-height: 1 !important;
        padding: 0 18px !important;
        margin: 0 !important;
        background-color: #f6be00 !important;
        color: #111111 !important;
        font-weight: 700 !important;
        font-size: 13.5px !important;
        letter-spacing: 0.2px !important;
        border-radius: 50px !important;
        text-decoration: none !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(246, 190, 0, 0.25) !important;
        transition: all 0.2s ease-in-out !important;
    }

    .mobile-guest-box .btn_1:hover {
        background-color: #e5b000 !important;
        color: #000000 !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(246, 190, 0, 0.35) !important;
    }

    /* Dropdown Section Titles */
    .dropdown-section-title {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #999999 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        padding: 12px 18px 6px 18px !important;
    }

    /* Mobile Dropdown Links List */
    .mobile-dropdown-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-dropdown-list li {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        display: block !important;
        width: 100% !important;
    }

    .mobile-dropdown-list li a {
        display: flex !important;
        align-items: center !important;
        padding: 10px 18px !important;
        color: #e0e0e0 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        border-radius: 0 !important;
    }

    .mobile-dropdown-list li a div,
    .mobile-dropdown-list li a span {
        display: inline-flex !important;
        align-items: center !important;
    }

    .mobile-dropdown-list li a i {
        display: inline-block !important;
        position: static !important;
        margin-right: 12px !important;
        width: 20px !important;
        font-size: 16px !important;
        color: #f6be00 !important;
        text-align: center !important;
    }

    .mobile-dropdown-list li a:hover {
        background-color: #262626 !important;
        color: #f6be00 !important;
        padding-left: 22px !important;
    }

    .mobile-dropdown-list li a:hover i {
        color: #f6be00 !important;
    }

    /* Logout Button inside Mobile Dropdown */
    .mobile-dropdown-list .logout_item {
        border-color: #2d2d2d !important;
        margin: 0 !important;
        padding: 5px 0 !important;
    }

    .mobile-dropdown-list .logout_link {
        color: #dc3545 !important;
        padding: 10px 18px !important;
        width: 100% !important;
        font-size: 14px !important;
        transition: all 0.2s ease !important;
    }

    .mobile-dropdown-list .logout_link i {
        color: #dc3545 !important;
        font-size: 16px !important;
        margin-right: 12px !important;
        width: 20px !important;
        text-align: center !important;
    }

    .mobile-dropdown-list .logout_link:hover {
        background-color: #262626 !important;
        color: #ff5252 !important;
        padding-left: 22px !important;
    }

    /* Mobile Navbar Container & Row Alignment */
    .main_nav .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Force logo and icons to be on the same row with vertical alignment and space-between */
    .main_nav .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .main_nav .row > [class*="col-"]:first-child {
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .main_nav .row > [class*="col"]:last-child {
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* Fix top tools positioning and alignment on Mobile */
    header ul.top_tools {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Logo container alignment */
    .logo-container {
        padding-left: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    header ul.top_tools>li {
        margin: 0 !important;
        float: none !important;
        position: relative !important;
    }

    /* Unified mobile icons size and height for triggers */
    header ul.top_tools > li > a,
    header ul.top_tools > li > .dropdown > a {
        height: 36px !important;
        line-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        text-decoration: none !important;
    }

    header ul.top_tools > li > a:before,
    header ul.top_tools > li > .dropdown > a:before {
        font-size: 22px !important;
    }

    /* Logo sizing on Mobile */
    .logo-container img {
        height: 40px !important;
    }

    /* Mobile Categories button centering the hamburger icon */
    header ul.top_tools>li a.btn_cat_mob {
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    header ul.top_tools>li a.btn_cat_mob .hamburger {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    header ul.top_tools>li a.btn_cat_mob .hamburger-box {
        display: inline-block !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        width: 24px !important;
        height: 24px !important;
    }

    header ul.top_tools>li a.btn_cat_mob .hamburger-inner,
    header ul.top_tools>li a.btn_cat_mob .hamburger-inner::before,
    header ul.top_tools>li a.btn_cat_mob .hamburger-inner::after {
        width: 24px !important;
        height: 2px !important;
        background-color: #e0e0e0 !important;
    }

    header ul.top_tools>li a.btn_cat_mob:hover .hamburger-inner,
    header ul.top_tools>li a.btn_cat_mob:hover .hamburger-inner::before,
    header ul.top_tools>li a.btn_cat_mob:hover .hamburger-inner::after {
        background-color: #D4AF37 !important;
    }

    .search_mob_wp {
        padding: 15px !important;
        background-color: #0d0d0d !important;
        border-bottom: 1px solid #2d2d2d !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .search_mob_wp .form-control {
        background-color: #1a1a1a !important;
        border: 1px solid #333 !important;
        color: #fff !important;
        border-radius: 8px !important;
        max-width: 100% !important;
    }

    .search_mob_wp .form-control::placeholder {
        color: #888 !important;
    }

    .search_mob_wp .btn_1 {
        background-color: #D4AF37 !important;
        color: #121212 !important;
        border: none !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        max-width: 100% !important;
    }
}
