/**
 * V3.18.3B — /shop/ catalog hub layout.
 */

.hh-v2-shop-hub {
	background: #fafaf8;
}

.hh-v2-shop-hub__shell {
	max-width: var(--hh-inner-max, 1200px);
	margin: 0 auto;
	padding-inline: var(--hh-inner-pad, clamp(1rem, 4vw, 2rem));
}

/* —— Main paths —— */
.hh-v2-shop-hub__paths {
	padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.25rem, 3vw, 2rem);
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hh-v2-shop-hub__paths h2,
.hh-v2-shop-hub__cats h2,
.hh-v2-shop-hub__catalog-head h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.8vw, 1.75rem);
	font-weight: 800;
	color: #1f1a17;
}

.hh-v2-shop-hub__paths-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(0.75rem, 2vw, 1rem);
	list-style: none;
	margin: clamp(1rem, 2.5vw, 1.5rem) 0 0;
	padding: 0;
}

.hh-v2-shop-hub__paths-grid li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hh-v2-shop-hub__paths-grid a {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 220px;
	padding: 0.85rem;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.hh-v2-shop-hub__paths-grid a:hover {
	border-color: rgba(196, 30, 58, 0.28);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.hh-v2-shop-hub__path-media {
	display: block;
	flex: 1 1 auto;
	min-height: 110px;
	margin-bottom: 0.75rem;
	border-radius: 12px;
	background-color: #fff;
	background-size: cover;
	background-position: center;
}

/* Accessories path — product-on-white reads better on mobile catalog */
.hh-v2-shop-hub__paths-grid a[href*="chimneys-accessories"] .hh-v2-shop-hub__path-media {
	background-color: #fff;
	background-size: contain;
	background-position: 50% 55%;
	background-repeat: no-repeat;
}

.hh-v2-shop-hub__paths-grid strong {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: #1f1a17;
}

.hh-v2-shop-hub__paths-grid p {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: rgba(31, 26, 23, 0.68);
}

/* —— Featured category chips —— */
.hh-v2-shop-hub__cats {
	padding: clamp(1.25rem, 3vw, 2rem) 0;
	background: #fafaf8;
}

.hh-v2-shop-hub__cats-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.hh-v2-shop-hub__cat-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid #d8d0c8;
	background: #fff;
	color: #1f1a17;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hh-v2-shop-hub__cat-chip:hover {
	border-color: #c41e3a;
	color: #c41e3a;
}

/* —— Catalog browse section —— */
.hh-v2-shop-hub__catalog {
	padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hh-v2-shop-hub__catalog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.hh-v2-shop-hub__catalog-main {
	min-width: 0;
}

.hh-v2-shop-hub__sidebar.hh-v2-catalog-sidebar {
	display: none;
}

@media (max-width: 1023px) {
	.hh-v2-shop-hub__sidebar.hh-v2-catalog-sidebar {
		display: none;
	}

	.hh-v2-shop-hub__catalog .hh-v2-catalog-toolbar__chips--shop {
		display: flex;
	}
}

.hh-v2-shop-hub__grid-wrap .products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.85rem, 2vw, 1.2rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hh-v2-shop-hub__grid-wrap .products > li.product {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	.hh-v2-shop-hub__catalog-layout {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		width: 100%;
	}

	.hh-v2-shop-hub__catalog-layout:has(> .hh-v2-catalog-sidebar) {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.hh-v2-shop-hub__sidebar.hh-v2-catalog-sidebar {
		display: block;
		position: sticky;
		top: 96px;
	}
}

@media (max-width: 1023px) {
	.hh-v2-shop-hub__catalog .hh-v2-catalog-toolbar {
		margin-bottom: 1rem;
	}
}

.hh-v2-shop-hub__catalog-head {
	text-align: center;
	margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.hh-v2-shop-hub__catalog-head p {
	margin: 0 auto;
	max-width: 42ch;
	font-size: 0.95rem;
	color: rgba(31, 26, 23, 0.68);
	line-height: 1.6;
}

.hh-v2-shop-hub__catalog .products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.85rem, 2vw, 1.2rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hh-v2-shop-hub__catalog .products > li.product {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* legacy selector — grid now under __grid-wrap */

.hh-v2-shop-hub__empty {
	padding: 1.5rem;
	border-radius: 14px;
	background: #fff;
	border: 1px dashed rgba(0, 0, 0, 0.12);
	color: rgba(31, 26, 23, 0.68);
	text-align: center;
}

/* Featured products block spacing */
.hh-v2-shop-hub .hh-v2-product-grid--featured {
	padding-block: clamp(1.5rem, 3vw, 2rem);
	background: #fff;
	border-block: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 1100px) {
	.hh-v2-shop-hub__paths-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hh-v2-shop-hub__catalog .products,
	.hh-v2-shop-hub__grid-wrap .products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hh-v2-shop-hub__paths-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hh-v2-shop-hub__paths-grid a {
		min-height: 180px;
	}

	.hh-v2-shop-hub__path-media {
		min-height: 88px;
	}

	.hh-v2-shop-hub__paths-grid a[href*="chimneys-accessories"] .hh-v2-shop-hub__path-media {
		min-height: 96px;
		background-size: 88% auto;
	}

	.hh-v2-shop-hub__catalog .products,
	.hh-v2-shop-hub__grid-wrap .products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.hh-v2-shop-hub__paths-grid,
	.hh-v2-shop-hub__catalog .products,
	.hh-v2-shop-hub__grid-wrap .products {
		grid-template-columns: 1fr;
	}
}
