/* Начало: шапка */
.dobro-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	height: 101px;
	overflow: hidden;
	background: #000000;
	border: 1px solid #242424;
	border-radius: 0 0 60px 60px;
	box-shadow: 0 4px 34px rgba(0, 0, 0, 0.1);
	color: #efebdc;
	font-family: var(--dobro-font-base);
}

.dobro-header__inner {
	position: relative;
	width: 100%;
	max-width: 1280px;
	height: 101px;
	margin: 0 auto;
}
/* Конец: шапка */

/* Начало: логотип */
.dobro-header__logo {
	position: absolute;
	top: 28px;
	left: 52px;
	display: flex;
	align-items: center;
	width: 176px;
	height: 44px;
	color: #efebdc;
}

.dobro-header__logo img {
	display: block;
	width: 176px;
	height: 44px;
	object-fit: contain;
	object-position: left center;
}

.dobro-header__logo-fallback {
	font-family: var(--dobro-font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.dobro-store .dobro-header a.dobro-header__logo,
.dobro-store .dobro-header a.dobro-header__logo:visited,
.dobro-store .dobro-header a.dobro-header__logo:hover,
.dobro-store .dobro-header a.dobro-header__logo:focus,
.dobro-store .dobro-header a.dobro-header__logo:active {
	background: transparent;
	color: #efebdc;
	outline: 0;
	box-shadow: none;
}
/* Конец: логотип */

/* Начало: основная навигация */
.dobro-header__nav {
	position: absolute;
	top: 23px;
	left: 257px;
	display: flex;
	align-items: center;
	width: 288px;
	height: 54px;
}

.dobro-header__nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 15px;
	border-radius: 30px;
	color: #efebdc;
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
	white-space: nowrap;
	transition: color var(--dobro-transition);
}

.dobro-header__nav-link:nth-child(1) {
	width: 87px;
}

.dobro-header__nav-link:nth-child(2) {
	width: 83px;
}

.dobro-header__nav-link:nth-child(3) {
	width: 118px;
}

.dobro-header__nav-link::after {
	content: "";
	position: absolute;
	top: 67px;
	left: 50%;
	width: 98px;
	height: 32px;
	background: #ff7b00;
	border-radius: 50%;
	opacity: 0;
	filter: blur(15px);
	pointer-events: none;
	transform: translateX(-50%);
	transition: opacity var(--dobro-transition);
}

.dobro-store .dobro-header a.dobro-header__nav-link,
.dobro-store .dobro-header a.dobro-header__nav-link:visited {
	background: transparent;
	color: #efebdc;
}

.dobro-store .dobro-header a.dobro-header__nav-link:hover,
.dobro-store .dobro-header a.dobro-header__nav-link:focus,
.dobro-store .dobro-header a.dobro-header__nav-link:active,
.dobro-store .dobro-header a.dobro-header__nav-link.is-active {
	background: transparent;
	color: #ff7b00;
	outline: 0;
	box-shadow: none;
}

.dobro-header__nav-link.is-active::after {
	opacity: 1;
}
/* Конец: основная навигация */

/* Начало: поиск */
.dobro-header__search {
	position: absolute;
	top: 24px;
	left: 574px;
	width: 393px;
	height: 52px;
}

.dobro-header__search-form {
	position: relative;
	width: 100%;
	height: 52px;
	margin: 0;
}

.dobro-header input.dobro-header__search-input {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 82px 0 25px;
	appearance: none;
	-webkit-appearance: none;
	background: #242424;
	border: 1px solid #616161;
	border-radius: 40px;
	box-shadow: none;
	color: #efebdc;
	font-family: var(--dobro-font-base);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	outline: 0;
	transition: border-color var(--dobro-transition), background-color var(--dobro-transition);
}

.dobro-header input.dobro-header__search-input::placeholder {
	color: #616161;
	opacity: 1;
}

.dobro-header input.dobro-header__search-input::-webkit-search-decoration,
.dobro-header input.dobro-header__search-input::-webkit-search-cancel-button,
.dobro-header input.dobro-header__search-input::-webkit-search-results-button,
.dobro-header input.dobro-header__search-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
}

.dobro-header input.dobro-header__search-input:hover,
.dobro-header input.dobro-header__search-input:focus {
	background: #242424;
	border-color: #757575;
	box-shadow: none;
	color: #efebdc;
	outline: 0;
}

.dobro-header__search-clear,
.dobro-header__search-submit {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #616161;
	cursor: pointer;
	transform: translateY(-50%);
}

.dobro-header__search-clear {
	right: 49px;
	visibility: hidden;
	opacity: 0;
	transition: visibility var(--dobro-transition), opacity var(--dobro-transition);
}

.dobro-header__search-clear.is-visible {
	visibility: visible;
	opacity: 1;
}

.dobro-header__search-submit {
	right: 25px;
}

.dobro-header__search-clear svg,
.dobro-header__search-submit svg {
	display: block;
	width: 18px;
	height: 18px;
}

.dobro-header button.dobro-header__search-clear:hover,
.dobro-header button.dobro-header__search-clear:focus,
.dobro-header button.dobro-header__search-clear:active,
.dobro-header button.dobro-header__search-submit:hover,
.dobro-header button.dobro-header__search-submit:focus,
.dobro-header button.dobro-header__search-submit:active {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #efebdc;
	outline: 0;
}

/* Начало: активное состояние поиска */
.dobro-header .dobro-header__search-form:focus-within input.dobro-header__search-input {
	background: #ffffff;
	border-color: #ffffff;
	color: #000000;
}

.dobro-header .dobro-header__search-form:focus-within input.dobro-header__search-input::placeholder {
	color: #757575;
}

.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-clear,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-submit {
	color: #242424;
}

.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-clear:hover,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-clear:focus,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-submit:hover,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-submit:focus {
	color: #000000;
}
/* Конец: активное состояние поиска */

.dobro-header-search-results {
	position: fixed;
	z-index: 60;
	box-sizing: border-box;
	max-height: min(420px, calc(100vh - 120px));
	padding: 10px;
	overflow-x: hidden;
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
	font-family: var(--dobro-font-base);
	transform: translateY(-6px);
	transition:
		visibility var(--dobro-transition),
		opacity var(--dobro-transition),
		transform var(--dobro-transition);
	scrollbar-color: #bdbdbd transparent;
	scrollbar-width: thin;
}

.dobro-header-search-results.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.dobro-header-search-results::-webkit-scrollbar {
	width: 6px;
}

.dobro-header-search-results::-webkit-scrollbar-track {
	background: transparent;
}

.dobro-header-search-results::-webkit-scrollbar-thumb {
	background: #bdbdbd;
	border-radius: 10px;
}

.dobro-header-search-results__item {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	box-sizing: border-box;
	min-height: 68px;
	padding: 8px;
	background: transparent;
	border-radius: 16px;
	color: #242424;
	text-decoration: none;
	transition:
		background-color var(--dobro-transition),
		color var(--dobro-transition);
}

body.dobro-store .dobro-header-search-results a.dobro-header-search-results__item:hover,
body.dobro-store .dobro-header-search-results a.dobro-header-search-results__item:focus,
body.dobro-store .dobro-header-search-results a.dobro-header-search-results__item.is-active {
	background: #f2f2f2;
	color: #242424;
	text-decoration: none;
}

body.dobro-store .dobro-header-search-results a.dobro-header-search-results__item:focus-visible {
	outline: 2px solid #ff7b00;
	outline-offset: -2px;
}

.dobro-header-search-results__image {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
	background: #f5f7f7;
	border-radius: 12px;
}

.dobro-header-search-results__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-width: 0;
}

.dobro-header-search-results__content:only-child {
	grid-column: 1 / -1;
}

.dobro-header-search-results__name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dobro-header-search-results__price {
	color: #ee0800;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.dobro-header-search-results__all {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin-top: 6px;
	padding: 0 18px;
	background: #ff7b00;
	border-radius: 22px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--dobro-transition);
}

body.dobro-store .dobro-header-search-results a.dobro-header-search-results__all:hover,
body.dobro-store .dobro-header-search-results a.dobro-header-search-results__all:focus {
	background: #ee0800;
	color: #ffffff;
	text-decoration: none;
}

.dobro-header-search-results__message {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 72px;
	padding: 12px;
	color: #757575;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
}

.dobro-header__search-form.is-loading .dobro-header__search-submit {
	pointer-events: none;
}

.dobro-header__search-form.is-loading .dobro-header__search-submit svg {
	opacity: 0;
}

.dobro-header__search-form.is-loading .dobro-header__search-submit::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 2px solid #616161;
	border-top-color: #ff7b00;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: dobro-header-search-loading 650ms linear infinite;
}

@keyframes dobro-header-search-loading {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}
/* Конец: поиск */

/* Начало: действия пользователя */
.dobro-header__actions {
	position: absolute;
	top: 29px;
	right: 51px;
	display: flex;
	align-items: center;
	gap: 41px;
	width: 220px;
	height: 41px;
}

.dobro-header__action {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	height: 41px;
	padding: 0;
	color: #efebdc;
	font-size: 12px;
	font-weight: 600;
	line-height: 15px;
	text-align: center;
	white-space: nowrap;
	transition: color var(--dobro-transition);
}

.dobro-header__action--cart {
	width: 45px;
}

.dobro-header__action:nth-child(2) {
	width: 57px;
}

.dobro-header__action:nth-child(3) {
	width: 36px;
}

.dobro-store .dobro-header a.dobro-header__action,
.dobro-store .dobro-header a.dobro-header__action:visited {
	background: transparent;
	color: #efebdc;
}

.dobro-store .dobro-header a.dobro-header__action:hover,
.dobro-store .dobro-header a.dobro-header__action:focus-visible,
.dobro-store .dobro-header a.dobro-header__action:active {
	background: transparent;
	color: #ff7b00;
	outline: 0;
	box-shadow: none;
}

.dobro-header__action-icon-wrap {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.dobro-header__action-icon {
	display: block;
	width: 24px;
	height: 24px;
	color: inherit;
}

.dobro-header__cart-label {
	display: block;
	color: #ff7b00;
	font-size: 12px;
	font-weight: 600;
	line-height: 15px;
}

.dobro-header__cart-count {
	position: absolute;
	top: -3px;
	left: 17px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 12px;
	height: 12px;
	padding: 0 3px;
	background: #ff7b00;
	border-radius: 999px;
	box-sizing: border-box;
	color: #000000;
	font-size: 8px;
	font-weight: 600;
	line-height: 1;
}
/* Конец: действия пользователя */

/* Начало: сброс стандартных стилей */
.dobro-header a {
	text-decoration: none;
}

.dobro-header button {
	font-family: inherit;
}

.dobro-header button.dobro-header__search-clear,
.dobro-header button.dobro-header__search-submit {
	background: transparent;
	border: 0;
	box-shadow: none;
}
/* Конец: сброс стандартных стилей */

/* Начало: положение шапки при верхней панели WordPress */
.admin-bar .dobro-header {
	top: 32px;
}
/* Конец: положение шапки при верхней панели WordPress */