@charset "UTF-8";

@font-face {
    font-family: Urbanist;
    src: url(/fonts/Urbanist-Regular.woff2);
}

header {
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 1000;
    display: block;
    margin: 0 auto;
}

.header {
    display: none;
}

.overlay {
    width: 100%;
    height: 15%;
    position: fixed;
    z-index: 999;
    bottom: 0;
    background-image: linear-gradient(to top,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0));
}

/* Responsive header */
.responsive-header {
    width: 80%;
    position: relative;
    z-index: 1000;
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    height: fit-content;
    min-width: fit-content;
    padding: 8px 16px;
    background-color: white;
    border-radius: 100px;
    box-shadow: 0px 16px 14px -6px rgba(0, 0, 0, 0.1),
                0px 10px 20px -14px rgba(0, 0, 0, 0.1);
}

.responsive-header ul {
    margin: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    list-style: none;
    gap: 8px;
    padding-inline-start: 0;
}

.menu-icons {
    width: 24px;
    height: 24px;
    fill: gray;
}
.menu-icons:last-child{
    fill: black;
}

.responsive-header ul li a {
    text-decoration: none;
    color: gray;
}

.responsive-header ul li a:active {
    text-decoration: none;
    color: white;
    font-size: 12px;
}


.active a,
.active a svg {
    color: slateblue !important;
    fill: slateblue !important;
}

@media all and (min-width: 768px) {
    .responsive-header, .overlay {
        display: none;
    }


    .header {
        position: fixed;
        height: 100px;
        width: 100%;
        min-width: 100%;
        display: grid;
        top: 0;
        grid-area: header;
        z-index: 1000;
        backdrop-filter: blur(2px);
        background-color: rgba(0, 0, 0, 0.05);
        padding: 5px;
    }

    .main-logo {
        display: flex;
        grid-column: 1;
        justify-self: center;
        align-items: center;
        height: auto;
    }

    /* Menu */
    .main-menu {
        display: flex;
        grid-column: 2;
        align-items: center;
        justify-content: center;
    }

    .main-menu ul {
        display: flex;
        list-style: none;
        align-items: center;
        justify-content: center;
    }

    /* Navigation items */
    .main-menu a {
        position: relative;
        color: black;
        text-decoration: none;
        padding-inline: 20px;
    }

    .main-menu a:hover {
        color: darkslateblue;
        transition-duration: 300ms;
    }

    .main-menu a::before,
    .main-menu a::after {
        content: "";
        position: absolute;
        bottom: -5px;
        width: 0;
        height: 2px;
        background-color: slateblue;
        transition: width 0.3s ease, left 0.3s ease, right 0.3s ease;
    }

    .main-menu a::before {
        left: 50%;
    }

    .main-menu a::after {
        right: 50%;
    }

    .main-menu a:hover::before,
    .main-menu a:hover::after {
        width: 50%;
        color: slateblue;
    }

    .nav-cart {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-self: center;
    }

    .nav-cart a {
        text-decoration: none;
        color: black;
    }

    .menu-icons {
        height: 24px;
        width: 24px;
    }

    .nav-cart a:hover {
        color: slateblue;
        transition: ease-in-out;
        transition-duration: 300ms;
    }
}