@media (max-width: 768px) {
  /* === ФОРМА ПОИСКА — отступы === */
  #product-search {
    padding-left: 15px;
    padding-right: 15px;
  }
  #product-search .row {
    margin-left: 0;
    margin-right: 0;
  }
  #product-search .row .col-sm-4,
  #product-search .row .col-sm-3 {
    padding-left: 0;
    padding-right: 0;
  }

  /* === ТАБЛИЦА → КАРТОЧКИ === */
table.globalCase,
table.globalResult,
.searchHistoryFull table {
  border:0px!important;
}

  table.globalResult,
  table.globalResult thead,
  table.globalResult tbody,
  table.globalResult th,
  table.globalResult td,
  table.globalResult tr {
    display: block;
    width: 100% !important;
  }
  table.globalResult thead {
    display: none !important;
  }
  table.globalResult tbody tr.resultTr2 {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    height: auto !important;
  }
  table.globalResult tbody td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 8px 0 !important;
    font-size: 14px;
    min-height: 36px;
    text-align: left !important;
  }
  table.globalResult tbody td:last-child {
    border-bottom: none !important;
  }

  /* Labels */
  table.globalResult tbody td:nth-child(1)::before { content: 'Бренд'; font-weight: 600; color: #888; }
  table.globalResult tbody td:nth-child(2)::before { content: 'Код'; font-weight: 600; color: #888; }
  table.globalResult tbody td:nth-child(3)::before { content: 'Описание'; font-weight: 600; color: #888; }
  table.globalResult tbody td:nth-child(4)::before { content: 'Поставщик'; font-weight: 600; color: #888; }
  table.globalResult tbody td:nth-child(5)::before { content: 'Доставка'; font-weight: 600; color: #888; }
  table.globalResult tbody td:nth-child(6)::before { content: 'Цена'; font-weight: 600; color: #888; }

  /* === ЦЕНА + КНОПКА — в одну строку === */
  table.globalResult tbody td:last-child {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    gap: 0;
  }
  table.globalResult tbody td:last-child::before {
    display: none;
  }
  table.globalResult tbody td:last-child div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  /* Цена — выровнена по базовой линии */
  table.globalResult tbody td:last-child div a.brandInfoLink,
  table.globalResult tbody td:last-child div span {
    font-size: 15px !important;
    font-weight: 600;
    color: #333;
    line-height: 1;
    margin: 0px 0 0px!important;
  }
  /* Кнопка КУПИТЬ — КОМПАКТНАЯ + иконка и текст в одну линию */
  table.globalResult tbody td:last-child div button,
  table.globalResult tbody td:last-child div .btn {
    width: auto !important;
    min-width: 75px !important;
    padding: 0px 10px !important;
    min-height: 28px !important;
    font-size: 12px !important;
    margin: 0 !important;
    flex-shrink: 0;
    line-height: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 4px !important;
  }

  /* === ФОРМА ПОИСКА === */
  #product-search h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  #product-search input[type="text"] {
    width: 100% !important;
    margin-bottom: 8px;
    min-height: 44px;
    font-size: 16px;
  }
  /* Чекбокс */
  #product-search .checkbox-inline {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
    padding-left: 0 !important;
  }
  #product-search .checkbox-inline input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 8px 0 0 !important;
    flex-shrink: 0 !important;
    position: static !important;
  }
  /* Кнопка ПОИСК */
  #product-search #button-search {
    width: 100% !important;
    min-height: 44px;
    font-size: 16px;
    margin-top: 8px;
  }
  /* Хлебные крошки */
  #product-search .breadcrumb {
    font-size: 12px;
    margin-bottom: 10px;
  }
}
