/**
 * Zima default header, mobile menu panel and search panel.
 */

.zm-header {
	--zm-header-h: 100px;
	--zm-header-full: 100px;
	--zm-header-link: #c3a7c7;
	position: relative;
	z-index: 100;
	background: var(--zm-color-background, #ffffff);
	transition: box-shadow 0.3s var(--zm-ease), background 0.3s var(--zm-ease), margin-bottom 0.3s var(--zm-ease);
}

.zm-header--sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.zm-header.is-stuck {
	--zm-header-h: 76px;
	/* The page keeps the full header height, so shrinking never moves the content. */
	margin-bottom: calc(var(--zm-header-full) - var(--zm-header-h));
	box-shadow: 0 8px 30px rgba(28, 28, 37, 0.06);
}

.zm-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--zm-header-h);
	transition: min-height 0.3s var(--zm-ease);
}

.zm-i {
	display: block;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}

/* ---------- Logo ---------- */

.zm-header__brand {
	flex: 0 0 auto;
}

.zm-brand {
	display: inline-flex;
	flex-direction: column;
	color: var(--zm-color-heading);
	line-height: 1.45;
	text-decoration: none;
}

.zm-brand:hover {
	color: var(--zm-color-heading);
}

.zm-brand__title {
	font-size: 15px;
	font-weight: 500;
}

.zm-brand__subtitle {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* "img." and ".zm-header" keep WooCommerce's "img { height: auto }" from resizing the logo. */
.zm-header img.zm-brand__logo {
	display: block;
	width: auto;
	height: var(--zm-logo-h, 44px);
	max-width: 220px;
	object-fit: contain;
}

/* ---------- Menu ---------- */

.zm-header__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.zm-header__nav .zm-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zm-menu .menu-item {
	position: relative;
}

.zm-header__nav .zm-menu > .menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-block: 10px;
	font-size: 15px;
	font-weight: 500;
	color: var(--zm-header-link);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s var(--zm-ease);
}

.zm-menu__icon.zm-i {
	width: 22px;
	height: 22px;
}

.zm-header__nav .zm-menu > .menu-item > a:hover,
.zm-header__nav .zm-menu > .menu-item:focus-within > a {
	color: var(--zm-color-primary);
}

.zm-header__nav .zm-menu > .current-menu-item > a,
.zm-header__nav .zm-menu > .current-menu-ancestor > a,
.zm-header__nav .zm-menu > .current_page_item > a {
	font-weight: 700;
	color: var(--zm-color-heading);
}

/* Dropdown */
.zm-header__nav .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-block-start: -3px;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.zm-header__nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -14px;
	z-index: 5;
	min-width: 220px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--zm-color-border);
	border-radius: var(--zm-radius);
	box-shadow: 0 18px 40px rgba(28, 28, 37, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.25s var(--zm-ease), visibility 0.2s;
}

.zm-header__nav .menu-item-has-children:hover > .sub-menu,
.zm-header__nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.zm-header__nav .sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	font-size: 14px;
	color: var(--zm-color-text);
	text-decoration: none;
	border-radius: var(--zm-radius-sm);
}

.zm-header__nav .sub-menu a:hover {
	color: var(--zm-color-primary);
	background: var(--zm-color-surface);
}

/* ---------- Actions ---------- */

.zm-header__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 22px;
	margin-inline-start: auto;
}

.zm-header__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--zm-color-heading);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.zm-header__icon-btn .zm-i {
	width: 26px;
	height: 26px;
}

.zm-header__icon-btn:hover {
	color: var(--zm-color-primary);
	background: var(--zm-color-primary-soft);
}

.zm-header__toggle {
	display: none;
}

.zm-account {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding-inline: 30px 32px;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	background: var(--zm-color-secondary);
	border-radius: 999px;
	transition: background 0.25s var(--zm-ease), box-shadow 0.25s var(--zm-ease), min-height 0.3s var(--zm-ease);
}

.zm-account:hover,
.zm-account:focus-visible {
	color: #ffffff;
	background: var(--zm-color-secondary-hover);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--zm-color-secondary) 25%, transparent);
}

.zm-cart {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	color: #ffffff;
	background: var(--zm-color-accent);
	border-radius: 50%;
	box-shadow: var(--zm-shadow-accent);
	transition: transform 0.25s var(--zm-ease), width 0.3s var(--zm-ease), height 0.3s var(--zm-ease);
}

.zm-cart:hover {
	color: #ffffff;
	transform: translateY(-2px);
}

.zm-cart .zm-i {
	width: 28px;
	height: 28px;
}

.zm-cart__count {
	position: absolute;
	inset-block-end: -6px;
	inset-inline-end: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding-inline: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: var(--zm-color-heading);
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(28, 28, 37, 0.12);
}

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

.zm-cart.is-bump {
	animation: zm-cart-bump 0.6s var(--zm-ease);
}

@keyframes zm-cart-bump {
	30% {
		transform: scale(1.12);
	}

	60% {
		transform: scale(0.96);
	}
}

.zm-header.is-stuck .zm-account {
	min-height: 48px;
}

.zm-header.is-stuck .zm-cart {
	width: 50px;
	height: 50px;
}

/* ---------- Search form (panel and mobile menu) ---------- */

.zm-search-form {
	position: relative;
	width: 100%;
}

.zm-search-form__input {
	width: 100%;
	height: 54px;
	padding-inline: 22px 64px;
	font-family: inherit;
	font-size: 15px;
	color: var(--zm-color-heading);
	background: var(--zm-color-surface-alt);
	border: 1.5px solid transparent;
	border-radius: 999px;
	outline: 0;
	transition: border-color 0.2s, background 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.zm-search-form__input::-webkit-search-cancel-button,
.zm-search-form__input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.zm-search-form__input::placeholder {
	color: var(--zm-color-subtle);
}

.zm-search-form__input:focus {
	background: #ffffff;
	border-color: var(--zm-color-primary);
}

.zm-search-form__submit {
	position: absolute;
	top: 6px;
	inset-inline-end: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: #ffffff;
	background: var(--zm-color-primary);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.zm-search-form__submit .zm-i {
	width: 20px;
	height: 20px;
}

/* ---------- Live search results ---------- */

.zm-live {
	margin-top: 14px;
}

.zm-live[hidden] {
	display: none;
}

.zm-search__box .zm-live {
	max-height: min(62vh, 540px);
	padding-inline-end: 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.zm-live__status {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 6px;
	font-size: 14px;
	color: var(--zm-color-muted);
}

.zm-live__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--zm-color-border);
	border-top-color: var(--zm-color-primary);
	border-radius: 50%;
	animation: zm-spin 0.7s linear infinite;
}

@keyframes zm-spin {
	to {
		transform: rotate(360deg);
	}
}

.zm-live__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.zm-live__term {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	font-size: 13px;
	color: var(--zm-color-heading);
	text-decoration: none;
	background: var(--zm-color-surface);
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.zm-live__term small {
	font-size: 11px;
	color: var(--zm-color-muted);
}

.zm-live__term:hover,
.zm-live__term:focus-visible {
	color: #ffffff;
	background: var(--zm-color-primary);
}

.zm-live__term:hover small,
.zm-live__term:focus-visible small {
	color: inherit;
}

.zm-live__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zm-live__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	color: inherit;
	text-decoration: none;
	border-radius: 16px;
	transition: background 0.2s;
}

.zm-live__item:hover,
.zm-live__item:focus-visible {
	background: var(--zm-color-surface-alt);
	outline: 0;
}

.zm-live__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: var(--zm-color-surface-alt);
	border-radius: 12px;
}

.zm-live__item:hover .zm-live__thumb,
.zm-live__item:focus-visible .zm-live__thumb {
	background: #ffffff;
}

.zm-live__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.zm-live__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--zm-color-heading);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.zm-live__title mark {
	color: var(--zm-color-primary);
	background: none;
}

.zm-live__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--zm-color-heading);
}

.zm-live__price small {
	font-size: 11px;
	font-weight: 400;
	color: var(--zm-color-muted);
}

.zm-live__price del {
	font-size: 12px;
	font-weight: 400;
	color: var(--zm-color-subtle);
}

.zm-live__off {
	padding: 1px 7px;
	font-size: 11px;
	color: #ffffff;
	background: var(--zm-color-sale);
	border-radius: 999px;
}

.zm-live__na {
	font-size: 12px;
	font-weight: 400;
	color: var(--zm-color-muted);
}

.zm-live__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--zm-color-primary);
	text-decoration: none;
	background: var(--zm-color-surface);
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.zm-live__more:hover,
.zm-live__more:focus-visible {
	color: #ffffff;
	background: var(--zm-color-primary);
}

.zm-live__more .zm-i {
	width: 18px;
	height: 18px;
}

@media (min-width: 768px) {
	.zm-search__box .zm-live__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.zm-live__spinner {
		animation-duration: 2s;
	}
}


/* ---------- Panels (search and mobile menu) ---------- */

.zm-search,
.zm-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.zm-search[hidden],
.zm-drawer[hidden] {
	display: none;
}

.zm-search__backdrop,
.zm-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 2, 21, 0.45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.3s var(--zm-ease);
}

.is-open > .zm-search__backdrop,
.is-open > .zm-drawer__backdrop {
	opacity: 1;
}

.zm-search__box {
	position: relative;
	z-index: 1;
	padding-block: 26px;
	background: #ffffff;
	border-radius: 0 0 var(--zm-radius-lg) var(--zm-radius-lg);
	box-shadow: 0 24px 50px rgba(28, 28, 37, 0.12);
	transform: translateY(-100%);
	transition: transform 0.35s var(--zm-ease);
}

.is-open > .zm-search__box {
	transform: none;
}

.zm-search__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: 860px;
}

.zm-search__inner > .zm-search-form,
.zm-search__inner > .zm-search-field {
	flex: 1;
	min-width: 0;
}

.zm-search__close {
	flex-shrink: 0;
	margin-top: 5px;
}

.zm-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: min(86vw, 360px);
	padding: 18px 20px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #ffffff;
	box-shadow: 0 0 50px rgba(28, 28, 37, 0.18);
	transform: translateX(100%);
	transition: transform 0.35s var(--zm-ease);
}

[dir="ltr"] .zm-drawer__panel {
	transform: translateX(-100%);
}

.is-open > .zm-drawer__panel {
	transform: none;
}

.zm-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block-end: 14px;
	border-bottom: 1px solid var(--zm-color-border);
}

.zm-drawer__nav .zm-menu {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zm-drawer__nav .menu-item {
	position: relative;
}

.zm-drawer__nav .menu-item > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--zm-color-heading);
	text-decoration: none;
	border-radius: var(--zm-radius-sm);
}

.zm-drawer__nav .menu-item > a:hover,
.zm-drawer__nav .current-menu-item > a {
	color: var(--zm-color-primary);
}

.zm-drawer__nav .zm-menu__icon {
	color: var(--zm-header-link, #c3a7c7);
}

.zm-drawer__nav .sub-menu {
	margin: 0 0 6px;
	padding-inline-start: 32px;
	list-style: none;
}

.zm-drawer__nav .sub-menu[hidden] {
	display: none;
}

.zm-drawer__nav .sub-menu a {
	padding-block: 9px;
	font-size: 14px;
	color: var(--zm-color-text);
}

.zm-submenu-toggle {
	position: absolute;
	top: 6px;
	inset-inline-end: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--zm-color-muted);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.zm-submenu-toggle .zm-i {
	width: 20px;
	height: 20px;
	transition: transform 0.25s var(--zm-ease);
}

.zm-submenu-toggle[aria-expanded="true"] .zm-i {
	transform: rotate(180deg);
}

.zm-drawer__foot {
	margin-block-start: auto;
	padding-block-start: 14px;
}

.zm-drawer__account {
	justify-content: center;
	width: 100%;
	min-height: 50px;
}

body.zm-locked {
	overflow: hidden;
}

/* ---------- Tablets and phones ---------- */

@media (max-width: 991px) {
	.zm-header {
		--zm-header-h: 72px;
		--zm-header-full: 72px;
	}

	.zm-header.is-stuck {
		--zm-header-h: 64px;
	}

	.zm-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 12px;
	}

	.zm-header__toggle {
		display: inline-flex;
		justify-self: start;
	}

	.zm-header__brand {
		justify-self: center;
		text-align: center;
	}

	.zm-header__nav,
	.zm-header__search,
	.zm-header__account {
		display: none;
	}

	.zm-header__actions {
		justify-self: end;
		margin: 0;
	}

	.zm-brand__title {
		font-size: 14px;
	}

	.zm-brand__subtitle {
		font-size: 11.5px;
	}

	.zm-header img.zm-brand__logo,
	.zm-drawer__head img.zm-brand__logo {
		height: min(var(--zm-logo-h, 44px), 30px);
		max-width: 130px;
		width: auto;
		object-fit: contain;
	}

	/* Phones: an outlined basket with a red count, as in the design. */
	.zm-cart,
	.zm-header.is-stuck .zm-cart {
		width: 44px;
		height: 44px;
		color: var(--zm-color-heading);
		background: none;
		box-shadow: none;
	}

	.zm-cart:hover {
		color: var(--zm-color-primary);
	}

	.zm-cart .zm-i {
		width: 26px;
		height: 26px;
	}

	.zm-cart__count {
		inset-block: 2px auto;
		inset-inline-end: -2px;
		min-width: 20px;
		height: 20px;
		font-size: 11px;
		color: #ffffff;
		background: var(--zm-color-sale);
		box-shadow: 0 0 0 2px #ffffff;
	}
}

@media (min-width: 992px) {
	.zm-drawer {
		display: none;
	}
}

@media (max-width: 1200px) and (min-width: 992px) {
	.zm-header__inner {
		gap: 24px;
	}

	.zm-header__nav .zm-menu {
		gap: 18px;
	}

	.zm-header__nav .zm-menu > .menu-item > a {
		font-size: 14px;
	}

	.zm-menu__icon.zm-i {
		width: 20px;
		height: 20px;
	}

	.zm-header__actions {
		gap: 14px;
	}

	.zm-account {
		padding-inline: 20px 22px;
	}
}



/* The narrowest desktops (e.g. laptops with display scaling): menu without icons. */
@media (max-width: 1100px) and (min-width: 992px) {
	.zm-header__inner {
		gap: 16px;
	}

	.zm-header__nav .zm-menu {
		gap: 14px;
	}

	.zm-menu__icon.zm-i {
		display: none;
	}

	.zm-header__actions {
		gap: 10px;
	}

	.zm-account {
		gap: 10px;
		padding-inline: 16px 18px;
	}
}