.catalog-mobile-header {
  display: none;
}

@media (max-width: 900px) {
  .catalog-mobile-header {
    position: sticky;
    z-index: 900;
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 96px;
    align-items: center;
    gap: 7px;
    padding: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #eeeeee;
    backdrop-filter: blur(8px);
  }

  .mobile-brand {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .mobile-brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
  }

  .mobile-search {
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7dce2;
    border-radius: 8px;
  }

  .mobile-search input {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
    font: inherit;
    font-size: 0.78rem;
  }

  .mobile-search input::placeholder {
    color: #9ca3af;
  }

  .mobile-search-submit {
    width: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-right: 1px solid #eeeeee;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
  }

  .mobile-search-submit svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  .mobile-search-modes {
    height: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #ffffff;
  }

  .mobile-search-mode {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-search-mode + .mobile-search-mode {
    border-right: 1px solid #eeeeee;
  }

  .mobile-search-mode.is-active {
    background: #e83f73;
    color: #ffffff;
  }

  .mobile-search-mode.is-disabled {
    cursor: default;
  }
}

@media (max-width: 360px) {
  .catalog-mobile-header {
    grid-template-columns: 38px minmax(0, 1fr) 84px;
    gap: 5px;
    padding-inline: 6px;
  }

  .mobile-brand,
  .mobile-brand-mark {
    width: 36px;
    height: 36px;
  }

  .mobile-search,
  .mobile-search-modes {
    height: 38px;
  }

  .mobile-search-mode {
    font-size: 0.59rem;
  }
}
