/* Phone-first catalog layout. Desktop and tablet rules stay in the main catalog stylesheet. */
@media (max-width: 650px) {
  .catalog {
    padding: 46px 16px 66px;
  }

  .catalog .section-title {
    gap: 8px;
    margin-bottom: 25px;
  }

  .catalog .section-title h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .catalog .section-title > p {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.8;
  }

  .catalog-layout {
    gap: 21px;
  }

  .category-panel {
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 0;
  }

  .category-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
  }

  .category-panel-head .eyebrow,
  .category-panel-head span {
    display: none;
  }

  .category-panel-head h3 {
    font-size: 17px;
    margin: 0;
  }

  .category-panel .category-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 8px;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .category-panel .category-filters button {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid var(--line);
    background: #fffaf5;
    border-radius: 999px;
    gap: 6px;
    justify-content: center;
    white-space: normal;
  }

  .category-panel .category-filters button span {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category-panel .category-filters button i {
    width: 15px;
    height: 15px;
  }

  .category-panel .category-filters button em {
    display: none;
  }

  .catalog-results .results-toolbar {
    gap: 14px;
    margin-bottom: 17px;
  }

  .catalog .results-summary .eyebrow {
    display: none;
  }

  .catalog .results-summary strong {
    font-size: 19px;
    margin-left: 7px;
  }

  .catalog .results-summary > span {
    font-size: 10px;
  }

  .catalog .results-toolbar .toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
  }

  .catalog .results-toolbar .search,
  .catalog .results-toolbar .sort-select {
    height: 42px;
    min-width: 0;
  }

  .catalog .results-toolbar .search {
    padding: 0 11px;
  }

  .catalog .results-toolbar .sort-select {
    padding: 0 9px;
  }

  .catalog .results-toolbar .search input,
  .catalog .results-toolbar .sort-select {
    font-size: 11px;
  }

  .catalog-results .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog .product-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch;
  }

  .catalog .product-image {
    height: auto;
    min-height: 118px;
    aspect-ratio: auto;
  }

  .catalog .product-image img {
    padding: 8px;
  }

  .catalog .badge {
    top: 8px;
    right: 8px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .catalog .product-info {
    padding: 12px 13px;
  }

  .catalog .product-info .meta {
    gap: 5px;
    margin-bottom: 6px;
    font-size: 10px;
    overflow: hidden;
    white-space: nowrap;
  }

  .catalog .product-info .meta span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog .product-info h3 {
    display: -webkit-box;
    min-height: 0;
    margin-bottom: 8px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog .product-info p {
    display: none;
  }

  .catalog .buy {
    gap: 6px;
    padding-top: 8px;
  }

  .catalog .buy strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .catalog .buy button {
    min-width: 48px;
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .catalog .load-more {
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 350px) {
  .catalog .results-toolbar .toolbar {
    grid-template-columns: 1fr;
  }

  .catalog .results-toolbar .sort-select {
    width: 100%;
  }

  .catalog .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}
