/* === HEADER / STICKY / OVERLAP === */

.header {
	position: sticky;
	top: 0;
	z-index: 999;
	color: var(--text-color-gray);
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.1);
}

.header-desktop {
	position: relative;
}

@media (min-width: 1025px) {
	.header-main.scrollhidden {
		margin-top: var(--marginTopOffset);
	}
}

.header-desktop,
.header-mobile {
	width: 100%;
	background-color: var(--bg-color);
}

.header-top,
.header-main,
.header-bottom,
.header-mobile {
	background-color: var(--bg-color);
}

.header-top__inner,
.header-main__inner,
.header-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.header-top {
	position: relative;
	font-size: 14px;
	color: var(--text-color-gray);
	padding-block: 5px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-top-worktime,
.header-top-office {
	flex: 1;
}

.header-top-office {
	text-align: right;
}

.header-main {
	position: relative;
	transition: margin-top .3s ease;
	padding-block: 5px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-main__inner {
	gap: 32px;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-brand img {
	display: block;
	max-width: 78px;
	height: auto;
}

.header-brand p {
	margin: 0;
	line-height: 1.5;
	font-size: 18px;
}
@media (max-width:1340px) {
  .header-brand p {font-size: 16px;}
}
@media (max-width:1260px) {
  .header-brand p {display: none;}
}

.header-search {
	flex: 1;
	width: 100%;
	max-width: 350px;
	position: relative;
}

.header-search-form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 38px;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	overflow: hidden;
}

/* .header-search-form:focus-within {
	border-color: #cfcfcf;
	box-shadow: 0 0 0 2px rgba(187, 107, 115, 0.08);
} */

.header-search-form input[type="text"],
.header-search-form input[name="s"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 74px 0 16px;
	border: 0;
	background: transparent;
	font-size: 16px;
	line-height: 1.2;
	outline: none;
	box-shadow: none;
}

.header-search-form input[name="s"]::placeholder {
	opacity: 1;
}

.clear-search {
	position: absolute;
	top: 50%;
	right: 50px;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8b8b8b;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease, color .2s ease;
	z-index: 3;
}

.clear-search.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.clear-search:hover {
	color: #5f5f5f;
}

.clear-search svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.search-submit {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 100%;
	padding: 0;
	border: 0;
	background: #bb6b73;
	cursor: pointer;
	border-radius: 0 999px 999px 0;
	transition: background-color .2s ease;
  color: #fff;
}

.search-submit:hover {
	background: #ab5d65;
}

.search-submit__icon,
.search-submit__spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.search-submit__icon {
  width: 18px;
  height: 18px;
  opacity: 1;
  transition: opacity .2s ease;
  background-color: currentColor;
  -webkit-mask-image: var(--search-icon);
  mask-image: var(--search-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.search-submit__spinner {
	width: 18px;
	height: 18px;
	opacity: 0;
	transition: opacity .2s ease;
	border: 2px solid rgba(255,255,255,.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: searchSpin .7s linear infinite;
}

.search-submit.is-loading .search-submit__icon {
	opacity: 0;
}

.search-submit.is-loading .search-submit__spinner {
	opacity: 1;
}

.search-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	width: 100%;
	z-index: 200;
}

.search-dropdown__inner {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,.08);
	overflow: hidden;
}

.search-dropdown__content {
	max-height: 480px;
	overflow: auto;
}

.search-results-list {
	display: flex;
	flex-direction: column;
}

.search-item {
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
	transition: background-color .2s ease;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.search-item:hover {
	background: rgba(0,0,0,.03);
}

.search-item__thumb {
	flex: 0 0 56px;
	width: 56px;
}

.search-item__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
}

.search-item__content {
	flex: 1 1 auto;
	min-width: 0;
}

.search-item__title {
	font-size: 14px;
	line-height: 1.35;
}

.search-item__title strong {
	font-weight: 700;
}

.search-item__price {
	margin-top: 6px;
	font-size: 14px;
}

.search-item__price .woocommerce-Price-amount {
	font-weight: 600;
	color: var(--accent-color);
}

.search-item__price del {
	opacity: .55;
	margin-right: 6px;
	color: var(--text-color);
}

.search-results-footer {
	border-top: 1px solid rgba(0,0,0,.08);
}

.search-results-all {
	width: 100%;
	border: none;
	background: transparent;
	text-align: center;
	text-transform: uppercase;
	font-weight: 600;
	line-height: 50px;
	cursor: pointer;
	transition: background-color .25s ease;
  color: var(--text-color);
}

.search-results-all:hover {
	background-color: #f7f7f7;
}

.search-empty {
	padding: 18px 16px;
	font-size: 14px;
	color: var(--text-color-gray);
}

@keyframes searchSpin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.header-contacts {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-contact p {
	margin: 0;
	text-align: right;
}

.header-contact .header-contact__phone {
	font-size: 20px;
	font-weight: 700;
}

@media (max-width:1340px) {
  .header-contact .header-contact__phone {
    font-size: 18px;
  }
}

.header-contact .header-contact__mail {
	font-size: 14px;
	color: var(--accent-color);
}

.header-account {
	position: relative;
}
.account-menu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  width: 220px;
  padding-top: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.account-menu {
  padding: 12px 20px;
  list-style: none;
  background: #fff;

  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}
.account-menu a {
  padding: 8px 0;
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: #848484;
}

.header-account:hover .account-menu-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-account__link {
	position: relative;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.105);
	color: var(--text-color);
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 30px;
	text-decoration: none;
  min-height: 37px;
}

.header-account__link::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: var(--account-icon);
}

.cart-widget {
  color: #333;
  cursor: pointer;
}

.cart-widget__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.105);
  color: var(--text-color);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 30px;
  text-decoration: none;
  min-height: 37px;
  min-width: 120px;
  justify-content: center;
}

.cart-widget__icon {
  position: relative;
  width: 20px;
  height: 20px;
  color: var(--text-color);
  flex: 0 0 20px;
}

.cart-widget__icon:before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: var(--cart-line-icon);
  width: 22px;
  height: 22px;
}

.cart-widget__count {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50px;
  text-align: center;
  line-height: 18px;
  letter-spacing: 0;
  font-weight: 400;
  background-color: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.17);
  color: var(--accent-color);
  font-size: 11px;
}

.cart-widget__subtotal {
  line-height: 1;
  white-space: nowrap;
}

.cart-widget__subtotal .amount {
  font-weight: 700;
  color: var(--text-color);
}

.cart-widget__subtotal del,
.cart-widget__subtotal ins {
  text-decoration: none;
}

.header-mobile-actions .cart-widget__link {
  border: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.header-mobile-actions .cart-widget__link .cart-widget__subtotal {
  display: none;
}
.header-mobile-actions .cart-widget__link .cart-widget__count {
  position: relative;
  top: 0;
  right: 4px;
  color: #fff;
  background-color: var(--accent-color);
  font-size: 10px;
  font-weight: 700;
}

.header-bottom {
	padding-block: 5px;
}

.header-bottom__inner {
	gap: 32px;
}

.header-navigation {
	display: flex;
	align-items: center;
	gap: 32px;
	flex: 1;
	min-width: 0;
}


.header-menu {
	flex: 1;
	min-width: 0;
}

.header-menu ul,
.header-catalog-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-menu > ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 20px;
  font-weight: 700;
  color: var(--text-color);
} 

@media (max-width: 1210px) {
  .header-menu > ul {
    column-gap: 10px;
  }
}

.header-menu a:hover {
  color: var(--accent-color);
}

.header-catalog {
	position: relative;
	flex-shrink: 0;
  color: #fff;
}

.header-catalog > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0;
	min-height: 42px;
	padding: 10px 28px 10px 36px;
	border-radius: 999px;
	background: var(--accent-color);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s ease;
}

.header-catalog > a:hover {
	background: #aa5f68;
	color: #fff;
}

/* иконка меню */
.header-catalog > a::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background-color: currentColor;
	-webkit-mask: var(--burger-icon) center / 18px 18px no-repeat;
	mask: var(--burger-icon) center / 18px 18px no-repeat;
}

/* стрелка */

.header-catalog > a::after {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 10px;
	height: 10px;
	transform: translateY(-50%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 10px 10px;
	background-image: var(--chevron-icon);
	transition: transform .2s ease;
}

.header-catalog:hover > a::after {
	transform: translateY(-50%) rotate(180deg);
}

.header-catalog {
  position: relative;
}

.header-catalog-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 270px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  z-index: 50;
  border: 1px solid var(--brdcolor-gray-200);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.header-catalog:hover .header-catalog-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-catalog::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 8px;
}

.header-catalog-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-catalog-menu li {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-catalog-menu li:last-child {
	border-bottom: 0;
}

.header-catalog-menu a {
	display: flex;
	align-items: center;
	padding: 12px 18px;
	color: var(--text-color);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.header-catalog-menu a:hover {
	background-color: #F7F7F7;
}

.header-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.header-socials a,
.header-mobile-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-socials img,
.header-mobile-logo img,
.header-mobile-actions img {
	display: block;
	height: auto;
}

.header-mobile {
	display: none;
	padding: 12px 16px;
}

.header-mobile-menu,
.header-mobile-logo,
.header-mobile-actions {
	display: flex;
	align-items: center;
}

.header-mobile-menu,
.header-mobile-actions {
  flex: 1 1 0%;
}
.header-mobile-menu {
  color: var(--text-color);
  width: 110px;
}
.header-mobile-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: start;
	font-size: 0;
	line-height: 0;
	text-decoration: none;
}

.header-mobile-menu::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-image: var(--burger-icon);
	mask-image: var(--burger-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.header-mobile-logo {
	justify-content: center;
	flex: 1;
}

.header-mobile-logo img {
	max-width: 60px;
}

.header-mobile-actions {
	gap: 16px;
  justify-content: end;
}

.header-search-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
	color: var(--text-color);
}

.header-search-toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	transform: translate(-50%, -50%);
	background-color: currentColor;

	-webkit-mask-image: var(--search-icon);
	mask-image: var(--search-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}


@media (max-width: 1024px) {
	.header-desktop {
		display: none;
	}

	.header-mobile {
		display: flex;
	}
}

/* BURGER MENU */

.catalog-menu__wrap {
  display: none;
}

.burger-menu__wrap {
  display: none;
}

.catalog-menu__wrap_open {
  display: block;
}

.burger-menu__wrap_open {
  display: block;
}

.side-popup .side-popup__panel.burger-menu__panel {
  width: min(340px, 100vw);
}

.burger-menu__panel {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.burger-menu__panel .header-search,
.burger-menu__head {
  flex: 0 0 auto;
}

.burger-menu__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.burger-menu__panel .header-search {
  position: relative;
  padding: 30px 15px 15px;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 -1px 9px rgba(0, 0, 0, 0.17);
}

.burger-menu__panel .header-search-form {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  border: none;
  border-radius: 0;
  width: 100%;
}

.burger-menu__panel .header-search-form input[type='text'] {
  padding: 0 30px 0 10px;
}

.burger-menu__panel .header-search-form .search-submit {
  position: relative;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: 44px;
  height: 44px; */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-color);
}

.burger-menu__panel .header-search-form .search-submit__icon {
  /* position: relative; */
  display: block;
  width: 24px;
  height: 24px;
}

.burger-menu__panel .header-search-form .search-submit__spinner {
  border-top-color: #000;
  background-color: rgba(255, 255, 255, .5);;
}

.burger-menu__panel .search-dropdown__content {
  
}

.burger-menu__head {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  background: #f6f6f6;
}

.burger-menu__nav-btn {
  flex: 1 1 50%;
  position: relative;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #d9d9d9;
  background: transparent;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
}

.burger-menu__nav-btn:last-child {
  border-right: 0;
}

.burger-menu__nav-btn_active {
  color: #444;
  background: #efefef;
}

.burger-menu__nav-btn_active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent-color);
}

.burger-menu__wrap,
.catalog-menu__wrap {
  display: none;
}

.burger-menu__wrap_open,
.catalog-menu__wrap_open {
  display: block;
}

.burger-menu__wrap .menu,
.catalog-menu__wrap .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.burger-menu__wrap .menu > li,
.catalog-menu__wrap .menu > li {
  margin: 0;
  border-bottom: 1px solid #d9d9d9;
}

.burger-menu__wrap .menu > li > a,
.catalog-menu__wrap .menu > li > a {
  display: flex;
  align-items: center;
  /* min-height: 74px; */
  padding: 15px;
  color: #444;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .03em;
  /* text-transform: uppercase; */
  text-decoration: none;
}

.burger-menu__wrap .menu > li > a:hover,
.catalog-menu__wrap .menu > li > a:hover {
  color: #444;
  text-decoration: none;
}
.burger-menu__wrap .menu > li.is-active > a,
.catalog-menu__wrap .menu > li.is-active > a {
  color: var(--accent-color);
  text-decoration: none;
}


