/* Catalog pages (products & projects) */

.bluesun-catalog-page .bl-main-1400,
.bluesun-service-page .bl-main-1400 {
	box-sizing: content-box;
	max-width: 87.5rem;
	margin: 0 auto;
	padding: 0 15px;
}

.bluesun-catalog-page .bl-main,
.bluesun-service-page .bl-main {
	box-sizing: content-box;
	max-width: 105rem;
	margin: 0 auto;
	padding: 0 15px;
}

.cat-hero {
	position: relative;
	min-height: 18rem;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	color: #fff;
}

.cat-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.cat-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 56rem;
	margin: 0 auto;
	padding: 3rem 1.5rem;
	text-align: center;
}

.cat-hero h1 {
	margin: 0 0 1rem;
	font-size: 2.5rem;
	font-weight: 600;
}

.cat-hero p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.75;
	opacity: 0.95;
}

.cat-bc {
	height: 3.75rem;
	line-height: 3.75rem;
	background: #fff;
	border-bottom: 1px solid #eee;
}

.cat-bc a {
	color: #1a1a1a;
	text-decoration: none;
}

.cat-bc a:hover {
	color: var(--bluesun-primary);
}

.cat-bc .nav-gap {
	margin: 0 0.5rem;
	color: #616161;
}

.cat-bc .current {
	color: #616161;
}

.cat-layout {
	display: flex;
	gap: 2rem;
	padding: 3rem 15px 4rem;
	align-items: flex-start;
}

.cat-sidebar {
	flex: 0 0 16rem;
	background: #f8f8f8;
	padding: 1.5rem;
}

.cat-sidebar-title {
	display: block;
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.cat-sidebar-tree,
.cat-sidebar-tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-sidebar-group {
	margin-bottom: 0.75rem;
}

.cat-sidebar-group > a {
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	display: block;
	padding: 0.35rem 0;
}

.cat-sidebar-group ul {
	margin-top: 0.35rem;
	padding-left: 0.75rem;
}

.cat-sidebar-group ul a {
	color: #616161;
	text-decoration: none;
	font-size: 0.9375rem;
	display: block;
	padding: 0.25rem 0;
}

.cat-sidebar-group a:hover {
	color: #ed741b;
}

.cat-main {
	flex: 1;
	min-width: 0;
}

.cat-main--full {
	padding: 3rem 15px 4rem;
}

.cat-list-title {
	margin: 0 0 1.5rem;
	font-size: 1.75rem;
	font-weight: 600;
}

.cat-product-grid,
.cat-project-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.cat-product-card,
.cat-project-card {
	border: 1px solid #e8e8e8;
	background: #fff;
	transition: box-shadow 0.3s;
}

.cat-product-card:hover,
.cat-project-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cat-product-card a,
.cat-project-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cat-product-img img,
.cat-project-img img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.cat-product-body,
.cat-project-body {
	padding: 1.25rem;
}

.cat-product-body h3,
.cat-project-body h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	line-height: 1.4;
}

.cat-product-body p,
.cat-project-body p {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: #616161;
	line-height: 1.6;
}

.cat-product-link {
	color: #ed741b;
	font-size: 0.875rem;
	font-weight: 600;
}

.cat-empty {
	text-align: center;
	color: #616161;
	padding: 3rem 0;
}

@media screen and (max-width: 1024px) {
	.cat-layout {
		flex-direction: column;
	}

	.cat-sidebar {
		width: 100%;
		flex: none;
	}

	.cat-product-grid,
	.cat-project-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.cat-hero h1 {
		font-size: 1.75rem;
	}

	.cat-product-grid,
	.cat-project-grid {
		grid-template-columns: 1fr;
	}

	.cat-bc {
		height: auto;
		line-height: 1.5;
		padding: 0.75rem 0;
	}
}
