.header {
}

.header__section {
    background-color: #eff1f6;
    border-bottom: unset;
    border-top: 1px solid #eff1f6;
    box-shadow: 0 4px 4px 0 rgb(0 0 0 / 25%);
}


.header__section {
    .base-dropdown,
    .base-button {
        color: #2F1489;
        border-color: #2F1489;
    }
}

.header__section-secondary {
    background-color: #eff1f6;
    border-top: unset;
    box-shadow: unset;
}

.header__section-secondary .header__navigation-item, .header__section-secondary .header__phone-item, .header__section-secondary .header__phone-icon {
    color: #2F1489;
}


.header__section-secondary .header__navigation-item:hover, .header__section-secondary .header__phone-item:hover, .header__section-secondary .header__phone-icon:hover {
    color: #331b81;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    gap: 8px;
}

.header__column {
    display: flex;
    gap: 8px;
    flex-direction: row;
    align-items: center;
}

.header__logo {
    width: 100%;
    height: 100%;
}

.header__button {
    height: 100%;
}

.header__container-primary {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 0 15px;
    position: relative;
}

.header__info {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    display: grid;
    grid-template-columns: repeat(2, auto) 1fr 30px 30px auto;
}

.header__navigation {
    display: flex;
    gap: 12px;
}

.header__section-secondary--adaptive {
    display: none;
}

.header__navigation-item {
    color: #e4e7eb;
    font-size: 14px;
    transition: color 0.3s ease-in;
}

.header__navigation-item:hover {
    color: #fff;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__phone-icon {
    color: #e4e7eb;
    width: 18px;
    height: 18px;
    transition: color 0.3s ease-in;
}

.header__phone-item {
    color: #e4e7eb;
    font-size: 14px;
    transition: color 0.3s ease-in;
}

.header__phone:hover {
    .header__phone-icon {
        color: #2F1489;
    }

    .header__phone-item {
        color: #2F1489;
    }
}

.header__icon {
    color: #2f1489;
    transition: color 0.3s ease-in;
    cursor: pointer;
    width: 30px;
}

.header__icon-basket {

}

.header__search {
    width: 100%;
    
    .base-dropdown__input{
        color: #2F1489;
    }
    
    .base-dropdown__input:placholder {
        color: #2F1489;
    }
}

.header__mobile-menu {
    position: fixed;
    left: 0;
    width: 100%;
    height: calc(100vh - 57px);
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 20px 15px;
    z-index: 10;
    opacity: 0;
    display: none;
    pointer-events: none;
    overflow-y: auto;
}

.header__mobile-menu[aria-hidden="false"] {
    display: block;
    pointer-events: auto;
    transform: translateX(0);
    opacity: 1;
}


.header__mobile-menu-list {
    overflow-y: scroll;
    height: 100%;
}

.header__mobile-menu-link {
    display: block;
    padding: 6px 0;
    color: #212b36;
    font-size: 14px;
}

.header__mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #212b36;
    font-size: 14px;
}

.header__mobile-menu-phone-icon {
    color: #212b36;
}

.header__button-catalog {
    display: none;
}

.header__burger-menu {
    display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 180px);
      padding-bottom: 24px;

  background: #fff;
  z-index: 1000;
  overflow-y: auto;
  
    opacity: 0;
  transform: translateX(-100%);
  pointer-events: none; 
  transition: transform 0.3s ease, opacity 0.3s ease;

}

.header__burger-menu--open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: block;
  
    .views-element-container {
      overflow: hidden;
      overflow-y: scroll;
      height: calc(100% - 110px);
    }
  }
 .header__burger-menu--open .categories {
      display: block;
  }
  
  .header__burger-menu-title {
          padding: 6px 12px 0;
    font-size: 16px;
    font-weight: 600;
  }
@media (max-width: 1440px) {
    .header__container-primary {
        grid-template-columns: 150px 1fr;
    }
    
    .header__button {
        padding: 9px 12px;
        font-size: 12px;
    }
}

@media (max-width: 1023px) {
    
    .header__info {
        grid-template-columns: 30px repeat(2, auto) 1fr repeat(3, 30px);
    }
    .header__button-account {
        padding: 0;
        border: unset;
        grid-template-columns: 1fr;
        width: 30px;
        height: 30px;
    }
    
    .header__button-account .base-button__icon {
        width: 30px;
        height: 30px;
    }
    
    .header__button-account .base-button__text {
        display: none;
    }
}


@media (max-width: 840px) {
    .header__container-primary {
        grid-template-columns: 1fr;
           
        .header__button,
        .header__button-account,
        .header__logo-inner,
        .cart-wrapper,
        .header__icon,
        .header__button-login,

        .cart-button {
            display: none;
        }

    }
    
    .header__info {
        grid-template-columns:  30px 1fr;
    }
    .header__section-secondary--navigation {
        display: none;
    }

    .header__section-secondary--adaptive {
        display: block;
    }

    .header__container {
        padding: 0 15px;
    }
    
    .header__container-primary {
        padding: 15px;
    }
    
    .header__icon-basket {
        padding: 0;
    }

    .header__phone-icon {
        color: #212b36;
        width: 18px;
        height: 18px;
        transition: color 0.3s ease-in;
    }


    .header__logo {
        width: 150px;
    }
}

@media (max-width: 767px) {

    
    .header__button-catalog{
        display: block;
        color: #fff;
    }
}

@media (max-width: 576px) {
    .header__icon {
        width: 25px;
    }
    
        .header__logo {
        width: 120px;
    }
}
