.beauty-navigation {
    position: relative;

    background: var(--nav-background);
    color: var(--nav-text);

    border-top: 1px solid var(--nav-border);
    border-bottom: 1px solid var(--nav-border);

    z-index: 100;
}


/* =====================================================
   TOP ROW
   ===================================================== */

.beauty-navigation__top {
    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: center;

    gap: 16px;

    padding: 16px 20px;
}


.beauty-navigation__brand {
    color: var(--nav-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;

    font-style: italic;
    font-weight: 700;

    text-decoration: none;
}


/* =====================================================
   ACTION ICONS
   ===================================================== */

.beauty-navigation__actions {
    grid-column: 1 / -1;

    display: flex;

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

    padding-top: 14px;

    border-top:
        1px solid var(--nav-border);
}


.beauty-navigation__action {
    position: relative;

    display: flex;

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

    width: 44px;
    height: 44px;

    color: var(--nav-icon);

    font-size: 1.15rem;

    text-decoration: none;

    border-radius: 50%;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}


.beauty-navigation__action:hover {
    color: var(--nav-hover);
}


.beauty-navigation__cart-count {
    position: absolute;

    top: 1px;
    right: 0;

    display: flex;

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

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    background:
        var(--nav-cart-count-background);

    color:
        var(--nav-cart-count-text);

    border-radius: 999px;

    font-size: 0.62rem;
    font-weight: 700;

    line-height: 1;
}


/* =====================================================
   HAMBURGER
   ===================================================== */

.beauty-navigation__toggle {
    display: flex;

    flex-direction: column;

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

    gap: 5px;

    width: 42px;
    height: 42px;

    padding: 0;

    background: transparent;

    border:
        1px solid var(--nav-button-border);

    border-radius: 999px;

    cursor: pointer;
}


.beauty-navigation__toggle span {
    display: block;

    width: 17px;
    height: 1.5px;

    background: var(--nav-text);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.beauty-navigation__toggle.is-active span:nth-child(1) {
    transform:
        translateY(6.5px)
        rotate(45deg);
}


.beauty-navigation__toggle.is-active span:nth-child(2) {
    opacity: 0;
}


.beauty-navigation__toggle.is-active span:nth-child(3) {
    transform:
        translateY(-6.5px)
        rotate(-45deg);
}


/* =====================================================
   MOBILE MENU
   ===================================================== */

.beauty-navigation__mobile-menu {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    padding: 10px 20px 20px;

    background: var(--nav-background);

    border-top:
        1px solid var(--nav-border);

    border-bottom:
        1px solid var(--nav-border);

    box-shadow:
        0 18px 35px
        rgba(0, 0, 0, 0.25);
}


.beauty-navigation__mobile-menu.is-open {
    display: flex;
}


.beauty-navigation__mobile-menu a {
    padding: 16px 0;

    color: var(--nav-text);

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-decoration: none;
    text-transform: uppercase;

    border-bottom:
        1px solid var(--nav-border);

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


.beauty-navigation__mobile-menu a:last-child {
    border-bottom: none;
}


.beauty-navigation__mobile-menu a:hover {
    color: var(--nav-hover);

    padding-left: 8px;
}


/* =====================================================
   DESKTOP CATEGORY ROW
   ===================================================== */

.beauty-navigation__links {
    display: none;
}


/* =====================================================
   TABLET / DESKTOP
   ===================================================== */

@media (min-width: 768px) {

    .beauty-navigation__top {
        grid-template-columns:
            1fr auto;

        padding:
            16px 32px;
    }


    .beauty-navigation__brand {
        font-size: 1.5rem;
    }


    .beauty-navigation__toggle {
        display: none;
    }


    .beauty-navigation__actions {
        grid-column: auto;

        justify-content: flex-end;

        gap: 10px;

        padding-top: 0;

        border-top: none;
    }


    .beauty-navigation__links {
        display: flex;

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

        flex-wrap: wrap;

        gap:
            4px 28px;

        padding:
            10px 32px 14px;

        border-top:
            1px solid var(--nav-border);
    }


    .beauty-navigation__links a {
        position: relative;

        padding: 8px 0;

        color: var(--nav-text);

        font-size: 0.72rem;
        font-weight: 700;

        letter-spacing: 0.045em;

        text-decoration: none;
        text-transform: uppercase;

        white-space: nowrap;
    }


    .beauty-navigation__links a::after {
        content: "";

        position: absolute;

        left: 0;
        bottom: 2px;

        width: 100%;
        height: 1px;

        background: var(--nav-hover);

        transform: scaleX(0);

        transform-origin: center;

        transition:
            transform 0.2s ease;
    }


    .beauty-navigation__links a:hover::after {
        transform: scaleX(1);
    }


    .beauty-navigation__mobile-menu {
        display: none !important;
    }

}