:root {
    --smooth: cubic-bezier(0.000, 0.000, 0.000, 0.575)
}

#brx-header.sticky.slide-up {
    transform: translateY(-40px) !important;
}

#brx-header.sticky.slide-up, #brx-header.sticky.sliding {
    overflow: visible;
}

#brx-header {
    transition: box-shadow 600ms ease-in-out;
    box-shadow: 0 3px 12px -3px rgba(0,0,0,0.35);
    position: fixed;
    z-index: 998;
}

#brx-header .logo-wrapper {
    transition: width 600ms var(--smooth) !important;
    transform-origin: center center;
    width: 320px;
}

#brx-header.scrolling .logo-wrapper {
    width: 72px;
}

#brx-header .logo {
    transition: opacity 600ms var(--smooth);
}

#brx-header .logo.after-scroll {
    opacity: 0;
    width: 72px
}

#brx-header .logo.before-scroll {
    opacity: 1;
}

#brx-header.scrolling .logo.after-scroll {
    opacity: 1;
}

#brx-header.scrolling .logo.before-scroll {
    opacity: 0;
}

#brx-header > .brxe-section {
  padding: var(--space-s) var(--space-m);
}

.my-account-icon {
    font-size: 24px !important;
}

/* CATALOG MENU */
/* Note: the "objects" submenu is positioned relative to establish the overall container size since it's the largest submenu, all other submenus are abolute */
.catalog-menu:hover ~ #menu-submenu .submenu-default {
    opacity: 0;
}


#menu-submenu {
    width: 100%;    
}

#menu-submenu .submenu-default {
    opacity: 0;
}

#menu-submenu.default .submenu-default {
    opacity: 1;
}

#menu-submenu .menu-submenu-lower {
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}


#menu-submenu.objects .menu-submenu-lower.submenu-objects {
    opacity: 1;
}

#menu-submenu.forhim .menu-submenu-lower.submenu-forhim {
    opacity: 1;
}

#menu-submenu.forher .menu-submenu-lower.submenu-forher {
    opacity: 1;
}

#menu-submenu.jewelry .menu-submenu-lower.submenu-jewelry {
    opacity: 1;
}

.menu-sub-category .brxe-image {
    transition: transform 200ms ease-out;
}

.menu-sub-category .brxe-text-basic {
    transition: color 200ms ease-out;
}


.menu-sub-category:hover .brxe-image {
    transform: scale(1.15)
}

.menu-sub-category:hover .brxe-text-basic {
    color: var(--accent);
}




/* Mobile Menu */
#nav.open .brx-nav-nested-items {
    opacity: 1;
    visibility: visible;
}



/* CURRENCY SWITCHER */
.wc_aelia_cs_currency_selector .selected_currency {
    padding: 8px 28px 8px 8px;
    border: none;
}

.wc_aelia_cs_currency_selector {
  padding: 0
}

.wc_aelia_cs_currency_selector .dropdown {
  min-width: 90px;
  top: 41px !important;
  padding: 0;
    z-index: 1003;
}

.wc_aelia_cs_currency_selector .dropdown .currencies {
  padding: 0;
  margin: 0;
  max-height: 260px;
}

.wc_aelia_cs_currency_selector .currency_flag {
    min-width: 24px;
}

.wc_aelia_cs_currency_selector .currency_name {
    font-size: var(--text-xs);
    color: #fff;
}

.wc_aelia_cs_currency_selector .currencies .currency_name {
    color: #222;
}

.wc_aelia_cs_currency_selector .selected_currency:before {
    height: 8px;
    width: 8px;
    right: 12px;
    top: 13px;    
}

@media only screen and (max-width: 1580px) {
    #brx-header .logo-wrapper {
        width: 255px;
    }
    #nav .brx-nav-nested-items {
        gap: 2.2vw;
    }

}

@media only screen and (max-width: 1420px) {
    #nav .brx-nav-nested-items > li > .brx-submenu-toggle > *, #nav .brx-nav-nested-items > li > a {
        font-size: 14px;
    }
    .brxe-dropdown .brx-submenu-toggle {
        margin-top: 2px;
    }
}

/* MOBILE MENU BREAKPOINT */
@media only screen and (max-width: 991px) {
    #brx-header .logo-wrapper {
        display: none;
    }

    #brx-header .brx-nav-nested-items {
        z-index: -1;
        background-color: #e0e0e0;
        gap: 0;
    }

    #nav .brx-nav-nested-items > li > .brx-submenu-toggle > *, #nav .brx-nav-nested-items > li > a {
        font-size: var(--text-l);
    }

    #nav .brx-nav-nested-items > li:not(:last-child):not(:nth-child(3)) {
        margin-bottom: var(--space-l);
    }

    .brx-has-megamenu {
        align-self: center !important;
        align-items: center;
    }

    #nav .brx-dropdown-content {
        top: 10px !important;
        position: relative;
        transition: max-height 300ms ease-in-out, padding 300ms ease-in-out;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;

    }

    #nav .brx-nav-nested-items .brx-has-megamenu.open .brx-dropdown-content {
        max-height: 100%;
        padding-top: var(--space-l);
        padding-bottom: var(--space-l);
    }

    .brxe-dropdown, .brx-nav-nested-items, .brxe-nav-nested {
        position: static;
    }
}

@media only screen and (max-width: 768px) {
    .menu-submenu-lower {
        display: none;
    }

    .submenu-default {
        opacity: 1 !important;
        position: relative !important;
    }

    #nav .brx-nav-nested-items {
        padding-top: 80px;
    }

    #brx-header > .brxe-section:has(#nav.open) .navbar-left, #brx-header > .brxe-section:has(#nav.open) .brxe-shortcode {
        display: none;
    }

    body:has(#brx-header #nav.open) #brx-content {
        position: fixed;
    }

    #nav.open .brx-nav-nested-items {
        justify-content: flex-start;
    }

}