/* Header Top - Start */
header { 
	position: fixed;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: var(--white);
	width: 100%;
	height: var(--header-height);
	margin: 0;
	padding: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border);
}

/* Header Main - Start */
.header-main {
	height: calc(var(--header-height) - var(--top-bar-height));
	align-items: center;
	flex-wrap: nowrap!important;
}
.logo-header {
	display: flex;
	align-items: center;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.logo-header img {
	max-height: 43px;
	object-fit: contain;
}
.header-right {
	display: flex;
	align-items: center;
	width: fit-content;
	gap: 15px;
}
@media (max-width: 1480px) {
	.logo-header img {
		max-height: 36px;
	}
}
@media (max-width: 1279px) {
	.side-menu-call {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: 24px;
		height: 24px;
		cursor: pointer;
	}
	.side-menu-call > .menu-line {
		display: flex;
		width: 24px;
		height: 1px;
		background: var(--primary);
		transition: all 0.3s ease;
	}

	/* Состояние активного меню (крестик) */
	.side-menu-call.active > .menu-line:nth-child(1) {
		transform: rotate(45deg) translateY(6px) translateX(4px);
		transform-origin: center;
	}

	.side-menu-call.active > .menu-line:nth-child(2) {
		opacity: 0;
	}

	.side-menu-call.active > .menu-line:nth-child(3) {
		transform: rotate(-45deg) translateY(-6px) translateX(3px);
		transform-origin: center;
	}
}
.btn-circle.user-account {
	border: 1px solid var(--border);
	margin-left: 14px;
}

/* Lanuage Switcher - Start */
.change-lang {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 30px;
}
.language-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.language-wrapper .arrow {
	width: 12px;
	object-fit: contain;
	transition: all 0.3s ease;
}
.language-wrapper.active .arrow {
	transform: rotate(180deg);
}
.language-wrapper .language-box {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-84px - 0px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0px;
	width: fit-content;
	background: var(--white);
	box-shadow: 0 5px 10px rgb(0 0 0 / 15%);
	transition: all 0.5s ease;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.language-wrapper.active .language-box {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}
.language-wrapper .language-box a {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #fff;
	width: 38px;
	height: 38px;
	padding: 9px;
	transition: all 0.5s ease;
}
.language-wrapper .language-box a:hover,
.language-wrapper .language-box a.gt-current-lang {
	background: var(--border);
}
@media (max-width: 1279px) {
	.language-wrapper .arrow {
		width: 10px;
	}
}
/* Lanuage Switcher - End */

/* Currency Switcher - Start */
.change-currency {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 28px;
	cursor: pointer;
}
.currency-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: -5px;
}
.currency-wrapper .arrow {
	width: 12px;
	object-fit: contain;
	transition: all 0.3s ease;
	cursor: pointer;
}
.currency-wrapper.active .arrow {
	transform: rotate(180deg);
}
.currency-wrapper .currency-box {
	position: absolute;
	left: -5px;
	right: 0;
	bottom: calc(-85px - 0px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0px;
	width: fit-content;
	background: var(--white);
	box-shadow: 0 5px 10px rgb(0 0 0 / 15%);
	transition: all 0.5s ease;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.currency-wrapper.active .currency-box {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}
.currency-wrapper .currency-box a {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #fff;
	width: 60px;
	height: 38px;
	padding: 9px;
	transition: all 0.5s ease;
}
.currency-wrapper .currency-box a:hover,
.currency-wrapper .currency-box a.active {
	background: var(--border);
}
@media (max-width: 1279px) {
	.currency-wrapper .arrow {
		width: 10px;
	}
	.currency-wrapper {
		margin-left: -5px;
		margin-right: 8px;
	}
}
/* Currency Switcher - End */

@media (max-width: 1279px) {
	.header-main {
		max-width: calc(100% - var(--container-indent));
		width: calc(100% - var(--container-indent));
		margin: 0(var(--container-indent) / 2);
	}
	.logo-header img {
		max-height: 22px;
	}
}
@media (max-width: 768px) {
	.logo-header {
		margin-right: auto;
	}
	.btn-catalog {
		padding: 6px 5px 5px 5px !important;
	}
	ul#shop-bar-menu > .menu-item:not(.woofc-menu-item) > a > span {
		visibility: hidden;
		font-size: 0;
		line-height: 0;
	}
	ul#shop-bar-menu > .menu-item > a > span:before,
	ul#shop-bar-menu > .menu-item > a > span:after {
		visibility: visible;
	}
	.woofc-menu-item-inner-subtotal::before {
		display: none;
	}
	.woosc-menu-item .woosc-menu-item-inner:after,
	.woosw-menu-item .woosw-menu-item-inner:after,
	.woofc-menu-item .woofc-menu-item-inner:after {
		width: 13px;
		height: 13px;
		line-height: 13px;
		right: -9px !important;
		top: -4px !important;
	}
}
/* Header Main - End */

/* Search - Start */
.search-wrapper {
	display: flex;
	flex-grow: 1;
}
.search-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
}
.search-wrapper.in-search .search-background {
	visibility: visible;
	pointer-events: all;
}
.search-wrapper .search-box .icon {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	/* Left - Right */
	left: initial;
	right: 14px;
	/* Left - Right */
	width: 17px;
	height: 17px;
	background: url(/wp-content/themes/shop/img/icons/search.svg) no-repeat center center;
	background-size: contain;
	/* filter: url(#primary-color); */
	transition: all 0.5s ease;
	cursor: pointer;
	z-index: 2;
}
.search-wrapper.in-search .search-box .icon {
	background: url(/wp-content/themes/shop/img/icons/close.svg) no-repeat center center;
	background-size: contain;
}
.search-wrapper .search-box .input {
	font-family: var(--font-family-1);
	font-size: 14px;
	line-height: 14px;
	font-weight: 400;
	background: #f9f9f9;
	color: #676767;
	padding: 14px 14px 14px 14px;
	transform: translateY(0px);
}
.search-inline-pc {
	display: none;
}
.search-popup-mob {
	display: none;
}
.search-call-mob {
	display: none;
}
/* Search Result - Start */
#search-results {
	position: fixed;
	top: var(--header-height);
	display: flex;
	flex-direction: column;
	width: 628px;
	height: fit-content;
	min-height: 250px;
	max-height: 50vh;
	padding: 0 15px;
	background: var(--white);
	border-bottom-right-radius: 5px;
	border-bottom-left-radius: 5px;
	box-shadow: 0px 2px 5px rgb(0 0 0 / 10%);
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 2;
}
.no-result {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 250px;
}
.category-tabs {
	position: sticky;
	top: 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
	min-height: calc(30px + 16px);
	padding: 15px 0;
	margin: 0 0 15px 0;
	background: #fff;
	overflow-x: auto;
	overflow-y: hidden;
	z-index: 1;
}
.category-tabs::-webkit-scrollbar {
	height: 6px;
}
.category-tabs a {
	display: flex;
	color: #c7c7c7;
	min-width: max-content;
	font-size: 16px;
	line-height: 16px;
}
.category-tabs a.active,
.category-tabs a:hover {
	color: var(--primary);
}
.view-all-results {
	position: sticky;
	bottom: -1px;
	display: flex;
	padding: 15px 0;
	margin-top: auto;
	background: #fff;
}
.tab-content {
	display: flex;
}
.tab-pane {
	display: none;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}
.tab-pane.active {
	display: flex;
}
.product-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	width: 100%;
}
.product-item > a.product-link {
	display: flex;
	width: 50px;
}
.product-item > a.product-link > img {
	width: 50px;
	height: 50px;
	min-width: 50px;
	object-fit: cover;
	border-radius: 5px;
}
.product-item > .product-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	flex-grow: 1;
	gap: 15px;
}
.product-item .product-title-ajax {
	font-family: var(--font-family-2);
	font-size: 16px;
	line-height: 20px;
	font-weight: 300;
	color: var(--black);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
}
.product-item .price {
	margin-left: auto;
	margin-right: 10px;
	font-family: var(--font-family-2);
	font-weight: 500;
	font-size: 16px;
	line-height: 16px;
}
.product-item .quantity-wrapper {
	display: flex;
	align-items: center;
	border: 1px solid var(--border);
}
.product-item .quantity-wrapper .qty {
	width: 24px;
	height: 32px;
	padding: 5px 5px 3px 5px;
	text-align: center;
	border-bottom: 0px solid var(--border);
	border-radius: 0;
	background: transparent;
}
.product-item .quantity-wrapper .change {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	width: 24px;
	cursor: pointer;
	transition: all 0.5s ease;
	font-size: 18px;
	line-height: 18px;
	padding-top: 1px;
}
.product-item .quantity-wrapper .change:hover {
	background: #f8f8f8;
}
.product-item .add-to-cart-container .add_to_cart_button,
.added_to_cart {
	display: none;
}
.product-item .add-to-cart-container .btn.search-to-cart {
	height: 32px !important;
	width: 32px !important;
	padding: 0;
}
.product-item .add-to-cart-container .btn.search-to-cart img {
	height: 16px;
	object-fit: contain;
}
.product-item .add-to-cart-container .btn.search-to-cart span {
	display: none;
}

/* Search Result - Start */
@media (min-width: 9999px) {
	.search-inline-pc {
		position: relative;
		display: flex;
		width: 100%;
		z-index: 2;
	}
	.search-wrapper.in-search .search-background {
		visibility: visible;
		pointer-events: all;
	}
}
@media (max-width: 9998px) {
	.search-call-mob {
		display: flex;
		margin-left: auto;
		gap: 8px;
		cursor: pointer;
		width: fit-content;
	}
	.search-wrapper {
		position: fixed;
		display: flex;
		justify-content: center;
		width: 100%;
		z-index: 10;
	}
	.search-background {
		background: #00000000;
		backdrop-filter: blur(2px);
	}
	.search-background.active {
		opacity: 1;
		visibility: visible;
		pointer-events: all;
	}
	.search-popup-mob {
		position: fixed;
		top: 9px;
		left: 0;
		right: 0;
		margin: 0 auto;
		width: 60%;
		max-width: 800px;
		padding: 10px;
		border-radius: 10px;
		background: #f8f8f8;
		z-index: 2;
		display: flex;
		justify-content: center;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
	.search-popup-mob.active {
		opacity: 1;
		visibility: visible;
		pointer-events: all;
	}
	.search-popup-mob input {
		background: #fff;
		padding: 14px 14px 14px 14px;
	}
	.search-wrapper .search-box .icon {
		top: calc(20px + 10px);
		right: calc(14px + 10px);
	}
	#search-results {
		top: calc(var(--header-height) / 2 + 32px);
		left: 0;
		right: 0;
		margin: 0 auto;
	}
}
@media (max-width: 1279px) {
	#search-results {
		top: calc(var(--header-height) / 2 + 44px);
	}
}
@media (max-width: 768px) {
	.search-background {
		background: rgb(0 0 0 / 5%);
		backdrop-filter: blur(0px);
	}
	.search-popup-mob {
		top: var(--header-height);
		width: 100%;
		border-radius: 0px;
	}
	#search-results {
		top: calc(var(--header-height) + 61px);
		width: 100%!important;
		max-height: 70vh;
	}
	.product-item {
		align-items: flex-start;
	}
	.product-item > .product-content {
		gap: 5px 10px;
	}
	.product-item .product-title-ajax {
		width: calc(100% - 50px - 10px);
		padding-right: calc(32px + 10px);    
		font-size: 14px;
		line-height: 18px;
	}
	.product-item .price {
		margin-left: 0;
		margin-right: 60%;
		font-size: 14px;
		line-height: 14px;
	}
	.product-item .quantity-wrapper .change {
		height: 24px;
		width: 24px;
		font-size: 16px;
		line-height: 16px;
		padding-top: 2px;
	}
	.product-item .quantity-wrapper .qty {
		width: 24px;
		height: 24px;
	}
	.add-to-cart-container {
		position: absolute;
		top: 0;
		right: 0;
	}
}
/* Search - End */

/* Shop Functions Group - Start */
.shop-functions-group {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-right: 20px;
}
.header-shop-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	cursor: pointer;
}
.header-shop-button img {
	width: auto;
	height: 18px;
	object-fit: contain;
}
.compare-counter, .cart-counter, .wishlist-counter {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}
.compare-label, .cart-label, .wishlist-label {
	font-size: 12px;
	margin-top: 4px;
	color: var(--black);
}
.user-account {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.account-dropdown {
	top: 100%;
	right: 0;
	left: auto;
	min-width: 150px;
	z-index: 10;
}

@media (max-width: 1279px) {
	.shop-functions-group {
		gap: 12px;
		margin-right: 0;
	}
	.compare-label, .cart-label, .wishlist-label {
		display: none;
	}
	.logo-header {
		position: relative;
		left: initial;
		top: initial;
		transform: initial;
		margin: 0 auto 0 18px;
	}
	.logo-header img {
		width: 64px;
	}
	.header-right {
		gap: 4px;
	}
	.language-wrapper {
		margin-right: 4px;
	}
	.header-shop-button {
		width: fit-content;
		height: fit-content;
		border-radius: 0;
		gap: 4px;
	}
	.header-shop-button img {
		width: 16px;
		height: 16px;
	}
	.compare-counter, .cart-counter, .wishlist-counter {
		width: fit-content;
		font-size: 12px;
	}
}
/* Shop Functions Group - End */

/* Мегаменю - Start */
.mega-menu-wrapper {
	position: relative;
}
.mega-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 0%;
	background: transparent;
	opacity: 0;
	z-index: -1;
	pointer-events: none;
}
.mega-menu-wrapper.active + .mega-menu-overlay {
	width: 100%;
	height: 100%;
	pointer-events: all;
}
.mega-menu {
	display: flex;
	align-items: center;
	gap: 5px;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.mega-menu li {
	position: relative;

}
.mega-menu > li {
	padding-left: 20px;
}

/* Основное меню */
.mega-menu > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.5s ease;
}

.mega-menu > li > a:hover {
	color: var(--primary);
}

.mega-menu .menu-arrow {
	transition: transform 0.5s ease;
}

.mega-menu > li.menu-open .menu-arrow {
	transform: rotate(180deg);
}

/* Подменю первого уровня - скрыто по умолчанию */
.mega-menu > li > .sub-menu.level-1 {
	position: absolute;
	top: 49px;
	left: 0;
	width: 300px;
	padding: 0px;
	background: var(--white);
	border: 1px solid var(--border);
	border-top: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.5s ease;
	z-index: 1000;
	list-style: none;
	margin: 0;
	pointer-events: none;
}

/* Показываем подменю первого уровня при наведении */
.mega-menu > li.menu-open > .sub-menu.level-1 {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: all;
}

/* Элементы первого уровня подменю */
.mega-menu .level-1-item:last-child {
	margin-bottom: 0;
}

.mega-menu .level-1-item > a {
	display: block;
	padding: 20px;
	transition: all 0.5s ease;
}

.mega-menu .level-1-item > a:hover {
	background: var(--primary);
	color: var(--white);
}

/* Подменю второго уровня - скрыто по умолчанию */
.mega-menu .level-1-item > .sub-menu.level-2 {
	position: fixed;
	top: 0px;
	left: calc(100% + 1px);
	width: 300px;
	padding: 0px;
	background: var(--white);
	margin-left: 30px;
	border: 1px solid var(--border);
	border-left: none;
	border-top: none;
	display: none;
	z-index: 1001;
	list-style: none;
	margin: 0;
}

/* Показываем подменю второго уровня */
.mega-menu .level-1-item.submenu-open > .sub-menu.level-2 {
	display: block;
	z-index: 1002;
}

/* Элементы второго уровня подменю */
.mega-menu .level-2-item {
	position: relative;
}

.mega-menu .level-2-item:last-child {
	margin-bottom: 0;
}

.mega-menu .level-2-item > a {
	display: block;
	padding: 20px;
	transition: all 0.5s ease;
}

.mega-menu .level-2-item > a:hover {
	color: var(--black);
}

/* Подменю третьего уровня и далее - ВСЕГДА ВИДИМЫ внутри родителя */
.mega-menu .sub-menu.level-3-plus {
	position: static;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin-top: 0px;
	margin-left: 20px;
	opacity: 1;
	visibility: visible;
	transition: none;
	list-style: none;
}

/* Элементы третьего уровня и далее */
.mega-menu .level-3-plus-item {
	margin-bottom: 8px;
	position: relative;
	padding-left: 15px;
}

.mega-menu .level-3-plus-item:before {
	content: "–";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--black);
}

.mega-menu .level-3-plus-item:last-child {
	margin-bottom: 0;
}

.mega-menu .level-3-plus-item > a {
	display: block;
	transition: all 0.5s ease;
}

.mega-menu .level-3-plus-item > a:hover {
	color: var(--black);
}

/* Вложенные уровни 4+ */
.mega-menu .level-3-plus .sub-menu.level-3-plus {
	margin-left: 20px;
	margin-top: 10px;
	margin-bottom: 20px;
}

/* Зображення для меню */
.menu-item-image {
	position: fixed;
	top: 0;
	left: calc(100%);
	width: 300px;
	border: 1px solid var(--border);
	border-left: none;
	border-top: none;
	display: none;
}
.sub-menu.level-2 + .menu-item-image {
	left: calc(200%);
}
.mega-menu .level-1-item.submenu-open .menu-item-image {
	display: block;
}

.menu-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Убираем переполнение */
.mega-menu .sub-menu {
	max-height: calc(100vh - 200px);
	overflow-y: visible;
}

/* Кастомный скролбар */
.mega-menu .sub-menu::-webkit-scrollbar {
	width: 4px;
}

.mega-menu .sub-menu::-webkit-scrollbar-track {
	background: transparent;
}

.mega-menu .sub-menu::-webkit-scrollbar-thumb {
	background: var(--gray);
	border-radius: 2px;
}

.mega-menu .sub-menu::-webkit-scrollbar-thumb:hover {
	background: var(--dark-gray);
}

@media (max-width: 1480px) {
	.mega-menu > li > .sub-menu.level-1 {
		top: 41px;
	}
}
.mega-menu a.no-click {
	cursor: default;
	pointer-events: none;
}
.mega-menu li:has(> a.no-click) {
	cursor: default;
}
/* Мегаменю - End */