/**
 * Header — vlastní moderní UI Život hvězdy (mobil + PC).
 */

:root {
	--zh-mh-bg: #fff8fb;
	--zh-mh-fg: #1a1a2e;
	--zh-mh-muted: #6b6b8a;
	--zh-mh-pink: #e84393;
	--zh-mh-navy: #2d2d5f;
	--zh-mh-gold: #e0ad00;
	--zh-mh-line: rgba(232, 67, 147, 0.14);
	--zh-mh-search-bg: #ffffff;
	--zh-mh-search-text: #1a1a2e;
	--zh-mh-search-ph: #8a8499;
	--zh-mh-max: 1280px;
}

body.zh-mh-ready #masthead.site-header.zh-mh {
	position: sticky !important;
	top: 0 !important;
	z-index: 10050 !important;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(224, 173, 0, 0.12), transparent 55%),
		radial-gradient(90% 70% at 0% 0%, rgba(232, 67, 147, 0.1), transparent 50%),
		linear-gradient(180deg, var(--zh-mh-bg) 0%, #ffffff 100%) !important;
	border: none !important;
	border-bottom: 1px solid var(--zh-mh-line) !important;
	box-shadow: 0 8px 24px rgba(45, 45, 95, 0.06) !important;
	padding: 0 !important;
	margin: 0 !important;
	backdrop-filter: saturate(1.1) blur(8px);
	-webkit-backdrop-filter: saturate(1.1) blur(8px);
}

body.zh-mh-ready #masthead.zh-mh .hm-header-inner-wrapper {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

body.zh-mh-ready #masthead.zh-mh .hm-header-inner.hm-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: var(--zh-mh-max) !important;
	padding: 0 !important;
	margin: 0 auto !important;
	box-sizing: border-box !important;
}

/* ===== Horní řádek ===== */
body.zh-mh-ready #masthead.zh-mh .zh-mh__top {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px 10px !important;
	min-height: 56px !important;
	padding: 8px 12px 10px !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

body.zh-mh-ready #masthead.zh-mh .site-branding-container {
	order: 0 !important;
	flex: 1 1 auto !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.zh-mh-ready #masthead.zh-mh .site-logo,
body.zh-mh-ready #masthead.zh-mh .hm-light-mode-logo {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 0 !important;
}

body.zh-mh-ready #masthead.zh-mh .custom-logo-link {
	display: inline-flex !important;
	align-items: center !important;
	max-width: 100% !important;
}

body.zh-mh-ready #masthead.zh-mh .custom-logo {
	display: block !important;
	width: auto !important;
	max-width: min(168px, 48vw) !important;
	height: 42px !important;
	object-fit: contain !important;
	object-position: left center !important;
	filter: none !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions {
	order: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 2px !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.zh-mh-ready #masthead.zh-mh .hm-mobile-menu-toggle {
	order: 2 !important;
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: rgba(45, 45, 95, 0.06) !important;
	color: var(--zh-mh-navy) !important;
	cursor: pointer !important;
	box-shadow: none !important;
}

body.zh-mh-ready #masthead.zh-mh .hm-mobile-menu-toggle svg {
	width: 18px !important;
	height: 18px !important;
	fill: currentColor !important;
	color: var(--zh-mh-navy) !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search {
	order: 3 !important;
	display: block !important;
	flex: 1 1 100% !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	background: transparent !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search-form {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 6px 0 14px !important;
	min-height: 44px !important;
	border-radius: 999px !important;
	background: var(--zh-mh-search-bg) !important;
	border: 1px solid rgba(45, 45, 95, 0.08) !important;
	box-shadow: 0 2px 10px rgba(45, 45, 95, 0.05) !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search-form:focus-within {
	border-color: rgba(232, 67, 147, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.12), 0 4px 14px rgba(45, 45, 95, 0.06) !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search-input {
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 10px 0 !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: var(--zh-mh-search-text) !important;
	font-family: "DM Sans", Figtree, system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search-input::placeholder {
	color: var(--zh-mh-search-ph) !important;
	font-weight: 400 !important;
	opacity: 1 !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search-btn {
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #f36bab 0%, #e84393 100%) !important;
	color: #fff !important;
	cursor: pointer !important;
	box-shadow: 0 4px 12px rgba(232, 67, 147, 0.28) !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__search-btn svg {
	width: 16px !important;
	height: 16px !important;
	display: block !important;
	stroke: currentColor;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--zh-mh-navy) !important;
	text-decoration: none !important;
	border: 0 !important;
	background: transparent !important;
	line-height: 0 !important;
	border-radius: 12px !important;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__icon:hover,
body.zh-mh-ready #masthead.zh-mh .zh-mh__icon:focus {
	color: var(--zh-mh-pink) !important;
	background: rgba(232, 67, 147, 0.08) !important;
	outline: none !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__icon svg {
	display: block !important;
	width: 21px !important;
	height: 21px !important;
	stroke: currentColor;
	fill: none;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart {
	--zh-hc-text: #2d2d5f;
	--zh-hc-muted: #6b6b8a;
	--zh-hc-pink: #e84393;
	display: inline-flex !important;
	margin: 0 !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__trigger {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	gap: 0 !important;
	border-radius: 12px !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__text {
	display: none !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__icon,
body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__icon svg {
	width: 22px !important;
	height: 22px !important;
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__count {
	right: -6px !important;
	bottom: -4px !important;
	background: var(--zh-mh-pink) !important;
	box-shadow: 0 2px 6px rgba(232, 67, 147, 0.35);
}

body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__panel {
	right: 0 !important;
	left: auto !important;
	top: calc(100% + 10px) !important;
	width: min(360px, calc(100vw - 24px)) !important;
}

body.zh-mh-ready #masthead.zh-mh .main-navigation,
body.zh-mh-ready #masthead.zh-mh .main-navigation.desktop-only {
	display: none !important;
}

@media (min-width: 992px) {
	body.zh-mh-ready #masthead.zh-mh .zh-mh__top {
		flex-wrap: nowrap !important;
		align-items: center !important;
		min-height: 72px !important;
		padding: 14px 24px 10px !important;
		gap: 20px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .site-branding-container {
		order: 0 !important;
		flex: 0 0 auto !important;
		width: 180px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .custom-logo {
		max-width: 180px !important;
		height: 48px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .zh-mh__search {
		order: 1 !important;
		flex: 1 1 auto !important;
		width: auto !important;
		max-width: none !important;
		padding: 0 !important;
	}

	body.zh-mh-ready #masthead.zh-mh .zh-mh__search-form {
		min-height: 48px !important;
		padding: 0 8px 0 20px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .zh-mh__search-input {
		font-size: 15px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .zh-mh__search-btn {
		width: 40px !important;
		height: 40px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .zh-mh__actions {
		order: 2 !important;
		flex: 0 0 auto !important;
		gap: 4px !important;
		min-width: 180px !important;
		justify-content: flex-end !important;
	}

	body.zh-mh-ready #masthead.zh-mh .hm-mobile-menu-toggle {
		display: none !important;
	}

	body.zh-mh-ready #masthead.zh-mh .zh-mh__icon,
	body.zh-mh-ready #masthead.zh-mh .zh-mh__actions .zh-header-cart__trigger {
		width: 42px !important;
		height: 42px !important;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation,
	body.zh-mh-ready #masthead.zh-mh .main-navigation.desktop-only {
		display: block !important;
		order: 4 !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 24px 12px !important;
		float: none !important;
		border-top: 1px solid var(--zh-mh-line) !important;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		flex-wrap: wrap !important;
		gap: 4px 2px !important;
		margin: 0 !important;
		padding: 10px 0 0 !important;
		list-style: none !important;
		width: 100% !important;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu > li {
		display: inline-flex !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu > li > a {
		display: inline-flex !important;
		align-items: center !important;
		padding: 8px 14px !important;
		border-radius: 999px !important;
		color: var(--zh-mh-navy) !important;
		font-family: "DM Sans", Figtree, system-ui, sans-serif !important;
		font-size: 14px !important;
		font-weight: 600 !important;
		text-decoration: none !important;
		line-height: 1.2 !important;
		white-space: nowrap !important;
		transition: background 0.2s ease, color 0.2s ease;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu > li > a:hover,
	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu > li.current-menu-item > a {
		color: var(--zh-mh-pink) !important;
		background: rgba(232, 67, 147, 0.08) !important;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu > li:first-child > a {
		color: #fff !important;
		background: var(--zh-mh-pink) !important;
	}

	body.zh-mh-ready #masthead.zh-mh .main-navigation .menu > li:first-child > a:hover {
		color: #fff !important;
		background: #d63384 !important;
	}
}

/* Mobilní menu drawer */
.zh-mh-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 10060;
	pointer-events: none;
	visibility: hidden;
}

.zh-mh-mobile-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.zh-mh-mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 30, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.zh-mh-mobile-drawer.is-open .zh-mh-mobile-drawer__backdrop {
	opacity: 1;
}

.zh-mh-mobile-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(320px, 88vw);
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 32px rgba(45, 45, 95, 0.12);
	transform: translateX(100%);
	transition: transform 0.24s ease;
	padding: 20px 16px 32px;
	box-sizing: border-box;
	overflow-y: auto;
}

.zh-mh-mobile-drawer.is-open .zh-mh-mobile-drawer__panel {
	transform: translateX(0);
}

.zh-mh-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.zh-mh-mobile-drawer__title {
	margin: 0;
	font-family: "DM Sans", Figtree, system-ui, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--zh-mh-navy);
}

.zh-mh-mobile-drawer__close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: rgba(45, 45, 95, 0.06);
	color: var(--zh-mh-navy);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.zh-mh-mobile-drawer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.zh-mh-mobile-drawer__menu a {
	display: block;
	padding: 12px 14px;
	border-radius: 12px;
	color: var(--zh-mh-navy);
	font-family: "DM Sans", Figtree, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.zh-mh-mobile-drawer__menu a:hover,
.zh-mh-mobile-drawer__menu .is-active a {
	background: rgba(232, 67, 147, 0.08);
	color: var(--zh-mh-pink);
}

.zh-mh-mobile-drawer__menu li:first-child a {
	background: var(--zh-mh-pink);
	color: #fff;
}

body.zh-mh-mobile-open {
	overflow: hidden;
}
