.annoucement__headbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--annoucement-headbar-height);
    color: var(--primary-color);
    background-color: var(--accent-color);
    transition: height var(--transition-duration-popup) ease;

    &.close {
        height: 0;
    }

    .headbar__main__content {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: .7rem 0;

        span {
            position: absolute;
            transition: .35s cubic-bezier(.68, -0.55, .27, 1.55);
            translate: 0 100%;
            opacity: 0;

            &.active {
                translate: 0 0;
                opacity: 1;
            }

            &.exit {
                translate: 0 -100%;
                opacity: 0;
            }
        }
    }
}

.header {
    display: flex;
    position: sticky;
    top: var(--annoucement-headbar-height);
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--header-height);
    background-color: var(--primary-color);
    outline: 1px solid var(--border-color);
}

.header__nav {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--h-gap2);
    position: relative;
}

.header__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.header__menu__li {
    display: flex;
    position: relative;
    letter-spacing: .075rem;
    padding: .75rem 0;
    gap: var(--btn-gap);
    align-items: center;

    &::after {
        content: "";
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0;
        height: 1px;
        width: 0;
        background: var(--accent-color);
        transition: .275s ease;
    }

    @media (min-width: 768px) {
        &:hover::after {
            width: 100%;
            left: 0;
        }
    }

    a {
        display: flex;
        color: black;
        width: 100%;
        height: 100%;
    }
}

.header__hamburger__icon {
    width: 1.5rem;
    aspect-ratio: 1/1;
    position: relative;
    rotate: 0deg;
    transition: var(--transition-duration-hamburger) ease-in-out;

    span {
        display: block;
        position: absolute;
        left: 0;
        height: calc(var(--stroke-width) * 1px);
        width: 100%;
        background: var(--accent-color);
        border-radius: 20px;
        opacity: 1;
        rotate: 0deg;
        transition: rotate calc(var(--transition-duration-hamburger) / 2) ease-in-out, top calc(var(--transition-duration-hamburger) / 2) ease-in-out, left calc(var(--transition-duration-hamburger) / 2) ease-in-out, width calc(var(--transition-duration-hamburger) / 2) ease-in-out;

        &:nth-child(1) {
            top: .2rem;
        }

        &:nth-child(2),
        &:nth-child(3) {
            top: .7rem;
        }

        &:nth-child(4) {
            top: 1.25rem;
        }
    }
}

.header__hamburger {
    z-index: 1001;

    &.active {

        .header__hamburger__icon {

            span:nth-child(1),
            span:nth-child(4) {
                top: 18px;
                width: 0;
                left: 50%;
            }

            span:nth-child(2) {
                rotate: 45deg;
            }

            span:nth-child(3) {
                rotate: -45deg;
            }

            +.header__hamburger__label span {
                margin-top: -1.08275rem;
            }
        }
    }
}

.header__hamburger__label {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 1.05rem;
    gap: 1.125rem;

    span {
        transition: margin-top .4s cubic-bezier(.68, -.55, .27, 1.55);
        height: 100%;
    }
}

.header__logo__container {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: auto;
    height: 100%;
    width: fit-content;
    position: absolute;
    left: 0;
    right: 0;

    background: none;
}

.header__logo__title {
    cursor: pointer;
    font-size: 2.25rem;
    letter-spacing: -.05rem;
    text-transform: uppercase;
    font-weight: 300;
    font-family: "Montserrat", sans-serif;
}

.header__menu__button {
    padding: .75rem;
    border-radius: var(--squared-border-radius);
    color: var(--accent-color);
    transition: background-color .25s cubic-bezier(0, 0, 0, 1), scale .2s, opacity 50ms;
    display: flex;
    position: relative;

    .header__item__badge {
        display: none;
        position: absolute;
        top: 0.1rem;
        right: -.1rem;
        height: 1.4rem;
        background-color: var(--accent-color);
        color: var(--primary-color);
        border-radius: 50%;
        aspect-ratio: 1/1;
        font-size: 85%;
        justify-content: center;
        align-items: center;
    }

    &:hover,
    &.active {
        background-color: var(--color2);
    }

    &:active {
        opacity: .5;
        scale: .9;
    }
}

@media screen and (min-width: 768px) {

    .overlay.open {
        opacity: 1;
        pointer-events: all;
    }

    .invisible__header {
        background-color: transparent !important;
        outline: none !important;
        transition: 0.1s cubic-bezier(0.25, 1, 0.5, 1);

        &::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 40rem;
            transform: translateY(-65%);
            pointer-events: none;
            opacity: 40%;
            transition: opacity .2s ease-in-out;
            background: linear-gradient(360deg, transparent, rgba(0, 0, 0, 0.196) 10.27%, rgba(0, 0, 0, 0.294) 18.73%, rgba(0, 0, 0, 0.588) 29%, rgba(0, 0, 0, 0.686) 37.89%, rgba(0, 0, 0, 0.686) 54.72%, rgba(0, 0, 0, 0.686) 64.05%, rgba(0, 0, 0, 0.686) 76.74%);
        }

        * {
            color: var(--primary-color) !important;
            stroke: var(--primary-color);

            .header__hamburger__icon span,
            .header__item__badge {
                background-color: var(--primary-color) !important;
                color: var(--accent-color) !important;
            }

        }

        &.hovered {
            background-color: var(--primary-color) !important;
            outline: 1px solid var(--border-color) !important;

            &::before {
                opacity: 0;
            }

            * {
                color: var(--accent-color) !important;
                stroke: var(--accent-color);

                .header__hamburger__icon span,
                .header__item__badge {
                    background-color: var(--accent-color) !important;
                    color: var(--primary-color) !important;
                }
            }
        }
    }

    .main__invisible__header {
        margin-top: calc(-1 * var(--header-height));
    }

}

/*MARK: Hamburger Menu */
.hamburger__menu__container {
    display: flex;
    height: 100vh;
    width: fit-content;
    transition: var(--transition-duration-popup) ease-in;
    padding-top: var(--all-header-height);

    [dir="ltr"] & {
        left: 0;
        transform: translate3d(-100%, 0, 0);
    }

    [dir="rtl"] & {
        right: 0;
        transform: translate3d(100%, 0, 0);
    }
}

.hamburger__menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: clamp(0px, calc(100vw / 3), 482.5px);
    overflow: auto;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transition: var(--transition-duration-popup) ease-in;

    &.sub__menu {
        transition: var(--transition-duration-popup) ease-in;
        border-right: 0;
        display: none;

        &.open {
            display: flex;
            border-right: 1px solid var(--border-color);
        }
    }

    &:has(.hamburger__menu__item__link:hover),
    &:has(.hamburger__menu__item__dico:hover),
    &:has(.hamburger__menu__item__dico.active)
    {
        .hamburger__menu__item__link,
        .hamburger__menu__item__dico {
            opacity: calc(100% / 3) !important;
        }

        .hamburger__menu__item__link:hover,
        .hamburger__menu__item__dico:hover,
        .hamburger__menu__item.active {
            opacity: 1 !important;
        }
    }
}

.hamburger__menu__bottom__menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem var(--h-gap2);
    width: 100%;

    .hamburger__menu__bottom__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .15rem 0;
        height: 3rem;
        overflow: hidden;

        .hamburger__menu__bottom__btn__left {
            display: flex;
            align-items: center;
            gap: 1rem;

            div {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: .15rem;
            }

            .hamburger__menu__bottom__btn__left__flag__container {
                display: flex;
                height: auto;
                max-width: 24px;
                width: 24px;

                .hamburger__menu__region__btn__left__flag {
                    height: auto;
                    width: 100%;
                }
            }
        }

        .hamburger__menu__bottom__btn__arrow {
            min-width: 2.15rem;
            stroke-width: 0.75;
            width: auto;
            height: 2.15rem;

            [dir="rtl"] & {
                transform: rotate(180deg);
            }
        }
    }

    .hamburger__menu__bottom__contrast__check {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .15rem 0;
        height: 3rem;
        overflow: hidden;
        margin-top: 2.5rem;
    }
}

.hamburger__menu__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-inline: var(--h-gap2);
    padding-block: .5rem;
    width: 100%;
    cursor: pointer;
    position: sticky;
    top: 0;
    background-color: var(--primary-color);
    z-index: 2;

    .hamburger__menu__title {
        font-size: 1.125rem;
        font-weight: 400;
        letter-spacing: .025rem;
        line-height: 1.5rem;
    }

    .hamburger__menu__back {
        display: flex;
        aspect-ratio: 1 / 1;

        [dir="rtl"] & {
            transform: rotate(180deg);
        }
    }
}

.hamburger__menu__links {
    display: flex;
    flex-direction: column;
    padding: var(--annoucement-headbar-height) var(--h-gap2);
    border-bottom: 1px solid var(--border-color);
    width: 100%;

    .sub__menu & {
        border: none;
    }
}

.hamburger__menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: .25s ease;
    padding: .75rem 0;

    &:hover,
    &.active {
        span {
            background-size: 100% 1px;
        }

        .hamburger__menu__item__arrow {
            opacity: 1;
            translate: 0;
        }
    }

    a {
        display: block;

        background: none;

        img {
            width: 100%;
            height: auto;
        }
    }

    span {
        position: relative;
        padding: 0;
        font-size: 1.25rem;
        font-weight: 400;
        box-sizing: content-box !important;
        line-height: 1.75rem;
        background: linear-gradient(#000, #000) no-repeat 0 100%/0 1px;
        background-size: 0px 1px;
        transition: background-size .3s cubic-bezier(.39, .575, .565, 1);

        /* &::after {
            content: "";
            position: absolute;
            bottom: 0;
            display: block;
            height: 1px;
            width: 0;
            background: var(--accent-color);
            transition: width .25s ease-out;

            [dir="ltr"] & {
                left: 0;
            }

            [dir="rtl"] & {
                right: 0;
            }
        } */
    }

    .sub__menu & {
        opacity: 0;
        translate: 0 1.25rem;
        animation: hamburgerElementSpawn .5s ease calc(var(--position) * 40ms) forwards;
    }
}

.hamburger__menu__item__arrow {
    width: auto;
    min-width: 2.15rem;
    height: 2.15rem;
    opacity: 0;
    translate: -1.15rem 0;
    transition: .2s ease-out;
    stroke-width: 0.75;

    [dir="rtl"] & {
        translate: 1.15rem 0;
        transform: rotate(180deg);
    }
}

.hamburger__menu__bottom__menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: var(--annoucement-headbar-height) var(--h-gap2);
    width: 100%;

    .hamburger__menu__bottom__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .15rem 0;
        height: 3rem;
        overflow: hidden;

        .hamburger__menu__bottom__btn__left {
            display: flex;
            align-items: center;
            gap: 1rem;

            div {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: .15rem;
            }

            .hamburger__menu__bottom__btn__left__flag__container {
                display: flex;
                height: auto;
                max-width: 24px;
                width: 24px;

                .hamburger__menu__region__btn__left__flag {
                    height: auto;
                    width: 100%;
                }
            }
        }

        .hamburger__menu__bottom__btn__arrow {
            min-width: 2.15rem;
            stroke-width: 0.75;
            width: auto;
            height: 2.15rem;

            [dir="rtl"] & {
                transform: rotate(180deg);
            }
        }
    }

    .hamburger__menu__bottom__contrast__check {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .15rem 0;
        height: 3rem;
        overflow: hidden;
        margin-top: 2.5rem;

        .constrast__switch {
            position: relative;
            display: inline-block;
            width: 2.5rem;
            height: 1.5rem;

            input {
                opacity: 0;
                width: 0;
                height: 0;

                &:checked+.constrast__slider {
                    background-color: var(--accent-color);
                }

                &:checked+.constrast__slider:before {
                    transform: translateX(1rem);
                }

                &:focus+.constrast__slider {
                    box-shadow: 0 0 1px var(--accent-color);
                }
            }

            .constrast__slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: #767676;
                transition: .25s ease;
                border-radius: 100vmax;

                &:before {
                    position: absolute;
                    content: "";
                    height: 1.25rem;
                    width: 1.25rem;
                    aspect-ratio: 1/1;
                    left: 0.125rem;
                    bottom: 0.125rem;
                    background-color: var(--primary-color);
                    transition: .25s ease;
                    border-radius: 50%;
                }
            }
        }
    }
}

/*MARK: Search Popup */
.search__section__container {
    position: fixed;
    top: var(--all-header-height);
    left: 0;
    background-color: var(--primary-color);
    height: 0;
    width: 100vw;
    transition: height .225s ease-in;
    z-index: 10;
    overflow: auto;

    &.unfolded {
        height: calc(100vh - var(--header-height) - var(--annoucement-headbar-height));
    }

    &.open {
        height: calc(100vh - var(--header-height) - var(--annoucement-headbar-height));

        .search__bar__header,
        .search__content__container {
            display: flex;
        }
    }
}

.search__bar__header {
    display: none;
    padding: 2.25rem 0 0;
    width: 100%;
    animation: fadeInSpawn .425s forwards ease;
}

.search__bar__nav {
    padding: 0 var(--h-gap2);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    .search__bar__input__container {
        display: flex;
        position: relative;
        width: 100%;
        margin: 0 auto;
        max-width: 75%;
        align-items: center;

        .search__bar__input{
            padding-block: .6rem;
        }

        &:hover .search__bar__svg,
        &.focused .search__bar__svg {
            color: var(--accent-color);
        }
    }

    .search__bar__svg__container {
        position: absolute;
        align-items: center;
        padding: 0 1.25rem;
        display: flex;
    }

    .search__bar__svg {
        aspect-ratio: 1 / 1;
        width: 1.25rem;
        height: 1.25rem;
        stroke-width: 1.5;
        color: rgb(198, 198, 198);
        transition: .225s ease;
    }

    .search__bar__input {
        padding: 1rem 4rem 1rem 3rem;
        width: 100%;
        border-radius: var(--rounded-border-radius);
        border: 1px solid var(--border-color);
        transition: .225s ease;

        [dir="rtl"] & {
            padding: 0 2.75rem 0 1rem;
        }

        .search__bar__input__container:hover &,
        .search__bar__input__container.focused &,
        &.focused {
            border: 1px solid var(--accent-color);
        }
    }

    .search__bar__xmark {
        height: fit-content;
        width: fit-content;
        aspect-ratio: 1 / 1;
        padding: .5rem;
        cursor: pointer;
    }
}

.search__content__container {
    display: none;
    flex-direction: column;
    width: 100%;
    animation: fadeInSpawn .425s forwards ease;

    .search__action__bar {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem var(--h-gap2);
        width: 100%;
        z-index: 9;
        background-color: var(--primary-color);

        .search__filters__container {
            display: flex;
            align-items: center;
            gap: var(--btn-gap);
        }

        .search__action__btn {
            display: flex;
            align-items: center;
            gap: var(--btn-gap);
            padding: .5rem 1rem;
            border-radius: var(--rounded-border-radius);
            border: 1px solid var(--accent-color);

            &.filter {
                background-color: var(--accent-color);
                color: var(--primary-color);
                animation: fadeInSpawn .25s forwards ease;

                svg {
                    stroke: var(--primary-color);
                }
            }
        }

        .search__action__bar__left__side {
            display: flex;
            align-items: center;
            gap: calc(var(--btn-gap) * 2);
        }
    }

    .search__products__grids {
        display: grid;
        width: 100%;

        &.card__grid {
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: unset;
            grid-auto-flow: row;

            +.search__products__grid__footer {
                display: flex;
            }
        }

        .product__list__container {
            opacity: 0;
            translate: 0 1.5rem;
            animation: translateSpawn .5s ease forwards calc(var(--position) * 75ms);
        }
    }

    .search__products__grid__footer {
        display: none;
        align-items: center;
        justify-content: center;
        height: calc(var(--header-height) * 1.25);
        width: 100%;

        button {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: .25rem;

            &:hover svg {
                animation: upBump .425s infinite alternate forwards ease;
            }

            svg {
                display: flex;
                translate: 0;
                transition: .425s ease;
            }
        }
    }
}

.search__filters__list__container {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;

    .search__filter__bar {
        background-color: var(--primary-color);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        height: var(--btn-height);
        align-items: center;
        padding: 0 1.25rem;
        position: relative;

        &:first-of-type {
            border-top: 1px solid var(--border-color);
        }

        &.open {
            .lucide-plus {
                rotate: -90deg;

                .horizontal-line {
                    rotate: -90deg;
                }
            }

            +article {
                transition: grid-template-rows .275s cubic-bezier(.55, .06, .68, .19);
                grid-template-rows: 1fr;

                .product__section__more__infos__summary__container {
                    transition: height .275s cubic-bezier(.55, .06, .68, .19);
                    height: auto;

                    .product__section__more__infos__summary__text {
                        transition: opacity .275s cubic-bezier(.55, .06, .68, .19);
                        opacity: 1;
                    }
                }
            }
        }

        &.no__transition {
            transition: none !important;
        }

        div {
            display: flex;
            gap: .5rem;
            align-items: center;
        }

        .lucide-plus {
            transition: .3s;

            rect {
                transition: .15s;
                transform-origin: 50% 50%;
            }
        }
    }

    article {
        display: grid;
        grid-template-rows: 0fr;
        overflow: hidden;
        transition: grid-template-rows .275s cubic-bezier(.22, .61, .36, 1);
        width: 100%;
        background-color: var(--primary-color);
        border-bottom: 1px solid var(--border-color);
        padding: 0 1.25rem;

        .product__section__more__infos__summary__container {
            display: flex;
            flex-direction: column;
            min-height: 0;
            width: 100%;
            transition: height .275s cubic-bezier(.22, .61, .36, 1);
            background-color: var(--primary-color);

            .product__section__more__infos__summary__text {
                transition: opacity .275s cubic-bezier(.22, .61, .36, 1);
                color: var(--accent-color);
                opacity: 0;
                padding-bottom: 1.25rem;
            }
        }
    }
}

.checkout__popup {
    gap: 1rem;
}

.wishlist__popup {
    overflow: hidden auto;
    display: flex;
}

.account__popup__tablist,
.country__popup__tablist {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    width: 100%;
    gap: 1.75rem;
    position: relative;

    button {
        padding: .5rem 0 .5rem;
        cursor: pointer;
        color: var(--text-color2);
        user-select: none;
        font-size: 1.1rem;
        transition: .2s ease;

        &:hover,
        &.active {
            color: var(--accent-color);
        }
    }

    span {
        position: absolute;
        bottom: -1px;
        height: 2px;
        background-color: var(--accent-color);
        user-select: none;
        pointer-events: none;
        transition: left .3s, width .3s;
    }
}

.account__popup__form__container.load {
    animation: fadeInSpawn .625s ease forwards;
}

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

.account__popup__form__label__container {
    &:not(:last-of-type) {
        margin-bottom: 1rem;
    }
}

.account__popup__form__stay__connected {
    display: flex;
    align-items: center;
    margin: .75rem 0 1.75rem;
}

.account__popup__form__forget__pswd__btn {
    margin-bottom: 1rem;
}

.account__popup__connection__options {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;

    p {
        text-transform: uppercase;
        text-align: center;
    }
}

.account__popup__form__google__button {
    svg {
        position: absolute;
        left: .75rem;
        height: 75%;
        aspect-ratio: 1/1;
    }
}

/* 
    MARK: Account Popup Loged
*/
.account__popup__content__list {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 2rem;

    .account__popup__content__list__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding-block: 1rem;
        border-bottom: 1px solid var(--border-color);

        &:last-of-type {
            border-bottom: none;
        }

        div {
            display: flex;
            flex-direction: column;
            gap: .5rem;
        }

        &:hover {
            svg {
                opacity: 1;
                translate: 0;
            }
        }

        svg {
            width: auto;
            min-width: 2.15rem;
            height: 2.15rem;
            opacity: 0;
            translate: -1.15rem 0;
            transition: .2s ease-out;
            stroke-width: 0.75;

            [dir="rtl"] & {
                translate: 1.15rem 0;
                transform: rotate(180deg);
            }
        }
    }
}

.account__popup__details__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.account__popup__details__logout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;

    .account__popup__details__logout__infos {
        display: flex;
        flex-direction: column;
        gap: .25rem;

        .account__popup__details__logout__description {
            color: var(--text-color3);
        }
    }
}

.account__popup__address,
.account__popup__address__create {
    gap: 1rem;
}

.account__popup__address__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-block: 1rem;

    .account__popup__address__item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding-block: .5rem;
        border-bottom: 1px solid var(--border-color);

        &:last-of-type {
            border-bottom: none;
        }

        div {
            display: flex;
            flex-direction: column;
            gap: .25rem;
            height: 100%;

            &.account__popup__address__item__actions {
                flex-direction: row;
                justify-content: flex-end;
                align-items: end;
            }
        }

        button {
            padding: .25rem .5rem;
        }

        svg {
            width: auto;
            min-width: 1.5rem;
            height: 1.5rem;
            stroke-width: var(--stroke-width);
        }
    }
}


.account__popup__prefs__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.prefs__container {
    display: flex;
    flex-direction: column;
    gap: .25rem;

    legend {
        font-size: 0.9rem;
        letter-spacing: .025rem;
        line-height: 1.5rem;
    }
}


/* 
    MARK: Country Popup
*/

.country__popup__content__header {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--primary-color);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .country__popup__tablist {
        margin-bottom: 0;
    }

    .search__bar__nav {
        padding: 0;
        visibility: visible;
        padding-bottom: .25rem;
        display: none;

        &.open {
            display: flex;
        }

        .search__bar__input {
            border-radius: var(--squared-border-radius);
        }

        .search__bar__input__container {
            width: 100%;
            max-width: 100%;
        }
    }
}

.country__popup__select__descr {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block: .5rem;
}

.country__popup__select__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.country__popup__form__select {
    display: flex;
    flex-direction: column;
    list-style: none;

    .country__popup__form__select__item {
        padding: .75rem .5rem;
        border-bottom: var(--border-color) 1px solid;
        cursor: pointer;
        transition: .2s ease;

        &:last-of-type {
            border-bottom: none;
        }

        &:hover {
            background-color: var(--color2);
        }

        a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            width: 100%;
            height: 100%;
            background: none;

            span {
                display: flex;
                align-items: center;
                gap: 0.5rem;

                img {
                    width: 1.5rem;
                    height: auto;
                }

                p {
                    font-size: 0.9rem;
                    color: var(--text-color3);
                }
            }
        }

        .country__popup__form__select__item__currency {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-color3);
        }
    }
}

.country__popup__region__select {
    overflow: hidden auto;
}

.cart__popup,
.account__loged__popup,
.account__popup__details,
.account__popup__address,
.account__popup__address__create,
.account__popup__prefs,
.wishlist__popup {
    padding-top: 1rem !important;
}

.cart__popup__article__list {
    overflow: hidden auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px 0;

    .empty__cart__message {
        animation: fadeInSpawn .3s ease forwards;
        margin-bottom: 1.5rem;
    }
}

.cart__popup__article {
    display: flex;
    cursor: default;
    width: 100%;
    min-height: 7rem;
    gap: .25rem;

    &.spawn {
        animation: articleSpawn .45s ease forwards;
    }

    &.delete {
        animation: articleDelete .45s ease forwards;
    }

    .cart__popup__article__checkbox__container {
        height: 100%;
        display: flex;
        align-items: center;

        button {
            display: flex;
            align-items: center;
            justify-content: center;
            aspect-ratio: 1/1;
            width: clamp(1rem, 1.775rem, 2.5rem);
            border-radius: 50%;
            border: 1.25px solid var(--accent-color);
            transition: outline-color .2s;

            .checkmark {
                width: 100%;
                height: 100%;
                translate: 2.25% 0%;
                stroke-width: 2;
                stroke: var(--primary-color);
                stroke-miterlimit: 10;
                stroke-linecap: round;
                stroke-linejoin: round;
                box-shadow: inset 0px 0px 0px var(--accent-color);
            }

            .checkmark__circle {
                stroke-dasharray: 166;
                stroke-dashoffset: 166;
                stroke-width: 3;
                stroke-miterlimit: 10;
                fill: transparent;
            }

            .checkmark__check {
                transform-origin: 50% 50%;
                stroke-dasharray: 48;
                stroke-dashoffset: 48;
            }

            &.checked {
                background-color: var(--accent-color);

                .checkmark__check {
                    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
                }
            }

            &:focus {
                outline: thin solid rgba(71, 71, 71, 0.45);
            }
        }
    }

    .cart__popup__article__img__container {
        height: 100%;
        cursor: pointer;
        position: relative;

        img {
            height: 100%;
            width: auto;
            cursor: pointer;
        }
    }

    .cart__popup__article__infos {
        --img-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* max-width: calc(100% - 1.5rem - var(--img-width)); */
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.cart__popup__article__infos__link__to__product {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;

    h1 {
        text-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    p {
        width: fit-content;
    }
}

.cart__popup__article__footer__container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-right: .4rem;

    .cart__popup__article__footer__selects__container {
        display: flex;
        flex-direction: column;
        gap: .25rem;

        div {
            display: flex;
            align-items: center;
            gap: .35rem;
            font-size: .9rem;

            select {
                border: 1px solid var(--border-color);
                padding: .15rem;
                background-color: transparent;
                cursor: pointer;
                font-size: .9rem;
            }
        }
    }

    .cart__popup__article__footer__buttons {
        display: flex;
        align-items: flex-end;
        gap: .5rem;

        button {
            display: flex;
            align-items: center;
            justify-content: end;
            height: 47.5%;
            width: auto;
            aspect-ratio: 1/1;
            transition: .25s ease;
            position: relative;

            svg {
                height: 100%;
                width: auto;
                aspect-ratio: 1/1;
            }

            &:first-of-type:hover svg {
                fill: black;
            }

            &:last-of-type:hover {
                color: red;
            }
        }
    }
}

.cart__popup__footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;

    .cart__popup__footer__summary__price__container {
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;

        h1 {
            margin-bottom: .75rem;
        }
    }

    .cart__popup__footer__promo__container {
        display: flex;
        flex-direction: column;
        margin-top: .75rem;

        button[type='button'] {
            display: flex;
            align-items: center;
            gap: .25rem;

            &.open {
                svg {
                    rotate: 180deg;
                }

                +form {
                    scale: 1;
                    opacity: 1;
                    height: 2.75rem;
                    margin-top: .75rem;
                }
            }

            svg {
                transition: .3s ease;
            }
        }

        form {
            display: flex;
            width: 100%;
            margin-top: 0;
            gap: .5rem;
            transition: .3s ease;
            scale: 0;
            height: 0;
            opacity: 0;

            .cart__popup__footer__promo__input__container {
                flex: 3;

                input {
                    height: 100%;

                    &:focus,
                    &.filled {
                        +label {
                            translate: -3px -20px;
                        }
                    }
                }
            }

            button {
                height: 100%;
                flex: 1;
            }
        }
    }
}

.cart__popup__footer__summary__price,
.cart__popup__footer__total__price,
.checkout__payment__summary__price,
.checkout__payment__summary__total__price {
    display: flex;
    justify-content: space-between;
}

.cart__popup__footer__valid__btn {
    margin-top: 1.25rem;

    &.sold__out {
        opacity: .65;
        cursor: not-allowed;
        color: white;
        pointer-events: none;
        background-color: var(--accent-color);
    }
}

.cart__popup__footer__checked__cart__container {
    width: 100%;
    margin: 1.25rem 0 .5rem;
    text-align: center;
}

.cart__popup__checkout__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;

    #express__checkout__element {
        width: 100%;
    }
}

.cart__popup__footer__promo__submit__button {
    padding: 0.5rem;
}

/* 
    MARK: Cart Added Announcement
*/

.cart__added__announcement__popup__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    position: fixed;
    top: calc(var(--header-height) + 1px);
    right: 0;
    z-index: -1;
    opacity: 0;
    min-width: calc(100vw / 3);
    transition: opacity var(--transition-duration-popup) ease-in-out;

    &.open {
        z-index: 999;
        opacity: 1;
    }

    .cart__added__announcement__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;

        .cart__added__announcement__popup__title {
            font-size: 1.2rem;
            font-weight: 500;
        }

        .cart__added__announcement__popup__xmark {
            height: 2.5rem;
            width: auto;
            aspect-ratio: 1 / 1;

            svg {
                height: 100%;
                width: 100%;
                padding: .5rem;
            }
        }
    }

}

.cart__added__announcement__popup {
    display: flex;
    flex-direction: column;
    padding-top: 2.5rem;
    gap: 1.5rem;

    .cart__added__popup__product {
        display: flex;
        align-items: center;
        gap: 1rem;

        .cart__added__popup__product__img__container {
            width: auto;
            height: 7.5rem;
            position: relative;
            background: url("../../assets/product-card-gradients/gradient_default.svg") 0 0/cover no-repeat;
        }

        .cart__added__popup__product__img {
            width: auto;
            height: 100%;
            object-fit: contain;
        }

        .cart__added__popup__product__infos__container {
            display: flex;
            flex-direction: column;
            gap: .25rem;

            .cart__added__popup__product__price {
                font-size: .9rem;
                font-weight: 400;
                color: var(--text-color3);
            }
        }

    }

    .cart__added__popup__footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 
    MARK: Checkout Popup
*/

.checkout__payment__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout__payment__summary {
    display: flex;
    flex-direction: column;
    /* border-block: 1px solid var(--border-color); */

    &.open {
        .checkout__payment__summary__header__wrapper {
            svg {
                transform: rotate(-180deg);
            }
        }

        .checkout__payment__summary__content {
            display: flex;
            border-bottom: 1px solid var(--border-color);
        }
    }
}

.checkout__payment__summary__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;

    .checkout__payment__summary__header__wrapper {
        display: flex;
        align-items: center;
        gap: .5rem;
        font-size: 1.1rem;

        svg {
            transition: .2s ease;
        }
    }

    .checkout__payment__summary__header__total {
        font-weight: 500;
        font-size: 1.1rem;
    }
}

.checkout__payment__summary__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    display: none;
    padding-block: 1rem;

    .checkout__payment__articles__list {
        .checkout__payment__article__container {
            cursor: auto;
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
        }

        li {
            &:first-of-type {
                .checkout__payment__article__container {
                    padding-top: 0;
                }
            }
        }

        .checkout__payment__article__image__container {
            flex-shrink: 0;
            width: auto;
            height: 5rem;
            overflow: hidden;
            border-radius: var(--squared-border-radius);
            position: relative;
        }

        .checkout__payment__article__image {
            width: auto;
            height: 100%;
            object-fit: contain;
        }

        .checkout__payment__article__info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: .25rem;
        }

        .checkout__payment__article__title {
            font-weight: 500;
            color: var(--text-color);
        }

        .checkout__payment__article__price {
            font-size: .9rem;
            font-weight: 400;
            color: var(--text-color3);
        }
    }

    .checkout__payment__summary__total__price {
        font-weight: 500;
    }
}

.checkout__payment__form__control {
    display: flex;
    flex-direction: column;
    gap: .5rem;

    .checkout__payment__form__control__label {
        display: flex;
        flex-direction: column;

        h2 {
            font-size: 1.1rem;
            font-weight: 500;
        }

        p {
            font-size: .9rem;
            font-weight: 400;
            color: var(--text-color3);
        }
    }

}

.checkout__payment__form__control .checkout__element {
    display: flex;
    flex-direction: column;
    padding-block: .5rem;
}

.checkout__popup__btn {
    position: relative;

    &.sold__out {
        opacity: .65;
        cursor: not-allowed;
        color: white;
        pointer-events: none;
        background-color: var(--accent-color);
    }
}

@media screen and (min-width: 1028px) {
    .lg\:hidden {
        display: none !important;
    }
}

@media screen and (max-width: 1028px) {
    :root {
        --header-height: 5rem;
    }

    .sm\:hidden {
        display: none !important;
    }

    .header__menu {
        gap: 1rem;
    }

    .header__menu__button {
        padding: 0;

        & .header__item__badge {
            height: 1.2rem;
            top: -0.4rem;
            right: -0.4rem;
        }

        &:hover {
            background-color: transparent;
        }

    }

    .hamburger__menu,
    .hamburger__menu__container {
        width: 100vw;
        min-width: 100vw;
        background-color: var(--primary-color);

        .hamburger__menu__item {
            & .hamburger__menu__item__arrow {
                opacity: unset;
                translate: 0;
            }
        }
    }

    .account__popup__content__list__item {
        svg {
            opacity: unset !important;
            translate: 0 !important;
        }
    }


    .hamburger__menu__container {
        --hamburger-menu: 0;

        [dir="ltr"] & {
            translate: calc(var(--hamburger-menu) * -100%);
        }

        [dir="rtl"] & {
            translate: calc(var(--hamburger-menu) * 100%);
        }
    }

    .header__logo__title {
        font-size: xx-large;
    }

    .cart__added__announcement__popup__container {
        min-width: calc(100vw / 2);
        top: 50%;
        left: 50%;
        right: unset;
        translate: -50% -50%;
        border-radius: var(--squared-border-radius);
    }
}

@media screen and (max-width: 480px) {
    :root {
        --header-height: 3.5rem;
    }

    .sl\:hidden {
        display: none !important;
    }

    .hamburger__menu,
    .hamburger__menu__container {
        top: var(--all-header-height);
        padding-top: 0;
    }

    .hamburger__menu__container {
        height: calc(100dvh - var(--all-header-height));

        .hamburger__menu__links {
            padding: var(--annoucement-headbar-height) var(--h-gap2);
        }
    }

    .hamburger__menu__item__arrow {
        opacity: 1 !important;
    }

    .header__logo__title {
        font-size: 24px;
        font-weight: 400;
    }

    .popup__container {
        width: 100%;
    }

    /*.popup__container__function {
        margin-top: calc(var(--header-height) / 1.375);
    }*/

    .popup__container__content {
        padding-top: 0;
        padding-bottom: calc(var(--header-height) / 1.375);
    }

    .popup__container__function {
        padding-top: calc((var(--header-height) / 1.375) + 3rem);
    }

    .cart__popup__article__footer__container {
        padding-right: 0;
    }

    .cart__popup__article {
        gap: .5rem;
    }

    .home__collections__carousel {
        height: calc(90vh - var(--header-height) - var(--annoucement-headbar-height)) !important;
    }

    .cart__added__announcement__popup__container {
        min-width: 100vw;
        width: 100vw;
        padding: 1.5rem var(--h-gap2);
        top: unset;
        bottom: 0;
        left: 0;
        right: 0;
        translate: 0 100%;
        opacity: 1;
        z-index: 999;
        border-radius: none;
        border-top-left-radius: var(--squared-border-radius);
        border-top-right-radius: var(--squared-border-radius);
        transition: var(--transition-duration-popup) ease-in-out;

        &.open {
            translate: 0;
        }

        .cart__added__announcement__popup {
            padding-top: 2rem;
        }
    }

    .search__action__btn {
        padding: .35rem .65rem;
    }

    .carousel__img {
        padding: 3rem 0;
    }
}