
/* Полное перебивание флекс-логики и установка grid */
@media screen and (min-width: 1000px) {

  /* Основной контейнер магазина (включая возможные вложенные классы) */
  .t-store .js-store-grid-cont.t-store__grid-cont,
  .t-store .js-store-grid-cont.t-store__grid-cont.t-store__grid-cont-t-container,
  .t-store .js-store-grid-cont {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    justify-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Если у Тильды есть служебный wrapper card-list — тоже принудительно сделать grid */
  .t-store .t-store__card-list,
  .t-store .t-store__card_list,
  .t-store .js-store__card_list {
    display: contents !important; /* чтобы внутренняя разметка не мешала grid */
  }

  /* Карточка товара — делаем фиксированную ширину, но гибкую высоту */
  .t-store .t-store__card,
  .t-store .js-product.t-store__card {
    width: 186px !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Картинка карточки — кнопка object-fit и фикс. пропорции */
  .t-store .t-store__card__bgimg,
  .t-store .t-store__card__img,
  .t-store img.t-store__card__bgimg {
    width: 180px !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Сбросим потенциальные inline-flex у обёрток */
  .t-store .t-col,
  .t-store .t-store__card .t-col {
    display: block !important;
  }

  /* Центрируем общий контейнер магазина */
  .t-store .t-container {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1400px !important;
  }
}

/* Убираем служебные разделители и псевдоэлементы */
.t-store .js-store-grid-cont:before,
.t-store .js-store-grid-cont:after,
.t-store .t-clear.t-store__grid-separator,
.t-store .t-store__grid-separator {
  display: none !important;
}

/* Резерв: если что-то всё ещё остаётся в колонке, принудительно выставим элементы как inline-block */
@media screen and (min-width: 1000px) {
  .t-store .t-store__card {
    display: inline-block !important;
    vertical-align: top !important;
  }
}

