/* ============================================================
   Autocatalog — modern UI skin
   ВСЁ строго ограничено областью #acat (уникальный контейнер
   компонента, оборачивает и каталог, и блок «Применяемость»
   в карточке товара). Никакие правила не выходят за #acat,
   поэтому остальная вёрстка сайта затронута быть не может.
   ============================================================ */

/* Ширину/отступы контента каталога НЕ задаём здесь: страница сидит в
   штатном контейнере темы .maxwidth-theme (как и шапка .header__top-part),
   поэтому левый/правый край совпадает с шапкой на всех разрешениях.
   .acatx-page оставлен как нейтральный маркер обёртки. */

/* =========================================================
   Хлебные крошки — классический вид ТОЛЬКО на странице автокаталога.
   Крошки рендерит тема (.breadcrumbs, вне #acat), общие для всего сайта,
   поэтому скоупим через body:has(.acatx-page) — правило срабатывает лишь
   на полной странице каталога (у неё есть .acatx-page) и НЕ трогает
   карточки товара (там #acat без .acatx-page) и прочие страницы сайта.
   Дефолт темы: каждый пункт — белая «таблетка» 10px с рамкой, разделитель
   невидимый (пробел). Делаем плоский текст со «/»-разделителем.
   ========================================================= */
body:has(.acatx-page) .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 2px 0 6px;
}
body:has(.acatx-page) .breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
body:has(.acatx-page) .breadcrumbs__item-name {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #7a828c;
  transition: color .15s ease;
}
body:has(.acatx-page) .breadcrumbs__link:hover .breadcrumbs__item-name {
  color: #ee151e;
}
/* текущая страница (последний пункт) — тёмная, не ссылка */
body:has(.acatx-page) .breadcrumbs__item.cat_last .breadcrumbs__item-name,
body:has(.acatx-page) .breadcrumbs__item:last-child .breadcrumbs__item-name {
  color: #1f2329;
  font-weight: 500;
}
/* разделитель «/» вместо невидимого пробела */
body:has(.acatx-page) .breadcrumbs__separator {
  width: auto;
  margin: 0;
  font-size: 0;
}
body:has(.acatx-page) .breadcrumbs__separator::after {
  content: "/";
  font-size: 13px;
  color: #c5cad1;
  padding: 0 9px;
}

#acat {
  --acatx-brand: #ee151e;
  --acatx-brand-d: #c8101a;
  --acatx-brand-soft: rgba(238, 21, 30, 0.08);
  --acatx-ink: #1f2329;
  --acatx-muted: #7a828c;
  --acatx-bd: #e6e8ec;
  --acatx-bd-strong: #d4d8de;
  --acatx-bg-soft: #f6f7f9;
  --acatx-radius: 14px;
  --acatx-radius-sm: 10px;
  --acatx-shadow: 0 6px 22px rgba(20, 24, 33, 0.10);
  --acatx-shadow-sm: 0 2px 8px rgba(20, 24, 33, 0.06);

  color: var(--acatx-ink);
  font-size: 14px;
  line-height: 1.45;
}

#acat *,
#acat *::before,
#acat *::after {
  box-sizing: border-box;
}

#acat a {
  color: var(--acatx-ink);
  text-decoration: none;
  transition: color .15s ease;
}
#acat a:hover {
  color: var(--acatx-brand);
}

/* ------- Поведенческие классы bootstrap (страховка) ------- */
#acat .d-none { display: none !important; }
#acat .collapse:not(.show) { display: none; }
#acat .collapse.show { display: block; }

/* =========================================================
   Поиск по каталогу (главный + внутри страниц)
   ========================================================= */
#acat .acatx-search,
#acat .search-form .input-group,
#acat #ac-search .input-group {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: nowrap;
}

#acat .form-control,
#acat #ac-search,
#acat #input-search {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--acatx-ink);
  background: #fff;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius-sm);
  box-shadow: var(--acatx-shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  margin: 0;
}
#acat .form-control::placeholder,
#acat #ac-search::placeholder,
#acat #input-search::placeholder { color: var(--acatx-muted); }

#acat .form-control:focus,
#acat #ac-search:focus,
#acat #input-search:focus,
#acat select:focus {
  outline: none;
  border-color: var(--acatx-brand);
  box-shadow: 0 0 0 3px var(--acatx-brand-soft);
}

/* кнопки поиска и любые .btn-outline-primary/-primary внутри каталога */
#acat .btn-outline-primary,
#acat .btn-primary,
#acat .acatx-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: var(--acatx-brand);
  border: 1px solid var(--acatx-brand);
  border-radius: var(--acatx-radius-sm);
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
#acat .btn-outline-primary:hover,
#acat .btn-primary:hover,
#acat .acatx-search button:hover {
  background: var(--acatx-brand-d);
  border-color: var(--acatx-brand-d);
  color: #fff;
}
#acat .btn-outline-primary:active,
#acat .acatx-search button:active { transform: translateY(1px); }

#acat .input-group-append { display: flex; }

/* фильтры (группы/марки/модели/серия/кузов/…) */
#acat .search-form form,
#acat #ac-models form.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 0 22px;
  padding: 0;
}
#acat #ac-models fieldset {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}
#acat #ac-models fieldset label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--acatx-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* единый вид всех select */
#acat select,
#acat .custom-select {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 14px;
  font-size: 14px;
  color: var(--acatx-ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a828c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius-sm);
  box-shadow: var(--acatx-shadow-sm);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#acat select:disabled,
#acat .custom-select:disabled {
  background-color: var(--acatx-bg-soft);
  color: var(--acatx-muted);
  cursor: not-allowed;
  opacity: 1;
}

/* nav_menu (alt-навигация списками) */
#acat .acatx-navbar { gap: 14px; }
#acat .acatx-navbar label {
  font-size: 12px;
  font-weight: 600;
  color: var(--acatx-muted);
}

/* =========================================================
   Карточки: группы / марки / модели
   ========================================================= */
#acat #ac-groups,
#acat #ac-marks,
#acat #ac-models > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
  justify-content: initial;
  margin-top: 4px;
}

#acat .card {
  width: auto !important;
  margin: 0 !important;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#acat .card:hover {
  border-color: var(--acatx-brand);
  box-shadow: var(--acatx-shadow) !important;
  transform: translateY(-3px);
}

#acat .card > a:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 10px;
  background: #fff;
}
#acat .card img {
  width: 100% !important;
  height: 88px !important;
  margin: 0 !important;
  object-fit: contain;
}
/* логотипы марок — чуть компактнее */
#acat #ac-marks .card img { height: 64px !important; }

#acat .card .card-footer,
#acat .card-footer {
  height: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px 14px;
  border-top: 1px solid var(--acatx-bd);
  background: var(--acatx-bg-soft);
  text-align: center;
}
#acat .card-text { padding: 0; }
#acat .card-footer a span,
#acat .card-footer a div {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--acatx-ink);
}
#acat .card-footer a:hover span,
#acat .card-footer a:hover div { color: var(--acatx-brand); }

#acat .badge {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--acatx-brand);
  background: var(--acatx-brand-soft);
  border-radius: 999px;
  white-space: normal;
}

/* =========================================================
   Дерево узлов (страница модели)
   ========================================================= */
#acat #ac-pictures {
  margin-top: 6px;
}
/* шапка модели */
#acat #ac-pictures > .d-flex {
  gap: 18px;
  padding: 16px;
  background: var(--acatx-bg-soft);
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius);
  color: var(--acatx-ink) !important;
}
#acat #ac-pictures .ac-model-img {
  width: 140px !important;
  height: 96px !important;
  object-fit: contain;
  border-radius: var(--acatx-radius-sm);
  background: #fff;
  border: 1px solid var(--acatx-bd);
  margin: 0 !important;
}
#acat #ac-pictures > .d-flex .ml-3 > div { font-size: 13.5px; margin: 2px 0; }

/* Внутренние списки заподлицо, единый внешний контейнер-карточка.
   Сбрасываем «карточные» стили generic-классов .list-group(-item) из темы Aspro
   (margin/border-radius/box-shadow), из-за которых строки выглядели как
   разрозненные плашки с серыми зазорами. */
#acat #ac-pictures .list-group {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#acat #ac-pictures .list-group.mt-2 {
  margin-top: 16px;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--acatx-shadow-sm);
}
#acat #ac-pictures .ac-subgroup,
#acat #ac-pictures .ac-picture { margin-left: 0; }

#acat #ac-pictures .list-group-item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--acatx-bd);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
#acat #ac-pictures > .list-group > .ac-group.list-group-item:first-child { border-top: 0; }
#acat #ac-pictures .list-group-item:hover { background: var(--acatx-bg-soft); }

/* уровень 1 — группа */
#acat #ac-pictures .ac-group.list-group-item { font-weight: 600; font-size: 15px; padding: 14px 16px; }

/* уровень 2 — подгруппа */
#acat #ac-pictures .ac-subgroup > .list-group-item {
  padding-left: 50px;
  background: var(--acatx-bg-soft);
  font-weight: 500;
}

/* уровень 3 — иллюстрация: ссылка кликабельна во всю строку */
#acat #ac-pictures .ac-picture > .list-group-item { padding: 0; background: #fff; }
#acat #ac-pictures .ac-picture > .list-group-item:hover { background: var(--acatx-brand-soft); }
#acat #ac-pictures .ac-picture > .list-group-item a {
  display: block;
  width: 100%;
  padding: 11px 16px 11px 74px;
  font-weight: 400;
  color: var(--acatx-ink);
}
#acat #ac-pictures .ac-picture > .list-group-item a:hover { color: var(--acatx-brand); }
/* буллет-маркер листовых ссылок */
#acat #ac-pictures .ac-picture > .list-group-item a::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 50%;
  margin-top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acatx-bd-strong);
  transition: background .12s ease;
}
#acat #ac-pictures .ac-picture > .list-group-item a:hover::before { background: var(--acatx-brand); }

/* иконка +/- */
#acat #ac-pictures .ac-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  border-radius: 6px;
  background: var(--acatx-brand-soft);
  flex: 0 0 auto;
  transition: background .12s ease;
}
#acat #ac-pictures .ac-icon.expanded { background: var(--acatx-brand); }
#acat #ac-pictures .ac-icon svg,
#acat #ac-pictures .ac-icon svg use { fill: var(--acatx-brand) !important; stroke: var(--acatx-brand) !important; }
#acat #ac-pictures .ac-icon.expanded svg,
#acat #ac-pictures .ac-icon.expanded svg use { fill: #fff !important; stroke: #fff !important; }
#acat .icon {
  display: inline-block;
  width: .85em;
  height: .85em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}
/* Иконки в каталоге всегда тёмные — тема Aspro делает .btn белым (currentColor=#fff) */
#acat .btn,
#acat a.btn,
#acat #btn-toolbar .btn,
#acat #ac-parts-table .btn {
  color: var(--acatx-ink) !important;
}
#acat .icon,
#acat .icon use,
#acat svg.icon,
#acat .btn svg,
#acat .btn svg use,
#acat #btn-toolbar .icon,
#acat #ac-parts-table .icon,
#acat .ac-icon svg {
  fill: var(--acatx-ink) !important;
  stroke: var(--acatx-ink) !important;
  color: var(--acatx-ink) !important;
}
#acat .btn:hover,
#acat a.btn:hover,
#acat .btn:hover .icon,
#acat a.btn:hover .icon,
#acat .btn:hover svg use {
  fill: var(--acatx-brand) !important;
  stroke: var(--acatx-brand) !important;
  color: var(--acatx-brand) !important;
}

/* =========================================================
   Страница иллюстрации (детализация)
   ========================================================= */
#acat #ac-picture-container {
  width: 100%;
  height: 520px;
  position: relative;
  overflow: scroll;
  background: var(--acatx-bg-soft);
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius);
  scrollbar-width: none;
}
#acat #ac-picture-container::-webkit-scrollbar { display: none; }
#acat #ac-picture { position: absolute; left: 0; top: 0; cursor: move; }
#acat #ac-picture img { float: left; max-width: none; }

#acat .ac-part-rectangle {
  position: absolute;
  border: 1px solid #333;
  text-align: center;
  border-radius: 3px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
}
#acat #ac-picture .selected { background: var(--acatx-brand) !important; color: #fff !important; border-color: var(--acatx-brand-d); }

/* тулбар над таблицей */
#acat #btn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
#acat #btn-toolbar .icon { width: 18px; height: 18px; }
#acat #ac-parts-table .btn .icon { width: 17px; height: 17px; }
#acat #btn-toolbar .btn-group { display: inline-flex; gap: 6px; }
#acat #btn-toolbar .float-right { float: none; margin-left: auto; }
#acat #btn-toolbar .btn,
#acat #ac-parts-table .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--acatx-ink);
  background: #fff;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius-sm);
  cursor: pointer;
  transition: all .15s ease;
}
#acat #btn-toolbar .btn:hover,
#acat #ac-parts-table .btn:hover {
  color: var(--acatx-brand);
  border-color: var(--acatx-brand);
  background: var(--acatx-brand-soft);
}
#acat #ac-parts-table .btn { width: 34px; height: 34px; }

/* =========================================================
   Таблицы (детали / поиск / применяемость)
   ========================================================= */
#acat .table-responsive-md,
#acat .acatx-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

#acat table.table,
#acat #ac-parts-table {
  width: 100%;
  margin: 16px 0 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius);
  overflow: hidden;
}
#acat table.table thead th,
#acat .thead-light th {
  padding: 13px 14px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--acatx-muted);
  background: var(--acatx-bg-soft);
  border-bottom: 1px solid var(--acatx-bd);
  text-align: left;
  white-space: nowrap;
}
#acat table.table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--acatx-bd);
  vertical-align: middle;
}
#acat table.table tbody tr:first-child td { border-top: 0; }
#acat table.table.table-hover tbody tr:hover td,
#acat #ac-parts-table.table-hover > tbody > tr:hover > td { background: var(--acatx-bg-soft); }
#acat table.table tfoot td {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--acatx-muted);
  background: var(--acatx-bg-soft);
  border-top: 1px solid var(--acatx-bd);
}
#acat table.table a { font-weight: 500; color: var(--acatx-brand-d); }
#acat table.table a:hover { color: var(--acatx-brand); text-decoration: underline; }

#acat #ac-parts-table > tbody > tr { cursor: default; }
#acat #ac-parts-table .selected,
#acat #ac-parts-table tr td.selected {
  background: var(--acatx-brand) !important;
  color: #fff !important;
}
/* дублирующая подпись колонки в каждой строке — не нужна (таблица скроллится на мобиле) */
#acat .th-mobile { display: none !important; }
#acat #ac-parts-table .selected a { color: #fff !important; }

/* вложенная таблица предложений */
#acat #ac-parts-table .offers > td { padding: 0; background: var(--acatx-bg-soft); }
#acat #ac-parts-table .offers table {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  background: transparent;
}
#acat #ac-parts-table .offers table td { border-top: 1px solid var(--acatx-bd); }
#acat #ac-parts-table .preview {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid var(--acatx-bd);
  background-color: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

/* кнопки «купить» в предложениях */
#acat .buy_button {
  display: inline-flex !important;
  align-items: center;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--acatx-brand);
  border-radius: 8px;
}
#acat .buy_button:hover { background: var(--acatx-brand-d); color: #fff; }

/* =========================================================
   Пагинация (страница поиска)
   ========================================================= */
#acat nav { margin-top: 18px; }
#acat .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}
#acat .pagination .page-item { cursor: pointer; }
#acat .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-weight: 600;
  color: var(--acatx-ink);
  background: #fff;
  border: 1px solid var(--acatx-bd);
  border-radius: var(--acatx-radius-sm);
}
#acat .pagination .page-item:hover .page-link {
  border-color: var(--acatx-brand);
  color: var(--acatx-brand);
}
#acat .pagination .page-item.active .page-link {
  background: var(--acatx-brand);
  border-color: var(--acatx-brand);
  color: #fff;
}
#acat .pagination .page-item.disabled .page-link {
  color: var(--acatx-muted);
  cursor: default;
  pointer-events: none;
}

/* =========================================================
   Алёрты / уведомления
   ========================================================= */
#acat .alert {
  padding: 14px 18px;
  border-radius: var(--acatx-radius-sm);
  font-size: 13.5px;
  border: 1px solid transparent;
}
#acat .alert-secondary {
  margin-top: 26px;
  color: var(--acatx-muted);
  background: var(--acatx-bg-soft);
  border-color: var(--acatx-bd);
}
#acat .alert-danger {
  color: var(--acatx-brand-d);
  background: var(--acatx-brand-soft);
  border-color: rgba(238, 21, 30, 0.25);
}

/* спиннер поиска */
#acat .glyphicon-refresh-animate { animation: acatx-spin .8s infinite linear; }
@keyframes acatx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* =========================================================
   Модалка «Дополнительная информация»
   ========================================================= */
#acat .ac-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  padding: 20px;
  background: rgba(20, 24, 33, 0.5);
  overflow-y: auto;
}
#acat .ac-modal.show { display: flex !important; align-items: center; justify-content: center; opacity: 1 !important; }
/* Перебиваем базовые правила bootstrap-модалки темы (transform/min-height/центрирование) */
#acat .ac-modal .modal-dialog,
#acat .ac-modal .modal-dialog.modal-dialog-centered {
  display: block;
  width: 100%;
  max-width: 540px;
  min-height: 0;
  margin: auto;
  transform: none !important;
  pointer-events: auto;
}
#acat .ac-modal .modal-content {
  background: #fff;
  border-radius: var(--acatx-radius);
  box-shadow: var(--acatx-shadow);
  overflow: hidden;
}
#acat .ac-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--acatx-bd);
}
#acat .ac-modal .modal-title { margin: 0; font-size: 17px; font-weight: 700; }
#acat .ac-modal .close {
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--acatx-muted);
  cursor: pointer;
}
#acat .ac-modal .close:hover { color: var(--acatx-brand); }
#acat .ac-modal .modal-body { padding: 20px; }
#acat .ac-modal .modal-body > div { margin-top: 8px; }
#acat .ac-modal .modal-body table { margin-top: 14px; }

/* =========================================================
   Блок «Применяемость» в карточке товара
   ========================================================= */
#acat .acatx-usage {
  padding: 0;
  margin: 24px 0;
}
#acat .acatx-usage h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 767px) {
  #acat #ac-groups,
  #acat #ac-marks,
  #acat #ac-models > div {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  #acat .acatx-search,
  #acat .search-form .input-group,
  #acat #ac-search .input-group { flex-wrap: wrap; }
  #acat .acatx-search button,
  #acat .search-form .input-group .btn,
  #acat #ac-search .input-group .btn { width: 100%; }
  #acat .search-form .input-group-append { width: 100%; }

  #acat #ac-models fieldset,
  #acat #ac-models fieldset select,
  #acat .search-form select { width: 100%; }
  #acat .search-form form,
  #acat #ac-models form.form-inline { flex-direction: column; }

  #acat #ac-picture-container { height: 320px; }
  #acat #ac-pictures > .d-flex { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  #acat #ac-groups,
  #acat #ac-marks,
  #acat #ac-models > div {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  #acat .card img { height: 72px !important; }
  #acat #ac-marks .card img { height: 52px !important; }
}
