/* Header - Start */
header { 
	--btn-height: 55px;
	--btn-padding: 0 30px;
	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;
}
header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--top-bar-height);
	background: var(--black);
}
@media (max-width: 1279px) {
	header::before {
		display: none !important;
	}
}
header .btn span {
	font-weight: 400;
}
@media (max-width: 1680px) {
	header {
		--btn-height: 40px;
	}
}

/* Header Top - Start */
.header-top {
	height: var(--top-bar-height);
	align-items: center;
	flex-wrap: nowrap !important;
}
ul#top-bar-menu {
	list-style: none;
	display: flex;
	gap: 20px;
	color: var(--white);
	font-size: 15px;
	line-height: 15px;
}
.top-bar-lang {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	color: var(--white);
	font-size: 15px;
	line-height: 15px;
}
.top-bar-lang a {
	color: var(--gray);
	transition: color 0.3s ease;
}
.top-bar-lang a:hover,
.top-bar-lang a.active {
	color: var(--white);
}
.top-bar-lang a.active {
	pointer-events: none;
}
.lang-divider {
	color: var(--gray);
	user-select: none;
}
@media (max-width: 1680px) {
	ul.menu#top-bar-menu,
	.top-bar-lang {
		font-size: 13px;
		line-height: 16px;
	}
}
@media (max-width: 1279px) {
	.header-top {
		display: none !important;
	}
}
/* Header Top - End */

/* Header Main - Start */
.header-main {
	height: calc(var(--header-height) - var(--top-bar-height));
}
.header-main .block-with-cols {
	gap: 10px;
}
.logo-header {
	display: flex;
	align-items: center;
	max-width: 110px;
}
.logo-header img {
	width: 100%;
	object-fit: contain;
}
.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.btn-catalog img {
	width: 23px;
}
.btn.btn-catalog {
	gap: 16px;
	margin-left: 10px;
}

/* Selection Help */
.btn-selection-help {
	white-space: nowrap;
	margin-left: 10px;
}
.header-selection-text {
	color: var(--gray);
	font-style: italic;
	font-size: 13px;
	line-height: 16px;
	max-width: 130px;
	text-align: center;
	white-space: normal;
}

/* Header Divider */
.header-divider {
	display: block;
	width: 1px;
	height: 30px;
	background: #ECECEC;
	flex-shrink: 0;
}

/* Header Contacts Group */
.header-contacts-group {
	display: flex;
	align-items: center;
	gap: 8px;
}
.header-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--btn-height);
	height: var(--btn-height);
	background: var(--light-gray);
	border-radius: var(--radius-small);
	transition: background 0.3s ease;
}
.header-social-btn:hover {
	background: var(--border);
}
.header-social-btn img {
	width: 20px;
	height: 20px;
}
.btn-phone {
	white-space: nowrap;
	margin-left: 10px;
	margin-right: 10px;
}

/* Header Cabinet */
.header-cabinet {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: var(--btn-height);
	padding: 0 30px;
	background: var(--light-gray);
	border-radius: var(--radius-small);
	cursor: pointer;
	white-space: nowrap;
	margin-right: 10px;
}
.cabinet-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
.cabinet-icon img {
	width: 22px;
	height: 22px;
}
.cabinet-label {
	font-size: 14px;
	line-height: 14px;
	color: var(--black);
}
.cabinet-dropdown {
	top: 100%;
	right: 0;
	left: auto;
	min-width: 150px;
	z-index: 10;
}

/* Header Cart */
.header-cart-bookmark {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.header-cart-bookmark img {
	width: 18px;
	height: 26px;
	object-fit: contain;
}
.header-cart-bookmark .cart-counter {
	position: absolute;
	top: -7px;
	right: -9px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	background: #DFE4F5;
	color: var(--black);
	border-radius: 50%;
	font-size: 12px;
	font-weight: 500;
}
.header-cart-bookmark .cart-counter:empty {
	display: none;
}
@media (max-width: 1680px) {
	.logo-header {
		max-width: 80px;
	}
}
@media (max-width: 1400px) {
	header {
		--btn-padding: 0 20px;
	}
	header .btn {
		font-size: 14px;
		line-height: 14px;
	}
	header .btn span {
		height: 14px;
	}
	span.header-selection-text.pc {
		display: none;
	}
	.cabinet-icon img {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 1279px) {
	.side-menu-call {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: fit-content;
		height: var(--btn-height);
		padding: 0 15px;
		cursor: pointer;
		background: var(--primary);
		border-radius: var(--radius-small);
	}
	.side-menu-call img {
		width: 20px;
		filter: brightness(0) invert(1);
	}
	.side-menu-call span {
		color: var(--white);
	}
	.logo-header {
		margin-right: auto;
	}
	.btn-catalog {
		order: -1;
		height: 30px !important;
		width: 30px !important;
		padding: 5px 5px !important;
	}
	header .btn-catalog span {
		display: none !important;
	}
	/* Mobile: hide desktop-only elements */
	header .btn-selection-help,
	header .header-selection-text,
	header .header-divider,
	header .header-contacts-group,
	header .header-cabinet {
		display: none !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: initial;
	right: 14px;
	width: 15px;
	height: 15px;
	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-input-pc {
	background: var(--light-gray);
	height: var(--btn-height);
	padding: 0 40px 0 14px;
	box-sizing: border-box;
}
.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%);
	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;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 5px;
}
.tab-pane {
	display: none;
	flex-direction: column;
	width: 100%;
}
.tab-pane.active {
	display: flex;
}

/* Search Result - Start */
@media (min-width: 1280px) {
	.search-inline-pc {
		position: relative;
		display: flex;
		gap: 10px;
		width: 100%;
		z-index: 2;
		margin-left: 10px;
	}
	.search-wrapper.in-search .search-background {
		visibility: visible;
		pointer-events: all;
	}
	#search-results {
		margin-left: 10px;
		min-width: max-content;
	}
}
@media (max-width: 1279px) {
	.search-call-mob {
		display: flex;
		margin-left: auto;
		cursor: pointer;
		width: 26px;
		min-width: 26px;
		margin-right: 5px;
	}
	.search-wrapper {
		position: fixed;
		display: flex;
		justify-content: center;
		width: 100%;
		z-index: 10;
	}
	.search-background {
		background: #00000000;
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
	}
	.search-background.active {
		opacity: 1;
		visibility: visible;
		pointer-events: all;
	}
	.search-popup-mob {
		position: fixed;
		top: calc(var(--header-height) / 2);
		left: 0;
		right: 0;
		margin: 0 auto;
		width: 60%;
		max-width: 800px;
		padding: 10px;
		border-radius: var(--radius-medium);
		background: var(--light-gray);
		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: 12px 20px 12px 12px;
	}
	.search-wrapper .search-box .icon {
		right: calc(14px + 10px);
	}
	#search-results {
		top: calc(var(--header-height) / 2 + 61px);
		left: 0;
		right: 0;
		margin: 0 auto;
	}
}
@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) + 64px);
		width: 100% !important;
		max-height: 70vh;
	}
}
/* Search - End */


