<script>
$(document).on('click', function(event) {
var target = $(event.target).closest('a');
if (target.length) {
var url = target.attr('href');
var match = url && url.match(/#category\[(.*?)\]/);
if (match && match[1]) {
var category = match[1];
$('.t-store__parts-switch-wrapper').children().each(function() {
var childText = $(this).text().trim();
if (childText === category) {
console.log('Категория найдена:', category);
$(this).trigger('click');
}
});
} else {
console.log('Категория не найдена');
}
}
});
</script>
<style>
.t951__sidebar, .t-store__filter__search-and-sort {
display: none !important;
}
@media screen and (min-width: 961px) {
.t951__grid-cont, .t951 .js-store-grid-cont-preloader {
width: 100% !important;
max-width: 100% !important;
flex-grow: 1;
}
.t951__cont-wrapper {
display: flex !important;;
justify-content: center !important;;
}
}
</style>