.main .container {
	padding: 0 15px;
}

.catalog-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 30px;
	margin: 0 auto;
	padding: 20px 0;
	position: relative;
}

.mobile-filter-btn {
	display: none;
	width: 100%;
	padding: 12px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	margin-bottom: 20px;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.filters-sidebar {
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	height: fit-content;
	border: 1px solid #f2f2f2;
	position: sticky;
	top: 90px;
	transition: transform 0.3s ease;
	z-index: 100;
}

.sidebar-mobile-header {
	display: none;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.sidebar-mobile-header h3 {
	margin: 0;
	font-size: 20px;
}

.close-filters-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #333;
}

.filter-group {
	border-bottom: 1px solid #f2f2f2;
	padding: 15px 0;
}

.filter-group:first-child {
	padding-top: 0;
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.filter-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	color: #212427;
}

.filter-header .arrow {
	font-size: 12px;
	color: #888;
	transition: transform 0.3s ease;
}

.filter-group.active .arrow {
	transform: rotate(180deg);
}

.filter-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	opacity: 0;
}

.filter-group.active .filter-content {
	max-height: 300px;
	opacity: 1;
	margin-top: 15px;
}

.filter-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.filter-list li {
	margin-bottom: 10px;
}

.custom-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #4f5359;
	user-select: none;
}

.custom-checkbox input {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #2196f3;
}

.custom-checkbox:hover {
	color: #2196f3;
}

.price-inputs {
	display: flex;
	gap: 10px;
}

.price-field {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 0 10px;
	background: #f9f9f9;
}

.price-field span {
	font-size: 12px;
	color: #888;
	margin-right: 5px;
}

.price-field input {
	width: 100%;
	border: none;
	background: transparent;
	padding: 8px 0;
	font-size: 14px;
	outline: none;
}

.filter-actions {
	margin-top: 25px;
	display: flex;
	gap: 10px;
}

.apply-filters-btn {
	flex: 2;
	padding: 12px;
	background-color: #2196f3;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
}

.apply-filters-btn:hover {
	background-color: #1976d2;
}

.reset-filters-btn {
	flex: 1;
	padding: 12px;
	background-color: #f2f2f2;
	color: #333;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
}

.filters-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s;
}

.filters-overlay.active {
	opacity: 1;
	visibility: visible;
}

.products-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.products-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

.product-card {
	background: #fff;
	border-radius: 12px;
	padding: 15px;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
	border: 1px solid #f0f0f0;
}

.product-card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
	z-index: 2;
}

.favorite-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #999;
	z-index: 10;
	transition: all 0.3s ease;
}

.badge-discount {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #27ae60;
	color: white;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 6px;
	border-radius: 4px;
	z-index: 10;
}

.product-image {
	width: 100%;
	height: 160px;
	object-fit: contain;
	margin-bottom: 15px;
}

.product-title {
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	margin: 0 0 10px;
	font-weight: 400;
	height: 40px;
	overflow: hidden;
}

.rating-container {
	display: flex;
	gap: 5px;
	font-size: 12px;
	color: #666;
	margin-bottom: 5px;
}

.stars {
	color: #f1c40f;
}

.price {
	font-size: 18px;
	font-weight: 700;
	margin-top: auto;
	margin-bottom: 15px;
}

.add-to-cart-btn {
	background: #2196f3;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 10px;
	width: 100%;
	cursor: pointer;
	transition: 0.2s;
	font-weight: 500;
}

.add-to-cart-btn:hover {
	background: #1565c0;
}

@media (max-width: 992px) {
	.catalog-layout {
		grid-template-columns: 1fr;
		display: block;
	}

	.mobile-filter-btn {
		display: flex;
	}

	.filters-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: #fff;
		z-index: 1000;
		overflow-y: auto;
		transform: translateX(-100%);
		border-radius: 0;
		border: none;
		box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
		padding-bottom: 80px;
	}

	.filters-sidebar.open {
		transform: translateX(0);
	}

	.sidebar-mobile-header {
		display: flex;
	}

	.filter-actions {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding: 15px 0;
		border-top: 1px solid #eee;
		margin-top: 20px;
	}
}
