:root {
	--side-bar: 330px;
	--blocks-indent-category: var(--blocks-indent);
}
@media (min-width: 1367px) {
	:root {
		--products-in-col: 6;
	}
}
@media (min-width: 1280px) and (max-width: 1366px) {
	:root {
		--products-in-col: 4;
	}
}
@media (max-width: 1279px) {
	:root {
		--side-bar: 0px;
		--blocks-indent-category: 0px;
	}
}
.woocommerce-no-product {
	grid-column: span 12;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
	height: 100px;
	font-size: 18px;
	line-height: 24px;
	background: var(--light-gray);
	padding: 20px;
	border-radius: var(--radius-medium);
}
/* Sub Category List - Start */
.tax-product_tag section.category-subs {
	display: none;
}
section.category-subs {
	padding-top: 0;
	padding-bottom: 60px;
}
.subcategories-wrapper {
	position: relative;
}
.subcategories-wrapper.is-collapsed {
	overflow: hidden;
	padding-bottom: 50px;
}
.subcategories-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 15px;
}
.subcategory-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-small);
	cursor: pointer;
	transition: all 0.3s ease;
}
.subcategory-item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	transition: background 0.3s ease;
}
.subcategory-item:hover::before {
	background: rgba(0, 0, 0, 0.15);
}
.subcategory-item.active::before {
	background: rgba(0, 0, 0, 0.1);
}
.subcategory-item.active {
	order: -1;
}
.subcategory-image {
	position: absolute;
	inset: 0;
}
.subcategory-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.subcategory-item span {
	position: relative;
	z-index: 2;
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 20px;
	font-weight: 500;
	color: var(--white);
	text-align: center;
	padding: 5px 10px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* Градиент для скрытия лишних рядов */
.subcategories-gradient {
	display: none;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 170px;
	background: linear-gradient(to bottom, transparent, var(--white));
	z-index: 3;
	pointer-events: none;
}
.subcategories-wrapper.is-collapsed .subcategories-gradient {
	display: block;
}
/* Кнопка "Показати все" */
.subcategories-toggle {
	display: none;
	z-index: 4;
}
.subcategories-wrapper.is-collapsed .subcategories-toggle {
	display: flex;
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
}

/* Скрыть "Без категории" */
.subcategory-item.category-15 {
	display: none !important;
}
@media (max-width: 1366px) {
	section.category-subs {
		padding-top: 10px;
		padding-bottom: 40px;
	}
	.subcategory-item span {
		font-size: 14px;
		line-height: 18px;
	}
}
@media (max-width: 1279px) {
	section.category-subs {
		padding-top: 15px;
		padding-bottom: 30px;
	}
	section.category-subs .container {
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding-left: 15px;
	}
	.subcategories-list {
		display: grid;
		grid-template-columns: none;
		grid-template-rows: repeat(4, auto);
		grid-auto-flow: column;
		grid-auto-columns: 130px;
		gap: 10px;
		width: 100%;
		overflow-x: auto;
		padding-right: 15px;
	}
	.subcategory-item {
		width: 130px;
		aspect-ratio: 3 / 2;
	}
	/* 0-8 элементов: 2 колонки, без скролла */
	.subcategories-list.subs-few {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		grid-auto-flow: row;
		grid-auto-columns: auto;
		overflow-x: visible;
		padding-right: 15px;
	}
	.subcategories-list.subs-few .subcategory-item {
		width: auto;
	}
	/* 9-15 элементов: 3 колонки, без скролла */
	.subcategories-list.subs-medium {
		grid-template-columns: 1fr 1fr 1fr;
		grid-template-rows: auto;
		grid-auto-flow: row;
		grid-auto-columns: auto;
		overflow-x: visible;
		padding-right: 15px;
	}
	.subcategories-list.subs-medium .subcategory-item {
		width: auto;
	}
	.subcategories-wrapper.is-collapsed {
		overflow: visible;
		padding-bottom: 0;
	}
	.subcategories-gradient,
	.subcategories-toggle {
		display: none !important;
	}
}
/* Sub Category List - End */

/* Category Top - Start */
body.post-type-archive.woocommerce-shop .woocommerce-breadcrumb a:last-child {
	color: #121212 !important;
}
.woocommerce-category-header {
	padding: 0 0 30px 0;
	overflow: visible;
	z-index: 4;
}
.category-title-row {
	width: 100%;
}
.category-title-row .page-title {
	display: inline;
}
.products-count {
	font-size: 14px;
	line-height: 14px;
	font-weight: 400;
	color: #a5a5a5;
	vertical-align: super;
	margin-left: 3px;
}
.woocommerce-category-header .woocommerce-notices-wrapper {
	display: none;
}
.woocommerce-result-count {
	display: none;
}
.how-many {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}
.how-many .woocommerce-result-count {
	display: block;
	color: #a5a5a5;
	font-size: 14px;
	line-height: 14px;
}
.filter-sort {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.sorting-pc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.sorting-pc > span {
	color: #d7d7d7;
}
.current-sort {
	display: flex;
	align-items: center;
	gap: 8px;
}
.current-sort img {
	width: 12px;
	height: 12px;
	object-fit: contain;
	transition: all 0.3s ease;
	transform: rotate(90deg);
}
.current-sort.active img {
	transform: rotate(-90deg);
}
.sorting-dropdown {
	position: absolute;
	top: 30px;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: #fff;
	width: fit-content;
	padding: 10px;
	color: #000;
	border-radius: var(--radius-small);
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	z-index: 2;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.sorting-dropdown.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}
.sorting-dropdown a {
	display: flex;
	justify-content: space-between;
	gap: 5px;
}
.sorting-dropdown a.active {
	font-weight: 500;
}
@media (max-width: 1279px) {
	.woocommerce-category-header {
		padding: 15px 0 15px 0;
	}
	.woocommerce-category-header .container {
		align-items: center;
		gap: 10px;
	}
	.filter-sort {
		width: 100%;
	}
	img.filter-mob.mob {
		object-fit: contain;
	}
	.mob-sorting-wrapper {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding: 0;
		z-index: 100;
		pointer-events: none;
	}
	.mob-sorting-wrapper.active {
		pointer-events: all;
	}
	.mob-sorting-wrapper .mob-sorting-box {
		position: relative;
		top: var(--header-height);
		right: -130vw;
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		padding: 0;
		background: var(--white);
		box-shadow: 0px 0px 24px 0px #1a1a1a14;
		transition: all 0.7s ease;
		z-index: 120;
	}
	.mob-sorting-wrapper.active .mob-sorting-box {
		right: 0;
	}
	.mob-sorting-wrapper.active .lightbox-background {
		pointer-events: all;
		opacity: 1;
	}
	.mob-sorting-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 20px 20px 20px 20px;
		background: var(--light-gray);
	}
	.mob-sorting-header .h4 {
		font-family: var(--font-family-1);
		font-weight: 500;
		font-size: 16px;
		line-height: 19px;
		color: var(--black);
	}
	.mob-sorting-header .close-sorting {
		cursor: pointer;
		padding: 10px;
	}
	.mob-sorting-header .close-sorting img {
		cursor: pointer;
		object-fit: contain;
	}
	.mob-sorting.mob {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 25px;
	}
	.mob-sorting.mob .active {
		font-weight: 500;
	}
}
/* Category Top - End */

/* Category Content - Start */
.woocommerce-category-content {
	padding-bottom: 80px;
}
.woocommerce-category-content .container-sidebar {
	grid-template-columns: 1fr;
}
/* Category Side - Start */
@media (min-width: 1280px) {
	.mob-sort-call {
		display: none !important;
	}
}
.category-side {
	position: fixed;
	top: 0;
	left: -130vw;
	display: flex;
	flex-direction: column;
	width: var(--side-bar);
	height: 100vh;
	padding: 20px;
	padding-top: calc(var(--header-height) + 20px);
	background: rgb(255 255 255);
	box-shadow: 0px 0px 24px 0px #1a1a1a14;
	transition: all 0.7s ease;
	z-index: 100;
}
.category-side.active {
	left: 0;
}
.mob-filter-call {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}
.mob-filter-call img.chevron,
.mob-sort-call img.chevron {
	width: 12px;
	height: 12px;
	object-fit: contain;
	transform: rotate(90deg);
}
.mob-filter-call span {
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 16px;
	font-weight: 500;
	color: var(--black);
}
.mob-sort-call {
	display: flex;
	align-items: center;
	gap: 4px;
}
.mob-sort-call img {
	width: 12px;
	height: 12px;
	object-fit: contain;
}
.mob-sort-call span {
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 16px;
}
.mob-filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0 0 10px 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 20px;
}
.mob-filter-header .close-filter {
	cursor: pointer;
	padding: 10px;
}
.mob-filter-header .close-filter img {
    width: 16px;
    height: 16px;
}
#woo-filter-wrapper {
	overflow: auto;
	padding-right: 10px;
}
@media (max-width: 768px) {
	.category-side {
		padding-top: calc(var(--header-height) + 10px);
		top: 0;
		width: 100vw;
		height: 100vh;
		background: rgb(255 255 255 / 100%);
	}
	header.go + #primary .category-side {
		padding-top: 20px;
		padding-bottom: 80px;
	}
	.mob-filter-header {
		margin-bottom: 0;
	}
	.mob-filter-call img.chevron {
		width: 9px;
		height: 9px;
	}
	.mob-sort-call img.chevron {
		width: 9px;
		height: 9px;
	}
	#woo-filter-wrapper {
		overflow: auto;
		padding-right: 0;
		padding-bottom: 0px;
		padding-top: 15px;
	}
}
/* Category Side - End */

/* Category Product List - Start */
.category-product-list .woocommerce-result-count {
	display: none !important;
}

.category-product-list {
	width: 100%;
}
/* Category Product List - End */

/* Pagination - Start */
.loadmore-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 30px auto 0 auto;
}
.woocommerce-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 50px 0 0 0;
	margin: 0 auto;
}
#loadmore + .woocommerce-pagination {
	padding: 30px 0 0 0;
}
.woocommerce-pagination .page-numbers {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 11px;
}
.woocommerce-pagination .page-numbers li a.page-numbers,
.woocommerce-pagination .page-numbers li .current {
	width: 50px;
	height: 50px;
	padding-top: 4px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	transition: all 0.3s ease;
}
.woocommerce-pagination .page-numbers li a.page-numbers.prev {
	padding-top: 0px;
	transform: rotate(180deg);
}
.woocommerce-pagination .page-numbers li a.page-numbers.next {
	padding-top: 0px;
}
.woocommerce-pagination .page-numbers li span.dots {
	padding: 0 15px;
	font-size: 22px;
}
.woocommerce-pagination .page-numbers li .current,
.woocommerce-pagination .page-numbers li a:hover {
	background: var(--primary);
	border: 1px solid var(--primary);
	color: var(--primary-match);
}
.woocommerce-pagination .page-numbers img {
	width: 8px;
	transition: all 0.3s ease;
}
.woocommerce-pagination ul li .page-numbers:hover img {
	filter: url(#primary-color-match);
}
@media (max-width: 667px) {
	.woocommerce-pagination .page-numbers {
		gap: 7px;
	}
	.woocommerce-pagination .page-numbers li a.page-numbers,
	.woocommerce-pagination .page-numbers li .current {
		width: 40px;
		height: 40px;
		padding-top: 2px;
	}
	.woocommerce-pagination .page-numbers li span.dots {
		padding: 0 10px;
		font-size: 18px;
	}
}
/* Pagination - End */

/* Category Content - End */

/* Category Description - Start */
.bottom-seo-text {
	padding-bottom: 100px;
	padding-left: calc(var(--side-bar) + var(--blocks-indent));
}
.bottom-seo-text .h2 {
	max-width: 570px;
	margin-bottom: 15px;
}

@media (max-width: 1279px) {
	.bottom-seo-text {
		padding-left: calc(0px);
	}
	.bottom-seo-text:not(:empty) {
		padding-left: 0;
	}
}
/* Category Description - End */

/* Filter - Start */
#filter-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}
.#filter-form > * {
	order: 1;
}
.filter-group.price-filter {
	order: 2;
}
#filter-form > a {
	order: 3;
}
.filter-group {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0px;
	padding: 0px 0 20px 0;
	background: var(--white);
	border-radius: 0px;
	border-bottom: 1px solid var(--border);
}
.filter-group .filter-group-head {
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}
.filter-group .filter-group-head .h3 {
	font-size: 20px;
	line-height: 24px;
}
.filter-group .filter-group-head i {
	position: relative;
	display: flex;
	width: 20px;
	height: 20px;
}
.filter-group .filter-group-head i:before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	width: 20px;
	height: 20px;
	background: url(/wp-content/themes/shop/img/icons/filter-plus.svg) no-repeat center center;
	background-size: contain;
}
.filter-group.active .filter-group-head i:before {
	background: url(/wp-content/themes/shop/img/icons/filter-minus.svg) no-repeat center center;
}
.filter-group .filter-group-body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-top: 15px;
}
.filter-group.price-filter .filter-group-body {
	padding-top: 20px;
}
.filter-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.filter-checkbox input {
	display: none;
}
.filter-checkbox .custom-checkbox {
	position: relative;
	display: flex;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	transition: all 0.3s ease-in-out;
}
.filter-checkbox input:checked + .custom-checkbox {
	border: 1px solid var(--primary);
	background: var(--primary);
}
.filter-checkbox .checkbox-value {
	line-height: 25px;
}
.filter-checkbox .checkbox-name {
	color: #303030;
	padding-top: 5px;
}
.price-inputs {
	display: flex;
	align-items: center;
	gap: 0;
	justify-content: center;
	width: 100%;
	margin-bottom: 20px;
}
.price-inputs input {
	color: var(--black);
	width: 50%;
	padding: 10px 10px 6px 10px;
	outline: none;
	border: none;
	border-radius: var(--radius-small);
	background: var(--white);
	border: 1px solid var(--border);
	font-family: var(--font-family-2);
	font-size: 18px;
	line-height: 28px;
	text-align: center;
}
.price-inputs input:nth-child(1) {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-right: 0px solid var(--border);
}
.price-inputs input:nth-child(2) {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
}
input.hidden {
	display: none;
}
.reset-filters,
.submit-filter-call {
	height: 45px !important;
}
.btn.reset-filters {
	background: #e13a3a;
}
.btn.reset-filters:hover {
	background: red;
}
@media (max-width: 1279px) {
	#filter-form {
		gap: 0px;
	}
	.filter-group {
		gap: 0px;
		padding: 20px 0px;
		background: #fff;
		border-radius: 0px;
	}
	.filter-group .filter-group-head .h3 {
		font-size: 16px;
		line-height: 22px;
	}
	.reset-filters, 
	.submit-filter-call {
		margin-top: 15px;
		margin-left: 0;
		width: 100%;
	}
}
/* Filter - End */

/* Price Range Slider - Start */
.price-range-slider {
	position: relative;
	height: 30px;
	width: calc(100% - 20px);
	margin: 0 auto 15px;
	-webkit-tap-highlight-color: transparent;
	touch-action: none;
}
.price-range-slider .slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	background: #d2d2d2;
	border-radius: 2px;
	transform: translateY(-50%);
	pointer-events: none;
}
.price-range-slider input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	padding: 0;
}
/* Safari/iOS track */
.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
	width: 100%;
	height: 3px;
	background: transparent;
	border: none;
}
.price-range-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -9px; /* (track height - thumb height) / 2 */
	background: var(--primary);
	border: 3px solid var(--primary);
	border-radius: var(--radius-max);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s ease;
}
.price-range-slider input[type="range"]::-webkit-slider-thumb:hover {
	transform: scale(1.1);
}
/* Firefox */
.price-range-slider input[type="range"]::-moz-range-track {
	width: 100%;
	height: 3px;
	background: transparent;
	border: none;
}
.price-range-slider input[type="range"]::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background: var(--primary);
	border: 3px solid var(--primary);
	border-radius: var(--radius-max);
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s ease;
}
.price-range-slider input[type="range"]::-moz-range-thumb:hover {
	transform: scale(1.1);
}
.price-range-slider input[type="range"]:focus {
	outline: none;
}
/* Z-index: левый бегунок сверху когда слева, правый - когда справа */
.price-range-slider input.range-min {
	z-index: 2;
}
.price-range-slider input.range-max {
	z-index: 1;
}
@media (max-width: 1279px) {
	.filter-group.price-filter {
		padding: 20px 0px 0 0;
		gap: 0px;
		border-bottom: 0px solid var(--border);
	}      
	.price-range-slider {
		height: 40px;
	}
	.price-range-slider input[type="range"]::-webkit-slider-thumb {
		width: 28px;
		height: 28px;
		margin-top: -12px;
	}
	.price-range-slider input[type="range"]::-moz-range-thumb {
		width: 28px;
		height: 28px;
	}
}
/* Price Range Slider - End */

.filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	height: fit-content;
}

.filter-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: 30px;
	width: fit-content;
	margin: 0;
	padding: 0 15px 0 20px;
	background: #efefef;
	font-size: 14px;
	line-height: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	border-radius: var(--radius-large);
}
.filter-chip.reset-all-chip {
	padding: 0 20px 0 20px;
}
.filter-chip span {
	font-family: var(--font-family-1);
	color: var(--black);
	font-weight: 500;
	height: 14px;
	transition: all 0.3s ease;
}
.filter-chip span.remove-chip {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}
.filter-chip span.remove-chip::before,
.filter-chip span.remove-chip::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 1px;
	background: var(--black);
	transition: all 0.3s ease;
}
.filter-chip span.remove-chip::before {
	transform: rotate(45deg);
}
.filter-chip span.remove-chip::after {
	transform: rotate(-45deg);
}
.filter-chip.reset-all-chip {
	background-color: var(--black);
	cursor: pointer;
	transition: all 0.3s ease;
}
.filter-chip.reset-all-chip:hover {
	background-color: #e70000;
}
.filter-chip.reset-all-chip span{
	color: #fff;
}
@media (max-width: 1279px) {
	.filter-chip {
		padding: 0 10px 0 15px;
	}
	.filter-chip.reset-all-chip {
		padding: 0 15px 0 15px;
	}
}

.apply-filter-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	padding: 5px 6px 5px 5px;
	background: var(--primary);
	border-radius: var(--radius-max);
	transition: all 0.3s ease;
}
.apply-filter-button p {
	font-size: 12px;
	line-height: 12px;
	color: var(--primary-match);
	transition: all 0.3s ease;
}
.apply-filter-button:hover {
	background: var(--accent);
}
.apply-filter-button:hover p {
	color: var(--accent-match);
}

/* Filter - End */

.banner-in-product-list {
	position: relative;
	display: flex;
	width: calc(
		(
			(
				var(--full-width) - var(--container-indent) - var(--side-bar) - var(--blocks-indent-category) -
		var(--scroll-bar)
		) / var(--products-in-col) - var(--products-indent-w) * (var(--products-in-col) - 1) /
		var(--products-in-col) - 5px
		) * 3 + var(--products-indent-w) * 2
		);
}

@media (max-width: 1279px) {
	.banner-in-product-list {
		display: flex;
		width: 100%;
	}
}
