/*==================================================
                TOP BAR
==================================================*/

.top-bar{
    background:#1B5E20;
    color:#fff;
    font-size:14px;
    padding:8px 0;
}

.top-wrapper{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.top-left{
    font-weight:500;
}

.top-right{
    display:flex;
    align-items:center;
    gap:12px;
}

.top-right a{
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.top-right a:hover{
    color:#FFD54F;
}

.top-right span{
    color:rgba(255,255,255,.5);
}

/*==================================================
                MAIN HEADER
==================================================*/

.main-header{
    position:sticky;
    /* position:relative;*/
    z-index:99999;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    z-index:9999;
    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

.main-header{

    transition:.35s;

}

.main-header.scrolled .main-navbar{

    padding:12px 24px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.main-navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0px;

    background:#fff;

    border-radius:50px;

    padding:5px 28px;

    margin:2px auto;
    border:1px solid #000000;

    box-shadow:0 15px 40px rgba(0,0,0,.12);
    backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
}

/*==================================================
                    LOGO
==================================================*/

.logo{
   /* min-width:220px;*/
    flex:0 0 220px;
}

.logo a{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.logo img{
    width:60px;
    margin-right:12px;
}

.logo span{
    display:flex;
    flex-direction:column;
    line-height:1.1;
    font-size:30px;
    font-weight:800;
    color:#2E7D32;
}

.logo small{
    font-size:13px;
    color:#777;
    font-weight:600;
}

/*==================================================
                    MENU
==================================================*/

.menu{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:28px;
    list-style:none;
    margin:0;
    padding:0;
}

.menu li{
    position:relative;
}

.menu a{
    text-decoration:none;
    color:#222;
    font-size:16px;
    font-weight:600;
    transition:.3s;
    padding:8px 0;
    position:relative;
}

.menu a:hover,
.menu a.active{

    color:#2E7D32;

}

.menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:3px;

    background:#2E7D32;

    border-radius:10px;

    transition:.3s;

}

.menu a:hover::after,
.menu a.active::after{

    width:100%;

}
/*==================================================
                CATEGORY DROPDOWN
==================================================*/

.has-dropdown .dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px;
    background:#fff;
    display:none;
    z-index:99999;
    pointer-events:auto;
}

.has-dropdown:hover .dropdown-menu{
    display:block;
}

.dropdown-menu li{
    list-style:none;
}

.dropdown-menu a{
    display:block;
    padding:10px 15px;
    border-radius:10px;
    color:#333;
    text-decoration:none;
}

.dropdown-menu a::after{
    display:none;
}

.dropdown-menu a:hover{
    background:#E8F5E9;
    color:#000000;
}

/*==================================================
                SEARCH BOX
==================================================*/

.nav-search{
    width:320px;
    margin-left:20px;
    margin-right:20px;
}

.nav-search form{
    position:relative;
}

.nav-search input{
    width:100%;
    height:48px;
    border:1px solid #e5e5e5;
    border-radius:50px;
    padding:0 55px 0 20px;
    outline:none;
    background:#F7F7F7;
    transition:.3s;
}

.nav-search input:focus{
    background:#fff;
    border-color:#2E7D32;
    box-shadow:0 0 0 4px rgba(46,125,50,.12);
}

.nav-search button{
    position:absolute;
    top:6px;
    right:6px;
    width:36px;
    height:36px;
    border:none;
    border-radius:50%;
    background:#2E7D32;
    color:#fff;
    cursor:pointer;
}

/*==================================================
                RIGHT SIDE
==================================================*/

.nav-right{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

.nav-icon{
    width:46px;
    height:46px;
    border-radius:50%;
    background:#F5F5F5;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    color:#222;
    text-decoration:none;
    transition:.3s;
}

.nav-icon:hover{
    background:#2E7D32;
    color:#fff;
}

.nav-count{
    position:absolute;
    top:-5px;
    right:-5px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#E53935;
    color:#fff;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

/*==================================================
                USER DROPDOWN
==================================================*/

.user-dropdown{
    position:relative;
}

.user-btn{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    color:#222;
    font-weight:600;
}

.user-btn i:first-child{
    font-size:24px;
    color:#2E7D32;
}

.user-menu{
    position:absolute;
    top:100%;
    margin-top:0;
    right:0;
    width:240px;
    background:#fff;
    border-radius:15px;
    padding:10px;
    list-style:none;
    box-shadow:0 15px 40px rgba(0,0,0,.15);
    display:none;
    z-index:999999;
}

.user-dropdown:hover .user-menu,
.user-dropdown:focus-within .user-menu{
    display:block;
}

.user-menu{
    pointer-events:auto;
}

.user-menu li{
    width:100%;
}

.user-menu a{
    display:flex;
    width:100%;
}

.user-menu li{
    margin:0;
}

.user-menu a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:10px;
    color:#333;
    text-decoration:none;
}

.user-menu a:hover{
    background:#E8F5E9;
    color:#2E7D32;
}

/*==================================================
                LOGIN / REGISTER
==================================================*/

.auth-buttons{
    display:flex;
    gap:10px;
}

.btn-login,
.btn-register{
    padding:10px 18px;
    min-width:110px;
    text-align:center;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
}

.btn-login{
    border:3px solid #000000;
    background:#2E7D32;
    color:#ffffff;
}

.btn-register{
    border:3px solid #000000;
    background:#2E7D32;
    color:#fff;
}
.btn-login:hover{
    background:#1B5E20;
    color:#fff;
}
.btn-register:hover{
    background:#1B5E20;
    color:#fff;
}

/*==================================================
                RESPONSIVE
==================================================*/

@media (max-width:1200px){

.main-navbar{

grid-template-columns:1fr;

gap:20px;

padding:18px 0;

}

.logo{

justify-self:center;

}

.menu{

justify-content:center;

flex-wrap:wrap;

gap:18px;

}

.nav-search{

max-width:100%;

}

.nav-right{

justify-content:center;

flex-wrap:wrap;

}

}

/* Tablet */

@media (max-width:992px){

.top-wrapper{

flex-direction:column;

gap:8px;

text-align:center;

}

.main-navbar{

display:flex;

flex-direction:column;

align-items:center;

}

.logo img{

width:55px;

}

.logo span{

font-size:26px;

}

.menu{

width:100%;

justify-content:center;

gap:15px;

}

.nav-search{

width:100%;

}

.nav-right{

width:100%;

justify-content:center;

margin-top:10px;

}

.auth-buttons{

justify-content:center;

}

}

/* Mobile */

@media (max-width:768px){

.main-header{

position:relative;

}

.menu{

flex-direction:column;

gap:12px;

}

.menu li{

width:100%;

text-align:center;

}

.nav-search input{

height:46px;

font-size:15px;

}

.nav-icon{

width:42px;

height:42px;

}

.btn-login,

.btn-register{

padding:10px 18px;

font-size:14px;

}

.logo span{

font-size:22px;

}

}

/* Small Mobile */

@media (max-width:480px){

.top-bar{

display:none;

}

.logo img{

width:48px;

}

.logo span{

font-size:20px;

}

.nav-search input{

padding:0 48px 0 15px;

}

.nav-search button{

width:34px;

height:34px;

top:6px;

right:6px;

}

.user-btn span{

display:none;

}

.nav-right{

gap:10px;

}

}
.has-dropdown > a{
    display:flex;
    align-items:center;
    gap:8px;
}

.has-dropdown > a i{
    font-size:12px;
    margin-top:2px;
}


.user-dropdown{
    position:relative;
    z-index:100000;
}

.user-menu li{
    position:relative;
}

.user-menu a{
    position:relative;
    z-index:100001;
}

/* new css add */
/* ==================================================
   FINAL MOBILE NAVBAR HEADER FIX
   LOGO LEFT + TOGGLE RIGHT
================================================== */

@media (max-width: 768px) {

    .main-navbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;

        width: calc(100% - 20px) !important;
        min-height: 68px !important;

        padding: 8px 12px !important;
        margin: 7px auto !important;

        border-radius: 18px !important;
        box-sizing: border-box !important;
    }

    /* Logo LEFT */
    .main-navbar .logo {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .main-navbar .logo a {
        display: flex !important;
        align-items: center !important;
    }

    .main-navbar .logo img {
        width: 44px !important;
        height: 44px !important;
        margin: 0 8px 0 0 !important;
    }

    .main-navbar .logo span {
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .main-navbar .logo small {
        font-size: 10px !important;
        margin-top: 3px !important;
    }

    /* TOGGLE RIGHT */
    .mobile-menu-toggle,
    .navbar-toggler {
        display: flex !important;

        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;

        margin: 0 0 0 auto !important;
        padding: 0 !important;

        align-items: center !important;
        justify-content: center !important;

        border: 1px solid #d8e5da !important;
        border-radius: 13px !important;

        background: #f5f9f5 !important;
    }

    /* Agar Bootstrap toggler use ho raha hai */
    .navbar-toggler-icon {
        width: 22px !important;
        height: 22px !important;
    }

    /* Menu/content neeche full width mein aaye */
    .mobile-nav-content {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* new css add */
.main-navbar {
    min-height: 58px !important;
    padding: 5px 10px !important;
    margin: 5px auto !important;
}

.main-navbar .logo img {
    width: 38px !important;
    height: 38px !important;
}

.mobile-menu-toggle,
.navbar-toggler {
    width: 38px !important;
    height: 38px !important;
}