@import 'init';

.mobile {
    display: none;
}
#header-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}
.top-bar {
    background-color: @black;
    padding-block: 20px;
    .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .left {
        color: white;
        font-size: 0.78em;
        opacity: 0.63;
    }
    .right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        line-height: 1.2;
    }
}
@media only screen and (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
}
@media only screen and (min-width: 1700px) {
    .container-wide {
        max-width: 1640px;        
    }
}
.brand-logo {
    width: 488px;
}
.navbar-wrapper {
    background: linear-gradient(to right, #3D89CB, #2B66AC);
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
.navbar {
    padding: 0.35rem;
}
.navbar-nav {
/*    gap: 4.5rem;*/
    width: 100%;
    justify-content: space-between;
}
a.nav-link {
    color: white;
}
.navbar .nav-item .dropdown-menu {
    background-color: @main-color;
    border: none;   
}
.dropdown-item {
    color: white;
    font-weight: 400;
    position: relative;
    &:hover, &.active {
        color: white;
        background-color: @main-color;
        font-weight: 600;
    }
    &:not(:last-child)::after {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        content: '';
        height: 1px;
        background-color: white;
        opacity: .25;
    }
}
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu{ display: none; }
    .navbar .nav-item:hover .nav-link{   }
    .navbar .nav-item:hover .dropdown-menu{ display: block; }
    .navbar .nav-item .dropdown-menu{ margin-top:0; }
}
header .nav-item.active .nav-link {
/*    text-transform: uppercase;*/
    text-decoration: underline;
}
@footer-col-gap: 5rem;
@footer-row-gap: 1.5rem;
footer {
    background-color: @main-color;
    color: white;
    .f-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 3rem;
        padding-bottom: 3rem;
        gap: @footer-col-gap;
    }
    .footer-left, .footer-right {
        flex: 0 0 auto;
    }
    .footer-left {
        display: flex;
        flex-direction: column;
        gap: @footer-row-gap;
        hr {
            border-top: 2px solid white;
            opacity: 1;
        }
    }
    .footer-contact {
        font-size: 0.78em;
        font-weight: 700;
    }
    .menu-wrapper {
        flex: 1 1 auto;
        min-width: 0;
    }
    .menus {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: flex-start;
        list-style: none;
        gap: @footer-row-gap @footer-col-gap;
        height: 350px;
    }
    .nav-link {
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 0.89em;
        font-weight: 700;
        color: white;
    }
    .nav-item.active .nav-link {
        color: white;
        text-decoration: underline;
    }
    .sub-menu {
        display: flex;
        flex-direction: column;
    }
    .sub-item {
        font-size: 0.78em;
        text-decoration: none;
    }
    .sub-item.active {
        text-decoration: underline;
    }
    .footer-right {
        text-align: right;
    }
    .hours-title {
        margin-bottom: 1rem;
        font-size: 0.89em;
    }
    .hours {
        font-size: 0.78em;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        strong {
            font-weight: 700;
        }
    }
    .navbar .nav-item .dropdown-menu {
        background-color: white;
        .dropdown-item {
            color: @main-color;
            &:hover {
                background-color: white;
            }
        }
    }
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.bottom-bar {
    background-color: @black;
    padding-block: 20px;
    .container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.copyright {
    background: linear-gradient(to right, #3D89CB, #2B66AC);;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.78em;
}
@media only screen and (max-width: 1599px) {
    @footer-col-gap: 3rem;
    footer {
        .f-wrapper, .footer-left {
            gap: @footer-col-gap;
        }
        .menus {
            column-gap: @footer-col-gap;
            height: 550px;
        }
    }
}
@media only screen and (max-width: 1199px) {
    .brand-logo {
        width: 300px;
    }
    @footer-col-gap: 2rem;
    footer {
        .f-wrapper, .footer-left {
            gap: @footer-col-gap;
        }
        .menus {
            column-gap: @footer-col-gap;
            height: 490px;
        }
    }
}
.mobile {
    .sub-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
@media only screen and (max-width: 991px) {
    #header-wrapper {
        position: relative;
    }
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .top-bar {
        .center {
            order: 1;
        }
        .left {
            order: 3;
        }
        .right {
            order: 4;
/*            flex-direction: column;*/
            gap: 0.5rem;
            .cart {
                padding: 0.4rem 1rem;
            }
            div {
                display: flex;
                justify-content: center;
                gap: 1rem;
            }
        }
        .navbar-toggler {
            order: 5;
            color: @main-color;
        }
    }
    .navbar {
        padding: 0;
    }
    #nav-wrapper {
        padding: 0.75rem;
    }
    
    @footer-col-gap: 1rem;
    @footer-row-gap: 1rem;
    footer {
        .brand-logo {
/*            width: 165px;*/
        }
        .f-wrapper, .footer-left {
            gap: @footer-col-gap;
        }
        .f-wrapper {
            padding-block: 1rem;
        }
        .footer-left {
            gap: @footer-row-gap;
        }
        .menus {
            row-gap: @footer-row-gap;
            column-gap: @footer-col-gap;
            height: 600px;
        }
        .navbar-nav {
            padding-block: 1rem;
        }
    }
}
@media only screen and (max-width: 767px) {
    .top-bar {
        .container {
            flex-wrap: wrap;
        }
        .navbar-toggler {
            order: 4;
        }
    }
    footer {
        .footer-left {
            gap: 0;
        }
        .menu-wrapper {
            order: 1;
            border-top: 2px solid white;
            padding-top: 4px;
        }
        .navbar-nav {
            gap: 1rem;
        }
    }
}
