/* Catalog Page Styles */

.catalog-page {
	padding: 40px 0 60px;
	background: #fff;
}

.catalog-page h1 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 24px;
	color: #1a1a1a;
	text-align: center;
}

.catalog-intro {
	max-width: 900px;
	margin: 0 auto 40px;
	text-align: center;
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.catalog-page .cont {
	position: relative;
}

/* Category Sections */
.catalog-grid {
	max-width: 1400px;
	margin: 0 auto;
	padding-right: 280px;
}

.catalog-category-section {
	margin-bottom: 60px;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 12px;
	scroll-margin-top: 100px;
}

.category-header {
	margin-bottom: 30px;
	text-align: center;
}

.category-title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 12px;
}

.category-title a {
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s;
}

.category-title a:hover {
	border-bottom-color: #61186c;
}

.category-description {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	max-width: 700px;
	margin: 0 auto;
}

/* Subcategories Grid */
.subcategories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 20px;
	justify-items: center;
}

.subcategory-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	padding: 20px 15px;
	background: #fff;
	border-radius: 8px;
	transition: all 0.3s ease;
	width: 100%;
	max-width: 200px;
	border: 1px solid #e5e5e5;
}

.subcategory-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
	border-color: #61186c;
}

.subcategory-icon {
	width: 100px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.subcategory-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.subcategory-icon-placeholder {
	width: 60px;
	height: 60px;
	background: #e5e5e5;
	border-radius: 50%;
}

.subcategory-name {
	font-size: 18px;
	color: #333;
	font-weight: 500;
	line-height: 1.3;
	transition: color 0.3s;
}

.subcategory-card:hover .subcategory-name {
	color: #61186c;
}

/* Quick Navigation Sidebar */
.catalog-sidebar {
	position: absolute;
	right: 0;
	top: 0;
	width: 260px;
}

.catalog-quick-nav {
	position: sticky;
	top: 120px;
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.catalog-quick-nav h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #1a1a1a;
}

.catalog-quick-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.catalog-quick-nav li {
	margin-bottom: 8px;
}

.catalog-quick-nav a {
	display: block;
	padding: 8px 12px;
	color: #666;
	text-decoration: none;
	font-size: 16px;
	border-radius: 4px;
	transition: all 0.2s;
}

.catalog-quick-nav a:hover,
.catalog-quick-nav a.active {
	background: #f5f5f5;
	color: #61186c;
	padding-left: 16px;
}

.catalog-quick-nav a.active {
	background: #61186c;
	color: #fff;
	font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.catalog-grid {
		padding-right: 0;
	}

	.catalog-sidebar {
		position: static;
		width: 100%;
		margin-top: 40px;
	}

	.catalog-quick-nav {
		position: static;
	}
}

@media (max-width: 768px) {
	.catalog-page h1 {
		font-size: 28px;
	}

	.catalog-category-section {
		padding: 20px 15px;
		margin-bottom: 40px;
	}

	.category-title {
		font-size: 22px;
	}

	.subcategories-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 12px;
	}

	.subcategory-card {
		padding: 15px 10px;
		max-width: 160px;
	}

	.subcategory-icon {
		width: 60px;
		height: 60px;
	}

	.subcategory-name {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.catalog-page {
		padding: 20px 0 40px;
	}

	.subcategories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}
