.header {
    height: fit-content;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
}

.header-block {
    /* height: 81px; */
    width: 100%;
    margin: 0 8%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    /* margin-top: 50px;
    margin-bottom: 20px; */
}

.header-nav-block {
    height: 100%;
    display: flex;
    align-items:center;
    cursor: pointer;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    /* margin-right: calc(30px * 1.33); */
}

.header-nav-right {
    display: flex;
    margin-left: auto;
    /* margin-right: 55px; */
}

.header-nav-element {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 14px;
    position: relative;
}

.header-nav-element-img {
    position: relative;
    height: calc(0.5vw + 14px);
}

.setup-theme-img {
    height: calc(0.5vw + 14px);
}

.header-cart-length {
    display: flex;
    background-color: var(--accent-color);
    width: calc(0.5vw + 10px);
    height: calc(0.5vw + 10px);
    position: absolute;
    bottom: -4px;
    right: -6px;
    color: var(--text-color);
    font-size: calc(0.5vw + 8px);
    border-radius: 15px;
    justify-content: center;
    opacity: 0%;
}

.switch-theme {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    margin-left: 10px;
    /* visibility: hidden; */
}

.header-nav-logo {
    margin-right: 88px;
    cursor: pointer;
}

.header-nav-name {
    color: var(--text-color);
    display: flex;
}

.header-nav-m-name {
    color: var(--text-color);
    display: flex;
}

.header-nav-m-button {
    height: 40px;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 0;
    width: 100%;
}

.header-nav-elements {
    display: flex;
    align-content: space-between;
    gap: calc(20px * 1.33);
    /* margin-bottom: 20px; */
    width: auto;
}

.header-login {
    display: flex;
    /* margin-top: 33px;   */
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.header-login-button {
    /* width: calc(80px * 1.33);
    height: calc(54px * 1.33);
    background: var(--text-color); */
    background: none;
}

.header-nav-element-button {
    background: none;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    font-size: calc(0.5vw + 10px);
}

.header-login-button:active {
    -webkit-box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
     -moz-box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
          box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.3);
    outline: none;
}

.header-windows {
    position: fixed;
    top: 68px;
    right: 8%;
    width: fit-content;
    overflow: auto;
    display: flex;
    flex-direction: row;
    z-index: 100;
    gap: 10px;
}

.header-nav-m-full {
    width: 200px;
    height: fit-content;
    overflow: auto;
    background-color: var(--minicart-background);
    padding: 20px;
    display: none;
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
}

.header-nav-elements-m {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    align-items: center;
    gap: 10px;
    /*margin-bottom: 20px;*/
    margin: 0;
    width: auto;
}

.header-nav-element-m-img {
    height: calc(0.5vw + 14px);
}

#header-nav-element-m-login-img {
    height: calc(0.5vw + 16px);
}

.header-nav-block-m {
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 40px;
}

.header-nav-m-elem {
    height: calc(0.5vw + 14px);
}

#header-m-open-black {
    display: none;
}

#header-m-close-white {
    display: none;
}

@media (max-width: 640px) {

    .header-block {
        /* margin-top: 15px; */
    }

    .header-nav-m-full {
        position: fixed;
        top: 0;
        right: 0;
        padding: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background-color);
        opacity: 1;
    }

    #header-nav-m-buy-name {
        font-size: calc(0.5vw + 20px);
    }

    .header-nav-element-m-img {
        height: calc(0.5vw + 20px);
    }

    #header-nav-element-m-login-img {
        height: calc(0.5vw + 22px);
    }

    .header-cart-length {
        width: calc(0.5vw + 14px);
        height: calc(0.5vw + 14px);
        font-size: calc(0.5vw + 12px);
    }
    
    .header-nav-m-name {
        color: var(--text-color);
        font-size: calc(0.5vw + 14px);
    }
    
    .header-nav-m-button {
        background-color: var(--background-color);
    }

    .header-nav-elements-m {
        margin-top: 80px;
    }

    #header-m-close-black {
        display: block;
    }

    #header-m-close-white {
        display: none;
    }

}

@media (max-width: 800px) {
    .header-nav-elements {
        display: none;
    }
    .header-nav-right {
        display: none;
    }
    .header-m {
        z-index: 150;
    }
}