/* category_style.css – стили для страницы категории с фильтром */

.category-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	margin-top: 30px;
}

.filters-sidebar {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	align-self: start;
}

.filters-sidebar h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 18px;
	border-bottom: 1px solid #dee2e6;
	padding-bottom: 10px;
	color: #005737;
}

.filter-group {
	margin-bottom: 20px;
}

.filter-group__title {
	font-weight: 600;
	margin-bottom: 8px;
	color: #495057;
}

.filter-group__options {
	max-height: 200px;
	overflow-y: auto;
	padding-right: 5px;
}

.filter-option {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	cursor: pointer;
}

.filter-option input[type="checkbox"] {
	margin-right: 6px;
	vertical-align: middle;
}

.filter-apply {
	width: 100%;
	padding: 10px;
	background: #28a745;
	color: white;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	margin-top: 10px;
}

.filter-apply:hover {
	background: #218838;
}

.filter-reset {
	display: block;
	text-align: center;
	margin-top: 10px;
	color: #6c757d;
	text-decoration: none;
	font-size: 14px;
}

.filter-reset:hover {
	text-decoration: underline;
}

/* Баннер категории (компактный, над товарами) */
.category-banner {
	width: 100%;
	height: 250px; /* увеличено на 25% (было 200px) */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 8px;
	margin-bottom: 20px;
	position: relative;
}

.category-banner__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.category-banner__title {
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	margin: 0;
	padding: 0 15px;
}

/* Заголовок категории (если нет баннера) */
.category-title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 28px;
	color: #005737;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 25px;
}

.category-meta {
	display: flex;
	gap: 20px;
	align-items: center;
}

.products-count {
	color: #6c757d;
	font-size: 14px;
}

.sort-block select {
	padding: 6px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: white;
	cursor: pointer;
}

.no-products {
	text-align: center;
	color: #6c757d;
	padding: 40px;
	background: #f8f9fa;
	border-radius: 8px;
}

/* Сетка товаров строго в 2 колонки */
.products-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

/* Стили карточек товаров (общие) */
.product-card {
	border: 1px solid #eaeaea;
	border-radius: 8px;
	padding: 15px;
	background: #fff;
	transition:
		box-shadow 0.3s,
		transform 0.2s;
	text-align: center;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.product-card__image-link {
	display: block;
	text-decoration: none;
	border: none;
	outline: none;
}

.product-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 15px;
}

.product-card h3 {
	font-size: 18px;
	margin: 10px 0;
	color: #005737;
	flex-grow: 1;
}

.product-card .price {
	font-size: 20px;
	font-weight: bold;
	color: #005737;
	margin: 10px 0;
}

.product-card .btn {
	display: inline-block;
	padding: 10px 20px;
	background-color: #005737;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.3s;
	margin-top: auto;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

.product-card .btn:hover {
	background-color: #004529;
}

/* Общие стили для кнопок (переопределение цветов) */
.btn,
.product-card .btn {
	background-color: #005737 !important;
	border-color: #005737 !important;
	color: #fff !important;
}

.breadcrumbs a {
	color: #005737 !important;
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
	.category-layout {
		grid-template-columns: 1fr;
	}
	.category-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.category-banner {
		height: 190px; /* увеличено на 25% (было 150px) */
	}
	.category-banner__title {
		font-size: 24px;
	}
	.products-grid {
		grid-template-columns: 1fr; /* на мобильных одна колонка */
	}
}
