/* Tornado catalog UI — Figma GexOdeieRrAM91DsbUE8uk */

.tornado-sections-page,
.tornado-catalog-page,
.tornado-catalog-page .tornado-product-list {
	font-family: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
	color: #151c27;
}

.tornado-catalog-page {
	padding-bottom: 32px;
}

/* ——— Разделы каталога (2003:65) ——— */
.tornado-sections-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 19px;
}

.tornado-section-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 221px;
	border: 1px solid #e7edf4;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #151c27;
	background: linear-gradient(145deg, #f8fafc 9%, #edf2f8 91%);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tornado-section-card:hover,
.tornado-section-card:focus {
	text-decoration: none;
	color: #151c27;
	box-shadow: 0 8px 24px rgba(21, 28, 39, 0.08);
	transform: translateY(-2px);
}

.tornado-section-card__media {
	flex: 1 1 auto;
	min-height: 160px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.tornado-section-card__media--empty {
	background-image: linear-gradient(145deg, #f8fafc 9%, #edf2f8 91%);
}

.tornado-section-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px 14px;
}

.tornado-section-card__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
}

.tornado-section-card__arrow {
	flex: 0 0 auto;
	line-height: 0;
}

/* ——— Список товаров (2003:66) ——— */
.tornado-catalog-page__row {
	align-items: flex-start;
}

.tornado-catalog-sidebar .bx-sidebar-block,
.tornado-catalog-sidebar .smartfilter {
	background: #fff;
	border: 1px solid #e4e9f0;
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 20px;
}

.tornado-catalog-sidebar .smartfilter-title,
.tornado-catalog-sidebar .smart-filter-title {
	font-size: 13px;
	font-weight: 800;
	color: #151c27;
	margin-bottom: 16px;
}

.tornado-catalog-sidebar .smartfilter .form-group label,
.tornado-catalog-sidebar .smart-filter-parameters-box-title {
	font-size: 12px;
	font-weight: 600;
	color: #4b5869;
}

.tornado-catalog-sidebar .smartfilter input.form-control,
.tornado-catalog-sidebar .smartfilter select.form-control {
	border: 1px solid #e4e9f0;
	border-radius: 8px;
	font-size: 12px;
	min-height: 38px;
}

.tornado-catalog-sidebar .btn-primary,
.tornado-catalog-sidebar .smartfilter .btn {
	background: #1766d2;
	border-color: #1766d2;
	border-radius: 8px;
	font-weight: 700;
}

.tornado-catalog-subsections {
	display: none;
}

.tornado-catalog-sidebar__panel {
	background: #fff;
	border: 1px solid #e4e9f0;
	border-radius: 14px;
	padding: 18px 16px 20px;
	margin-bottom: 16px;
}

.tornado-catalog-sidebar__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	color: #151c27;
	letter-spacing: 0.02em;
}

.tornado-catalog-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tornado-catalog-nav__link {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #4b5869;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.tornado-catalog-nav__item.is-active .tornado-catalog-nav__link,
.tornado-catalog-nav__link:hover {
	background: #edf4ff;
	color: #1766d2;
	text-decoration: none;
}

.tornado-price-filter__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	color: #151c27;
}

.tornado-price-filter__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.tornado-price-filter__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.tornado-price-filter__label {
	font-size: 11px;
	font-weight: 600;
	color: #8a95a4;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tornado-price-filter__input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e4e9f0;
	border-radius: 8px;
	min-height: 38px;
	padding: 8px 10px;
	font-size: 13px;
	color: #151c27;
}

.tornado-price-filter__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tornado-price-filter__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.tornado-price-filter__btn--apply {
	background: #1766d2;
	color: #fff;
}

.tornado-price-filter__btn--reset {
	background: #f3f6fa;
	color: #4b5869;
}

@media (max-width: 991px) {
	.tornado-catalog-sidebar {
		margin-bottom: 20px;
	}
}

.tornado-product-list__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0 20px;
	margin-bottom: 8px;
	border-bottom: 1px solid #e4e9f0;
}

.tornado-product-list__counter {
	margin: 0;
	font-size: 12px;
	color: #687384;
}

.tornado-product-list__counter-value {
	color: #151c27;
	font-weight: 700;
	margin-left: 4px;
}

.tornado-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.tornado-product-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 10px;
	overflow: hidden;
	min-height: 328px;
}

.tornado-product-card__image-wrap {
	display: block;
	overflow: hidden;
	background: #f3f6fa;
}

.tornado-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tornado-product-card__image--empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.tornado-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 10px 12px 14px;
}

.tornado-product-card__sku {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a95a4;
	margin-bottom: 6px;
}

.tornado-product-card__name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #151c27;
	text-decoration: none;
	margin-bottom: 14px;
	flex: 1 1 auto;
}

.tornado-product-card__name:hover {
	color: #1766d2;
	text-decoration: none;
}

.tornado-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.tornado-product-card__price {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #151c27;
	white-space: nowrap;
}

.tornado-product-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	background: #edf4ff;
	color: #1766d2;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.tornado-product-card__more:hover {
	background: #dceaff;
	color: #1766d2;
	text-decoration: none;
}

.tornado-product-list__empty {
	padding: 24px;
	color: #687384;
	font-size: 14px;
}

.tornado-product-list__pager {
	margin-top: 28px;
}

@media (max-width: 1199px) {
	.tornado-sections-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tornado-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tornado-sections-grid,
	.tornado-product-grid {
		grid-template-columns: 1fr;
	}

	.tornado-product-list__toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Сброс конфликтов с bootstrap / старым шаблоном */
#content .tornado-product-grid,
.tornado-catalog-page .tornado-product-grid {
	display: grid !important;
	float: none !important;
	width: 100%;
	margin: 0;
	padding: 0;
}

#content .tornado-product-grid > .tornado-product-card,
.tornado-catalog-page .tornado-product-card {
	float: none !important;
	width: auto !important;
	max-width: none;
	margin: 0;
}

#content .tornado-product-card__name,
#content .tornado-product-card__more {
	text-decoration: none;
}

#content .tornado-product-card__image-wrap img.tornado-product-card__image {
	max-width: none;
	height: 100%;
	width: 100%;
}