/* 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::before {
	display: none;
}
.header-top {
	height: var(--top-bar-height);
	align-items: center;
	flex-wrap: nowrap!important;
}
.top-bar-adress {
	display: flex;
	align-items: center;
	gap: 11px;
}
.top-bar-adress span {
	margin-top: 1px;
	color: var(--white);
}
.top-bar-menu {
	margin-left: 80px;
	padding-left: 15px;
	border-left: 1px solid var(--primary);
	height: 15px;
}
#top-bar-menu {
	list-style: none;
	display: flex;
	gap: 15px;
	color: var(--white);
	margin-top: 1px;
}
#top-bar-menu a:hover {
	color: var(--primary);
}
.top-bar-phone {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: center;
	margin-left: auto;
}
.top-bar-phone img {
	filter: brightness(0) invert(1);
}
.top-bar-phone a {
	padding-top: 3px;
	color: var(--white);
}
.top-bar-call-back {
	margin-top: 1px;
}
.top-bar-call-back a {
	color: #a2a2a2;
}
@media (max-width: 1279px) {
	.header-top {
		display: none !important;
	}
	header::before {
		display: none !important;
	}
}
/* Header Top - End */

/* Header Main - Start */
.header-main {
	height: calc(var(--header-height) - var(--top-bar-height));
}
.logo-header {
	display: flex;
	align-items: center;
}
.btn-catalog picture {
	transition: all 0.3s ease-in-out;
}
.btn-catalog .close-menu {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	transition: all 0.3s ease-in-out;
}
.btn-circle.user-account {
	margin-left: 14px;
}

@media (max-width: 1279px) {
	.side-menu-call {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: 33px;
		height: 35px;
		cursor: pointer;
		background: var(--primary);
		border-radius: 5px;
	}
	.side-menu-call > .menu-line {
		display: flex;
		width: 20px;
		height: 2px;
		background: var(--white);
		border-radius: 10px;
	}
	.logo-header {
		margin-right: auto;
	}
	.logo-header img {
		width: 120px;
	}
	.btn-sale {
		display: none !important;
	}
	.btn-catalog {
		order: -1;
		height: 30px !important;
		width: 30px !important;
		padding: 5px 5px !important;
	}
	header .btn-catalog span {
		display: none !important;
	}
	header .chating,
	header .change-lang {
		display: none !important;
	}
	header .user-account {
		display: none;
	}
}
/* Blog Navigation - Start */
.blog-nav {
	display: flex;
	align-items: center;
	margin-left: 40px;
}
#blog-nav-menu {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
#blog-nav-menu li a {
	font-family: var(--font-family-2);
	font-size: 15px;
	font-weight: 500;
	color: var(--black);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	position: relative;
	padding: 4px 0;
	transition: color 0.3s ease;
}
#blog-nav-menu li a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: width 0.3s ease;
}
#blog-nav-menu li a:hover {
	color: var(--primary);
}
#blog-nav-menu li a:hover::after {
	width: 100%;
}
#blog-nav-menu li.current-menu-item a,
#blog-nav-menu li.current-menu-parent a {
	color: var(--primary);
}
#blog-nav-menu li.current-menu-item a::after,
#blog-nav-menu li.current-menu-parent a::after {
	width: 100%;
}
/* Blog Navigation - End */

/* Header Main - End */

/* Lanuage Switcher - Start */
.language-wrapper {
	position: relative;
}
.language-wrapper .language-box {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-84px - 8px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	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;
	border: 1px solid var(--border);
	border-radius: 100%;
	transition: all 0.5s ease;
}
.language-wrapper .language-box a:hover,
.language-wrapper .language-box a.active {
	background: var(--border);
}
.language-wrapper .language-box a.active {
	pointer-events: none;
	cursor: default;
}
/* Lanuage Switcher - End */

/* Search - Start */
.search-wrapper {
	display: flex;
	position: fixed;
	justify-content: center;
	width: 100%;
	z-index: 10;
}
.search-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.3s, visibility 0.3s;
}
.search-wrapper.in-search .search-background {
	visibility: visible;
	opacity: 1;
	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-call-mob {
	display: flex;
	margin-left: auto;
	cursor: pointer;
	width: 26px;
	min-width: 26px;
}
.blog-search-call {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	cursor: pointer;
	width: auto;
	min-width: auto;
	background: var(--primary);
	padding: 10px 24px;
	transition: background 0.3s;
}
.blog-search-call:hover {
	background: var(--primary-hover);
}
.blog-search-call span {
	font-family: var(--font-family-2);
	font-size: 15px;
	font-weight: 500;
	color: var(--white);
}
.blog-search-call img {
	filter: brightness(0) invert(1);
}
.search-popup-mob {
	position: fixed;
	top: var(--header-height);
	left: 0;
	right: 0;
	margin: 0 auto;
	width: 60%;
	max-width: 800px;
	padding: 10px;
	border-radius: 0 0 var(--radius-medium) var(--radius-medium);
	background: var(--light-gray);
	z-index: 2;
	display: flex;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s, visibility 0.3s;
}
.search-popup-mob.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}
.search-popup-mob input {
	background: var(--white);
}
.search-popup-mob .icon {
	right: calc(14px + 10px) !important;
}
/* 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%);
	z-index: 2;
}
.no-result {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 250px;
}
.search-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 250px;
}
.search-loading span {
	width: 30px;
	height: 30px;
	border: 3px solid #eee;
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: search-spin 0.6s linear infinite;
}
@keyframes search-spin {
	to { transform: rotate(360deg); }
}
.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;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 5px;
}
.tab-pane {
	display: none;
	flex-direction: column;
	width: 100%;
}
.tab-pane.active {
	display: flex;
	gap: 12px;
}

/* Картка поста в лайв-пошуку */
.search-post-item {
	display: flex;
	gap: 14px;
	padding: 10px;
	border-radius: 8px;
	color: var(--black);
	text-decoration: none;
	transition: background 0.15s ease;
}
.search-post-item:hover {
	background: var(--bg-light, #f6f6f6);
}
.search-post-item__image {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 6px;
}
.search-post-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.search-post-item__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.search-post-item__meta {
	font-size: 12px;
	color: var(--gray, #999);
}
.search-post-item__title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	color: var(--black);
}
.search-post-item__excerpt {
	font-size: 13px;
	line-height: 1.4;
	color: var(--gray-dark, #555);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Search Responsive - Start */
#search-results {
	left: 0;
	right: 0;
	margin: 0 auto;
	top: calc(var(--header-height) + 61px);
}
@media (max-width: 768px) {
	.search-popup-mob {
		width: 100%;
		border-radius: 0;
	}
	#search-results {
		width: 100% !important;
		max-height: 70vh;
	}
}
/* Search - End */

/* Shop Functions Group - Start */
.shop-functions-group {
	display: flex;
	align-items: center;
	gap: 10px;
}
.header-shop-button {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	width: 54px;
	height: 54px;
	background: var(--light-gray);
	border-radius: var(--radius-medium);
}
.header-shop-button img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.compare-counter, 
.cart-counter, 
.wishlist-counter {
	position: absolute;
	top: 2px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	background: var(--primary);
	color: var(--primary-match);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 500;
}
.compare-label, 
.cart-label, 
.wishlist-label {
	font-size: 12px;
	margin-top: 4px;
	color: var(--black);
}
.compare-counter:empty, 
.cart-counter:empty, 
.wishlist-counter:empty {
	display: none;
}
.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: 5px;
	}
	.compare-label, .cart-label, .wishlist-label {
		display: none;
	}
	.header-shop-button {
		width: 40px;
		height: 40px;
		border-radius: 8px;
	}
	.header-shop-button img {
		width: 16px;
		height: 16px;
	}
	.compare-counter, .cart-counter, .wishlist-counter {
		top: 0px;
		right: 1px;
		width: 15px;
		font-size: 10px;
	}
}
/* Shop Functions Group - End */
