nav ul {
    list-style-type: none !important;
    display: flex;
    margin: 0;

}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

@media(min-width:841px) {
    html:has(.is-toolbar) .navbar {
        top: 32px !important;
    }
}

html:has(.is-toolbar) .navbar {
    top: 72px;
}

html:has(.is-toolbar.limited-admin) .navbar {
    top: 128px;
}

nav:not([role="navigation"]) {
    height: 72px;
}

nav img.logo {
    height: 52px;
}

nav ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* search */
.search {
    min-width: 300px;
}

.search-img {
    object-fit: cover;
    height: 30px;
    width: 60px;
}

#search {
    min-width: 300px;
}

#search.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #e9ecef;
    outline: none;
}

.search {

    flex: 1;
    justify-content: center;

}

.search form {
    display: flex;
    /* gap: 10px; */
    justify-content: center;

}

.navbar ul:not(.for-search, .mobile-menu-category) {
    padding-left: 0 !important;
    justify-content: end;
    flex: 1;
    gap: 32px;

}

.search .primary-button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.search {
    display: flex;
}


.search .primary-button {
    height: 40px !important;
}

.search input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.search #search-results a,
.for-search a {
    text-align: left;
}

#search-results-mobile {
    background-color: var(--gray);
}

.navbar ul.for-search {
    text-align: left;
    justify-content: flex-start !important;
}

#search-results-mobile h4 {
    font-size: 18px !important;
    padding: 4px;
}

.for-search img {
    margin-right: 2px;
}

.search-wrapper {
    position: relative;
}

.search form .search-wrapper {
    position: relative;
}

#search+#search-results {
    display: none;
}

#search.active+#search-results {
    display: block;
}

.search #search-results {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 100%;
    z-index: 9999;
    background-color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.search #search-results:has(h4) {
    border-color: #e9ecef;
    ;
}

.search #search-results h4 {
    padding: 6px;
    cursor: default;
    font-size: 16px;
    font-weight: bolder;
    margin-bottom: 0px;
}

.search #search-results ul {
    padding-left: 0px;
    flex-direction: column;
}

.search #search-results li {
    width: 100%;
    justify-content: flex-start;
}

.search #search-results a img {
    padding-right: 6px;
}

.search #search-results a {
    padding: 6px 6px 6px 6px;
    cursor: pointer;
    width: 100%;
}

.search #search-results p {
    width: 100%;
    margin-bottom: 0px;
    padding: 6px;
}

.search #search-results li a:hover {
    background: var(--primary-opacity-color);
}


.navbar ul li:hover .dropdown-menu {
    display: block;
}


.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    max-height: 480px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: auto;
    right: 0;
}

.dropdown-toggle::after {
    margin-left: .75rem !important;
}


.dropdown-menu li a {
    padding: 8px 14px;
    display: block;
    color: #000;
}

.dropdown-menu li a:hover {
    background-color: #f0f0f0;
}



@media (max-width: 1350px) {
    .hamburger-menu {
        display: flex;
        z-index: 999991;
    }
}

@media (max-width: 1350px) {
    .hamburger-menu {
        gap: 5px;
        margin-bottom: 0px;
    }
}

.hamburger-menu {
    display: none;
    gap: 5px;
    flex-direction: column;
    z-index: 9999;
    margin-left: auto;
    padding-right: 5px;
}

.search-form {
    display: block;
}

.search-form-mobile {
    display: none;
}

@media (max-width: 1350px) {

    .search-form-mobile form {
        display: flex;
    }

    .search-form-mobile {
        display: flex;
    }

    .search-form {
        display: none;
    }


    nav ul:not(.pagination, .dropdown-menu, .for-search, .mobile-menu-category) {
        padding-left: 0 !important;
        z-index: 999990;
        position: fixed;
        right: -100%;
        display: flex;
        flex-direction: column;
        top: 0;
        width: 100%;
        background-color: white;

        align-items: center;
        height: 100%;
        transition: all .2s ease-in-out;
    }

    nav ul:has(.search-form-mobile) {
        justify-content: unset !important;
        padding-top: 110px !important;
    }

    .mobile-menu-category div {
        display: flex;
        gap: 18px;
        flex-direction: column;
        padding-left: 0;
        padding: 12px !important;
        border-radius: 8px;

    }

    .mobile-menu-category div.pad-zero {
        padding: 0 !important;
    }

    .mobile-menu-category {
        padding-left: 0 !important;
        border-radius: 8px;

    }




    .mobile-menu-category div {
        background-color: rgb(243, 243, 243);
    }

}

.mobile-only {
    display: none !important;
    ;
}

@media (max-width: 1350px) {
    nav:has(input.nav-check:checked) .hamburger-menu .stripe:first-child {
        transform: translateY(7px) rotate(45deg);
        transform-origin: center;
    }

    .category-dropdown-desc {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .category-drop:has(#mobile-checkbox-dropdown) ul.mobile-menu-category {
        max-height: 0px;
        overflow: hidden;
        transition: all .2s ease-in-out;
    }

    .category-drop:has(#mobile-checkbox-dropdown) .dropdown-toggle:after {
        transition: all .2s ease-in-out;
    }

    .category-drop:has(#mobile-checkbox-dropdown:checked) .dropdown-toggle:after {
        transform: rotate(180deg);
    }

    .category-drop:has(#mobile-checkbox-dropdown:checked) ul.mobile-menu-category {
        max-height: 400px;
        transition: all .2s ease-in-out;
    }

    #mobile-checkbox-dropdown {
        display: none !important;
    }

}

nav:has(input.nav-check:checked) .hamburger-menu .stripe:nth-child(2) {
    opacity: 0;
}

.hamburger-menu .stripe {
    border-radius: 3px;
    background-color: var(--light-black);
    height: 3px;
    width: 25px;
}

@media (max-width: 1350px) {

    .hamburger-menu {
        display: flex !important;
        flex: 1;
        align-items: end;
        z-index: 9999999;
    }

    nav:has(.nav-check:checked) .hamburger-menu .stripe:last-child {
        transform: translateY(-9px) rotate(-45deg);
        transform-origin: center;
    }
}

.stripe {
    transition: all 0.3s;
}

@media (max-width: 1350px) {
    nav:has(.nav-check:checked) ul:not(.mobile-menu-category, .for-search, .dropdown-menu) {
        right: 0%;
    }
}

@media (max-width: 580px) {
    .navbar {
        position: sticky !important;
    }

}

.hamburger-menu.menu-admin {
    position: absolute;
    background-color: white !important;
    right: -55px;
    border-bottom-right-radius: 15px;
    ;
    padding: 15px;
    width: fit-content;
    top: 0;
    z-index: 9999;
    width: 55px;
}

@media (max-width: 1350px) {
    aside.position-sticky {
        transition: all .2s ease !important;
        position: fixed !important;
        /* left: -100%; */
        z-index: 99999;
        transform: translateX(-100%);
    }

    aside:has(#checkbox:checked) {
        transform: translateX(0%);
    }

    .container-in-panel {
        margin-left: auto !important;
    }

    aside:has(#checkbox:checked) .hamburger-menu .stripe:last-child {
        transform: translateY(-9px) rotate(-45deg);
        transform-origin: center;
    }

    aside:has(#checkbox:checked) .hamburger-menu .stripe:nth-child(2) {
        opacity: 0 !important;
    }

    aside:has(#checkbox:checked) .hamburger-menu .stripe:first-child {
        transform: translateY(7px) rotate(45deg);
        transform-origin: center;
    }


    .navbar ul:not(.for-search, .mobile-menu-category) {
        height: 100vh;
        overflow-y: auto;
        padding-bottom: 80px
    }
}