/*----------------------------------------------------------
NAVBAR
----------------------------------------------------------*/

/* General */
nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem var(--padding-general-left);
    width: 100%;
    box-sizing: border-box;
    color: var(--color-3);
    background-color: rgba(2, 86, 122, 0.8);
    backdrop-filter: blur(2px);
    transition: box-shadow 0.5s, background-color 0.5s;
}

@media screen and (max-width: 1400px) {
    nav {
        padding: 0.5rem;
    }
}

/* Toggler */
nav .toggler {
    display: none;
}

/* Left */
nav .left-side {
    display: flex;
}

nav .logo {
    margin-right: 2rem;
    text-decoration: none;
}

@media screen and (max-width: 1400px) {
    nav .logo {
        margin-right: 1rem;
    }
}

nav .logo img {
    height: 3rem;
}

nav .left-side ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style-type: none;
}

nav .left-side li {
    display: flex;
    margin: 0 0.5rem;
    border-radius: 10px;
    transition: background-color 0.5s;
}

nav .left-side li.active {
    font-weight: 400;
    color: var(--color-3);
    background-color: var(--color-4);
}

nav .left-side li:hover  {
    background-color: var(--color-4);
    cursor: pointer;
}

nav .left-side li a {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.2rem;
    margin: auto;
    text-decoration: none;
    color: var(--color-3);
}

/* Right (Quotation) */
nav .right-side {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    color: var(--color-3);
    background-color: var(--color-4);
    transition: 1s all;
}

nav .right-side.shake-bottom {
    animation: shake-bottom 1s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite normal both;
}

nav .right-side.shake-bottom:hover {
    animation: none;
}

nav .right-side:hover {
    filter: brightness(105%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(-0.1rem);
}

nav .right-side .cart-icon {
    position: relative;
    margin-right: 0.5rem;
    border-right: 1px solid var(--color-3);
    padding-right: 0.5rem;
}

nav .right-side .cart-icon i {
    margin-right: 0.5rem;
}

nav .right-side .cart-icon span {
    display: block;
    position: absolute;
    left: 40%;
    top: 40%;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 12px;
    background-color: red;
}

nav .right-side a {
    position: absolute;
    display: inline;
    width: 100%;
    height: 100%;
}

/*----------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
MEDIA QUERIES
------------------------------------------------------------
------------------------------------------------------------
----------------------------------------------------------*/
@media screen and (max-width: 820px) {
    nav {
        flex-direction: column;
        /* padding: 0.5rem; */
        width: 100vw;
    }

    nav .left-side {
        flex-direction: column;
    }

    nav .left-side img {
        height: 2.5rem;
    }

    nav .left-side ul {
        display: none;
        flex-direction: column;
    }

    nav .left-side ul li {
        display: inline-block;
    }

    nav .toggler {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        margin: 1.1rem;
        width: fit-content;
    }

    nav .right-side.floating {
        display: inline;
        position: absolute;
        bottom: -50%;
        right: 2.5rem;
        border-radius: 50%;
        padding: 0.8rem;
    }
    
    nav .right-side.floating .cart-icon {
        margin-right: 0;
        border-right: none;
        padding-right: 0;
    }

    nav .right-side.floating #cart-text {
        display: none;
    }
    
    nav .right-side {
        margin: auto 0.5rem;
        width: fit-content;
        justify-content: center;
    }
}