/* Grid system */
grid-system {
	display: grid;
	grid-template-columns: repeat(auto-fill, 94px);
	grid-auto-rows: auto;
	gap: calc(var(--unk-column-gap) * 2);
	width: 100%;
	height: auto;
	position: relative;
	margin: 0;
}

grid-system .grid-system-card {
	position: relative;
	z-index: 0;
	width: 94px;
	opacity: 1;
	visibility: visible;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
}

grid-system .grid-system-card[data-grid-type='product'] {
	overflow: hidden;
}

grid-system .grid-system-card.is-filter-hidden {
	display: none;
}

grid-system .grid-system-card .image {
	display: block;
	width: 100%;
	aspect-ratio: 94 / 120;
	overflow: hidden;
}

grid-system .grid-system-card .image.has-placeholder {
	background: var(--unk-border-color);
}

grid-system .grid-system-card .image img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}

grid-system .grid-system-card .info {
	position: relative;
	max-width: 94px;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	white-space: pre-line;
	word-break: break-word;
}

grid-system .grid-system-card .info .title {
	text-transform: uppercase;
	font-weight: var(--unk-font-weight-01);
	display: -webkit-box !important;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

grid-system .grid-system-card .info .subtitle {
	color: var(--unk-color-03);
}

grid-system[data-grid-layout='large'] {
	grid-template-columns: repeat(auto-fill, 196px);
}

grid-system[data-grid-layout='large'] .grid-system-card {
	width: 196px;
}

grid-system[data-grid-layout='large'] .grid-system-card .image {
	aspect-ratio: 196 / 250;
}

grid-system[data-grid-layout='large'] .grid-system-card .info {
	display: none;
}

.grid-system-navigation {
	position: fixed;
	left: 50%;
	bottom: calc(var(--unk-column-gap) * 2 + 8px);
	z-index: calc(var(--unk-z-fixed) + 1);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	max-width: var(--unk-max-width);
	padding: 0 calc(var(--unk-column-gap) * 2);
	color: var(--unk-color-01);
	font-size: var(--unk-text-size-l);
	font-weight: var(--unk-font-weight-01);
	line-height: 1em;
	pointer-events: none;
	transform: translateX(-50%);
}

body.menu-open .grid-system-navigation,
body.menu-open grid-system-filters {
	z-index: calc(var(--unk-z-fixed) - 1);
}

.grid-system-navigation button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	color: inherit;
	pointer-events: auto;
}

.grid-system-navigation .icon[data-theme] > svg .svg-fill {
	fill: currentColor;
}

.grid-system-navigation > button {
	position: relative;
	isolation: isolate;
	padding: 0;
}

.grid-system-navigation [data-grid-filters-toggle] {
	gap: 8px;
	margin-left: 8px;
	justify-content: flex-start;
	max-width: calc(50% - var(--unk-column-gap));
	min-width: 0;
}

.grid-system-navigation [data-grid-filters-toggle][data-has-active-filters] {
	padding-right: 8px;
}

.grid-system-navigation [data-grid-filters-icon] {
	flex: 0 0 auto;
}

.grid-system-navigation [data-grid-filters-toggle] [data-grid-filters-icon='on'],
.grid-system-navigation [data-grid-filters-toggle][data-has-active-filters] [data-grid-filters-icon='off'] {
	display: none;
}

.grid-system-navigation [data-grid-filters-toggle][data-has-active-filters] [data-grid-filters-icon='on'] {
	display: inline-flex;
}

.grid-system-navigation [data-grid-filters-label] {
	display: block;
	flex: 0 0 auto;
	white-space: nowrap;
}

.grid-system-navigation [data-grid-filters-summary] {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--unk-color-03);
}

.grid-system-navigation [data-grid-filters-toggle].is-overflowing [data-grid-filters-summary] {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), rgba(0, 0, 0, 0.25) calc(100% - 8px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 18px), rgba(0, 0, 0, 0.25) calc(100% - 8px), transparent);
}

.grid-system-navigation > button::before,
.grid-system-layouts::before {
	content: '';
	position: absolute;
	inset: -8px;
	z-index: 1;
	background: var(--unk-panel-corners);
	transition: inset 0.2s ease;
}

.grid-system-navigation > button::before {
	right: 0;
}

.grid-system-layouts::before {
	pointer-events: none;
}

.grid-system-navigation > button::after,
.grid-system-layouts::after {
	content: '';
	position: absolute;
	inset: -8px;
	z-index: -1;
	background: color-mix(in srgb, var(--unk-color-02) 60%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.2);
	backdrop-filter: blur(16px) saturate(1.2);
}

.grid-system-navigation > button::after {
	right: 0;
}

.grid-system-layouts {
	position: relative;
	isolation: isolate;
	display: flex;
	gap: 12px;
	margin-left: auto;
	margin-right: 8px;
}

.grid-system-layouts button {
	position: relative;
	padding: 0;
}

.grid-system-layouts button::before {
	content: '';
	position: absolute;
	inset: -6px;
}

.grid-system-layouts button[aria-pressed='true'] {
	color: var(--unk-color-03);
}

grid-system-filters {
	position: fixed;
	left: 0;
	top: 0;
	z-index: var(--unk-z-modal);
	display: block;
	width: 100vw;
	height: 100dvh;
	pointer-events: none;
}

grid-system-filters .grid-system-filters-panel {
	position: absolute;
	left: calc(max(0px, (100vw - var(--unk-max-width)) / 2) + var(--unk-column-gap) * 2);
	bottom: calc(var(--unk-column-gap) * 2);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: min(430px, calc(min(100vw, var(--unk-max-width)) - (var(--unk-column-gap) * 4)));
	min-height: calc(50dvh - 64px);
	padding: 64px calc(var(--unk-column-gap) * 2) calc((var(--unk-column-gap) * 2) + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--unk-color-02) 60%, transparent);
	box-shadow: 18px -18px 48px rgba(0, 0, 0, 0.1);
	-webkit-backdrop-filter: blur(36px) saturate(1.35);
	backdrop-filter: blur(36px) saturate(1.35);
	font-size: var(--unk-text-size-l);
	opacity: 0;
	pointer-events: none;
	transform: translateY(16px);
}

grid-system-filters[open] .grid-system-filters-panel {
	pointer-events: auto;
}

grid-system-filters .grid-system-filter-group > strong {
	font-weight: var(--unk-font-weight-01);
}

grid-system-filters .grid-system-filter-options {
	display: block;
	-moz-column-count: 3;
	column-count: 3;
	-moz-column-gap: 32px;
	column-gap: 32px;
	margin-top: 6px;
}

grid-system-filters button {
	display: block;
	width: -webkit-max-content;
	width: -moz-max-content;
	width: max-content;
	max-width: 100%;
	text-align: left;
}

grid-system-filters [data-filter-option] {
	-moz-column-break-inside: avoid;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	width: 100%;
	padding-bottom: 4px;
}

grid-system-filters[data-has-active-filters] [data-filter-option] {
	opacity: 0.35;
}

grid-system-filters[data-has-active-filters] [data-filter-option].is-active {
	opacity: 1;
}

grid-system-filters .grid-system-filters-actions {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: auto;
	line-height: 1em;
}

grid-system-filters [data-grid-filters-clean-control] {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
}

@media screen and (pointer: fine) {
	.grid-system-navigation > button:hover::before {
		inset: -10px -2px -10px -10px;
	}

	.grid-system-layouts:has(button:hover)::before {
		inset: -10px;
	}

	.grid-system-navigation button:hover {
		color: var(--unk-color-03);
	}
}

@media screen and (min-width: 1024px) and (pointer: fine) {
	grid-system[data-grid-layout='large'] .grid-system-card {
		overflow: visible;
	}

	grid-system[data-grid-layout='large'] .grid-system-card::after {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		background: var(--unk-panel-corners);
		background-size: 0 1px, 1px 0, 0 1px, 1px 0, 0 1px, 1px 0, 0 1px, 1px 0;
		transition: background-size 0.3s ease, inset 0.2s ease;
	}

	grid-system[data-grid-layout='large'] .grid-system-card:hover::after,
	grid-system[data-grid-layout='large'] .grid-system-card:focus-visible::after {
		inset: -2px;
		background-size: 6px 1px, 1px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px, 6px 1px, 1px 6px;
	}

	grid-system[data-grid-layout='large'] .grid-system-card .info {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		max-width: none;
		padding: 12px;
		color: var(--unk-color-02);
		text-align: center;
		background: rgba(0, 0, 0, 0.55);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
		opacity: 0;
		pointer-events: none;
		-webkit-filter: blur(6px);
		filter: blur(6px);
		transition:
			opacity 0.35s ease,
			-webkit-filter 0.35s ease;
		transition:
			opacity 0.35s ease,
			filter 0.35s ease;
		transition:
			opacity 0.35s ease,
			filter 0.35s ease,
			-webkit-filter 0.35s ease;
	}

	grid-system[data-grid-layout='large'] .grid-system-card:not([data-grid-type='product']):not([data-grid-type='magazine']) .info .subtitle {
		display: none;
	}

	grid-system[data-grid-layout='large'] .grid-system-card .info .subtitle {
		color: var(--unk-color-02);
	}

	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']) .info:has(.subtitle) > * {
		opacity: 0;
		-webkit-filter: blur(4px);
		filter: blur(4px);
		transform: translateY(6px);
		transition:
			opacity 0.3s ease,
			transform 0.3s ease,
			-webkit-filter 0.3s ease;
		transition:
			opacity 0.3s ease,
			filter 0.3s ease,
			transform 0.3s ease;
		transition:
			opacity 0.3s ease,
			filter 0.3s ease,
			transform 0.3s ease,
			-webkit-filter 0.3s ease;
	}

	grid-system[data-grid-layout='large'] .grid-system-card:hover .info,
	grid-system[data-grid-layout='large'] .grid-system-card:focus-visible .info {
		opacity: 1;
		-webkit-filter: blur(0);
		filter: blur(0);
	}

	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):hover .info:has(.subtitle) > *,
	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):focus-visible .info:has(.subtitle) > * {
		opacity: 1;
		-webkit-filter: blur(0);
		filter: blur(0);
		transform: translateY(0);
	}

	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):hover .info:has(.subtitle) > :nth-child(1),
	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):focus-visible .info:has(.subtitle) > :nth-child(1) {
		transition-delay: 0.08s;
	}

	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):hover .info:has(.subtitle) > :nth-child(2),
	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):focus-visible .info:has(.subtitle) > :nth-child(2) {
		transition-delay: 0.15s;
	}

	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):hover .info:has(.subtitle) > :nth-child(3),
	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']):focus-visible .info:has(.subtitle) > :nth-child(3) {
		transition-delay: 0.22s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.grid-system-navigation > button::before,
	.grid-system-layouts::before,
	grid-system[data-grid-layout='large'] .grid-system-card::after,
	grid-system[data-grid-layout='large'] .grid-system-card .info,
	grid-system[data-grid-layout='large'] .grid-system-card:is([data-grid-type='product'], [data-grid-type='magazine']) .info:has(.subtitle) > * {
		transition: none;
	}
}

@media only screen and (max-width: 1023.98px) {
	body.menu-open .grid-system-navigation,
	body.menu-open grid-system-filters {
		display: none;
	}

	grid-system[data-grid-layout='large'] {
		grid-template-columns: repeat(auto-fill, 94px);
	}

	grid-system[data-grid-layout='large'] .grid-system-card {
		width: 94px;
	}

	grid-system[data-grid-layout='large'] .grid-system-card .image {
		aspect-ratio: 94 / 120;
	}

	grid-system[data-grid-layout='large'] .grid-system-card .info {
		display: flex;
	}

	.grid-system-layouts {
		display: none;
	}

	.grid-system-navigation [data-grid-filters-toggle] {
		max-width: 90%;
	}

	grid-system-filters {
		height: 100dvh;
	}

	grid-system-filters .grid-system-filters-panel {
		min-height: calc(50dvh - 48px);
		padding-top: 48px;
	}
}
