.catalog-archive {
	background: #fff;
	color: #202124;
}

.catalog-categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: 1240px;
	margin-inline: auto;
	padding: 16px clamp(12px, 3vw, 32px) 24px;
}

.catalog-category {
	display: grid;
	flex: 0 1 calc((100% - 48px) / 5);
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) 2.6em;
	min-width: 0;
	height: clamp(124px, 14vw, 168px);
	gap: 8px;
	padding: 10px 8px 12px;
	border: 1px solid #e2e5e9;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 6px rgb(23 32 43 / 6%);
	color: #242a31;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.catalog-category:hover,
.catalog-category:focus-visible,
.catalog-category[aria-current] {
	border-color: var(--dtka-orange-dark);
	color: var(--dtka-orange-dark);
}

.catalog-category:hover,
.catalog-category:focus-visible {
	box-shadow: 0 4px 12px rgb(23 32 43 / 12%);
}

.catalog-category:focus-visible {
	outline: 2px solid var(--dtka-orange-dark);
	outline-offset: 2px;
}

.catalog-category[aria-current] {
	background: #fff4f3;
	box-shadow: inset 0 -3px var(--dtka-orange-dark);
}

.catalog-category-image {
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.catalog-category-image img {
	display: block;
}

.catalog-category > :last-child {
	display: -webkit-box;
	grid-row: 2;
	align-self: center;
	max-height: 2.6em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.catalog-category-image img,
.catalog-product-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.catalog-banner {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: clamp(240px, 24vw, 390px);
	padding: 48px 24px;
	background: #282624;
	color: #fff;
	text-align: center;
}

.catalog-banner-image,
.catalog-banner::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.catalog-banner-image {
	z-index: -2;
	object-fit: cover;
}

.catalog-banner::after {
	z-index: -1;
	background: rgb(0 0 0 / 52%);
	content: "";
}

.catalog-banner h1 {
	margin: 0;
	color: inherit;
	font-size: clamp(32px, 3.2vw, 52px);
	font-weight: 800;
	line-height: 1.12;
	text-transform: uppercase;
}

.catalog-description {
	max-width: 760px;
	margin: 16px auto 0;
	font-size: clamp(16px, 1.7vw, 26px);
}

.catalog-description p {
	margin: 0;
}

.catalog-results {
	max-width: 830px;
	margin: 0 auto;
	padding: 26px 24px 40px;
}

.catalog-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 48px;
}

.catalog-product {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.catalog-product-image {
	height: clamp(180px, 18vw, 240px);
}

.catalog-product h2 {
	margin: 12px 0;
	color: var(--dtka-orange-dark);
	font-size: 17px;
	line-height: 1.35;
}

.catalog-product p {
	margin: 0 0 14px;
	font-size: 14px;
}

.catalog-product-link {
	width: min(100%, 276px);
	margin-top: auto;
	padding: 8px 12px;
	border: 2px solid var(--dtka-orange);
	border-radius: 4px;
	color: var(--dtka-orange-dark);
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

.catalog-product-link:hover {
	background: var(--dtka-orange-dark);
	color: #fff;
}

.catalog-empty,
.catalog-results .pagination {
	text-align: center;
}

.catalog-results .pagination {
	margin-top: 30px;
}

.catalog-results .page-numbers {
	margin: 0 5px;
}

@media (max-width: 840px) {
	.catalog-category {
		flex-basis: calc((100% - 24px) / 3);
	}
}

@media (max-width: 560px) {
	.catalog-category {
		flex-basis: calc((100% - 12px) / 2);
	}

	.catalog-products {
		grid-template-columns: 1fr;
	}
}
