:root {
    --main-color: #f76551; /* красный */
}


/*--- aiva-sort ---*/
.aiva-sort__wr {
	display: flex;
	margin-bottom: 32px;
	border-bottom: 1px solid rgba(119, 119, 119, .1);
}
.aiva-sort__product-type {
	display: flex;
	align-items: center;
}
.aiva-sort__product-type * {
	position: relative;
	margin: 0 32px 0 0;
	padding-bottom: 18px;
	font-size: 24px;
	font-weight: 600;
}
.aiva-sort__product-type *::after {
    content: "";
    opacity: 0;
    background-color: var(--main-color);
    border-radius: 6px 6px 0 0;
    width: 100%;
    height: 6px;
    transition: opacity 80ms;
    position: absolute;
    bottom: -1px;
    left: 0;
}
.aiva-sort__product-type *.active {
	color: var(--main-color);
}
.aiva-sort__product-type *.active::after {
	opacity: 1;
}
.aiva-sort__action {
	display: flex;
	margin-left: auto;
	margin-bottom: 14px;
}
.aiva-sort__dropdown .facetwp-facet-sortname {
	margin-bottom: 0px;
}
.aiva-sort__dropdown select {
	padding-right: 36px;
	background-color: #FFF;
	color: #212121;
	letter-spacing: 0.5px;
}
.aiva-sort__open-filter {
	position: relative;
	display: none;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	background: #FFF;
	border-radius: 5px;
    border: 1px solid rgba(119, 119, 119, .2);
}
.aiva-sort__open-filter img {
	width: 18px;
}
.facet-count {
	position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    width: 16px;
    height: 16px;
    font-size: 10px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border-radius: 50%;
    background: var(--main-color);
}
/*--- /aiva-sort ---*/


/*--- collections-template ---*/
.collections-template {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, 1fr);
}
.сollections-template__card {
	display: flex;
	padding: 16px;
	height: 100%;
	flex-direction: column;
	justify-content: space-between;
	background: #FFFFFF;
	border-radius: 8px;
}
.сollections-template__card-name {
	display: block;
	margin-bottom: 16px;
	font-size: 18px;
    font-weight: 600;
	color: #212121;
}
.сollections-template__card-thumbs {
	display: grid;
    gap: 6px;
    grid-template-columns: repeat(6, 1fr);
}
.сollections-template__card-count,
.сollections-template__card-thumbs img {
	max-height: 80px;
    width: 100%;
	aspect-ratio: 1;
	border-radius: 4px;
	object-fit: cover;
}
.сollections-template__card-count {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	background: #b3b4b8;
	color: #FFFFFF;
}
.сollections-template__wr-image {
	position: relative;
	display: flex;
	margin-bottom: 24px;
	padding-top: 8px;
	height: 270px;
	align-items: center;
	justify-content: center;
}
.сollections-template__img {
	display: flex;
	height: 100%;
}
.сollections-template__img img {
	width: auto;
	height: 100%;
	color: #212121;
	object-fit: contain;
}
.сollections-template__gallery {
    position: absolute;
    top: 0px;
    left: -2px;
    display: none;
    width: calc(100% + 4px);
	height: calc(100% + 12px);
    z-index: 1;
}
.сollections-template__card:hover .сollections-template__gallery {
    display: flex;
}
.сollections-template__gallery-item {
    display: flex;
	padding: 0px 2px;
    height: 100%;
    flex: 1;
    align-items: flex-end;
}
.сollections-template__gallery-item::after {
    content: "";
    height: 2px;
    width: 100%;
    background: #e2e2e2;
}
.сollections-template__gallery-item.active::after,
.сollections-template__gallery-item:hover::after {
    background: var(--main-color);
}
.сollections-template__card-price {
	margin-bottom: 8px;
	font-size: 18px;
	font-weight: 600;
	color: #212121;
}
.collection-template__card-brands {
	display: grid;
	padding-bottom: 9px;
    gap: 8px;
    grid-template-columns: repeat(6, 1fr);
}
.collection-template__card-brands-item {
	display: flex;
}
.сollections-template__collection-format {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	color: #212121;
}
.сollections-template__collection-format-name {
	color: #b1b1b1;
}
/*--- /collections-template ---*/


.aiva-archive-product .xts-sidebar .facetwp-facet {
	display: flex;
	margin-bottom: 32px;
	flex-direction: column;
	align-items: flex-start;
}
.aiva-archive-product .xts-sidebar .xts-sidebar-inner > *:last-child .facetwp-facet {
	margin-bottom: 0px;
}
.aiva-archive-product {
	display: flex;
	padding: 0px 15px;
	width: 100%;
	align-items: flex-start;
}
.aiva-archive-product .xts-sidebar {
	padding: 16px 20px;
	min-width: 280px;
	background: #FFFFFF;
	border-radius: 12px;
}
.aiva-archive-product .xts-content-area {
	flex: auto;
	padding: 0px 0px 0px 24px;
}
.aiva-archive-product .facet-title {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #212121;
}
.aiva-archive-product .xts-sidebar .widget_block {
	margin: 0px;
	padding: 0px;
	border: none;
}
.aiva-archive-product .xts-sidebar .widget_block p {
	display: none;
}
.aiva-archive-product .facetwp-counter,
.aiva-archive-product .facetwp-display-value {
    font-size: 14px;
	line-height: 20px;
    font-weight: 400;
    color: #212121;
}
.aiva-archive-product .facetwp-counter {
	color: #a3a3a3;
}
.aiva-checkbox,
.aiva-archive-product .facetwp-checkbox {
	position: relative;
	display: flex;
	margin-bottom: 0px;
	padding-left: 28px;
	align-items: center;
	background: none;
	cursor: pointer;
}
.aiva-checkbox.hide {
	display: none;
}
.aiva-checkbox:not(:last-child),
.aiva-archive-product .facetwp-checkbox:not(:last-child) {
	margin-bottom: 12px;
}
.aiva-checkbox.disabled,
.aiva-archive-product .facetwp-checkbox.disabled {
	opacity: 0.5;
}
.aiva-checkbox::after,
.aiva-archive-product .facetwp-checkbox::after {
	position: absolute;
	top: 50%;
	left: 0px;
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 4px;
    border: 2px solid #cecece;
	background-size: 9px !important;
	transform: translate(0, -50%);
}
.aiva-checkbox:hover:not(.disabled):not(.checked)::after,
.aiva-archive-product .facetwp-checkbox:hover:not(.disabled):not(.checked)::after {
	background: url(../img/svg/checked-gray.svg) no-repeat center top 2px;
}
.aiva-checkbox.checked,
.aiva-archive-product .facetwp-checkbox.checked {
	background: none;
}
.aiva-checkbox.checked::after,
.aiva-archive-product .facetwp-checkbox.checked::after {
    border-color: var(--main-color);
	background: var(--main-color) url(../img/svg/checked-white.svg) no-repeat center top 2px;
}
.aiva-archive-product .facetwp-toggle {
	font-size: 14px;
	color: #3a56e8 !important;
}
.my-facet-container {
	display: flex;
    padding: 2px 0px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: flex-start;
}
.my-facet-container::-webkit-scrollbar {
    height: 6px;
	width: 6px;
	background: #EEEEEE;
	border-radius: 6px;
}
.my-facet-container::-webkit-scrollbar-thumb {
    background-color: #9d9d9d;
    border-radius: 6px;
}
.my-facet-container:not(:has(.facetwp-overflow.facetwp-hidden)) {
	margin-bottom: 12px;
	max-height: 250px;
	overflow-y: auto;
}
.my-facet-container:not(:has(.facetwp-toggle)) {
	max-height: none !important;
}
.my-facet-container:last-child {
	margin-bottom: 0px !important;
}
.my-facet-container .facetwp-toggle {
	display: none;
}
.facetwp-aiva-switch {
	display: flex;
	width: 100%;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	cursor: pointer;
}
.facetwp-aiva-switch:not(:last-child) {
	margin-bottom: 24px !important;
}
.facetwp-switch-value {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	user-select: none;
	color: #212121;
}
.facetwp-aiva-switch.disabled .facetwp-switch-value {
	opacity: 0.4;
}
.facetwp-switch-button {
	position: relative;
	display: flex;
	margin-left: auto;
	padding: 3px;
	width: 34px;
	height: 20px;
	background:#d1d1d1;
	border-radius: 30px;
}
.facetwp-aiva-switch.checked .facetwp-switch-button {
	background: var(--main-color);
}
.facetwp-aiva-switch.disabled .facetwp-switch-button,
.facetwp-aiva-switch.checked.disabled .facetwp-switch-button {
	background: #e4e4e4;
}
.facetwp-switch-button-circle {
	position: absolute;
	top: 3px;
	left: 3px;
	content: "";
	display: flex;
	width: 14px;
	height: 14px;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border-radius: 30px;
	transition: all 0.5s;
}
.facetwp-aiva-switch.checked .facetwp-switch-button-circle {
	left: 17px;
}
.facetwp-aiva-switch.checked.disabled .facetwp-switch-button-circle {
	left: 3px;
}
.aiva-archive-product .facetwp-selections ul {
	display: flex;
	padding: 0px;
	margin-bottom: 16px;
	gap: 8px;
    flex-wrap: wrap;
}
.aiva-archive-product .facetwp-selections:has(*) {
	min-height: 38px;
}
.aiva-archive-product .facetwp-selection-label {
	display: none;
}
.aiva-archive-product .facetwp-reset,
.aiva-archive-product .facetwp-selections .facetwp-selection-value {
	margin-right: 0px;
    padding: 8px 26px 8px 12px;
    font-size: 14px;
    line-height: 20px;
    color: #212121;
    border-radius: 8px;
    border: 1px solid #ececec;
	background-size: 10px 10px;
	background-position: right 8px center;
	background-color: #FFFFFF;
}
.aiva-archive-product .facetwp-selections .facetwp-selection-value:not(:last-child),
.aiva-archive-product .facetwp-reset:not(:last-child) {
	margin-right: 8px;
}
.aiva-archive-product .facetwp-selection-value:hover {
	text-decoration: line-through;
	border: 1px solid #dcdcdc;
}
.aiva-archive-product .facetwp-reset {
	position: absolute;
	top: 0px;
	left: 0px;
	display: none;
	padding: 8px 16px;
	min-height: auto;
	font-weight: 400;
	border: 1px solid #abb7f7;
	color: #3a56e8;
}
.aiva-archive-product .facetwp-selections:has(*) + .facetwp-reset {
	display: block;
}
.aiva-archive-product .facetwp-reset:hover {
	text-decoration: line-through;
}
.aiva-selections {
	position: relative;
}
.aiva-selections:has(.facetwp-reset) .facetwp-selections li:first-child {
    padding-left: 126px;
}
.aiva-selections .facetwp-selections li {
	margin-bottom: 0px;
}
.facetwp-display-color {
	display: flex;
	margin-right: 8px;
	min-width: 16px;
    min-height: 16px;
    width: 16px;
    height: 16px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0px 0px 1px 1px #d8d8d8;
}
.aiva-checkbox.big .facetwp-display-color {
	min-width: 24px;
    min-height: 24px;
	width: 24px;
    height: 24px;
}
.facetwp-display-color * {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
input.facetwp-search-input {
	margin-bottom: 16px;
	height: 38px !important;
	color: #212121 !important;
	border: 1px solid #d4d4d4 !important;
}
.facetwp-display-img {
	margin-right: 8px;
}
.facetwp-display-img img {
	display: block;
	width: 48px;
	height: 30px;
	object-fit: contain;
}
.woocommerce-result-count {
	display: none;
}
.aiva-archive-product .xts-sidebar .widget {
	margin: 0px;
	padding: 0px;
	border: none;
}
.aiva-sort__filter-top {
	display: none;
}
.aiva-sort__filter-bottom {
	display: none;
}
.facet-empty {
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #212121;
}
@media (max-width: 1200px) {
    .aiva-archive-product .xts-products .xts-col {
		flex-basis: calc(100% / 3);
        max-width: calc(100% / 3);
        width: calc(100% / 3);
	}
	.collections-template {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 1024px) {
    .aiva-archive-product .xts-sidebar {
		position: fixed;
		display: none;
		top: 0px;
		left: 0px;
		padding: 64px 16px 80px;
		max-width: 100%;
		min-width: 100%;
		width: 100%;
		height: 100%;
		background: #FFF;
		border-radius: 0px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		z-index: 200;
	}
	.open-menu .aiva-archive-product .xts-sidebar {
		display: block;
	}
	.aiva-archive-product .xts-content-area {
		padding: 0px;
		max-width: 100%;
	}
	.aiva-sort__wr {
		margin-bottom: 16px;
		flex-direction: column;
	}
	.aiva-sort__product-type {
		margin-bottom: 16px;
		gap: 16px;
	}
	.aiva-sort__product-type * {
		margin: 0;
		padding: 0px;
		font-size: 20px;
	}
	.aiva-sort__product-type *::after {
		display: none;
	}
	.aiva-sort__dropdown select {
		height: 38px;
	}
	.xts-breadcrumbs,
	.xts-breadcrumbs > * {
		font-size: 14px;
	}
	.aiva-sort__dropdown {
		margin-left: auto;
	}
	.aiva-sort__action {
		margin-left: 0px;
	}
	.aiva-sort__open-filter {
		display: flex;
	}
	.aiva-sort__filter-top {
		position: fixed;
		top: 0px;
		left: 0px;
		display: flex;
		padding: 12px 16px;
		width: 100%;
		align-items: center;
		background: #ffffff;
		border-bottom: 1px solid #dadada;
		z-index: 1;
	}
	.aiva-sort__filter-reset {
		font-size: 14px;
		line-height: 24px;
		color: #3a56e8;
	}
	.aiva-sort__filter-name {
		position: absolute;
		top: 50%;
		left: 50%;
		margin: 0px auto;
		font-weight: 600;
		line-height: 24px;
		color: #212121;
		transform: translate(-50%, -50%);
	}
	.aiva-sort__filter-close {
		margin-left: auto;
		width: 24px;
		height: 24px;
		background: url(../img/svg/close.svg) no-repeat center;
		background-size: 28px;
	}
	.aiva-archive-product .xts-sidebar .facetwp-facet {
		margin-bottom: 24px;
	}
	.aiva-sort__filter-bottom {
		display: block;
        padding: 0px 16px 16px;
        position: fixed;
        width: 100%;
        bottom: 0;
        left: 0;
		z-index: 1;
	}
	.aiva-sort__filter-show {
		display: block;
        padding: 12px 0px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 600;
        width: 100%;
        color: #FFF;
        text-align: center;
        background: var(--main-color);
        border-radius: 6px;
	}
	.aiva-archive-product .facetwp-selections ul {
		margin-bottom: 0px;
		flex-wrap: nowrap;
	}
	.aiva-selections {
		display: flex;
		margin: 0px -16px 8px;
        padding-bottom: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.aiva-selections::before,
	.aiva-selections::after {
		content: "";
		min-width: 16px;
		max-width: 16px;
	}
	.aiva-archive-product .facetwp-reset {
		left: 16px;
	}
	.my-facet-container::-webkit-scrollbar {
		height: 4px;
		width: 4px;
	}
	.aiva-selections .facetwp-selections li {
		display: flex;
		flex-wrap: nowrap;
		white-space: nowrap;
	}
}
@media (max-width: 768px) {
    .aiva-archive-product .xts-products .xts-col {
		flex-basis: calc(100% / 2);
        max-width: calc(100% / 2);
        width: calc(100% / 2);
	}
	.aiva-archive-product .xts-products .xts-col .xts-product-content {
		padding: 12px;
	}
	.collections-template {
		grid-template-columns: repeat(1, 1fr);
	}
	.сollections-template__wr-image {
		height: 208px;
	}
}


.xts-prod-design-add-to-cart .xts-product-thumb {
	aspect-ratio: 1;
}
.xts-prod-design-add-to-cart .xts-product {
	height: 100%;
}
.xts-prod-design-add-to-cart .xts-product-thumb .xts-product-image {
	display: flex;
	height: 100%;
	align-items: center;
    justify-content: center;
}
.xts-prod-design-add-to-cart .xts-product-thumb .xts-product-image img {
	width: auto;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}