:root {
    --dasboard-account-height: 40px;
}

.shopware-category-menu-wrapper .dropdown-toggle {
    margin: 0;
    padding: 7px 25px;
}
.shopware-category-menu-wrapper .dropdown-toggle:hover {
    text-decoration: none;
}
/* Category dropdown btn */
.frame-background-primary .shopware-category-menu-wrapper .dropdown-toggle {
    border-color: var(--white)
}
.shopware-category-menu-wrapper a:not(.btn) {
    padding: 0.5rem 1rem;
    display: inline-block;
    width: 100%;
}

.frame-background-primary .shopware-category-menu-wrapper a:not(.btn) {
    color: var(--black);
}

.shopware-category-menu {
    position: absolute;
    z-index: 500;
    background: var(--white);
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.5);
}

/* Category menu list */
.shopware-category-menu .navbar-nav .nav-item {
    padding-left: 4px;
    border-bottom: 1px solid var(--grey);
    margin: 0;
    position: relative;
}

.shopware-category-menu .navbar-nav .nav-item:not(.show):not(:has(> .dropdown-menu.show)):hover {
    background-color: var(--category-color, lightgrey);
}

.shopware-category-menu .navbar-nav .nav-item:not(.show):not(:has(> .dropdown-menu.show)):hover a {
    color: var(--white);
}

.shopware-category-menu .navbar-nav .nav-item:before {
    content: "";
    width: 4px;
    height: 100%;
    display: block;
    background-color: var(--category-color, lightgrey);
    position: absolute;
    left:0;
    top: 0;
}


.shopware-category-menu .navbar-nav .nav-item.dropdown a:after {
    position: absolute;
    right: 0.5rem;
    top: 1rem;
}

.shopware-category-menu .navbar-nav .nav-item .nav-link {
    padding: 0.5rem 1rem;
}

.shopware-category-menu .navbar-nav .nav-item .dropdown-menu.show {
    position: relative !important;
    transform: unset !important;
    border: none;
    padding: 0;
    margin-top: 2px !important; /* Popper sets margin: 0 inline */
    box-shadow: none;
}

.shopware-category-menu .navbar-nav .nav-item .dropdown-menu .dropdown-item {
    color: var(--black);
    font-size: 0.875rem;
    padding: 0.25rem 1rem;
    font-family: var(--font-primary);
}


/* Dashboard */
.dashboard {
    --gap: 1rem;
    display: flex;
    gap: var(--gap);
}

.dashboard__search {
    flex:1;
    align-content: center;
}

.dashboard__search form {
    display: flex;
    margin: 0;
}

.dashboard__search form input {
    flex: 1;
    height: 2.5rem;
    padding: 0 1rem;
    border: 1px solid var(--white);
}
.dashboard__search form input::placeholder {
    color: rgba(0, 0, 0, 0.45);
    opacity: 1;
}

.dashboard__search form input:focus {
    box-shadow: none;
    outline: none;
}

.dashboard__search form button[type="submit"] {
    background: var(--orange);
    color: var(--white);
    border: 1px solid var(--white);
    padding: 0 1rem;
    display: flex;
    align-items: center;
}
.dashboard__search form button[type="submit"] {
    border-left: none;
}

.dashboard__search form button[type="submit"]:hover {
    background: var(--orange-darken);
}

.profile {
    display: flex;
    align-items: center;
}

.account-overview {
    display: flex;
    height: 100%;
}

.account-overview.logged-in {
    gap: 1rem;
}

.profile__info,
.shopping__wishlist,
.shopping__cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile__info a:hover,
.shopping__wishlist a,
.shopping__cart a,
.shopping__wishlist a:hover,
.shopping__cart a:hover {
    text-decoration: none;
}

/* hover as in the shop (.header-actions-btn:hover: darken($color-white, 10%)) for text and icon */
.shopping__wishlist:hover .shopping__title,
.shopping__wishlist:hover .shopping__title span,
.shopping__cart:hover .shopping__title,
.shopping__cart:hover .shopping__title span {
    color: #e6e6e6;
}

.shopping__wishlist:hover .icon,
.shopping__cart:hover .icon {
    filter: brightness(0.9);
}
.shopping__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}
.shopping__title,
.shopping__title-label,
.shopping__title-count {
    font-family: var(--font-primary);
    line-height: 1;
}

.profile__info.logged-in .dropdown-toggle {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none !important;
    text-align: left;
    line-height: 1;
}

.profile__info.logged-in .dropdown-toggle .profile__user {
    display: block;
}
.profile__info.logged-in .dropdown-toggle .profile__account {
    font-size: 0.875rem;
}

.profile__info.logged-in .account-menu {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
}

.profile__info.logged-in .account-menu-header {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-primary-bold);
    padding: 0.5rem 0;
    margin: 0;
}

.profile__info.logged-in .account-menu-footer {
    padding: 0;
}

.profile__info.logged-in .account-menu  .nav-link {
    font-size: 0.875rem;
    padding: 0.25rem 0 !important;
    line-height: 21px;
    font-family: var(--font-primary-bold);
}

.profile__info.logged-in .account-menu  .nav-link:hover {
    color: var(--primary);
}

/* logout button as in the shop (sw-kaeb-theme .account-aside-btn) */
.profile__info.logged-in .account-menu-footer .btn-link {
    color: var(--white);
    margin: 0;
    background-color: var(--orange);
    border: 1px solid var(--orange);
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
    gap: 1rem;
    font-size: 1rem;
    font-family: var(--font-primary-bold);
    text-decoration: none;
}

.profile__info.logged-in .account-menu-footer .btn-link:hover,
.profile__info.logged-in .account-menu-footer .btn-link:focus {
    color: var(--white);
    background-color: var(--orange-darken);
    border-color: var(--orange-darken);
    text-decoration: none;
}

.profile__info.logged-in .account-menu-footer .btn-link span:not(.icon) {
    color: var(--white);
}

.profile__info.logged-in .dropdown-toggle:focus,
.profile__info.logged-in .dropdown-toggle:hover {
    background-color: transparent;
    outline: none;
}

.profile__info.logged-in .navbar-collapse .nav-link {
    color: var(--black);
    font-family: var(--font-primary-bold);
}

.profile__info.logged-in .navbar-collapse.collapsing,
.profile__info.logged-in .navbar-collapse.show {
    position: absolute;
    z-index: 1000;
    background: white;
    color: var(--primary);
    min-width: 200px;
    inset: 100% 0 auto auto;
}
.profile__info .profile__title {
    font-family: var(--font-primary);
}

.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

.icon-cart {
    background-image: url("../Icons/cart.svg");
}

.icon-heart {
    background-image: url("../Icons/heart.svg");
}

.icon-person {
    background-image: url("../Icons/person.svg");
    background-size: 22px 26px;
    background-position: center;
    width: 22px;
    height: 26px;
}

.icon-search {
    background-image: url("../Icons/search.svg");
    background-size: 21px 21px;
    width: 24px;
    height: 24px;
}

.icon-log-out {
    background-image: url("../Icons/log-out.svg");
}

.icon-log-in {
    background-image: url("../Icons/log-in.svg");
}

.icon-shop {
    background-image: url("../Icons/shop.svg");
    width: 24px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: 24px 22px;
}

.dashboard__account .search-focus {
    display: none;
}

.dashboard__category-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
}

.account__actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 991px) {
    .shopware-category-menu-wrapper {
        display: none;
    }
}

@media (max-width: 767px) {
    .dashboard__category-menu {
        display: none;
    }
    .dashboard__account {
        position: fixed;
        bottom: 0;
        left: 0;
        background: var(--primary);
        width: 100%;
        height: var(--dasboard-account-height);
        z-index: 1100;
        padding: 0 1rem;
        box-shadow: 0 0 0.375rem var(--primary-darken);
    }

    .dashboard__account .account-overview {
        justify-content: space-between;
        align-items: center;
    }
            /* if positioned bottom, open dropdown menu top */
    .profile__info.logged-in .navbar-collapse.collapsing,
    .profile__info.logged-in .navbar-collapse.show {
        inset: auto auto 100% auto;
    }
    .dashboard__account .account-overview .dropdown-toggle[aria-expanded="true"]:after {
        rotate: 180deg;
    }

    .dashboard__account .account-overview .shopping {
        display: flex;
        gap: var(--gap);
        flex: 1;
    }

    .dashboard__account .account-overview .search-focus {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dashboard__account .account-overview .search-focus:hover {
        cursor: pointer;
    }
}

@media (max-width: 575px) {
    .dashboard__account .account-overview .shopping .shopping__wishlist,
    .dashboard__account .account-overview .shopping .shopping__cart {
        gap: 0.25rem;
    }
    .profile__info.logged-in .dropdown-toggle .profile__account,
    .profile__info.logged-in .dropdown-toggle .profile__user,
    .dashboard__account .account-overview .shopping .shopping__title-label {
        display: none;
    }
    .dashboard__search {
        min-width: 0;
    }

    .dashboard__search #js-search-input {
        min-width: 0;
    }
}