.shop-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 30;
	background: var(--liuer-accent);
	box-shadow: 0 4px 18px color-mix(in srgb, var(--liuer-shadow-hex) 12%, transparent);
}

body.liuer-device-desktop .shop-header {
	position: sticky;
}

body.liuer-layout-header-3 {
	--shop-header-height: 64px;
}

body.admin-bar .shop-header {
	top: 32px;
}

.shop-header__main {
	display: grid;
	grid-template-columns: minmax(190px, 190px) minmax(280px, 1fr) max-content max-content max-content;
	gap: 35px;
	align-items: center;
	height: 64px;
	min-height: 64px;
}

.shop-header__main--without-commerce {
	grid-template-columns: minmax(190px, 190px) minmax(280px, 1fr) max-content;
}

.shop-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--shop-inverse-color);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.055em;
	text-transform: uppercase;
	white-space: nowrap;
}

.shop-logo > span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shop-logo > span:last-child span {
	margin-left: 2px;
	font-weight: 600;
	text-transform: none;
	opacity: 0.9;
}

.shop-logo--image {
	width: min(245px, 19vw);
	letter-spacing: 0;
}

.shop-logo__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 40px;
	object-fit: contain;
	object-position: left center;
}

.shop-logo__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 2px solid var(--shop-focus-border-color);
	border-radius: var(--shop-radius);
	color: var(--shop-inverse-color);
	font-size: var(--shop-logo-mark-size);
	font-weight: 600;
	letter-spacing: -0.08em;
}

.shop-header-3__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--shop-inverse-border-color);
	border-radius: var(--shop-radius);
	background: color-mix(in srgb, var(--liuer-inverse-border-hex) 13%, transparent);
	color: var(--shop-inverse-color);
}

.shop-header-3__menu-toggle:focus-visible {
	outline: 2px solid var(--shop-focus-border-color);
	outline-offset: 2px;
}

.shop-header-3__menu-toggle .shop-icon {
	width: 22px;
	height: 22px;
}

.shop-header-3__menu-close-icon {
	display: none;
}

.shop-header-3__menu-toggle[aria-expanded="true"] .shop-header-3__menu-open-icon {
	display: none;
}

.shop-header-3__menu-toggle[aria-expanded="true"] .shop-header-3__menu-close-icon {
	display: block;
}

.shop-search {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	min-width: 0;
	height: 40px;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--liuer-shadow-hex) 9%, transparent);
}

.shop-search:focus-within {
	border-color: var(--shop-focus-border-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--liuer-inverse-border-hex) 18%, transparent);
}

.shop-search__submit {
	display: inline-flex;
	grid-column: 1;
	grid-row: 1;
	align-items: center;
	justify-content: center;
	width: 46px;
	padding: 0;
	border: 0;
	background: transparent;
}

.shop-search__submit:hover {
	background: color-mix(in srgb, var(--liuer-accent) 12%, var(--liuer-surface));
}

.shop-search__submit .shop-icon {
	width: 20px;
	height: 20px;
}

.shop-search input {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	width: 100%;
	padding: 0 18px 0 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--shop-text-color);
}

.shop-search input[type="hidden"] {
	display: none;
}

.shop-search input::placeholder {
	color: var(--shop-placeholder-color);
}

.shop-header-3__account,
.shop-header-3__action,
.shop-cart {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	height: 40px;
	min-height: 40px;
	color: var(--shop-inverse-color);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}

.shop-header-3__account strong,
.shop-cart strong {
	display: block;
	max-width: 120px;
	overflow: hidden;
	font-size: var(--shop-meta-size);
	font-weight: 500;
	line-height: 1.25;
	text-overflow: ellipsis;
}

.shop-header-3__account:hover,
.shop-header-3__action:hover {
	color: var(--shop-inverse-color);
	opacity: 0.86;
}

.shop-action__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: var(--shop-inverse-color);
}

.shop-action__icon .shop-icon {
	width: 22px;
	height: 22px;
}

.shop-cart {
	position: relative;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: var(--shop-radius);
	background: transparent;
}

.shop-cart:hover {
	border-color: var(--shop-inverse-border-color);
	background: rgba(255, 255, 255, 0.13);
	color: var(--shop-inverse-color);
}

.shop-cart__count {
	position: absolute;
	top: -5px;
	right: -5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border: 2px solid var(--liuer-accent-strong);
	border-radius: 999px;
	background: #ff3b30;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.shop-cart__count[hidden] {
	display: none;
}

.shop-header-3__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.shop-header-3__action {
	gap: 8px;
	font-size: var(--shop-meta-size);
	font-weight: 600;
}

.shop-header-3__action strong {
	display: block;
	font-size: var(--shop-meta-size);
	font-weight: 600;
	line-height: 1.25;
}

.shop-header-3__action strong span {
	display: block;
	margin-bottom: 1px;
	font-size: var(--shop-small-size);
	font-weight: 600;
	opacity: 0.8;
}

.shop-header-3__action .shop-action__icon {
	width: 30px;
	height: 30px;
}

.shop-header-3__action .shop-icon {
	width: 24px;
	height: 24px;
}

.shop-header-3__nav {
	width: calc(var(--shop-container) + 24px);
	min-height: 42px;
	margin: auto;
}

.shop-header-3__menu,
.shop-header-3__menu .sub-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.shop-header-3__menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
}

.shop-header-3__menu > .menu-item {
	position: relative;
	display: flex;
	align-items: stretch;
}

.shop-header-3__menu > .menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 12px;
	color: var(--shop-inverse-color);
	font-size: var(--shop-meta-size);
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.18s ease;
}

.shop-header-3__menu > .menu-item > a:hover,
.shop-header-3__menu > .menu-item > a:focus-visible,
.shop-header-3__menu > .current-menu-item > a,
.shop-header-3__menu > .current-menu-ancestor > a {
	border-top-left-radius: var(--shop-radius);
	border-top-right-radius: var(--shop-radius);
	background: rgba(255, 255, 255, 0.13);
	color: var(--shop-inverse-color);
}

.shop-header-3__menu > .menu-item-has-children > a::after {
	content: "";
	width: 12px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: var(--i-chevron-right) center / contain no-repeat;
	mask: var(--i-chevron-right) center / contain no-repeat;
	transform: rotate(90deg);
}

.shop-header-3__menu > .menu-item > a > .shop-icon,
.shop-header-3__menu > .menu-item > a > .shop-menu-image--svg {
	width: 18px;
	height: 18px;
	filter: brightness(0) invert(1);
}

.shop-header-3__menu > .menu-item > a > .shop-menu-image:not(.shop-menu-image--svg) {
	width: 20px;
	height: 20px;
	border-radius: var(--shop-radius-sm);
	background: #ffffff;
	object-fit: contain;
}

.shop-header-3__menu > .menu-item > .sub-menu {
	position: absolute;
	z-index: 40;
	top: calc(100% - 1px);
	left: 0;
	display: grid;
	visibility: hidden;
	min-width: 260px;
	grid-template-columns: 1fr;
	gap: 8px;
	padding: 10px;
	border: 1px solid var(--shop-card-border-color);
	border-radius: 0 0 var(--shop-radius) var(--shop-radius);
	background: #ffffff;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--liuer-shadow-hex) 16%, transparent);
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.shop-header-3__menu > .menu-item:hover > .sub-menu,
.shop-header-3__menu > .menu-item:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	transition-delay: 0s;
}

.shop-header-3__menu .sub-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--shop-text-color);
	font-size: var(--shop-meta-size);
	font-weight: 500;
}

.shop-header-3__menu .sub-menu a:hover,
.shop-header-3__menu .sub-menu a:focus-visible {
	color: var(--liuer-accent-strong);
}

.shop-header-3__menu .shop-submenu-thumb {
	width: 38px;
	height: 38px;
	border-radius: var(--shop-radius-sm);
	background: #ffffff;
	object-fit: cover;
}

.shop-header-3__submenu-toggle {
	display: none;
}

.shop-cart-toast {
	position: fixed;
	z-index: 9999;
	top: calc(var(--shop-header-height) + 12px);
	right: 18px;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	width: min(360px, calc(100vw - 28px));
	padding: 12px 14px;
	border: 1px solid var(--shop-accent-border-soft-color);
	border-radius: var(--shop-radius);
	background: #ffffff;
	color: var(--shop-text-color);
	box-shadow: 0 16px 34px color-mix(in srgb, var(--liuer-shadow-hex) 16%, transparent);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-cart-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.shop-cart-toast.has-error {
	border-color: color-mix(in srgb, var(--shop-danger-color) 22%, transparent);
}

.shop-cart-toast__icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e9f8ef;
	color: var(--liuer-accent);
}

.shop-cart-toast__icon::before {
	content: "";
	width: 13px;
	height: 8px;
	border-bottom: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(-45deg) translate(1px, -1px);
}

.shop-cart-toast.has-error .shop-cart-toast__icon {
	background: #fff0f0;
	color: #d9342b;
}

.shop-cart-toast.has-error .shop-cart-toast__icon::before {
	width: 12px;
	height: 12px;
	border: 0;
	background:
		linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
	transform: rotate(45deg);
}

.shop-cart-toast p {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.shop-cart-toast a {
	color: var(--liuer-accent);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
