/* Page spinner
--------------------------------------------- */
.hc-page-spinner {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(224, 243, 243, 1);
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hc-page-spinner.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
.hc-page-spinner__ring {
	width: 48px;
	height: 48px;
	border: 3px solid rgba(var(--color-brown-rgb) / 15%);
	border-top-color: var(--color-brown);
	border-radius: 50%;
	animation: hc-spin 0.7s linear infinite;
}
@keyframes hc-spin {
	to { transform: rotate(360deg); }
}

/* Header
--------------------------------------------- */
.header__wrapper{
	padding: 0 30px;
	position: relative;
	z-index: 20;
}
.header__wrapper .container{
	display: flex;
	justify-content: flex-start;
	gap: 58px;
	align-items: center;
	padding: 40px 0 22px;
}
header a{
	color: var(--color-brown);
}
header .rounded-item,
.hc-contacts-page .rounded-item {
	height: 40px;
	border-radius: 20px;
	padding: 0 16px;
	align-items: center;
	display: flex;
	white-space: nowrap;
	text-decoration: none;
	gap: 10px;
}
header #primary-menu .rounded-item{
	background-color: var(--color-brown);
	padding: 8px 35px;
}
header #primary-menu .rounded-item a{
	color: white;
}
#primary-menu a{
	display: flex;
	gap: 12px;
	align-items: center;
}
#primary-menu .rounded-item > a::before {
	content: '';
	width: 13px;
	height: 13px;
	display: inline-block;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Crect width='6' height='6' rx='1' fill='%23fff'/%3E%3Crect x='7' width='6' height='6' rx='1' fill='%23fff'/%3E%3Crect y='7' width='6' height='6' rx='1' fill='%23fff'/%3E%3Crect x='7' y='7' width='6' height='6' rx='1' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}
.header__right{
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 7px;
	font-size: 16px;
}
.header__right .rounded-item{
	background: rgb(var(--color-pink-rgb) / 40%);
	border: none;
}
.header__right .rounded-item svg,
.hc-contacts-page .rounded-item svg {
	color: var(--color-brown);
	stroke: currentColor;
	width: 24px;
	height: 24px;
}
.header__right button.drawer-menu__toggle {
	background-color: var(--color-brown);
	padding: 8px 28px;
}
.header__right button.drawer-menu__toggle svg {
	stroke: none;
	width: 24px;
	height: 24px;
	fill: #fff;
}
.header__right button.header__right-search-open {
	cursor: pointer;
}
.header__right .header__cart-link {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
}
.header-language {
	position: relative;
}
.header-language__toggle {
	cursor: pointer;
	list-style: none;
}
.header-language__toggle::-webkit-details-marker {
	display: none;
}
.header-language__toggle::marker {
	content: '';
}
.header-language__current {
	font-size: 14px;
	line-height: 1;
}
.header-language__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	min-width: 150px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 16px 36px rgb(0 0 0 / 12%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.header-language[open] .header-language__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}
.header-language__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 6px;
	color: var(--color-brown);
	text-decoration: none;
}
.header-language__link:hover,
.header-language__link.is-active {
	background: rgb(var(--color-pink-rgb) / 35%);
}
.header-language__code {
	min-width: 24px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}
.header-language__name {
	font-size: 14px;
	line-height: 1.2;
}
.header__cart-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--color-brown);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

/* Mega shop desktop panel under .header__wrapper */
@media (max-width: 1023px) {
	.mega-shop {
		display: none !important;
	}
}
@media (min-width: 1024px) {
	.mega-shop {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 30;
		background: #fff;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
				max-height 0.35s ease,
				opacity 0.25s ease,
				visibility 0.25s;
		border-radius: 0 0 10px 10px;
	}
	body.mega-shop-open .mega-shop {
		max-height: min(560px, 90vh);
		overflow: visible;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
	.mega-shop__inner {
		max-width: 1400px;
		margin: 0 auto;
		padding: 56px 10px 54px 30px;
	}
	.mega-shop__all {
		display: flex;
		justify-content: flex-start;
		margin: -24px 0 20px;
		position: relative;
		z-index: 1;
	}
	.mega-shop__all-link {
		display: inline-flex;
		align-items: center;
		padding: 10px 18px;
		border-radius: 999px;
		background: var(--color-brown);
		color: #fff;
		font-size: 17px;
		line-height: 1.2;
		text-decoration: none;
	}
	.mega-shop .mega-shop__all-link:hover,
	.mega-shop .mega-shop__all-link:focus-visible {
		color: #fff;
		text-decoration: none;
	}
	.mega-shop .mega-shop__all-link:focus-visible {
		outline: 2px solid var(--color-pink);
		outline-offset: 3px;
	}
	.mega-shop .mega-shop__all-link:active {
		color: #fff;
	}
	.mega-shop__grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr 1.15fr;
		gap: 28px 77px;
		align-items: start;
	}
	.mega-shop__col {
		position: relative;
	}
	.mega-shop__col + .mega-shop__col:before{
		position: absolute;
		content: '';
		width: 1px;
		height: 144px;
		left: -77px;
		top: 50%;
		transform: translateY(-50%);
		background: rgb(var(--color-brown-rgb) / 20%);
	}
	.mega-shop__col--visual {
		padding: 10px;
		margin-top: -36px;
		height: 280px;
		border-radius: 10px;
		background: rgb(var(--color-mint-rgb) / 60%);
	}
	.mega-shop__col--visual:before{
		display: none;
	}
	.mega-shop__col--visual img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.mega-shop__brand {
		display: inline-block;
		margin-bottom: 7px;
		margin-top: 12px;
	}
	.mega-shop__brand svg {
		display: block;
	}
	.mega-shop__list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		gap: 7px;
	}
	.mega-shop__list a {
		display: inline-block;
		font-size: 20px;
		color: var(--color-brown);
		text-decoration: none;
		border-radius: 999px;
		padding: 4px 0;
	}
	.mega-shop__list a:hover {
		text-decoration: underline;
	}
	.mega-shop__list a.active {
		background: rgb(var(--color-light-mint-rgb) / 55%);
		padding: 4px 11px;
	}
}
@media (max-width: 1199px){
	.mega-shop__grid{
		gap: 28px 37px;
	}
	.mega-shop__col + .mega-shop__col:before{
		left: -37px;
	}
}

/* Drawer menu */
.drawer-overlay {
	position: fixed;
	top: var(--drawer-top);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	background: rgb(0 0 0 / 20%);
	backdrop-filter: blur(11px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}
.drawer-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}
.drawer-panel {
	position: fixed;
	top: var(--drawer-top);
	right: 0;
	bottom: 0;
	z-index: 100001;
	width: min(380px, 82vw);
	max-width: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	font-size: 20px;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	pointer-events: none;
}
.drawer-panel.is-open {
	transform: translateX(0);
	pointer-events: auto;
}
.drawer-panel__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px 30px 43px;
	overflow-y: auto;
}
.drawer-panel__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	min-height: 40px;
}
.drawer-search {
	display: none;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	max-width: 221px;
	height: 100%;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid rgb(var(--color-brown-rgb) / 20%);
}
.drawer-search__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: var(--color-brown);
}
.drawer-search__icon svg {
	stroke: var(--color-brown);
	width: 20px;
	height: 20px;
}
.drawer-search .drawer-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: var(--color-brown);
	outline: none;
}
.drawer-search__input::placeholder {
	color: rgb(var(--color-brown-rgb) / 55%);
}
.drawer-live-search {
	position: relative;
	flex-shrink: 0;
	margin: -8px 0 20px;
	padding: 14px;
	border: 1px solid rgb(var(--color-brown-rgb) / 12%);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 30px rgb(var(--color-brown-rgb) / 10%);
}
.drawer-live-search[hidden] { display: none; }
.drawer-live-search.is-loading {
	min-height: 96px;
	overflow: hidden;
}
.drawer-live-search.is-loading > * { visibility: hidden; }
.drawer-live-search.is-loading::before {
	position: absolute;
	top: 50%;
	left: 50%;
	content: '';
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	box-sizing: border-box;
	border: 3px solid rgb(var(--color-mint-rgb) / 55%);
	border-top-color: var(--color-brown);
	border-right-color: rgb(var(--color-pink-rgb) / 90%);
	border-bottom-color: rgb(var(--color-lavender-rgb) / 90%);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgb(var(--color-brown-rgb) / 14%);
	animation: healthy-search-loader .72s linear infinite;
}
@keyframes healthy-search-loader {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.drawer-live-search.is-loading::before { animation-duration: 1.4s; }
}
.drawer-live-search__section + .drawer-live-search__section { margin-top: 14px; }
.drawer-live-search__heading {
	margin: 0 0 8px;
	font-size: 11px;
	text-transform: uppercase;
	color: rgb(var(--color-brown-rgb) / 55%);
}
.drawer-live-search__list,
.drawer-live-search__categories { margin: 0; padding: 0; list-style: none; }
.drawer-live-search__product {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 6px 0;
	color: var(--color-brown);
	text-decoration: none;
}
.drawer-live-search__product img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.drawer-live-search__product strong { display: block; font-size: 13px; line-height: 1.25; }
.drawer-live-search__product .price { display: block; margin-top: 3px; font-size: 12px; }
.drawer-live-search__categories a {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 13px;
	color: var(--color-brown);
	text-decoration: none;
}
.drawer-live-search__categories span { color: rgb(var(--color-brown-rgb) / 50%); }
.drawer-live-search__all { display: block; margin-top: 14px; font-size: 13px; color: var(--color-brown); text-decoration: underline; }
.drawer-live-search__empty { margin: 0; padding: 12px 0; font-size: 13px; text-align: center; color: rgb(var(--color-brown-rgb) / 60%); }
.drawer-panel__close {
	margin-left: auto;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
}
.drawer-panel__close svg {
	display: block;
}
.drawer-nav__list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.drawer-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.drawer-nav__link:hover{
	font-weight: 400;
	color: var(--color-brown);
}
.drawer-nav__link .rounded-item{
	height: 35px;
}
.drawer-tabs__state {
	position: absolute;
	clip: rect(0, 0, 0, 0);
}
.drawer-tabs-wrap {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
}
.drawer-tabs {
	display: none;
	flex-shrink: 0;
}
.drawer-tabs__panel--menu {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}
.drawer-tabs__panel--shop {
	display: none;
}
.drawer-shop__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.drawer-shop__list a {
	display: block;
	padding: 8px 9px;
	border-bottom: 1px solid rgb(var(--color-brown-rgb) / 15%);
	text-decoration: none;
	color: var(--color-brown);
	font-size: 18px;
}
.drawer-shop__all-item {
	margin-bottom: 8px;
}
.drawer-shop__list .drawer-shop__all-link {
	border-bottom: 0;
	border-radius: 8px;
	background: var(--color-brown);
	color: #fff;
	font-weight: 600;
	text-align: center;
}
.drawer-shop__list .drawer-shop__all-link:hover,
.drawer-shop__list .drawer-shop__all-link:focus-visible,
.drawer-shop__list .drawer-shop__all-link:active {
	color: #fff;
	text-decoration: none;
}
.rounded-item--mint { background: rgb(var(--color-light-mint-rgb) / 60%); }
.rounded-item--pink { background: rgb(var(--color-pink-rgb) / 60%); }
.rounded-item--lime { background: rgb(var(--color-yellow-rgb) / 60%); }
.rounded-item--lavender { background: rgb(var(--color-lavender-rgb) / 60%); }
.rounded-item--yellow { background: rgb(var(--color-lavender-rgb) / 60%); }

.drawer-footer {
	margin-top: auto;
	padding-top: 30px;
	position: relative;
	font-size: 18px;
}
.drawer-footer:before {
	content: '';
	width: calc(100% + 60px);
	position: absolute;
	top: 0;
	left: -30px;
	height: 1px;
	background: rgb(var(--color-brown-rgb) / 20%);
	display: block;
}
.drawer-footer__row {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	margin-bottom: 15px;
}
.drawer-social {
	display: flex;
	gap: 16px;
	margin-top: 20px;
}
.drawer-social__btn {
	background: var(--color-mint);
}
body.drawer-menu-open {
	overflow: hidden;
}
@media (min-width: 1024px) {
	body.drawer-open-for-search .drawer-panel.is-open .drawer-search {
		display: flex;
	}
	.drawer-tabs {
		display: none;
	}
	.drawer-tabs__panel--menu {
		display: flex !important;
		flex-direction: column;
		flex: 1;
		min-height: 0;
	}
	.drawer-tabs__panel--shop {
		display: none !important;
	}
}
@media (max-width: 1420px){
	.custom-logo-link {
		width: 139px;
	}
	.header__right button.drawer-menu__toggle {
		padding: 8px 23px;
	}
	.header__wrapper .container{
		gap: 28px;
	}
}
@media (max-width: 1420px) and (min-width: 1200px){
	header #primary-menu .rounded-item {
		padding: 8px 20px;
	}
	header ul#primary-menu a {
		font-size: 16px;
	}
	.header__right button.drawer-menu__toggle {
		padding: 8px 16px;
	}
}
@media (max-width: 1199px){
	header ul#primary-menu li {
		display: none;
	}
	header #primary-menu .rounded-item{
		display: flex;
	}
}
@media (max-width: 1023px) {
	.announcement-marquee{
		padding: 5px 0
	}
	.announcement-marquee__group{
		font-size: 12px;
		gap: 16px;
	}
	.header__wrapper{
		padding: 0 16px;
	}
	.header__wrapper .container {
		position: relative;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 18px 0 25px;
	}
	.site-branding {
		position: absolute;
		left: 50%;
		top: 14px;
		transform: translateX(-50%);
		/* z-index: 1; */
		width: max-content;
		max-width: 139px;
		text-align: center;
	}
	.main-navigation {
		display: none;
	}
	.header__right {
		flex: 1 1 100%;
		min-width: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		margin: 0;
	}
	.header__right > *:not(.drawer-menu__toggle):not(.header__cart-link) {
		display: none;
	}
	.header__right .drawer-menu__toggle {
		order: -1;
	}
	.header__right .header__cart-link {
		order: 1;
	}
	.drawer-tabs {
		display: flex;
		margin-bottom: 20px;
		border-radius: 5px;
		overflow: hidden;
		background: rgb(var(--color-brown-rgb) / 15%);
	}
	.drawer-tabs__btn {
		flex: 1;
		display: flex;
		justify-content: center;
		height: 41px;
		line-height: 41px;
		font-size: 16px;
		color: rgb(var(--color-brown-rgb) / 50%);
	}
	#drawer-tabs-menu:checked ~ .drawer-tabs .drawer-tabs__btn--menu,
	#drawer-tabs-shop:checked ~ .drawer-tabs .drawer-tabs__btn--shop {
		color: #fff;
		background: rgb(var(--color-brown-rgb) / 60%);
	}
	#drawer-tabs-menu:checked ~ .drawer-tabs__panel--menu {
		display: flex;
		flex-direction: column;
		flex: 1;
		min-height: 0;
	}
	#drawer-tabs-shop:checked ~ .drawer-tabs__panel--shop {
		display: block;
	}
	#drawer-tabs-menu:checked ~ .drawer-tabs__panel--shop,
	#drawer-tabs-shop:checked ~ .drawer-tabs__panel--menu {
		display: none;
	}
	.drawer-search {
		display: flex;
	}
	.drawer-panel {
		right: auto;
		left: 0;
		transform: translateX(-100%);
		width: 323px;
	}
	.drawer-panel.is-open {
		transform: translateX(0);
	}
	.drawer-panel__inner{
		padding: 15px 16px;
	}
	.drawer-panel__close svg{
		width: 24px;
	}
}

/* Тільки мобілка */
.mobile-tabbar {
	display: none;
}

@media (max-width: 1023px) {
	.mobile-tabbar {
		display: block;
		position: fixed;
		left: 16px;
		right: 16px;
		bottom: 10px;
		z-index: 1000;
		max-width: 400px;
		margin: 0 auto;
		height: 60px;
		padding: 0;
		box-sizing: border-box;
		border-radius: 10px;
		border-top: 1px solid rgb(255 255 255 / 50%);
		background: rgb(var(--color-brown-rgb) / 60%);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
		width: calc(100% - 32px);
		transform: translateY(0);
		transition: all .2s linear;
	}

	.mobile-tabbar__inner {
		display: flex;
		align-items: stretch;
		height: 100%;
	}

	.mobile-tabbar__item {
		flex: 1 1 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		margin: 13px 0;
		padding: 0 6px;
		min-height: 0;
		color: #fff;
		text-decoration: none;
		background: transparent;
		border: 0;
		cursor: pointer;
		font: inherit;
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-tabbar__item:first-child {
		border-right: 1px solid rgb(255 255 255 / 30%);
	}

	.mobile-tabbar__item svg {
		display: block;
		width: 21px;
		min-height: 21px;
		color: #fff;
		stroke: currentColor;
		fill: none;
	}

	.mobile-tabbar__label {
		font-family: 'Stolzl', sans-serif;
		font-size: 12px;
		font-weight: 300;
		line-height: 1;
		text-align: center;
		white-space: nowrap;
	}
	.page-at-bottom .mobile-tabbar{
		transform: translateY(100px);
		opacity: 0;
	}
}

@media (min-width: 1024px) {
	.mobile-tabbar {
		display: none !important;
	}
}
