/* Mobile width, navigation and search fixes */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  .store-main,
  .category-store,
  .category-layout,
  .category-results,
  .filter-sidebar,
  .product-grid,
  .store-footer {
    min-width: 0;
    max-width: 100%;
  }

  .filter-list {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .catalog-controls {
    min-width: 0;
    flex-wrap: wrap;
  }

  .category-store .category-heading,
  .category-store .category-heading > div {
    min-width: 0;
  }

  .category-store .category-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-store .filter-sidebar form,
  .category-store .price-inputs {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .category-store .price-inputs input,
  .category-store .filter-sidebar select {
    min-width: 0;
    max-width: 100%;
  }

  .category-store .category-results-bar {
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-store .category-results-bar select {
    max-width: 52vw;
  }

  .category-store .product-grid .product-card,
  .category-store .product-grid .product-name {
    min-width: 0;
  }

  .category-store .product-name h3 {
    overflow-wrap: anywhere;
  }

  .category-store .category-heading h1,
  .category-store .category-heading p {
    overflow-wrap: anywhere;
  }

  .category-store .filter-sidebar fieldset:first-of-type {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    overflow: visible;
  }

  .category-store .side-category {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .store-header {
    grid-template-rows: auto auto;
    align-items: center;
    overflow: visible;
  }

  .store-header .header-actions {
    min-width: 0;
    align-items: center;
    gap: 9px;
  }

  .store-header .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    line-height: 0;
    box-sizing: border-box;
  }

  .store-header .mobile-nav-toggle svg {
    display: block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    margin: 0;
  }

  .store-header .cart-button {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    box-sizing: border-box;
  }

  .store-header .header-search {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-row: 2;
    grid-column: 1 / -1;
    align-content: start;
    gap: 0 9px;
    width: 100%;
    height: auto;
    min-height: 42px;
    margin: 0;
    padding: 0 13px;
    overflow: visible;
    border-radius: 14px;
  }

  .store-header .header-search > svg {
    align-self: center;
  }

  .store-header .header-search > input[type="search"] {
    min-width: 0;
    height: 42px;
  }

  .store-header .search-suggestions {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-height: min(44dvh, 340px);
    margin: 2px 0 0;
    padding: 6px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-top: 1px solid #e9eee4;
    border-radius: 0 0 13px 13px;
    background: #fffffffa;
    box-shadow: none;
  }

  .store-header .search-suggestions[hidden] {
    display: none;
  }

  .store-header .search-suggestion {
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 9px;
    padding: 7px;
  }

  .store-header .search-suggestion img {
    width: 44px;
    height: 44px;
  }

  .store-header .search-suggestion b {
    font-size: 14px;
    line-height: 1.3;
  }

  .store-header .search-suggestion small {
    font-size: 12px;
  }

  .store-header .search-all,
  .store-header .suggest-empty {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .store-header {
    padding-inline: 12px;
    column-gap: 8px;
  }

  .store-header .header-actions {
    gap: 7px;
  }

  .store-header .mobile-nav-toggle,
  .store-header .cart-button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}
