/* Catalog page — mockup layout on top of GU tokens from home.css */

.gu-catalog-page .gu-main {
	background: #f5f7fa;
}

.gu-cat-hero {
	position: relative;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	padding: 2.5rem 0 2rem;
}

.gu-cat-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 45%, rgba(255,255,255,.35) 100%);
}

.gu-cat-hero .gu-container {
	position: relative;
	z-index: 1;
}

.gu-breadcrumb {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .85rem;
	color: var(--gu-muted);
	margin-bottom: .65rem;
}

.gu-breadcrumb a {
	color: var(--gu-muted) !important;
	text-decoration: none !important;
}

.gu-breadcrumb a:hover {
	color: var(--gu-navy) !important;
}

.gu-cat-hero__title {
	margin: 0 0 .4rem;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 700;
	color: var(--gu-navy);
}

.gu-cat-hero__subtitle {
	margin: 0;
	color: var(--gu-muted);
	font-size: 1rem;
	max-width: 36rem;
}

.gu-catalog-body {
	padding: 1.5rem 0 2rem;
}

.gu-catalog-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.gu-filters {
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 14px;
	padding: 1.1rem 1rem 1.25rem;
	box-shadow: 0 6px 20px rgba(11, 47, 91, .05);
	position: sticky;
	top: 5.5rem;
	max-height: calc(100vh - 6.5rem);
	overflow: auto;
	z-index: 2;
}

.gu-filters__head {
	font-size: 1.05rem;
	color: var(--gu-navy);
	margin-bottom: .85rem;
	padding-bottom: .65rem;
	border-bottom: 1px solid #eef1f5;
}

.gu-filters__head strong {
	color: var(--gu-navy);
}

.gu-filter-block {
	margin-bottom: .85rem;
	border-bottom: 1px solid #f0f2f5;
	padding-bottom: .65rem;
}

.gu-filter-block__toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
	border: 0;
	padding: .35rem 0;
	font-weight: 700;
	color: var(--gu-navy);
	cursor: pointer;
	font-size: .95rem;
}

.gu-filter-block__body {
	display: none;
	padding-top: .45rem;
	max-height: 220px;
	overflow: auto;
}

.gu-filter-block.is-open .gu-filter-block__body {
	display: block;
}

.gu-check {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .88rem;
	color: #374151;
	margin-bottom: .4rem;
	cursor: pointer;
}

.gu-check input {
	margin-top: .2rem;
}

.gu-check--rating .gu-stars {
	color: var(--gu-star);
	display: inline-flex;
	align-items: center;
	gap: .15rem;
	flex-wrap: wrap;
}

.gu-check--rating .gu-stars span {
	color: var(--gu-muted);
	margin-left: .25rem;
	font-size: .8rem;
}

.gu-filter-empty {
	font-size: .85rem;
	color: var(--gu-muted);
	margin: 0;
}

.gu-price-label {
	margin: .7rem 0 0;
	font-size: .88rem;
	font-weight: 600;
	color: var(--gu-navy);
	text-align: center;
}

#guPriceSlider {
	margin: .55rem calc(.45rem + 5px) .25rem;
	height: 3px;
	background: #e6ebf1;
	border: 0;
	border-radius: 999px;
}

#guPriceSlider .ui-slider-range {
	background: var(--gu-navy);
}

#guPriceSlider .ui-slider-handle {
	border-radius: 50%;
	border: 2px solid var(--gu-navy);
	background: #fff;
	width: calc(1.05em - 5px);
	height: calc(1.05em - 5px);
	top: -.3em;
	margin-left: calc(-.5em + 2.5px);
}

.gu-catalog-main {
	background: transparent;
	min-width: 0;
}

.gu-catalog-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: .85rem;
}

.gu-catalog-toolbar__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--gu-text);
}

.gu-catalog-toolbar__count {
	margin: .2rem 0 0;
	color: var(--gu-muted);
	font-size: .9rem;
}

.gu-catalog-toolbar__actions {
	display: flex;
	align-items: center;
	gap: .85rem;
	flex-wrap: wrap;
}

.gu-view-toggle {
	display: inline-flex;
	border: 1px solid #dfe3ea;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.gu-view-toggle button {
	border: 0;
	background: transparent;
	width: 38px;
	height: 36px;
	color: var(--gu-muted);
	cursor: pointer;
}

.gu-view-toggle button.is-active {
	background: var(--gu-navy);
	color: #fff;
}

.gu-sort {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .88rem;
	color: var(--gu-muted);
}

.gu-sort select {
	height: 36px;
	border: 1px solid #dfe3ea;
	border-radius: 8px;
	padding: 0 .65rem;
	background: #fff;
	color: var(--gu-text);
	min-width: 170px;
}

.gu-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	min-height: 0;
	margin-bottom: .9rem;
}

.gu-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	border: 0;
	background: #e8eef6;
	color: var(--gu-navy);
	border-radius: 999px;
	padding: .3rem .7rem;
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
}

.gu-chip span {
	font-weight: 700;
	line-height: 1;
}

.gu-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	min-height: 200px;
	transition: opacity .2s ease;
}

.gu-catalog-grid.is-loading {
	opacity: .4;
	pointer-events: none;
}

.gu-catalog-results {
	position: relative;
	min-height: 200px;
}

.gu-catalog-loading {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	align-items: center;
	justify-content: center;
	background: rgba(245, 247, 250, .72);
	border-radius: 12px;
	min-height: 180px;
}

.gu-catalog-results.is-filtering .gu-catalog-loading {
	display: flex;
}

.gu-catalog-loading__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .65rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid #e8ecf1;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(11, 47, 91, .08);
}

.gu-catalog-loading__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #d7e2ef;
	border-top-color: var(--gu-navy);
	border-radius: 50%;
	animation: gu-catalog-spin .7s linear infinite;
}

.gu-catalog-loading__box p {
	margin: 0;
	font-size: .92rem;
	font-weight: 600;
	color: var(--gu-navy);
}

@keyframes gu-catalog-spin {
	to { transform: rotate(360deg); }
}

.gu-catalog-grid.is-list {
	grid-template-columns: 1fr;
}

.gu-catalog-grid.is-list .gu-product-card {
	display: grid;
	grid-template-columns: 180px 1fr;
	align-items: stretch;
}

.gu-catalog-grid.is-list .gu-product-card__media {
	aspect-ratio: auto;
	min-height: 160px;
}

.gu-catalog-grid .gu-product-card {
	position: relative;
	background: #fff;
}

.gu-product-card__badge {
	position: absolute;
	top: .65rem;
	left: .65rem;
	z-index: 2;
	background: var(--gu-navy);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	padding: .25rem .5rem;
	border-radius: 6px;
}

.gu-catalog-empty {
	grid-column: 1 / -1;
	background: #fff;
	border: 1px dashed #d5dbe5;
	border-radius: 12px;
	padding: 2.5rem 1rem;
	text-align: center;
	color: var(--gu-muted);
}

.gu-catalog-pager {
	margin-top: 1.5rem;
	display: flex;
	justify-content: center;
}

.gu-pager {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
}

.gu-pager__btn,
.gu-pager__num {
	min-width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid transparent;
	background: transparent;
	color: var(--gu-navy);
	font-weight: 600;
	cursor: pointer;
}

.gu-pager__num.is-active {
	background: var(--gu-navy);
	color: #fff;
}

.gu-pager__btn:disabled {
	opacity: .35;
	cursor: default;
}

.gu-pager__ellipsis {
	padding: 0 .25rem;
	color: var(--gu-muted);
}

.gu-product-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gu-related {
	background: #fff;
	padding-top: 2.5rem;
}

@media (max-width: 1100px) {
	.gu-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gu-product-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.gu-catalog-layout {
		grid-template-columns: 1fr;
	}

	.gu-filters {
		order: -1;
		position: relative;
		top: auto;
		max-height: none;
	}
}

@media (max-width: 575.98px) {
	.gu-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gu-catalog-grid.is-list {
		grid-template-columns: 1fr;
	}

	.gu-catalog-grid.is-list .gu-product-card {
		grid-template-columns: 1fr;
	}

	.gu-cat-hero {
		min-height: 180px;
	}
}
