.spa-category-archive {
	width: 100%;
	margin: 0;
	padding: 0 0 56px;
	color: #111;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
	width: 100%;
	max-width: 1209px;
	margin: 16px auto 0 !important;
	color: #777;
	font-size: 12px;
	text-align: right;
}

.woocommerce .woocommerce-breadcrumb a,
.woocommerce-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.spa-archive-summary {
	display: flex;
	direction: ltr;
	align-items: center;
	gap: 8px;
	margin: 40px 0 33px;
	color: #111;
	font-size: 13px;
	font-weight: 700;
}

.spa-archive-count {
	font-weight: 700;
}

.spa-archive-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.spa-archive-title {
	margin: 0;
	color: inherit;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.spa-archive-controls,
.spa-archive-bottom-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.spa-archive-control {
	display: flex;
	min-height: 52px;
	align-items: center;
	gap: 18px;
	padding: 10px 19px;
	border: 1px solid rgb(235 235 235 / 60%);
	border-radius: 14px;
	color: #111;
	white-space: nowrap;
}

.spa-archive-control__label {
	font-size: 13px;
	font-weight: 700;
}

.spa-archive-control__divider {
	width: 1px;
	height: 30px;
	background: #ebebeb;
}

.spa-archive-control .woocommerce-ordering,
.spa-archive-control .spa-category-filter-form {
	display: flex;
	float: none;
	align-items: center;
	margin: 0;
}

.spa-archive-control select {
	max-width: 235px;
	min-height: 30px;
	margin: 0;
	padding: 0 20px 0 0;
	border: 0 !important;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.spa-archive-control .woocommerce-ordering select {
	float: none;
}

.spa-archive-products ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 16px;
	margin: 60px 0 0;
	padding: 0 0 46px;
}

.spa-archive-products ul.products::before,
.spa-archive-products ul.products::after {
	display: none;
}

.spa-archive-card {
	display: flex;
	float: none !important;
	width: auto !important;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	margin: 0 !important;
	padding: 0 !important;
}

.spa-archive-card__art {
	position: relative;
	display: block;
	width: 100%;
	overflow: visible;
	border-radius: 16px;
	color: #fff;
	text-decoration: none;
}

.spa-archive-card__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	aspect-ratio: 500 / 704;
	border-radius: 16px;
	object-fit: cover;
}

.spa-archive-card__shade {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	height: 33%;
	border-radius: 0 0 16px 16px;
	background: linear-gradient(to top, #040404, rgb(0 0 0 / 11%));
	pointer-events: none;
}

.spa-archive-card__created {
	position: absolute;
	z-index: 4;
	top: -8px;
	left: 50%;
	display: flex;
	width: 90px;
	height: 48px;
	align-items: flex-start;
	justify-content: center;
	padding: 10px 14px 0;
	transform: translateX(-50%);
	border-radius: 0 0 12px 12px;
	background: #ef1717;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.spa-archive-card__platform {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 0;
	display: flex;
	min-width: 34px;
	height: 32px;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border-radius: 0 12px 12px 0;
	background: #fff;
	color: #111;
	font-size: 11px;
	font-weight: 800;
}

.spa-archive-card__art-info {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 20px 16px;
}

.spa-archive-card__art-titles {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.spa-archive-card__art-titles span:first-child {
	max-width: 100%;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spa-archive-card__art-titles span:last-child {
	max-width: 100%;
	overflow: hidden;
	font-size: 10px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spa-archive-card__brand {
	display: flex;
	flex: 0 0 28px;
	flex-direction: column;
	align-items: center;
	gap: 1px;
}

.spa-archive-card__brand span {
	color: #fff;
	font-size: 4px;
	line-height: 1;
}

.spa-archive-card__details {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 24px;
	padding: 0 8px;
}

.spa-archive-card__title {
	display: flex;
	min-height: 56px;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.spa-archive-card__title span:first-child {
	font-size: 13px;
	font-weight: 600;
}

.spa-archive-card__title span:last-child {
	min-height: 32px;
	font-size: 16px;
	font-weight: 800;
	line-height: 16px;
}

.spa-archive-card__purchase {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.spa-archive-card__buttons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.spa-archive-card__cart,
.spa-archive-card__gallery {
	display: flex;
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 0;
	border-radius: 14px;
	background: #000;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}

.spa-archive-card__cart:hover,
.spa-archive-card__gallery:hover {
	opacity: .8;
}

.spa-archive-card__gallery {
	display: none;
	border: 1px solid #e9e9e9;
	background: transparent;
	color: #111;
}

.spa-archive-card__price {
	padding-top: 12px;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	text-align: right;
}

.spa-archive-card__price del {
	color: #888;
	font-size: 12px;
	font-weight: 400;
}

.spa-archive-card__price ins {
	background: transparent;
	text-decoration: none;
}

.spa-category-archive .woocommerce-pagination {
	margin: 8px 0 0;
}

.spa-category-archive .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	border: 0;
}

.spa-category-archive .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

.spa-category-archive .woocommerce-pagination .page-numbers {
	display: inline-flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border: 1px solid #111;
	border-radius: 14px;
	box-shadow: 0 2px 0 #000;
	color: #111;
	text-decoration: none;
}

.spa-category-archive .woocommerce-pagination .page-numbers.current {
	background: #111;
	color: #fff;
}

.spa-category-archive .woocommerce-pagination .page-numbers.dots {
	border-color: transparent;
	box-shadow: none;
}

.spa-archive-bottom-controls {
	margin-top: 32px;
}

.spa-category-archive .term-description {
	margin-top: 20px;
	padding: 24px 0;
	border-top: 1px solid #ededed;
	border-bottom: 1px solid #ededed;
	color: #555;
	font-size: 14px;
	line-height: 2;
}

.spa-category-archive .term-description > :first-child {
	margin-top: 0;
}

.spa-category-archive .term-description > :last-child {
	margin-bottom: 0;
}

.spa-gallery-dialog {
	position: fixed;
	width: min(92vw, 1100px);
	max-width: none;
	height: min(90vh, 900px);
	max-height: none;
	align-items: center;
	justify-content: center;
	padding: 56px;
	border: 0;
	border-radius: 16px;
	background: #090909;
	color: #fff;
}

.spa-gallery-dialog[open] {
	display: flex;
}

.spa-gallery-dialog::backdrop {
	background: rgb(0 0 0 / 90%);
}

.spa-gallery-dialog__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.spa-gallery-dialog__close,
.spa-gallery-dialog__previous,
.spa-gallery-dialog__next {
	position: absolute;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	background: rgb(0 0 0 / 60%);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.spa-gallery-dialog__close {
	top: 12px;
	right: 12px;
}

.spa-gallery-dialog__previous {
	top: 50%;
	left: 10px;
}

.spa-gallery-dialog__next {
	top: 50%;
	right: 10px;
}

.spa-gallery-dialog__count {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 13px;
}

html.dark .spa-category-archive {
	color: #fff;
}

html.dark .spa-archive-summary,
html.dark .spa-archive-control,
html.dark .spa-archive-card__price {
	color: #fff;
}

html.dark .spa-archive-control {
	border-color: transparent;
	background: #191919;
}

html.dark .spa-archive-control__divider {
	background: #444;
}

html.dark .spa-archive-card__gallery {
	border-color: rgb(255 255 255 / 12%);
	color: #fff;
}

html.dark .spa-category-archive .woocommerce-pagination .page-numbers {
	border-color: #fff;
	box-shadow: 0 2px 0 #fff;
	color: #fff;
}

html.dark .spa-category-archive .woocommerce-pagination .page-numbers.current {
	background: #fff;
	color: #111;
}

html.dark .spa-category-archive .term-description {
	border-color: #292929;
	color: #aaa;
}

@media (min-width: 768px) {
	.spa-archive-controls,
	.spa-archive-bottom-controls {
		flex-direction: row;
		gap: 8px;
	}

	.spa-archive-card__gallery {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.spa-archive-summary {
		margin: 36px 0 43px;
	}

	.spa-archive-products ul.products {
		margin-top: 56px;
	}

	.spa-archive-header {
		flex-direction: row;
		justify-content: space-between;
		gap: 20px;
	}

	.spa-archive-title {
		font-size: 36px;
		text-align: right;
	}

	.spa-archive-products ul.products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.spa-archive-bottom-controls {
		align-items: stretch;
	}

	.spa-archive-bottom-controls .spa-archive-control {
		width: min(100%, 329px);
	}

	.spa-archive-card__details {
		gap: 20px;
	}

	.spa-archive-card__art-info {
		padding-right: 12px;
		padding-left: 12px;
	}

	.spa-archive-card__art-titles span:first-child {
		font-size: 12px;
	}

	.spa-archive-card__purchase {
		gap: 6px;
	}

	.spa-archive-card__cart,
	.spa-archive-card__gallery {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.spa-archive-card__buttons {
		gap: 6px;
	}

	.spa-archive-card__price {
		font-size: 13px;
	}

	.spa-gallery-dialog {
		width: 100vw;
		height: 100dvh;
		padding: 48px 38px;
		border-radius: 0;
	}
}
