/* ===== Каталог — общие ===== */
.catalog-section {
	padding-bottom: 60px;
}

/* Хлебные крошки */
.catalog-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 10px 0 20px;
	font-size: 14px;
	color: #888;
}
.catalog-breadcrumbs a {
	color: var(--green-color);
}
.catalog-breadcrumbs a:hover {
	text-decoration: underline;
}
.catalog-breadcrumbs span {
	color: #666;
}

.catalog-section .section-title {
	margin-bottom: 24px;
}
.catalog-section .section-title h1 {
	font-size: 42px;
	color: #222;
	text-transform: uppercase;
}

.catalog-subtitle {
	font-size: 28px;
	color: #222;
	text-transform: uppercase;
	margin: 30px 0 20px;
}

.catalog-empty {
	font-size: 16px;
	padding: 40px 0;
	color: #666;
	text-align: center;
}

/* ===== Поиск ===== */
.catalog-search {
	margin-bottom: 30px;
}
.catalog-search__inner {
	display: flex;
	gap: 12px;
	max-width: 700px;
}
.catalog-search__inner .form-control {
	flex: 1;
}
.catalog-search__inner .btn {
	min-width: 120px;
	padding: 12px 24px;
}

.catalog-search-results {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
}
.catalog-search-results h2 {
	font-size: 22px;
	color: #222;
	margin-bottom: 16px;
}

/* ===== Фильтры (generation page) ===== */
.catalog-filters {
	margin-bottom: 30px;
	background: #fff;
	border-radius: 10px;
	padding: 20px;
}
.catalog-filters__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.catalog-filters__search {
	flex: 1;
	min-width: 200px;
}
.catalog-filters__price {
	display: flex;
	align-items: center;
	gap: 8px;
}
.catalog-filters__price .form-control {
	max-width: 160px;
}
.catalog-filters__dash {
	color: #888;
}
.catalog-filters__reset {
	color: #999;
	font-size: 14px;
	text-decoration: underline;
}
.catalog-filters__reset:hover {
	color: var(--green-color);
}
.catalog-filters .btn {
	min-width: 140px;
	padding: 12px 24px;
}

/* ===== Сетка карточек ===== */
.catalog-grid {
	row-gap: 20px;
}

/* Карточка марки / модели / поколения */
.catalog-mark-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	min-height: 100px;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	color: #222;
	height: 100%;
}
.catalog-mark-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.catalog-mark-card__name {
	font-family: 'Bebas Neue Cyrillic', sans-serif;
	font-size: 24px;
	text-transform: uppercase;
	line-height: 1.2;
}
.catalog-mark-card__years {
	font-size: 14px;
	color: #888;
	margin-top: 4px;
}
.catalog-mark-card__count {
	font-size: 14px;
	color: var(--green-color);
	margin-top: auto;
	padding-top: 8px;
}

/* Карточка запчасти */
.catalog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	color: #222;
	height: 100%;
}
.catalog-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.catalog-card__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}
.catalog-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.catalog-card__no-img {
	font-size: 14px;
	color: #aaa;
}
.catalog-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.catalog-card__title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
	margin-bottom: 6px;
}
.catalog-card__code {
	font-size: 13px;
	color: #888;
}
.catalog-card__brand {
	font-size: 13px;
	color: #888;
}
.catalog-card__price {
	font-family: 'Bebas Neue Cyrillic', sans-serif;
	font-size: 22px;
	color: var(--green-color);
	margin-top: auto;
	padding-top: 8px;
}

/* ===== Пагинация ===== */
.catalog-pagination {
	margin-top: 30px;
	display: flex;
	justify-content: center;
}
.catalog-pagination nav {
	display: flex;
	align-items: center;
}
.catalog-pagination nav > div:first-child {
	display: none;
}
.catalog-pagination nav > div:last-child span,
.catalog-pagination nav > div:last-child a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0 3px;
	border-radius: 8px;
	font-size: 14px;
	color: #222;
	background: #fff;
	transition: 0.2s;
}
.catalog-pagination nav > div:last-child a:hover {
	background: var(--green-color);
	color: #fff;
}
.catalog-pagination nav > div:last-child span[aria-current="page"] span {
	background: var(--green-color);
	color: #fff;
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

/* ===== Страница запчасти ===== */
.catalog-part {
	margin-bottom: 40px;
}
.catalog-part__gallery {
	background: #fff;
	border-radius: 10px;
	padding: 16px;
}
.catalog-part__main-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
}
.catalog-part__main-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.catalog-part__thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.catalog-part__thumb {
	width: 72px;
	height: 54px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.2s;
}
.catalog-part__thumb.active {
	border-color: var(--green-color);
}
.catalog-part__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.catalog-part__no-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #aaa;
}

.catalog-part__info {
	padding-left: 10px;
}
.catalog-part__info h1 {
	font-size: 32px;
	color: #222;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.catalog-part__meta {
	margin-bottom: 20px;
}
.catalog-part__meta p {
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}
.catalog-part__meta p strong {
	color: #222;
}
.catalog-part__price-block {
	margin-bottom: 20px;
}
.catalog-part__price {
	font-family: 'Bebas Neue Cyrillic', sans-serif;
	font-size: 36px;
	color: var(--green-color);
}
.catalog-part__order-btn {
	max-width: 280px;
	margin-bottom: 30px;
}
.catalog-part__order-btn span {
	margin-right: 8px;
}
.catalog-part__desc {
	margin-top: 10px;
}
.catalog-part__desc h3 {
	font-size: 20px;
	margin-bottom: 10px;
	color: #222;
}
.catalog-part__desc p {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
}

.catalog-order-part-name {
	font-size: 14px;
	color: #555;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.catalog-related {
	margin-top: 40px;
}

/* ===== Адаптив ===== */
@media (max-width: 991px) {
	.catalog-section .section-title h1 {
		font-size: 32px;
	}
	.catalog-subtitle {
		font-size: 22px;
	}
	.catalog-part__info {
		padding-left: 0;
		margin-top: 24px;
	}
	.catalog-part__info h1 {
		font-size: 26px;
	}
	.catalog-filters__row {
		flex-direction: column;
		align-items: stretch;
	}
	.catalog-filters__price {
		width: 100%;
	}
	.catalog-filters__price .form-control {
		max-width: none;
		flex: 1;
	}
}
@media (max-width: 575px) {
	.catalog-section .section-title h1 {
		font-size: 26px;
	}
	.catalog-search__inner {
		flex-direction: column;
	}
	.catalog-search__inner .btn {
		width: 100%;
	}
	.catalog-mark-card {
		padding: 16px;
	}
	.catalog-part__price {
		font-size: 28px;
	}
}