/* Catalog Section */
#catalog {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 30px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 30px 20px;
}

/* Sidebar Filters */
.left-section {
	position: sticky;
	top: 100px;
	height: fit-content;
}

.sidebar-section {
	background: white;
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#close-sidebar {
	display: none;
	background: var(--primary-red);
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 8px;
	cursor: pointer;
	margin-bottom: 15px;
	font-size: 14px;
}

.top-filter-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--light-gray);
}

.filter-section-title h3 {
	color: var(--primary-blue);
	font-size: 20px;
	font-weight: 700;
}

#apply-filter-btn {
	background: var(--primary-red);
	color: white;
	border: none;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s;
}

#apply-filter-btn:hover {
	background: var(--primary-blue);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(207, 0, 0, 0.3);
}

.filter-category {
	margin-bottom: 25px;
}

.filters-filter-title h3 {
	color: var(--text-dark);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
}

.filter-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.filter-crite {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--text-dark);
	cursor: pointer;
	transition: color 0.3s;
}

.filter-crite:hover {
	color: var(--primary-red);
}

.filter-crite input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--primary-red);
}

.btn-clearfilters {
	width: 100%;
	background: transparent;
	color: var(--primary-blue);
	border: 2px solid var(--primary-blue);
	padding: 12px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s;
	margin-top: 15px;
}

.btn-clearfilters:hover {
	background: var(--primary-blue);
	color: white;
}

/* Right Section - Products */
.right-section {
	background: white;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.top-section {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--text-light);
}

.top-section a {
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.3s;
}

.top-section a:hover {
	color: var(--primary-red);
}

.path {
	width: 8px;
	height: 8px;
	background: var(--text-light);
	border-radius: 50%;
}

#catalog-cate-path {
	color: var(--primary-blue);
	font-weight: 600;
}

.top-catalog-title-section {
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 2px solid var(--light-gray);
}

.filters-sort {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

#open-filters {
	display: none;
	background: var(--primary-blue);
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s;
}

#open-filters:hover {
	background: var(--primary-red);
}

#result-number-pros {
	color: var(--text-dark);
	font-size: 16px;
	font-weight: 600;
}

.sorting-styling {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sorting-styling h4 {
	font-size: 14px;
	color: var(--text-dark);
	font-weight: 600;
}

.sort-pros {
	padding: 10px 15px;
	border: 2px solid var(--border-gray);
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s;
	background: white;
	color: var(--text-dark);
}

.sort-pros:focus {
	outline: none;
	border-color: var(--primary-blue);
}

/* Product Grid */
.catalog-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 25px;
}

.productcard {
	position: relative;
	background: white;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--border-gray);
	cursor: pointer;
}

.productcard:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
	border-color: var(--primary-red);
}

.productimg {
	position: relative;
	width: 100%;
	height: 220px;
	background: var(--light-gray);
	overflow: hidden;
}

.image-prod {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.productcard:hover .image-prod {
	transform: scale(1.15);
}

.watermark {
	position: absolute;
	bottom: 10px;
	right: 10px;
	opacity: 0.4;
	transition: opacity 0.3s;
}

.watermark img {
	width: 60px;
	height: auto;
}

.productcard:hover .watermark {
	opacity: 0.5;
}

.favorite {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.95);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite:hover {
	background: var(--primary-red);
	transform: scale(1.1);
}

.favorite i {
	color: var(--primary-red);
	font-size: 18px;
	transition: color 0.3s;
}

.favorite:hover i {
	color: white;
}

.prodetails {
	padding: 20px;
}

.brand {
	color: var(--primary-blue);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.title {
	color: var(--text-dark);
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 12px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 42px;
}

.price-cart {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
}

.price {
	color: var(--primary-red);
	font-size: 18px;
	font-weight: 700;
}

.add-cart {
	width: 42px;
	height: 42px;
	background: var(--primary-red);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s;
}

.add-cart:hover {
	background: var(--primary-blue);
	transform: rotate(15deg) scale(1.1);
}

.add-cart i {
	font-size: 16px;
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
	z-index: 5;
	backdrop-filter: blur(2px);
}

/* Empty State */
.unlisted {
	text-align: center;
	padding: 80px 20px;
}

.unlisted h2 {
	color: var(--text-dark);
	font-size: 24px;
	margin-bottom: 20px;
}

.contact-catalog {
	color: var(--primary-blue);
	text-decoration: underline;
	transition: color 0.3s;
}

.contact-catalog:hover {
	color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
	#catalog {
		grid-template-columns: 1fr;
	}

	.left-section {
		position: fixed;
		top: 0;
		left: -100%;
		width: 320px;
		height: 100vh;
		background: white;
		z-index: 9999;
		transition: left 0.3s;
		overflow-y: auto;
	}

	.left-section.active {
		left: 0;
		box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
	}

	#close-sidebar {
		display: block;
	}

	#open-filters {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.sidebar-section {
		border-radius: 0;
		height: 100%;
	}

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

@media (max-width: 768px) {
	.filters-sort {
		flex-direction: column;
		align-items: flex-start;
	}

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

	.productimg {
		height: 180px;
	}

	.right-section {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.catalog-products {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.productcard {
		border-radius: 12px;
	}

	.prodetails {
		padding: 15px;
	}

	.title {
		font-size: 13px;
		min-height: 36px;
	}

	.price {
		font-size: 16px;
	}
}

/* Mobile Overlay */
.sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
}

.sidebar-overlay.active {
	display: block;
}