/* СантехМир v379: мобильная шапка 320–425 px.
   Первая строка: логотип | поиск | бургер. Вторая: телефоны | быстрые действия. */
@media (min-width: 320px) and (max-width: 425px) {
  html body header.appbar > .container {
    position: relative !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand search burger"
      "phone phone actions"
      "nav nav nav" !important;
    align-items: center !important;
    gap: 6px 2px !important;
    padding: 7px 8px 7px 4px !important;
  }

  html body header.appbar .navbar-brand {
    grid-area: brand !important;
    justify-self: start !important;
    margin: 0 !important;
    transform: translateX(-3px) !important;
  }

  html body header.appbar .navbar-brand img {
    width: clamp(76px, 22vw, 90px) !important;
    max-height: 52px !important;
  }

  html body header.appbar .mobile-stack {
    display: contents !important;
  }

  html body header.appbar .mobile-stack > .search {
    grid-area: search !important;
    align-self: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body header.appbar .search-modern__input {
    min-height: 38px !important;
    height: 38px !important;
    padding-left: 11px !important;
    padding-right: 38px !important;
    font-size: .82rem !important;
  }

  html body header.appbar #burgerBtn {
    grid-area: burger !important;
    justify-self: end !important;
    align-self: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
  }

  html body header.appbar .mobile-stack > .Phone {
    grid-area: phone !important;
    box-sizing: border-box !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-right: 0 !important;
  }

  html body header.appbar .header-quick-actions {
    grid-area: actions !important;
    position: static !important;
    inset: auto !important;
    z-index: 50 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
    transform: none !important;
  }

  html body header.appbar .header-quick-actions > .email-btn,
  html body header.appbar .header-quick-actions > .product-cell__actions,
  html body header.appbar .header-quick-actions > .header-cart {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    flex: 0 0 36px !important;
  }
}

@media (max-width: 360px) {
  html body header.appbar > .container {
    padding-left: 3px !important;
    padding-right: 6px !important;
    column-gap: 2px !important;
  }

  html body header.appbar .navbar-brand img {
    width: 72px !important;
  }

  html body header.appbar .search-modern__input {
    font-size: .76rem !important;
    padding-left: 9px !important;
    padding-right: 35px !important;
  }
}
