.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: var(--clr-light);
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mobile-nav__menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-nav__link {
    font-family: var(--font-logo);
    font-size: var(--size-lg);
    text-decoration: none;
    font-weight: 600;
    color: var(--clr-slate);
    letter-spacing: -0.05em;
    padding: 10px 20px;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out 0s;
}

.mobile-nav__link:hover {
    color: var(--clr-red);
}

.mobile-nav__link::before,
.mobile-nav__link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--clr-red);
    transition: all 0.5s;
}

.mobile-nav__link::before {
    top: 0;
    left: 0;
}

.mobile-nav__link::after {
    bottom: 0;
    right: 0;
}

.mobile-nav__link:hover::before {
    width: 100%;
    transition: width 0.25s ease-in-out;
}

.mobile-nav__link:hover::after {
    width: 100%;
    transition: width 0.25s ease-in-out 0.25s;
}

.mobile-nav__link.active {
    color: var(--clr-red);
}

.mobile-nav__link.active::before,
.mobile-nav__link.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--clr-red);
}

.mobile-nav__link.active::before {
    top: 0;
    left: 0;
}

.mobile-nav__link.active::after {
    bottom: 0;
    right: 0;
}

.mobile-nav__line {
    padding: 0 2rem;
    border: 1px solid var(--clr-dark);
}

.mobile-nav__button {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--size-2xl);
    text-decoration: none;
    color: var(--clr-slate);
    transition: all 0.3s ease-out 0s;
}

.mobile-nav__button:last-child {
    padding-right: 0.5rem;
}

.mobile-nav__button:hover {
    color: var(--clr-red);
}

.mobile-nav__button__cart {
    position: relative;
}

.mobile-nav__button__cart__total {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 18px;
    height: 18px;
    color: var(--clr-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-red);
    font-size: var(--size-xs);
}

.mobile-nav__user__header__button {
    background-color: var(--clr-blue);
    color: var(--clr-light);
    padding: 0.4rem 0.6rem;
    font-size: var(--size-base);
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.mobile-nav__user ul {
    display: block;
    font-size: 13px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-width: 100px;
    background-color: var(--clr-light);
    border: 2px solid var(--clr-blue);
    border-radius: 0 0 15px 15px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);

    li {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        display: block;
    }
    li a {
        display: block;
        padding: 0;
        width: 100%;
    }
    li:hover {
        background-color: var(--clr-blue);
        color: var(--clr-light);
    }
}
