.xgpc-catalog {
	--xgpc-blue: #0676d9;
	--xgpc-blue-dark: #005eb7;
	--xgpc-ink: #081a33;
	--xgpc-muted: #5d6673;
	--xgpc-line: #dfe8f2;
	--xgpc-surface: #ffffff;
	--xgpc-bg: #eeeeef;
	--xgpc-card-radius: 8px;
	--xgpc-viewport-width: 100vw;
	--xgpc-half-viewport-width: 50vw;
	display: grid;
	grid-template-columns: minmax(250px, 296px) minmax(0, 1fr);
	gap: 30px;
	width: var(--xgpc-viewport-width);
	max-width: var(--xgpc-viewport-width);
	margin-right: calc(50% - var(--xgpc-half-viewport-width));
	margin-left: calc(50% - var(--xgpc-half-viewport-width));
	padding: 10px max(33px, calc((var(--xgpc-viewport-width) - 1193px) / 2)) 24px;
	color: var(--xgpc-ink);
	font-family: inherit;
	background: var(--xgpc-bg);
}

.xgpc-catalog,
.xgpc-catalog * {
	box-sizing: border-box;
}

.xgpc-sidebar {
	align-self: start;
	min-height: 780px;
	padding: 24px;
	border-radius: 22px;
	background: var(--xgpc-surface);
	box-shadow: 0 1px 0 rgba(7, 25, 50, 0.02);
}

.xgpc-sidebar-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 32px;
	color: var(--xgpc-blue-dark);
	font-size: 16px;
	font-weight: 700;
}

.xgpc-head-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--xgpc-blue);
	color: #fff;
}

.xgpc-icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
	color: currentColor;
}

.xgpc-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.xgpc-filter-card {
	padding: 18px 18px 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(7, 25, 50, 0.06);
}

.xgpc-section-label,
.xgpc-group-title {
	display: block;
	color: #193356;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

.xgpc-range {
	position: relative;
	height: 30px;
	margin: 16px 0 10px;
}

.xgpc-range-track {
	position: absolute;
	top: 13px;
	right: 8px;
	left: 8px;
	height: 5px;
	border-radius: 99px;
	background: linear-gradient(
		90deg,
		#cfd5dc 0%,
		#cfd5dc var(--xgpc-min-percent, 0%),
		#0978ef var(--xgpc-min-percent, 0%),
		#0978ef var(--xgpc-max-percent, 100%),
		#cfd5dc var(--xgpc-max-percent, 100%),
		#cfd5dc 100%
	);
}

.xgpc-range-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 30px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.xgpc-range-input::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid #0978ef;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.xgpc-range-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid #0978ef;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
}

.xgpc-price-values {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: #202734;
	font-size: 14px;
	line-height: 1.2;
}

.xgpc-segmented {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 14px;
}

.xgpc-segmented button {
	min-height: 34px;
	padding: 7px 8px;
	border: 1px solid var(--xgpc-line);
	border-radius: 8px;
	background: #fff;
	color: #193356;
	cursor: pointer;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.1;
}

.xgpc-segmented button.is-active {
	border-color: var(--xgpc-blue);
	background: #eaf5ff;
	color: var(--xgpc-blue-dark);
}

.xgpc-filter-button,
.xgpc-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1px solid var(--xgpc-blue);
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.1;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.xgpc-filter-button {
	width: 100%;
	margin-top: 16px;
	background: var(--xgpc-blue);
	color: #fff;
}

.xgpc-filter-button:hover,
.xgpc-filter-button:focus {
	background: var(--xgpc-blue-dark);
	color: #fff;
	outline: none;
}

.xgpc-filter-group {
	margin-top: 46px;
}

.xgpc-filter-list {
	display: grid;
	gap: 16px;
	padding: 0;
	margin: 26px 0 0;
	list-style: none;
}

.xgpc-list-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #17243a;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.25;
	text-align: left;
}

.xgpc-list-button:hover,
.xgpc-list-button:focus,
.xgpc-list-button.is-active {
	color: var(--xgpc-blue-dark);
	outline: none;
}

.xgpc-list-text {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	gap: 12px;
}

.xgpc-list-text span:last-child {
	overflow-wrap: anywhere;
}

.xgpc-list-button .xgpc-icon {
	flex: 0 0 24px;
	color: #626970;
}

.xgpc-list-button.is-active .xgpc-icon,
.xgpc-list-button:hover .xgpc-icon,
.xgpc-list-button:focus .xgpc-icon {
	color: var(--xgpc-blue-dark);
}

.xgpc-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 26px;
	padding: 0 8px;
	border-radius: 8px;
	background: #e2e2e2;
	color: #47505c;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.xgpc-main {
	min-width: 0;
	padding-top: 46px;
}

.xgpc-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.xgpc-toolbar h2 {
	margin: 0;
	color: var(--xgpc-blue-dark);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0;
}

.xgpc-toolbar p {
	margin: 2px 0 0;
	color: #111827;
	font-size: 16px;
	line-height: 1.25;
}

.xgpc-catalog--category .xgpc-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.xgpc-catalog--category .xgpc-toolbar > div {
	grid-column: 2;
	min-width: 0;
	text-align: center;
}

.xgpc-catalog--category .xgpc-toolbar h2 {
	font-size: clamp(22px, 2.3vw, 32px);
}

.xgpc-catalog--category .xgpc-sort {
	grid-column: 3;
	justify-self: end;
	width: 100%;
	max-width: 320px;
	min-width: 0;
}

.xgpc-catalog--category .xgpc-sort > span {
	display: none;
}

.xgpc-catalog--category .xgpc-sort select {
	width: 100%;
}

.xgpc-sort {
	display: flex;
	align-items: center;
	gap: 18px;
	color: #111827;
	font-size: 14px;
	line-height: 1.2;
}

.xgpc-sort select {
	width: min(320px, 40vw);
	height: 36px;
	padding: 0 16px;
	border: 1px solid #d9e2ec;
	border-radius: 6px;
	background: #fff;
	color: #101827;
	font-size: 13px;
	font-weight: 700;
}

.xgpc-grid {
	display: grid;
	grid-template-columns: repeat(var(--xgpc-columns, 3), minmax(0, 1fr));
	gap: 30px 16px;
	min-height: 400px;
}

.xgpc-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 398px;
	border-radius: var(--xgpc-card-radius);
	background: #fff;
	overflow: hidden;
}

.xgpc-card-media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1.04;
	background: #dfe8f2;
	overflow: hidden;
	text-decoration: none;
}

.xgpc-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.xgpc-card:hover .xgpc-card-media img {
	transform: scale(1.025);
}

.xgpc-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 17px 16px;
}

.xgpc-card-category {
	margin-bottom: 8px;
	color: var(--xgpc-blue-dark);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

.xgpc-card h3 {
	margin: 0 0 8px;
	color: #000;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
}

.xgpc-card h3 a {
	color: inherit;
	text-decoration: none;
}

.xgpc-card h3 a:hover,
.xgpc-card h3 a:focus {
	color: var(--xgpc-blue-dark);
	outline: none;
}

.xgpc-card-bottom {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
}

.xgpc-price {
	color: #000;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.1;
}

.xgpc-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border: 1px solid #d9e6f4;
	border-radius: 50%;
	background: #fff;
	color: var(--xgpc-blue-dark);
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.xgpc-cart:hover,
.xgpc-cart:focus {
	border-color: var(--xgpc-blue);
	background: var(--xgpc-blue);
	color: #fff;
	outline: none;
}

.xgpc-cart .xgpc-icon {
	width: 22px;
	height: 22px;
}

.xgpc-footer {
	display: grid;
	justify-items: center;
	gap: 24px;
	margin-top: 210px;
	color: #142033;
	text-align: center;
}

.xgpc-footer strong {
	font-size: 16px;
	font-weight: 900;
	line-height: 1.25;
}

.xgpc-progress {
	width: min(508px, 100%);
	height: 10px;
	border-radius: 99px;
	background: #e9ecef;
	overflow: hidden;
}

.xgpc-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--xgpc-blue);
	transition: width 220ms ease;
}

.xgpc-load-more {
	min-width: 198px;
	padding: 0 28px;
	background: #fff;
	color: var(--xgpc-blue);
}

.xgpc-load-more:hover,
.xgpc-load-more:focus {
	background: #eaf5ff;
	color: var(--xgpc-blue-dark);
	outline: none;
}

.xgpc-load-more[hidden] {
	display: none;
}

.xgpc-empty,
.xgpc-missing {
	grid-column: 1 / -1;
	padding: 28px;
	border-radius: var(--xgpc-card-radius);
	background: #fff;
	color: #17243a;
	text-align: center;
}

.xgpc-catalog.is-loading {
	pointer-events: none;
}

.xgpc-catalog.is-loading .xgpc-grid {
	opacity: 0.58;
}

@media (max-width: 1024px) {
	.xgpc-catalog {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 22px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.xgpc-sidebar {
		padding: 20px;
	}

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

@media (max-width: 782px) {
	.xgpc-catalog {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 12px;
	}

	.xgpc-sidebar {
		min-height: 0;
		border-radius: 16px;
	}

	.xgpc-sidebar-head {
		margin-bottom: 18px;
	}

	.xgpc-filter-group {
		margin-top: 26px;
	}

	.xgpc-filter-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		margin-top: 18px;
	}

	.xgpc-list-button {
		align-items: flex-start;
		gap: 8px;
	}

	.xgpc-main {
		padding-top: 0;
	}

	.xgpc-toolbar {
		align-items: stretch;
		flex-direction: column;
		margin-bottom: 18px;
	}

	.xgpc-catalog--category .xgpc-toolbar {
		display: flex;
	}

	.xgpc-catalog--category .xgpc-sort {
		justify-self: auto;
	}

	.xgpc-sort {
		justify-content: space-between;
	}

	.xgpc-sort select {
		width: min(100%, 360px);
	}

	.xgpc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		min-height: 0;
	}

	.xgpc-card {
		min-height: 0;
	}

	.xgpc-card-body {
		padding: 14px;
	}

	.xgpc-card h3 {
		font-size: 15px;
	}

	.xgpc-price {
		font-size: 18px;
	}

	.xgpc-footer {
		margin-top: 48px;
	}
}

@media (max-width: 520px) {
	.xgpc-filter-list,
	.xgpc-grid {
		grid-template-columns: 1fr;
	}

	.xgpc-sort {
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	.xgpc-sort select {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xgpc-card-media img,
	.xgpc-progress span,
	.xgpc-filter-button,
	.xgpc-load-more,
	.xgpc-cart {
		transition: none;
	}
}
