/* Nav */
#navbar {
    background: var(--brand-blue);
    box-shadow: 0 14px 35px rgba(20, 38, 78, 0.22);
    flex-direction: column;
    padding: 0 !important;
    z-index: 1000;
}

#contactNavContainer {
    background: var(--brand-orange);
    color: #fff;
    display: flex;
    align-items: center;
    font-size: 0.94rem;
    letter-spacing: 0;
    min-height: 2rem;
}

#contactNavContainer .ui.grid {
    padding-top: 0 !important;
}

#contactNav {
    align-items: center;
    color: #fff;
    min-height: 2rem;
    padding: 0.35rem 0 !important;
}

#contactNavDiv {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    width: 100%;
    padding: 0 1rem !important;
}

#contactNavDiv > div,
#contactNavDiv a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff !important;
    line-height: 1.2;
}

#navbarEmail {
    cursor: pointer;
}

#desktopNavbar {
    min-height: 5.85rem;
    padding-left: 15.5rem;
    align-items: center;
}

#desktopNavbar > .item {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 500;
    justify-content: center;
    margin: 0 0.1rem;
    min-height: 2.7rem;
    padding: 0 1.1rem !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#desktopNavbar > .item:hover {
    background: rgba(240, 124, 0, 0.9) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

#desktopNavbar > .item.active {
    background: rgba(240, 124, 0, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(240, 124, 0, 0.9);
    color: #fff !important;
}

.languageSwitch {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.42rem;
    margin-left: 0.75rem;
    padding: 0.32rem 0.48rem;
}

.languageSwitch a {
    align-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.65rem;
    justify-content: center;
    min-width: 2rem;
    text-decoration: none;
}

.languageSwitch a:hover {
    color: #fff;
}

.languageSwitch a.active {
    background: var(--brand-orange);
    color: #fff;
}

.languageSwitch span {
    background: rgba(255, 255, 255, 0.22);
    display: block;
    height: 1rem;
    width: 1px;
}

.ui.menu .active.item {
    background: unset !important;
}

.logoAnchor {
    color: #fff;
    left: 0;
    padding: 0.85rem 1rem;
    text-decoration: none;
}

.logoAnchor:hover {
    color: #fff;
}

.logo {
    height: auto;
    width: 96px !important;
}

.logoAnchor > div {
    font-family: 'Raleway', sans-serif;
    font-size: 1.28rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 0.7rem;
    white-space: nowrap;
}

/* Mobile */
#mobileNavbar {
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-mobile-offset);
    padding: 0.4rem 0 !important;
}

#mobileNavbar .right.menu {
    align-items: center;
    display: flex;
    margin-left: auto;
}

#mobileToggleButton {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
    min-height: 2.7rem;
    min-width: 2.7rem;
}

#mobileToggleButton > .icon {
    color: #fff;
}

.ui.basic.button:hover {
    background: var(--brand-orange) !important;
    color: #fff !important;
}

#mobileAccordion {
    background-color: var(--brand-blue);
    border: none;
    box-shadow: none;
    display: none;
    margin-top: 0 !important;
    padding-bottom: 0.7rem;
}

#mobileAccordion > .item {
    border-radius: 8px !important;
    color: #fff;
    font-size: 1rem;
    margin: 0.15rem 0.75rem;
    padding: 0.95rem 1.1rem !important;
}

#mobileAccordion > .item.active {
    background-color: rgba(240, 124, 0, 0.85) !important;
    color: #fff !important;
}

#mobileAccordion > .item:hover {
    background-color: rgba(240, 124, 0, 0.7) !important;
    color: #fff !important;
}

.mobileLanguagePanel {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 0.55rem;
    margin: 0.75rem 0.75rem 0.1rem;
    padding: 0.85rem 0 0;
}

.mobileLanguagePanel a {
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.76);
    display: inline-flex;
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: center;
    min-height: 2.45rem;
    text-decoration: none;
}

.mobileLanguagePanel a.active {
    background: rgba(240, 124, 0, 0.16);
    border-color: var(--brand-orange);
    color: #fff;
}

.mobileLanguagePanel a:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

#brands-ul {
    list-style: none !important;
    margin: 0;
    padding: 0 !important;
}

#brands-ul > li {
    height: 190px;
    overflow: hidden;
    position: relative;
}

#brands-ul > li img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
    transform-origin: 50% 20%;
    transition: 0.5s all ease-in-out;
    width: 100%;
}

#brands-ul > li img:hover {
    transform: scale(1.24);
}

.brand-type-sun,
.brand-type-optic,
.brand-type-glass {
    background: var(--brand-blue);
    border-radius: 10px;
    bottom: 1rem;
    color: white;
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1.2;
    padding: 0.35rem 0.55rem;
    position: absolute;
    right: 5%;
    text-align: center;
    width: 86px;
    z-index: 1;
}

.ui.popup:before {
    content: unset !important;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .ui.grid.container {
        width: 96% !important;
    }

    #desktopNavbar {
        padding-left: 13.25rem;
    }

    #desktopNavbar > .item {
        padding: 0 0.75rem !important;
    }

    #contactNavContainer {
        font-size: 0.86rem;
    }
}

@media only screen and (max-width: 991px) {
    #contactNavContainer {
        display: none;
    }

    #navbar .ui.container.grid {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }

    .logo {
        width: 82px !important;
    }

    .logoAnchor {
        padding-left: 0.7rem;
    }

    .logoAnchor > div {
        font-size: 1.18rem;
    }
}

@media only screen and (max-width: 420px) {
    .logo {
        width: 68px !important;
    }

    .logoAnchor > div {
        font-size: 1.02rem;
        margin-left: 0.45rem;
    }
}
