.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.1rem 7%;

    background-color: #fff6e5;
    border-bottom: 1px solid rgb(255, 251, 240);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 9999;
}

.navbar > div:first-child img {
    width: 50px;
    height: auto;
    display: block;
}

.navbar .navbar-nav a {
    text-decoration: none;

    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #31824C;

    font-size: 1.3rem;
    margin: 0 1rem;

    transition: color 300ms ease,
                border-color 300ms ease;

    border-bottom: 1px solid transparent;
}

.navbar .navbar-nav a:hover {
    color: #42B067;
    border-bottom: 1px solid #42B067;
}

.cart-icon {
    position: relative;
    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 20%;

    width: 60px;
    height: 48px;

    padding: 10px;
    text-decoration: none;

    transition: 0.3s;
}

.cart-icon:hover {
    background-color: #dddddda9;
}

.cart-icon img {
    width: 24px;
    height: 24px;
}

#cart-count {
    background: #31824C;
    color: white;

    border-radius: 50%;
    padding: 2px 6px;

    font-size: 0.8rem;
    margin-left: 4px;
}

.navbar .navbar-extra a {
    color: #31824C;
    margin: 0 0.5rem;
    text-decoration: none;
}

.navbar .navbar-extra a:hover {
    color: #42B067;
}

#hamburger-menu {
    display: none;
    cursor: pointer;
    font-weight: 900;

    font-size: 2rem;
    font-family: 'Times New Roman', Times, serif;
}

@media (max-width: 1440px) {

    html {
        font-size: 75%;
    }

}

@media (max-width: 1024px) {

    html {
        font-size: 65%;
    }

    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav {
        position: absolute;
        top: 100%;
        right: -100%;

        background-color: white;

        width: 30rem;
        height: 100vh;

        transition: 0.2s ease;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a {
        display: block;

        margin: 1.5rem;
        padding: 0.5rem;

        font-size: 2rem;
        position: relative;
    }

    .navbar .navbar-nav a::after {
        content: "";

        position: absolute;
        left: 0;
        bottom: 0;

        height: 2px;
        width: 100%;

        background-color: #31824C;
        transform: scaleX(0);
        transition: 0.2s ease;
        transform-origin: left;
    }

    .navbar .navbar-nav a:hover::after {
        transform: scaleX(0.2);
    }

}

@media (max-width: 600px) {

    html {
        font-size: 55%;
    }

    #hamburger-menu {
        display: inline-block;
        font-weight: 900;
        font-size: 2rem;

        font-family: Arial Black, sans-serif;
        color: #31824C;
        cursor: pointer;
    }

    .navbar .navbar-nav {
        display: none;

        position: absolute;
        top: 100%;
        right: 1rem;

        background: #fff;

        flex-direction: column;

        width: 200px;
        height: auto;
        padding: 1rem;

        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        border-radius: 0.5rem;
    }

    .navbar .navbar-nav.active {
        display: flex;
    }

}