/**********
Header
***********/

#shopify-section-theme-header {
    position: sticky;
    top: 52px;
    z-index: 100000;
}

#header {
    display: grid;
    grid-template-columns: 3fr 1fr 3fr;
    margin: 0 auto;
    width: 100%;
    padding: 20px 5% 19px;
    transition: .3s ease;
    background-color: var(--grey);
}

#headerLeft {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.headerLeftLink {
    color: var(--yellow);
    font-size: 16px;
    font-weight: 300;
    transition: .3s ease;
    position: relative;
}

.headerLeftLink.white {
    color: white;
}

.headerLeftLink:after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: white;
    transition: transform 0.25s ease-out;
    transform-origin: bottom right;
}

.headerLeftLink:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

@media (max-width: 1190px) {
    .headerLeftLink {
        display: none;
    }
}

#headerWrap {

}

#header.grey {
    background-color: var(--grey) !important;
}

#header.offer {
    background-color: var(--grey) !important;
    position: relative !important;
}

#header.grey.offer {
    background-color: var(--grey) !important;

}

#header.grey .headerLeftLink.white {
    color: var(--yellow) !important;
}

#header.grey .headerMobileLink.white {
    color: var(--yellow) !important;
}

/* Homepage v2 only */
#header.active {
    z-index: 20;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(calc(-50% - 1px), 0);
    background-color: transparent;
}

#header.offer.active {
    background-color: var(--grey) !important;
    position: relative;
}


#headerMenu {
    display: flex;
    cursor: pointer;
    width: fit-content;
}

#headerMenuWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 12px;
    font-weight: 300;
}

#headerMenu svg {
    height: 17px;
    width: auto;
}

#headerLogo {
    cursor: pointer;
    width: fit-content;
    margin: auto;
}

#headerLogoImg {
    height: 40px;
    width: auto;
}


.sliderNavItem {
    display: flex;
    flex-direction: column;
}

#headerIcons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

#headerIconsAccount {
    width: 24px;
}

#headerIconsAccount img {
    height: 20px;
    width: auto;
}

#headerIconsCart {
    cursor: pointer;
    position: relative;
    width: fit-content;
}

#headerIconsCart img {
    height: 20px;
    width: auto;
}

#headerIconsCart[data-count]:not([data-count="0"])::after {
    position: absolute;
    top: -5px;
    right: -5px;
    height: 12px;
    width: 12px;
    background-color: black;
    color: white;
    content: attr(data-count);
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    line-height: 100%;
}

.headerBottom {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows ease 300ms;
    grid-column: 1 / span 3;

}

.headerBottom.active {
    grid-template-rows: 1fr;
}

.headerBottomWrap {
    overflow: hidden;
}

.headerBottomContent {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 19px 0 0;
}

.headerBottomContentClose {
    position: absolute;
    top: 16px;
    right: 2px;
    cursor: pointer;
    width: fit-content;
}

.headerBottomContentSuper {
    color: white;
    font-weight: 300;
}

.headerBottomContentTitle {
    color: var(--yellow);
    font-size: 28px;
    font-weight: 700;
}

.headerMobile {
    display: none;
}

.headerMobileLink.white {
    color: white;
}


@media (max-width: 800px) {
    #shopify-section-theme-header {
        top: 32px;
    }

    #header {
        padding: 20px 24px 19px;
    }

    #header.active {
        transform: translateX(-50%);
    }

    #headerLogo {
        margin: auto;
    }

    #headerLogoImg {
        height: 35px;
        width: auto;
    }

    #headerIcons {
        gap: 10px;
    }

    .headerBottomContentSuper {
        font-size: 14px;
    }

    .headerMobile {
        font-size: 14px;
        margin-top: 16px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        color: white;
        font-weight: 300;
        grid-column: 1 / span 3;
    }
}

@media (max-width: 375px) {
    .headerMobile {
        gap: 0;
        justify-content: space-between;
    }
}

/*************
Mobile Nav
**************/
#slider {
    padding: 0;
    background-color: transparent;
}

#slider::backdrop {
    opacity: 0;
    transition: .5s ease;
    background-color: transparent;
}

#slider.active::backdrop {
    background: rgba(0, 0, 0, .4);
    opacity: 1;
}

#slider[open] {
    left: 0;
}


#sliderContent {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    transition: 0.4s ease;
    z-index: 25;
    background-color: var(--yellow);
    max-width: 360px;
    padding: 20px;
    overflow-y: scroll;
}

#sliderContent.active {
    left: 0;
}

#sliderClose {
    position: relative;

}

#sliderClose svg {
    top: 3px;
    right: 10px;
    left: auto;
    position: absolute;
    cursor: pointer;
    height: 20px;
    width: 15px;
}

#sliderNav {
    background-color: transparent;
    margin-bottom: 30px;
    max-width: unset !important;
    padding-top: 30px;
}

.sliderNavItem {
    font-size: 21px;
    font-weight: 400;
    display: block;
    padding: 20px;
    border-bottom: 1px solid #4f4f4f;
    color: var(--grey);
}

/************
Dropdown links
************/

.sliderNavDropdown {
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 100%;
    max-width: 496px;
    color: var(--grey);
    line-height: 24px;
    cursor: pointer;
    border-bottom: 1px solid #4f4f4f;
}

.sliderNavDropdownTop {
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    align-items: center;
    font-size: 21px;
    text-align: left;
}

.sliderNavDropdownTopWrap {
    padding: 6px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sliderNavDropdownTopWrap img {
    width: 20px;
    transition: transform ease 300ms;
}

.sliderNavDropdownTopWrap.active img {
    transform: rotate(135deg);
}

.sliderNavDropdownBottom {
    color: var(--grey);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows ease 300ms;
    text-align: left;
}

.sliderNavDropdownBottom.active {
    grid-template-rows: 1fr;
}

.sliderNavDropdownBottomWrap {
    overflow: hidden;
}

.sliderNavDropdownBottomWrapContent {
    padding: 20px 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


#sliderExit {
    height: 100%;
    flex-grow: 1;
    position: fixed;
    width: 100%;
    left: 0;
    cursor: pointer;
    top: 0;
}

@media (max-width: 800px) {
    #sliderClose:focus {
        outline: none;
    }

    #sliderContent {
        max-width: 85%;
    }
}