#header {
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 5;
}

#navDesktop {
    display: grid;
    grid-template-columns: 225px 1fr 225px;
    place-items: center;
    justify-items: end;
    padding: 20px 32px;
    position: relative;
}

#navDesktopLogoImage {
    width: 100px;
    height: 37px;
}

#navDesktopLeftItems {
    display: flex;
    align-items: center;
    column-gap: 36px;
}

#navDesktopBack {
    place-self: center;
}

#navDesktopBack a {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    font-family: "Rebrand", sans-serif;
    color: var(--primary-green);
    font-size: 16px;
    white-space: nowrap;
}

#navDesktopBack a svg {
    transform: rotate(180deg);
}

#navDesktopCenterItems {
    place-self: center;
}

#navDesktopRightItems {
    display: flex;
    align-items: center;
    gap: 16px;
    place-self: end;
}

#navDesktopCart, #navMobileCart {
    cursor: pointer;
    position: relative;
}

#navDesktopCart::after, #navMobileCart::after {
    content: attr(count);
    background: var(--darkgrey);
    border-radius: 100vh;
    color: white;
    position: absolute;
    top: 0;
    left: -10px;
    line-height: 1;
    width: 15px;
    height: 15px;
    text-align: center;
    font-size: 11px;
}

#navDesktopCart img {
    width: 23px;
}

#navDesktopAccount {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    min-width: 100px;
}

#navDesktopAccount.authenticated::after {
    content: "";
    position: absolute;
    height: 10px;
    width: 100%;
    cursor: pointer;
    top: 100%;
}

#navDesktopAccountLogin {
    display: none;
}

#navDesktopAccount.unauthenticated #navDesktopAccountLogin {
    display: flex;
    align-items: center;
    gap: 8px;
}

#navDesktopAccountLoginIcon {
    width: 23px;
    height: auto;
}

#navDesktopAccountProfile {
    display: none;
    cursor: pointer;
}

#navDesktopAccount.authenticated #navDesktopAccountProfile {
    display: flex;
    align-items: center;
    gap: 5px;
}

#navDesktopAccountProfileIcon {
    width: 23px;
    height: auto;
}

#navDesktopAccountProfileGreeting {

}


#navDesktopAccountProfilePP {
    display: none !important;
}

#navDesktopAccountProfilePP.active {
    display: block;
    text-transform: uppercase;
    background: var(--orange);
    color: white;
    padding: 5px 10px;
    font-family: 'Rebrand', sans-serif;
    line-height: 1;
    border-radius: 100vh;
    font-size: 12px;
}

#navDesktopAccountMenu {
    background: white;
    border: 1px solid var(--mediumgrey);
    padding: 21px 35px;
    position: absolute;
    width: 233px;
    top: 28px;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: 200ms;
    pointer-events: none;
}

#navDesktopAccount:hover #navDesktopAccountMenu {
    opacity: 1;
    pointer-events: auto;
}

#navDesktopAccount.unauthenticated #navDesktopAccountMenu {
    display: none;
}

#navDesktopAccount.authenticated #navDesktopAccountMenu {
    display: block;
}

#navDesktopAccountMenu:focus-within {
    opacity: 1;
}

.navDesktopAccountMenuItem {
    font-size: 14px;
    font-weight: lighter;
    color: var(--primary-green);
    display: block;
    margin-bottom: 22px;
}

#navDesktopAccountLogout {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Rebrand', sans-serif;
    color: var(--primary-green);
    cursor: pointer;
}

#navDesktopAccountLogout img {
    width: 20px;
    height: auto;
}

.navDesktopItem {
    font-family: 'Rebrand', sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: var(--primary-green);
    margin-right: 25px;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.navDesktopItem.hidden{
    display: none;
}

.navDesktopItem:last-of-type {
    margin-right: 0;
}

#navDesktopLocation {
    display: flex;
    align-items: center;
    column-gap: 5px;
    border-radius: 100vh;
    padding: 11px 20px;
    white-space: nowrap;
    font-weight: lighter;
    font-size: 12px;
    line-height: 1;
    text-transform: none;
}

#navDesktopLocation svg {
    fill: white;
}

#navMobile {
    display: none;
}


@media (max-width: 1000px) {
    #navDesktop {
        display: none;
    }

    #navMobile {
        display: block;
    }
}

#navMobile {
}

#navMobileTopBar {
    display: grid;
    grid-template-columns: min-content minmax(90px, min-content) min-content;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px;
}

#navMobileBack {
    place-self: center;
    max-width: 170px;
    overflow: hidden;
}

#navMobileBack a {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    font-family: "Rebrand", sans-serif;
    color: var(--primary-green);
    font-size: 16px;
    white-space: nowrap;
}

#navMobileBack a svg {
    transform: rotate(180deg);
}

#navMobileLeft {
    display: flex;
    align-items: center;
    gap: 20px;
}

#navMobileLogoImage {
    width: 68px;
    height: 26px;
}

#navMobileRightItems {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

#navMobileLocation {
    display: flex;
    align-items: center;
    column-gap: 5px;
    border-radius: 100vh;
    padding: 11px 20px;
    white-space: nowrap;
    font-weight: lighter;
    font-size: 12px;
    line-height: 1;
    text-transform: none;
}

#navMobileLocation svg {
    fill: white;
}

#navMobileCart {
    cursor: pointer;
}

#navMobileCart img {
    width: 23px;
}

#navMobileMenu {
    display: none;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    background: var(--primary-green);
    padding: 12px;
    width: 100%;
}

#navMobileMenu.active {
    display: flex;
    overflow-x: auto;
    justify-content: center;
}

html.app #navMobileMenu.active {
    display: none;
}

.navMobileMenuItem {
    color: white;
    font-size: 16px;
    font-family: 'Rebrand', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.navMobileMenuItem.hidden{
    display: none;
}

#navMobileAccountLogin svg, #navMobileAccountButton svg {
    fill: var(--primary-green);
}

#navMobile.authenticated #navMobileAccountLogin {
    display: none;
}

#navMobile.unauthenticated #navMobileAccountLogin {
    display: block;
}

#navMobile.unauthenticated #navMobileAccountButton {
    display: none;
}

#navMobile.authenticated #navMobileAccountButton {
    display: block;
    cursor: pointer;
}

.navMobileAccountIcon {
    width: 23px;
}

#navMobileAccountMenu {
    width: 100%;
    height: 100%;
    background: white;
    position: fixed;
    top: 0;
    pointer-events: none;
    opacity: 0;
    transition: 200ms;
    z-index: 10;
}

#navMobileAccountMenu.active {
    opacity: 1;
    pointer-events: auto;
}

#navMobileAccountMenuTopBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-green);
    padding: 14px;
    color: white;
}

#navMobileAccountMenuTopBarTitle {
    font-family: 'Rebrand', sans-serif;
    font-size: 18px;
    font-weight: bold;
}

#navMobileAccountMenuTopBarCloseButton {
    width: auto;
    font-size: 16px;
    font-weight: lighter;
    cursor: pointer;
}

#navMobileAccountMenuItems {
    padding: 44px 20px;
}

#navMobileQr {
    display: none;
}

#navMobileQr.active {
    display: block;
}

#navMobileQr img {
    width: 23px;
}

.navMobileAccountMenuItem {
    display: block;
    font-family: 'Rebrand', sans-serif;
    color: var(--primary-green);
    font-size: 18px;
    margin-bottom: 43px;
}

#navMobileAccountLogout {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Rebrand', sans-serif;
    color: var(--primary-green);
    font-size: 18px;
}

#navMobileAccountLogout img {
    width: 20px;
    height: auto;
}

@media (max-width: 480px) {
    #navMobileMenu.active {
        justify-content: flex-start;
    }
}