/* HEADER SECTION */
header {
    /* border: var(--debug); */
    border-bottom: 0.1px solid var(--bw-blue-dark);
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1;
    transition: all 3s ease;
}

header a {
    /* border: var(--debug); */
    text-decoration: none;
    color: inherit;
}

#logo a {
    /* border: var(--debug); */
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo a img {
    /* border: var(--debug); */
    width: 6rem;
    padding: 0.1rem;
}

#logo p {
    /* handle */
    /* border: var(--debug); */
    line-height: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bw-blue);
}

#nav-bar {
    /* border: var(--debug); */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav-section {
    /* border: var(--debug); */
    gap: 2rem;
    display: flex;
    justify-content: flex-end;
}

#nav-section ul {
    /* border: var(--debug); */
    list-style-type: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

#nav-section ul li {
    /* border: var(--debug); */
    font-size: 1rem;
    color: var(--bw-blue-dark);
    font-weight: 380;
    transition: all 0.1s ease-in-out;

    &:hover {
        font-weight: 700;
        cursor: pointer;
        border-bottom: 2px solid var(--bw-blue-dark);
    }
}


/* CART ICON STYLING */

#cart-icon,
#cart-icon-mobile {
    /* border: var(--debug); */
    width: 7%;
    position: relative;

    &:hover {
        cursor: pointer;
    }
}

#cart-icon a,
#cart-icon-mobile a {
    /* border: var(--debug); */
    display: flex;
    align-items: center;
}

#cart-icon img,
#cart-icon-mobile img {
    /* border: var(--debug); */
    width: 100%;
    object-fit: contain;
}

.cart-quantity-container {
    /* border: var(--debug); */
    position: absolute;
    top: 0rem;
    right: -0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    place-items: center;
    background-color: var(--error-coral);
    border: 1px solid var(--error-coral-dark);
}

#cart-quantity,
#cart-quantity-mobile {
    /* border: var(--debug); */
    margin: 0 auto;
    color: #fff;
    font-size: 0.75rem;
}

.hamburger-menu {
    /* border: var(--debug); */
    position: relative;
}

.hamburger-icon span {
    /* border: var(--debug); */
    height: 0.25rem;
    width: 1.5rem;
    background-color: var(--bw-blue);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.hamburger-icon span:nth-child(2) {
    margin: 0.15rem 0rem;
}

.responsive-nav-section {
    /* border: var(--debug); */
    display: none;
    border-top: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    width: 10rem;
    margin-top: 1.5rem;
    opacity: 0.9;
}

.responsive-nav-section ul li {
    list-style: none;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    background-color: var(--bw-blue-dark);
    font-weight: 400;
    padding: 0.8rem 0.5rem;
    border-top: 1px solid #ffffff;
    transition: all 200ms ease-in-out;
}

.responsive-nav-section.open {
    display: block;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:nth-child(2) {
    opacity: 1;
}

.hamburger-icon span:last-child {
    transform: none;
}

.nav-section-mobile {
    display: none;
}


@media screen and (max-width: 1024px) {
    .nav-section-mobile {
        /* border: var(--debug); */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
    }

    #cart-icon-mobile {
        width: 25%;
    }

    #nav-section {
        display: none;
    }

    .hamburger-menu {
        /* border: var(--debug); */
        display: block;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 640px) {
    #logo a p {
        /* border: var(--debug); */
        font-size: 1.25rem;
    }
}