﻿/* HEADER START */

.header {
    padding: 32px 0 16px 0;  
    background-color: #fff;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    justify-content: center;
    z-index: 1000;
}

.header.open-menu {
    /*position: absolute;*/
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #fff;
    isolation: isolate;
}

.header.open-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #fff;
    z-index: -1;
}
.header__top {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap:16px;
}
.header__top-left {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap:16px;
}
.header__top-right {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    gap:16px;
}
.header__logo {
    min-width: 350px;
}
.header__logo-link {
    
}
.header__form {
    width: 100%;   
}
.header__search {
    width: 100%;
    max-width: 520px;
    position: relative;
}
.header__search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    padding: 0;
    background-color: transparent;
    background-image: url('../../img/search_icon.svg');
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    opacity: .55;
    transition: opacity .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.header__search--ready .header__search-btn {
    opacity: 1;
    background-color: #fdd525;
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(0,0,0,.08);
}
.text-input {

}
.header__search-input {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border:solid 1px #000;
    padding-left: 20px;
    padding-right: 56px;
    font-size: 16px;
    font-weight: 400;
}
.header__social {
}
.header__social-list {
    display: flex;
    gap:16px;
}
.header__social-link {
    display: block;
    width: 32px;
}
.header__basket {
    
}
.header__basket-link {
    display: block;
    width: 24px;
    position: relative;
}
.header__basket-link span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    position: absolute;
    top: -6px;
    right: -8px;
    border: solid 1px #000;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    background-color: #fff;
    text-decoration: none;
    text-align: center;
}
.header__phone {
    
}
.header__phone img {
    width: 24px;
}
.header__phone-link {
    display: flex;
    align-items: center;
    color:#000;
    font-size: 20px; /*20px*/
    text-decoration: none;
}
.header__action {
}
.header__btn {
    padding: 17px 67px;
    font-weight: 500;
}
.header__mobile-btn {
    display: none;    
}
.header__burger {
    background-image: url('../../img/burger_icon.svg');
    background-position: center;
    background-repeat: no-repeat;
    width: 70px;
    height: 40px;
}
.header__bottom {
    display: flex;
    gap:48px;
    margin-top: 16px;
}
.header__catalog {
    display: flex;
    position: relative;
}
.header__catalog-btn {
    position: relative;
    display: block;
    width: 165px;
    height: 56px;
    padding-left: 40px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
}
.header__catalog-btn::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('../../img/burger_icon.svg');
    position: absolute;
    left:24px;
    top:16px;
}
.header__catalog-submenu,
.header__nav-submenu {
    display: none;
    position: absolute;
    left:0;
    top:calc(100% + 16px);
    border-radius: 16px;
    padding: 48px 24px 88px 24px;
    background: rgba(41, 40, 38, 0.80);
    backdrop-filter: blur(15px);
    z-index: 5;
}
.header__catalog-submenu.open-catalog-menu {
    display: block;
}
.header__catalog-wrapper {
    display: flex;
    gap:48px;
}
.header__catalog-all {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.header__catalog-all:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}
.header__catalog-col {
}
.header__catalog-col hr {
    margin-top: 8px;
    margin-bottom: 8px;
}
.header__catalog-title {
    color:#fff;
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.header__catalog-title-link {
    text-decoration: none;
    display: inline-block;
}
.header__catalog-list,
.header__nav-submenu-list {
    padding-right: 30px;
}
.header__catalog-item {
    margin-bottom: 8px;
}
.header__catalog-item:last-of-type {
    margin-bottom: 0;
}
.header__catalog-link,
.header__nav-submenu-link {
    color:#fff;
    font-size: 20px;
    font-weight: 400;
    white-space: nowrap;
    width: 100%;
    display: block;
    position: relative;
    text-decoration: none;
}
.header__catalog-link::after,
.header__nav-submenu-link::after {
    content:'';
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    top:4px;
    right: -30px;
    background-image: url('../../img/small-arrow-right.svg');
    background-position: center;
    background-repeat: no-repeat;
}
.header__nav {
    display: flex;
    align-items: center;
}
.header__nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:48px;
}
.header__nav-item {
    position: relative;
    padding-bottom: 16px;
    padding-top: 16px;
}
.header__nav-item:has(.header__nav-submenu) .header__nav-link{
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding-right: 28px;
}
.header__nav-item:has(.header__nav-submenu) .header__nav-link:after{
    content:'';
    display: block;
    width: 9px;
    height: 9px;
    position: absolute;
    right: 8px;
    top: 50%;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease, color .2s ease;
}
.header__nav-item:has(.header__nav-submenu):hover .header__nav-link:after{
    transform: translateY(-35%) rotate(-135deg);
}
.header__nav-link {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color:#000;
    text-decoration: none;
}
.header__nav-link:hover {
    color:var(--yellow);
}
.header__nav-submenu {
    display: none;
    position: absolute;
    left:0;
    top:100%;
    padding: 24px;
    min-width: 240px;
}
.header__nav-item:hover .header__nav-submenu {
    display: block;
}
.header__nav-submenu-list {
    display: flex;
    flex-direction: column;
}
.header__nav-submenu-item {
    margin-bottom: 8px;
}
.header__nav-submenu-item:last-of-type {
    margin-bottom: 0;
}
.header__nav-submenu-link {
}
.header__logo-image-desktop {

}
.header__logo-image-mobile {
    display: none;
}
.header__mobile-actions {
    display: none;
}

/* HEADER END */

