/* Начало: шапка */
.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;
	display: grid;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	height: 101px;
	margin: 0 auto;
	padding: 0 52px;
	grid-template-columns: 176px 288px minmax(160px, 393px) 220px;
	column-gap: 24px;
	align-items: center;
	justify-content: space-between;
}
/* Конец: шапка */

/* Начало: логотип */
.dobro-header__logo {
	display: flex;
	grid-column: 1;
	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:focus-visible,
.dobro-store .dobro-header a.dobro-header__logo:active {
	background: transparent;
	color: #efebdc;
	outline: 0;
	box-shadow: none;
}
/* Конец: логотип */

/* Начало: основная навигация */
.dobro-header__nav {
	display: flex;
	grid-column: 2;
	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:focus-visible,
.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 {
	grid-column: 3;
	width: 100%;
	min-width: 0;
	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: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:focus-visible,
.dobro-header button.dobro-header__search-clear:active,
.dobro-header button.dobro-header__search-submit:focus-visible,
.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:focus-visible,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-clear:active,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-submit:focus-visible,
.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-submit:active {
	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:focus-visible,
body.dobro-store .dobro-header-search-results a.dobro-header-search-results__item:active,
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:focus-visible,
body.dobro-store .dobro-header-search-results a.dobro-header-search-results__all:active {
	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 {
	display: flex;
	grid-column: 4;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	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: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 */

/* Начало: мобильная шапка и нижняя навигация */
.dobro-header__mobile-button,
.dobro-mobile-nav {
	position: absolute;
	width: 1px;
	height: 1px;
	min-width: 0;
	min-height: 0;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Начало: состояния десктопной шапки */
@media (hover: hover) and (pointer: fine) {
	.dobro-store .dobro-header a.dobro-header__logo:hover {
		background: transparent;
		color: #efebdc;
		outline: 0;
		box-shadow: none;
	}

	.dobro-store .dobro-header a.dobro-header__nav-link:hover,
	.dobro-store .dobro-header a.dobro-header__action:hover {
		background: transparent;
		color: #ff7b00;
		outline: 0;
		box-shadow: none;
	}

	.dobro-header input.dobro-header__search-input:hover {
		background: #242424;
		border-color: #757575;
		box-shadow: none;
		color: #efebdc;
		outline: 0;
	}

	.dobro-header button.dobro-header__search-clear:hover,
	.dobro-header button.dobro-header__search-submit:hover {
		background: transparent;
		border: 0;
		box-shadow: none;
		color: #efebdc;
		outline: 0;
	}

	.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-clear:hover,
	.dobro-header .dobro-header__search-form:focus-within .dobro-header__search-submit:hover {
		color: #000000;
	}

	body.dobro-store .dobro-header-search-results a.dobro-header-search-results__item:hover {
		background: #f2f2f2;
		color: #242424;
		text-decoration: none;
	}

	body.dobro-store .dobro-header-search-results a.dobro-header-search-results__all:hover {
		background: #ee0800;
		color: #ffffff;
		text-decoration: none;
	}
}
/* Конец: состояния десктопной шапки */

@media (max-width: 1167px) {
	body.dobro-store {
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}

	.dobro-header.is-mobile-ready {
		height: 91px;
		overflow: hidden;
		transition:
			height 360ms cubic-bezier(0.22, 1, 0.36, 1),
			border-radius 360ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.dobro-header.is-mobile-ready.is-mobile-search-open {
		height: 167px;
		border-bottom-right-radius: 42px;
		border-bottom-left-radius: 42px;
	}

	.dobro-header.is-mobile-ready .dobro-header__inner {
		box-sizing: border-box;
		display: grid;
		width: 100%;
		max-width: none;
		height: auto;
		min-height: 91px;
		padding: 21px 16px 26px;
		grid-template-columns: 44px minmax(0, 176px) 44px;
		grid-template-rows: 44px;
		column-gap: 8px;
		align-items: center;
		justify-content: space-between;
	}

	.dobro-header.is-mobile-ready.is-mobile-search-open .dobro-header__inner {
		grid-template-rows: 44px 52px;
		row-gap: 24px;
	}

	.dobro-header.is-mobile-ready .dobro-header__logo {
		position: static;
		width: 100%;
		max-width: 176px;
		height: 44px;
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}

	.dobro-header.is-mobile-ready .dobro-header__logo img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.dobro-header.is-mobile-ready .dobro-header__mobile-button {
		box-sizing: border-box;
		position: static;
		display: grid;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		margin: 0;
		padding: 10px;
		place-items: center;
		overflow: visible;
		clip-path: none;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		border: 0;
		border-radius: 50%;
		background: transparent;
		color: #757575;
		cursor: pointer;
	}

	.dobro-header.is-mobile-ready .dobro-header__mobile-button--search {
		grid-column: 1;
		grid-row: 1;
	}

	.dobro-header.is-mobile-ready .dobro-header__mobile-button svg {
		display: block;
		width: 24px;
		height: 24px;
		fill: none;
	}

	.dobro-header.is-mobile-ready .dobro-header__mobile-button:focus-visible {
		outline: 2px solid #ff7b00;
		outline-offset: 2px;
	}

	.dobro-header.is-mobile-ready > .dobro-header__inner > .dobro-header__nav,
	.dobro-header.is-mobile-ready > .dobro-header__inner > .dobro-header__actions {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}

	.dobro-header.is-mobile-ready .dobro-header__search {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip-path: inset(50%);
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}

	.dobro-header.is-mobile-ready.is-mobile-search-open .dobro-header__search {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		height: 52px;
		margin: 0;
		grid-column: 1 / -1;
		grid-row: 2;
		overflow: visible;
		clip-path: none;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.dobro-header.is-mobile-ready input.dobro-header__search-input {
		font-size: 16px;
	}

	/* Начало: нижняя навигация */
	.dobro-mobile-nav {
		box-sizing: border-box;
		position: fixed;
		z-index: 13;
		right: auto;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		left: 50%;
		display: flex;
		width: min(calc(100% - 16px), 359px);
		height: 72px;
		min-width: 0;
		min-height: 72px;
		margin: 0;
		padding: 6px;
		align-items: center;
		gap: 2px;
		overflow: visible;
		clip-path: none;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		background: #ffffff;
		border-radius: 30px;
		box-shadow:
			0 0 0 1px rgba(0, 0, 0, 0.06),
			0 -8px 24px rgba(0, 0, 0, 0.1);
		transform: translateX(-50%);
	}

	.dobro-store .dobro-mobile-nav__item {
		box-sizing: border-box;
		display: flex;
		height: 60px;
		min-width: 0;
		padding: 7px 0;
		flex: 1 1 0;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		background: transparent;
		border-radius: 24px;
		box-shadow: none;
		color: #9e9e9e;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		transition:
			background-color var(--dobro-transition),
			color var(--dobro-transition);
	}

	.dobro-store .dobro-mobile-nav__item.is-active,
	.dobro-store .dobro-mobile-nav__item[aria-current="page"] {
		background: #eeeeee;
		color: #ff7b00;
	}

	.dobro-store .dobro-mobile-nav__item:active {
		background: #eeeeee;
		color: #ff7b00;
	}

	.dobro-store .dobro-mobile-nav__item:focus-visible {
		outline: 2px solid #ff7b00;
		outline-offset: -2px;
	}

	.dobro-mobile-nav__icon {
		display: block;
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		color: currentColor;
	}

	.dobro-mobile-nav__icon svg {
		display: block;
		width: 24px;
		height: 24px;
	}

	.dobro-mobile-nav__cart-icon {
		position: relative;
	}

	.dobro-mobile-nav__cart-icon:has(.dobro-mobile-nav__cart-count:not(.is-empty)) {
		color: #ff7b00;
	}

	.dobro-mobile-nav__cart-count {
		position: absolute;
		top: -5px;
		right: -8px;
		display: flex;
		min-width: 15px;
		height: 15px;
		padding: 0 4px;
		align-items: center;
		justify-content: center;
		background: #ff7b00;
		border: 2px solid #ffffff;
		border-radius: 999px;
		color: #ffffff;
		font-size: 8px;
		font-weight: 700;
		line-height: 11px;
		visibility: visible;
		opacity: 1;
		transition:
			visibility var(--dobro-transition),
			opacity var(--dobro-transition);
	}

	.dobro-mobile-nav__cart-count.is-empty {
		visibility: hidden;
		opacity: 0;
	}

	.dobro-mobile-nav__label {
		display: block;
		max-width: 100%;
		color: currentColor;
		font-family: var(--dobro-font-base);
		font-size: 11px;
		font-style: normal;
		font-weight: 600;
		line-height: 14px;
		overflow: hidden;
		text-align: center;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	/* Конец: нижняя навигация */
}

@media (max-width: 782px) {
	.admin-bar .dobro-header {
		top: 46px;
	}
}

@media (max-width: 480px) {
	.dobro-header-search-results__content {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.dobro-header-search-results__name {
		overflow-wrap: anywhere;
		text-overflow: clip;
		white-space: normal;
	}

	.dobro-header-search-results__price {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dobro-header.is-mobile-ready,
	.dobro-mobile-nav__item {
		transition: none;
	}
}
/* Конец: мобильная шапка и нижняя навигация */