header {
    padding: 24px 0;
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    z-index: 100;

    /* position: fixed; */
    transform: translateX(-50%);

    & a,
    & p {
        color: #FFFFFF !important;
    }

    /* background: var(--gradient); */
    &>div {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        /* @media (min-width: 925px) {
            max-width: 1856px !important;
        } */
        & a {
            font-weight: 600;
        }

        & .header_nav>ul {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 16px;
            margin-right: auto;
            margin-left: auto;

            & a {
                font-size: 16px !important;
            }
        }

        & .header_right {
            display: flex;
            flex-direction: row;
            gap: 16px;

            & .flex {
                align-items: center;
                gap: 8px;
            }

            & div:has(+ a) {
                margin-bottom: 0 !important;
            }
        }
    }
}

.drop_down {
    width: max-content;

    &>div {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;

        &:first-child {
            cursor: pointer;
        }
    }

    .accord__card_title_arrow {
        margin-left: auto;
    }

    @media (min-width: 925px) {
        &:hover>div:first-child * {
            /* opacity: 1; */
            /* color: white !important; */
            /* transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1); */
        }

        /* &:hover .accord__card_title_arrow::before {
            rotate: 40deg;
        }
        
        &:hover .accord__card_title_arrow::after {
            rotate: 320deg;
        } */
        &:hover .accord__card_title_arrow {
            transform: rotate(180deg);
        }

        &:hover .drop_down_menu__container {
            opacity: 1;
            user-select: all;
            z-index: 1000;
            transition: opacity 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
        }
    }
}

.drop_down:hover {
    & .drop_down_menu__container {
        pointer-events: all;
    }
}

.drop_down_menu__container {
    min-width: 320px;
    opacity: 0;

    position: absolute;
    padding-top: 20px;
    top: 100%;
    left: 0%;

    user-select: none;
    pointer-events: none;
    z-index: -2;

    @media (max-width: 925px) {
        &.open {
            opacity: 1;
            user-select: all;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
            max-height: 10000px;

            padding-top: 12px;
        }
    }
}

.drop_down_menu {
    width: 100%;
    background-color: black;
    padding: 12px;
    border-radius: var(--brad_1);
    /* min-width: 340px; */
    /* border: 1px solid var(--accent1); */
    max-height: 320px;
    overflow-y: auto;

    &::-webkit-scrollbar {
        width: 4px;
    }

    &::-webkit-scrollbar-track {
        background-color: white;
    }

    &::-webkit-scrollbar-thumb {}

    & li:not(:last-child) {
        margin-bottom: 18px;
    }
}

@media (min-width: 925px) {
    .header_nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;

        & a {
            font-size: 16px !important;
        }

        & .btn_accent1 {
            padding: 14px 20px !important;
            font-size: 14px !important;
        }

        &>ul {
            /* margin-left: auto; */
            /* margin-right: auto; */
        }
    }
}

@media (max-width: 925px) {
    header {
        & .drop_down_menu__container {
            & .drop_down_menu {
                max-height: 0px !important;
            }

            &.open .drop_down_menu {
                max-height: 10000px !important;
            }
        }
    }

    header:has(.header_nav_open) {
        z-index: 10000;
    }

    .header_nav {

        /* max-width: 100% !important; */
        &>div {
            border-top: 1px solid var(--accent1);
            z-index: 110;
            padding-bottom: 134px;

            &>* {
                margin-top: 24px;
            }
        }

        & .drop_down {
            width: 100%;
        }
    }

    header>a:last-child {
        display: none;
    }

    .header_nav {
        z-index: 100;
        position: absolute;
        top: 0;
        left: 0;

        width: 100vw;
        height: 100vh;
        /* background: var(--white); */
        transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
        display: flex;
        flex-direction: column;
        /* justify-content: start; */
        justify-content: space-between;

        transform: translateX(-120%) translateY(84px);

        /* backdrop-filter: blur(24px); */
        background-color: black;
    }

    .header_nav>div {
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .header_nav>ul {
        width: 100%;
        padding: 24px 24px 0 24px;
        flex-direction: column !important;
        align-items: start !important;
        gap: 18px !important;
        overflow-y: auto;
        /* overflow-x: hidden; */
        margin-left: 0 !important;

        &::-webkit-scrollbar {
            width: 6px;
        }
    }

    .header_nav>ul a,
    .header_nav>ul p {
        font-weight: 500 !important;
        /* color: var(--textMain) !important; */
        font-size: 16px !important;
        /* color: black !important; */
    }

    .header_nav>a {
        /* display: inline-block !important;
        margin-top: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 52px;
        z-index: 90;
        max-width: 90%; */
        /* color: var(--textBtn) !important; */
        /* display: none !important; */
    }

    .header_nav_open {
        transform: translateX(-2.4%) translateY(84px);

        @media (max-width: 768px) {
            transform: translateX(-3.4%) translateY(84px);
        }
    }

    .header_cart,
    .header_profile {
        @media (max-width: 1024px) {
            display: none;
        }
    }

    .header_right {
        flex-direction: column !important;
        gap: 0 !important;

        &>a {
            flex-direction: row !important;

            & span {
                min-width: 20px;
            }
        }

        & .drop_down_menu {
            border: none;
        }
    }

    @media (max-width: 425px) {
        .header_nav>ul {
            /* margin-left: 18px !important; */
            padding: 18px 18px 0 18px !important;
        }

        .header_nav>div {
            padding-left: 18px;
            padding-right: 18px;
        }
    }
}

@media (max-width: 925px) {
    .drop_down_menu__container {
        position: relative;
        /* max-height: 0%; */
        padding-top: 0px;

        max-height: 0px;
        top: 0%;
    }

    .drop_down_menu {
        background-color: transparent;
        padding: 0px;
        border-top: unset;
        min-width: unset;

        max-height: 10000px;
        padding-left: 12px;
    }
}

header {
    & .accord__card_title_arrow {
        opacity: 1 !important;
        transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
    }

    & .accord__card_title_arrow::before,
    & .accord__card_title_arrow::after {
        content: none !important;
    }

    & .accord__card_title_arrow {
        background-color: transparent !important;
        background-image: url(/assets/arrowDownn.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        max-width: 10px;
        min-width: 10px;
    }
}

.header_language,
.header_currency {
    & .drop_down_menu {
        padding: 16px;

        a {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;

            p {
                transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
            }

            &:hover p {
                /* color: white !important; */
            }
        }
    }
}

.header_language {
    & .drop_down_menu {
        & div:has(img) {
            /* border-radius: 100px; */
            overflow: hidden;
            width: 24px;
            height: 24px;
            /* height: 20px; */
        }
    }

    &>div:first-child>.accord__card_title_arrow:has(> svg) {
        background-color: unset;
        max-height: unset;
        min-height: unset;
        max-width: 10px;
        min-width: 10px;

        &::before,
        &::after {
            content: none;
        }
    }
}

.header_top {
    overflow: hidden;
    background-color: black;
    padding: 12px 0;

    & .header_top_scroll_track {
        display: flex;
        flex-direction: row;
        align-items: center;
        --gap: 80px;
        gap: var(--gap);

        @media (max-width: 768px) {
            --gap: 32px;

            & p::after {
                right: -21px !important;
            }
        }

        & p {
            min-width: max-content;
            font-size: 14px;
            color: white !important;

            & a {
                color: white !important;
                font-size: 14px;
                text-decoration: underline;
            }

            &::after {
                content: "";
                background-image: url(/assets/arrowStroke.svg);
                width: 10px;
                height: 8px;
                position: absolute;
                right: -45px;
                top: 50%;
                transform: translateY(-50%);
            }
        }
    }
}

.input {
    @media (min-width: 925px) {
        max-width: 200px;
    }

    & input {
        padding: 10px 16px;
        padding-right: 42px !important;
        border-radius: 100px !important;
        font-size: 14px !important;
        background-color: #191919 !important;
        font-weight: 600;
        /* border: 1px solid #D7E7FF; */
        color: white !important;
    }

    & button {
        background: transparent !important;
        background-color: transparent !important;
    }
}