header {
    width: 100%;
    z-index: 500;
    color: light-dark(var(--black),var(--white)) ;
    background-color: light-dark(var(--white),var(--black)) ;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    padding: 0 70px;
    border-bottom: 1px solid light-dark(var(--black),var(--light-white));
}

header .top-header {
    width: 100%;
    max-height: 65px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
}

.top-header .page-logo {
    display: flex;
    align-items: center;
}

.page-logo .page-name{
    font-weight: 600;
    font-size: 30px;
    display: flex;
    align-items: center;
}
.page-logo .logo-container {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    position: relative;
}

.top-header .page-logo img{
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.top-header .search-container {
   width: calc(100% - 650px);
   max-width: 800px;
   display: flex;
   align-items: center;
}

.top-header .search-container form {
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
}

.search-container form input {
    width: calc(100% - 40px);
    height: 40px;
    background-color: var(--light-white);
    color: var(--black);
    padding: 10px;
    font-size: 18px;
    border-radius: 25px;
}

.search-container form button {
    font-size: 36px;
    border-radius: 50%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background-color: light-dark(transparent ,var(--blue));
    cursor: pointer;
}


header .social-icons {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
}

header .social-icons i , header .social-icons .user-icon-placeholder i {
    font-size: 1.5rem;
    cursor: pointer;
    align-self: center;
}
header .social-icons #theme-toggle{
    width: 25px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}



/* BOTTOM HEADER  */

header .bottom-header{
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

header .bottom-header .category-menu{
    width: 100%;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    margin: 0 auto;
}

header .bottom-header .category-menu::-webkit-scrollbar ,  header .bottom-header::-webkit-scrollbar {
    display: none !important;
 }
.category-menu .menu-hover {
    width: fit-content;
    height: fit-content;
    padding:5px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 1rem;
    align-items: flex-start;
}

.category-menu .active {
    color: light-dark(var(--green),var(--orange));
}
.category-menu .menu-hover:hover {
    color: light-dark(var(--green),var(--orange));
    text-decoration: underline;
}










@media (max-width:1190px) {
    .page-logo .page-name {
        display: none !important;
    }

    .top-header .search-container {
        width: calc(100% - 300px);
    }
    header .bottom-header{
        justify-content: flex-start;
    }

}


@media (max-width:768px) {
    .mobile-show {
        display: block !important;
    }

    .mobile-d-flex {
        display: flex !important;
    }

    .mobile-hide {
        display: none !important;
    }

    header {
        padding: 0 10px;
    }
    .page-logo .logo-container {
        width: 50px;
        height: 50px;
    }



    .page-logo .page-name {
        font-size: 1.4rem;
        display: none;
    }


    header .social-icons i:hover {
        transform: scale(1.0);
        font-size: 1.5rem;

    }

    .top-header .search-container form {
        width: calc(100% - 20px);
        top: 100px;
        left: 10px;
        right: 10px;
        position: absolute;
        display: none;
        align-items: center;
        gap: 0;
    }
    .search-container form input {
        width: calc(100% - 40px);
        border-radius: 25px 0 0 25px;
        padding-right: 0;
    }

    .search-container form input::placeholder {
        display: none;
    }
    .search-container form button {
        border-radius: 0 25px 25px 0;
        width: 40px;
        height: 40px;
        float: right;
        background-color: light-dark(var(--blue) ,var(--blue));
    }

    .fa-bars {
        display: none;
    }

    header .bottom-header {
        display: flex !important;
    }
    header .bottom-header .category-menu {
        justify-content: flex-start;
        gap: 5px;
        margin-top: 5px;
        margin-bottom: 8px;
        margin-left: 0;
        margin-right: 0;
        padding:0 0;
    }

    .category-menu .menu-hover {
        padding: 5px 10px;
        white-space: nowrap;
        font-weight: 520;
        font-size: 14px;
        align-items: flex-start;
        text-align: center;
        background-color: light-dark(var(--light-grey),var(--light-grey));
        color: light-dark(var(--black),var(--black));
        border-radius: 25px;
    }
    .category-menu .menu-hover:hover , 
    .category-menu .menu-hover.active{
        background-color: light-dark(var(--black),var(--white));
        color: light-dark(var(--white),var(--black));
        text-decoration: none;
    }
}

@media (max-width:400px) {
    header {
        padding: 0 0;
    }
    header .top-header {
        padding: 0 10px;
    }
    /* .top-header .search-container form {
        --size: 120px;
        top: calc(100vh - var(--size));
        top: calc(100dvh - var(--size));
        bottom: var(--size);
    } */
    header .bottom-header {
        max-width: calc(100% - 10px);
    }
    header .bottom-header .category-menu {
        margin: 5px 0 8px;
        padding:0 0 0 10px;
    }
}