@import '../../styleConstants.scss';

.navbar {
    padding: 0 1rem;
}

.navigation-bar {
    background-color: $header-background;
    position: relative;
    height: 3.8rem;
}

.submenu-navigation-bar {
    position: relative;
    background-color: $subheader-background;
    box-shadow: 0 4px 7px 0 $shadow-color;
    height: 3.12rem;
}

.navbar-light .navbar-nav .nav-link {
    font-size: $font-size-normal;
    font-weight: $font-weight;
    text-align: left;
    color: $warmGreyColor;
}

.navbar-light .navbar-nav > .active {
    border-bottom: 0.2rem solid $lightGreenColor;
    width: fit-content;
    margin-bottom: -0.3rem;
}

.navbar-button {
    margin-left: -0.5rem;
    margin-right: 2rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-size: $font-size-normal;
    font-weight: $font-weight;
    text-align: left;
    color: $whiteColor;
}

.navbar-dark .navbar-nav > .active {
    border-bottom: 0.3rem solid $lightGreenColor;
    width: fit-content;
    margin-bottom: -0.3rem;
}

.logo-image {
    max-height: 68%;
    max-width: 12%;
    position: absolute;
    left: 45%;
    top: 0.8rem;
}

.nav-btn-cart {
    padding: 0.2rem;
    &:hover {
        background-color: rgba(113, 194, 191, 0.5);
    }
}

.cart-icon {
    font-size: 1.2rem;
    vertical-align: middle;
}

.cart-label {
    margin-left: 0.2rem;
    font-size: 0.8rem;
    vertical-align: sub;
}

.items-cart-count {
    margin-right: 0.2rem;
    padding-left: 0.5rem;
}

.navbar-collapse {
    min-width: 100%;
}

.submenu-elements {
    min-width: 90%;
    padding-left: 2rem;
}

.nav-link {
    padding: 1rem;
}

.dropdown-menu{
    padding: 0;
}

#nav-button-logout {
    cursor: pointer;
}

#nav-profile  {
    .dropdown-menu .nav-link  {
        color: #7e7e7e !important;
    }
}

@media all and (max-width: 768px) {
    .navigation-bar {
        min-height: 3.6rem;
        height:auto;
    }
    .submenu-navigation-bar {
        height: auto;
    }

    .navbar-button {
        margin: 0;
    }

    .nav-link {
        font-size: 1.5rem !important;
    }

    .nav-btn-cart {
        display: inline-block;
        width: auto;
        padding: 0 1rem;
        margin-top: 5px;
    }
}
