/* Pančelia custom header — from pancelia-kategorie-navrh.html */

:root {
	--mk-ink: #3f2f24;
	--mk-ink-soft: #665345;
	--mk-muted: #87786e;
	--mk-brand: #c48855;
	--mk-brand-dark: #a96d3f;
	--mk-brand-soft: #f3e7dc;
	--mk-paper: #fffefd;
	--mk-line: #e9dfd7;
	--mk-line-strong: #d8c8bc;
	--mk-white: #ffffff;
	--mk-content: 1360px;
	--mk-font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--mk-font-serif: Georgia, "Times New Roman", Times, serif;
}

body.mk-has-site-header {
	padding-top: 0 !important;
}

#brx-header.mk-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--mk-line);
	color: var(--mk-ink);
	font-family: var(--mk-font-sans);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#brx-header.mk-site-header *,
#brx-header.mk-site-header *::before,
#brx-header.mk-site-header *::after {
	box-sizing: border-box;
}

#brx-header.mk-site-header a {
	color: inherit;
	text-decoration: none;
}

#brx-header.mk-site-header button,
#brx-header.mk-site-header input {
	font: inherit;
}

#brx-header.mk-site-header button:focus-visible,
#brx-header.mk-site-header a:focus-visible,
#brx-header.mk-site-header input:focus-visible {
	outline: 3px solid rgba(196, 136, 85, 0.34);
	outline-offset: 3px;
}

#brx-header.mk-site-header .topbar {
	width: min(calc(100% - 48px), var(--mk-content));
	min-height: 70px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto minmax(160px, 1fr) auto;
	align-items: center;
	gap: 20px;
}

#brx-header.mk-site-header .brand {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 180px;
}

#brx-header.mk-site-header .brand-text {
	font-family: var(--mk-font-serif);
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--mk-ink);
	line-height: 1;
	white-space: nowrap;
}

#brx-header.mk-site-header .search {
	position: relative;
	width: 100%;
	max-width: 520px;
	min-width: 0;
	justify-self: stretch;
}

#brx-header.mk-site-header .search form {
	margin: 0;
}

#brx-header.mk-site-header .search input {
	width: 100%;
	height: 44px;
	padding: 0 20px;
	color: var(--mk-ink);
	background: #f5eee8;
	border: 1px solid #cdb29d;
	border-radius: 999px;
	font-family: var(--mk-font-sans);
	font-size: 14px;
	font-weight: 400;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

#brx-header.mk-site-header .search input::placeholder {
	color: #a29388;
}

#brx-header.mk-site-header .search input:focus {
	background: var(--mk-white);
	border-color: var(--mk-brand);
	box-shadow: 0 0 0 4px rgba(196, 136, 85, 0.11);
	outline: none;
}

#brx-header.mk-site-header .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#brx-header.mk-site-header .utility {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	white-space: nowrap;
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 600;
}

#brx-header.mk-site-header .utility-desktop {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

#brx-header.mk-site-header .utility-links {
	display: flex;
	align-items: center;
	gap: 16px;
}

#brx-header.mk-site-header .utility-links a {
	color: var(--mk-ink-soft);
	transition: color 160ms ease;
}

#brx-header.mk-site-header .utility-links a:hover {
	color: var(--mk-brand-dark);
}

#brx-header.mk-site-header .utility-divider {
	display: inline-block;
	width: 1px;
	height: 22px;
	background: var(--mk-line-strong);
	flex: 0 0 auto;
}

#brx-header.mk-site-header .add-resource {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	color: var(--mk-white) !important;
	background: var(--mk-brand);
	border-radius: 999px;
	font-weight: 600;
	transition: background 160ms ease, transform 160ms ease;
}

#brx-header.mk-site-header .add-resource:hover {
	color: var(--mk-white) !important;
	background: var(--mk-brand-dark);
	transform: translateY(-1px);
}

#brx-header.mk-site-header .add-resource .mk-ico {
	flex: 0 0 auto;
}

#brx-header.mk-site-header .utility-icons {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

#brx-header.mk-site-header .mk-nav-toggle,
#brx-header.mk-site-header .mk-search-toggle {
	display: none !important;
}

/* ≤1399px: search field → lupa icon (desktop links stay) */
@media (max-width: 1399px) {
	#brx-header.mk-site-header .mk-inline-search {
		display: none !important;
	}

	#brx-header.mk-site-header .mk-search-toggle {
		display: inline-flex !important;
	}

	#brx-header.mk-site-header .topbar {
		gap: 12px;
	}

	#brx-header.mk-site-header .brand-text {
		font-size: 26px;
	}
}

/* ≤775px: classic mobile — hide text buttons, show hamburger, keep account */
@media (max-width: 775px) {
	#brx-header.mk-site-header .utility-desktop {
		display: none !important;
	}

	#brx-header.mk-site-header .mk-nav-toggle {
		display: inline-flex !important;
	}

	#brx-header.mk-site-header .utility-account {
		display: inline-flex !important;
	}
}

#brx-header.mk-site-header .utility-icon,
#brx-header.mk-site-header .mk-header-fav,
#brx-header.mk-site-header .mk-header-bell-host,
#brx-header.mk-site-header .mk-header-cart,
#brx-header.mk-site-header .account-login {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	color: var(--mk-ink);
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: color 150ms ease, background 150ms ease;
}

#brx-header.mk-site-header .utility-icon:hover,
#brx-header.mk-site-header .mk-header-fav:hover,
#brx-header.mk-site-header .mk-header-bell-host:hover,
#brx-header.mk-site-header .mk-header-cart:hover,
#brx-header.mk-site-header .account-login:hover {
	color: var(--mk-brand-dark);
	background: #f7efe9;
}

#brx-header.mk-site-header .mk-ico {
	display: block;
}

#brx-header.mk-site-header .account-avatar {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #ead7c6;
	color: var(--mk-ink) !important;
	text-decoration: none;
}

#brx-header.mk-site-header .account-avatar:hover,
#brx-header.mk-site-header .mk-account-menu.is-open .account-avatar {
	background: #e0c9b3;
}

#brx-header.mk-site-header .account-avatar__initials {
	font-family: var(--mk-font-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

#brx-header.mk-site-header .mk-account-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
}

#brx-header.mk-site-header .mk-account-menu__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1200;
	width: min(300px, calc(100vw - 24px));
	padding: 10px 0 0; /* hover bridge — no dead gap under avatar */
	background: transparent;
	border: 0;
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

#brx-header.mk-site-header .mk-account-menu__dropdown-inner {
	padding: 12px;
	background: #fff;
	border: 1px solid var(--mk-line);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(63, 47, 36, 0.14);
}

#brx-header.mk-site-header .mk-account-menu:hover .mk-account-menu__dropdown,
#brx-header.mk-site-header .mk-account-menu:focus-within .mk-account-menu__dropdown,
#brx-header.mk-site-header .mk-account-menu.is-open .mk-account-menu__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

#brx-header.mk-site-header .mk-account-menu__dropdown[hidden] {
	display: block !important; /* keep layout for hover; visibility handles hide */
}

#brx-header.mk-site-header .mk-account-menu__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px 12px;
	border-bottom: 1px solid var(--mk-line);
	margin-bottom: 8px;
}

#brx-header.mk-site-header .mk-account-menu__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--mk-ink);
	line-height: 1.3;
}

#brx-header.mk-site-header .mk-account-menu__email {
	font-size: 12px;
	color: var(--mk-muted);
	line-height: 1.35;
	word-break: break-all;
}

#brx-header.mk-site-header .mk-account-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#brx-header.mk-site-header .mk-account-menu__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	color: var(--mk-ink) !important;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none !important;
}

#brx-header.mk-site-header .mk-account-menu__link:hover {
	background: #f7efe9;
	color: var(--mk-brand-dark) !important;
}

#brx-header.mk-site-header .mk-account-menu__ico {
	flex: 0 0 auto;
	color: var(--mk-ink-soft);
}

#brx-header.mk-site-header .mk-account-menu__link:hover .mk-account-menu__ico {
	color: var(--mk-brand-dark);
}

#brx-header.mk-site-header .mk-account-menu__link.is-logout {
	color: #b42318 !important;
	margin-top: 4px;
	border-top: 1px solid var(--mk-line);
	border-radius: 0 0 10px 10px;
	padding-top: 12px;
}

#brx-header.mk-site-header .mk-account-menu__link.is-logout .mk-account-menu__ico {
	color: #b42318;
}

#brx-header.mk-site-header .mk-account-menu__link.is-logout:hover {
	background: #fef3f2;
	color: #912018 !important;
}

#brx-header.mk-site-header .mk-account-menu__link.is-highlight {
	color: var(--mk-brand-dark) !important;
}

#brx-header.mk-site-header .mk-account-menu__all {
	display: block;
	margin-top: 8px;
	padding: 10px;
	border-top: 1px solid var(--mk-line);
	text-align: center;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mk-brand-dark) !important;
}

#brx-header.mk-site-header .mk-account-menu__all:hover {
	text-decoration: underline !important;
}

#brx-header.mk-site-header .mk-notif-badge,
#brx-header.mk-site-header .mk-cart-count,
#brx-header.mk-site-header .mk-fav-header-count {
	position: absolute;
	top: 2px;
	right: 1px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--mk-brand);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}

#brx-header.mk-site-header .category-bar {
	position: relative;
	border-top: 1px solid #f1ebe6;
	background: var(--mk-white);
}

#brx-header.mk-site-header .category-bar.is-collapsed,
#brx-header.mk-site-header .category-bar[hidden] {
	display: none !important;
}

/* Category bar only from 1439px up */
@media (max-width: 1438px) {
	#brx-header.mk-site-header .category-bar {
		display: none !important;
	}
}

#brx-header.mk-site-header .category-scroll {
	scrollbar-width: none;
	overflow-x: hidden;
	overscroll-behavior-inline: contain;
}

#brx-header.mk-site-header .category-scroll::-webkit-scrollbar {
	display: none;
}

#brx-header.mk-site-header .category-nav {
	width: min(calc(100% - 48px), 1220px);
	min-width: max-content;
	min-height: 42px;
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	gap: 6px;
	list-style: none;
}

#brx-header.mk-site-header .category-item {
	display: flex;
	align-items: stretch;
}

#brx-header.mk-site-header .category-item.is-utility {
	position: relative;
	margin-left: 4px;
	padding-left: 22px;
}

#brx-header.mk-site-header .category-item.is-utility::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: var(--mk-line-strong);
}

#brx-header.mk-site-header .category-item.is-utility .category-button {
	color: var(--mk-brand-dark);
}

#brx-header.mk-site-header .category-button {
	position: relative;
	min-height: 32px;
	margin: 5px 0;
	padding: 0 9px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--mk-ink-soft);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

#brx-header.mk-site-header .category-button::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 180ms ease;
}

#brx-header.mk-site-header .category-button:hover {
	color: var(--mk-ink);
}

#brx-header.mk-site-header .category-button.is-active {
	color: #765037;
	background: #f8efe7;
	border-color: #dfc5b0;
}

#brx-header.mk-site-header .category-button.is-active::after {
	transform: rotate(225deg) translate(-1px, -1px);
}

#brx-header.mk-site-header .mega-menu {
	position: absolute;
	left: var(--menu-left, 16px);
	right: auto;
	top: calc(100% - 7px);
	z-index: 30;
	width: min(820px, calc(100vw - 32px));
	max-height: min(520px, calc(100vh - 145px));
	overflow-y: auto;
	background: var(--mk-paper);
	border: 1px solid #e4ddd7;
	border-radius: 16px;
	box-shadow: 0 16px 38px rgba(72, 48, 31, 0.16), 0 2px 8px rgba(72, 48, 31, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-7px) scale(0.992);
	transform-origin: top left;
	transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
}

#brx-header.mk-site-header .mega-menu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

#brx-header.mk-site-header .mega-inner {
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 20px 22px 18px;
}

#brx-header.mk-site-header .mega-heading {
	padding-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

#brx-header.mk-site-header .mega-title {
	margin: 0;
	font-family: var(--mk-font-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

#brx-header.mk-site-header .mega-body {
	display: grid;
	grid-template-columns: 205px minmax(0, 1fr);
	column-gap: 30px;
}

#brx-header.mk-site-header .mega-inner.is-single .mega-body {
	grid-template-columns: minmax(0, 1fr);
}

#brx-header.mk-site-header .subject-picker {
	min-width: 0;
}

#brx-header.mk-site-header .subject-picker[hidden] {
	display: none;
}

#brx-header.mk-site-header .column-label {
	margin: 0 0 10px;
	color: var(--mk-ink);
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 700;
}

#brx-header.mk-site-header .subject-list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	list-style: none;
}

#brx-header.mk-site-header .subject-button {
	position: relative;
	width: 100%;
	padding: 7px 27px 7px 8px;
	color: var(--mk-ink-soft);
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	transition: color 150ms ease, background 150ms ease;
}

#brx-header.mk-site-header .subject-button::after {
	content: "→";
	position: absolute;
	right: 10px;
	top: 50%;
	color: var(--mk-brand-dark);
	opacity: 0;
	transform: translate(-4px, -51%);
	transition: opacity 150ms ease, transform 150ms ease;
}

#brx-header.mk-site-header .subject-button:hover {
	color: var(--mk-ink);
}

#brx-header.mk-site-header .subject-button.is-active {
	color: var(--mk-ink);
	background: #f7efe9;
	font-weight: 700;
}

#brx-header.mk-site-header .subject-button.is-active::after {
	opacity: 1;
	transform: translate(0, -51%);
}

#brx-header.mk-site-header .topic-panel {
	min-width: 0;
}

#brx-header.mk-site-header .topic-heading-row {
	min-height: 30px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

#brx-header.mk-site-header .topic-title {
	margin: 0;
	color: var(--mk-ink);
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

#brx-header.mk-site-header .topic-title[hidden] {
	display: none;
}

#brx-header.mk-site-header .mega-inner.is-single .topic-heading-row {
	display: none;
}

#brx-header.mk-site-header .topic-list {
	margin: 2px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	list-style: none;
}

#brx-header.mk-site-header .topic-section {
	min-width: 0;
}

#brx-header.mk-site-header .topic-section-title {
	margin: 0 0 8px;
	color: var(--mk-ink);
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

#brx-header.mk-site-header .topic-section-list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	list-style: none;
}

#brx-header.mk-site-header .topic-link {
	min-height: 0;
	padding: 5px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--mk-ink-soft);
	font-family: var(--mk-font-sans);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.32;
	transition: color 150ms ease, padding-left 150ms ease;
}

#brx-header.mk-site-header .topic-link::after {
	content: "→";
	flex: 0 0 auto;
	color: var(--mk-brand-dark);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 150ms ease, transform 150ms ease;
}

#brx-header.mk-site-header .topic-link:hover {
	padding-left: 3px;
	color: var(--mk-ink);
}

#brx-header.mk-site-header .topic-link:hover::after {
	opacity: 1;
	transform: translateX(0);
}

#brx-header.mk-site-header .mega-inner.is-single .topic-list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 34px;
}

#brx-header.mk-site-header .mega-footer {
	border-top: 1px solid var(--mk-line);
	background: #fdfaf8;
}

#brx-header.mk-site-header .mega-footer-inner {
	width: 100%;
	min-height: 43px;
	margin: 0;
	padding: 0 22px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	color: var(--mk-muted);
	font-size: 12px;
}

#brx-header.mk-site-header .mega-note {
	display: none;
}

#brx-header.mk-site-header .all-subjects {
	flex: 0 0 auto;
	color: var(--mk-brand-dark);
	font-family: var(--mk-font-sans);
	font-weight: 700;
}

#brx-header.mk-site-header .all-subjects:hover {
	text-decoration: underline;
}

.mk-page-backdrop {
	position: fixed;
	inset: var(--mk-sticky-header-height, 122px) 0 0;
	z-index: 999;
	background: rgba(53, 39, 29, 0.035);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: opacity 170ms ease, visibility 170ms ease;
}

.mk-page-backdrop.is-visible,
.mk-page-backdrop.is-drawer-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.mk-page-backdrop.is-drawer-open {
	inset: 0;
	z-index: 10040;
	background: rgba(40, 28, 20, 0.42);
}

.mk-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 10050;
	pointer-events: none;
}

.mk-mobile-drawer:not([hidden]) {
	pointer-events: auto;
}

.mk-mobile-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: var(--mk-vv-bottom, 0px);
	width: min(320px, 86vw);
	height: auto;
	max-height: 100dvh;
	padding: 22px 22px calc(28px + env(safe-area-inset-bottom, 0px) + max(0px, 100vh - 100dvh));
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: 18px 0 0 18px;
	box-shadow: -18px 0 40px rgba(40, 28, 20, 0.16);
	transform: translateX(104%);
	transition: transform 220ms ease;
	font-family: var(--mk-font-sans);
}

/* Extra bottom clearance for browser chrome (Vivaldi tab strip, etc.) */
@media (max-width: 775px) {
	.mk-mobile-drawer__panel {
		padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px) + max(0px, 100vh - 100dvh));
	}
}

.mk-mobile-drawer.is-open .mk-mobile-drawer__panel {
	transform: translateX(0);
}

.mk-mobile-drawer__close {
	align-self: flex-end;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--mk-ink);
	cursor: pointer;
}

.mk-mobile-drawer__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mk-mobile-drawer__nav a {
	display: block;
	padding: 12px 4px;
	color: var(--mk-ink);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

.mk-mobile-drawer__nav a.is-accent {
	color: var(--mk-brand-dark);
	font-weight: 600;
}

.mk-mobile-drawer__logout {
	margin-top: auto;
	flex-shrink: 0;
	padding: 12px 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mk-line-strong);
	border-radius: 999px;
	color: var(--mk-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
}

.mk-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 0;
	background: rgba(40, 28, 20, 0.45);
}

.mk-search-overlay[hidden] {
	display: none !important;
}

.mk-search-overlay__panel {
	width: 100%;
	max-width: none;
	padding: 18px 18px 22px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(40, 28, 20, 0.16);
	font-family: var(--mk-font-sans);
}

.mk-search-overlay__close {
	margin: 0 0 10px auto;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--mk-ink);
	cursor: pointer;
}

.mk-search-overlay__host {
	position: relative;
	width: min(100%, 560px);
	margin: 0 auto;
}

.mk-search-overlay__form {
	margin: 0;
	display: grid;
	gap: 12px;
}

.mk-search-overlay__field {
	position: relative;
	display: flex;
	align-items: center;
}

.mk-search-overlay__icon {
	position: absolute;
	left: 16px;
	display: inline-flex;
	color: #9a8b80;
	pointer-events: none;
}

.mk-search-overlay__icon .mk-ico {
	width: 18px;
	height: 18px;
}

.mk-search-overlay__field input {
	width: 100%;
	height: 48px;
	padding: 0 18px 0 46px;
	color: var(--mk-ink);
	background: #f3f1ef;
	border: 1px solid #dccfc4;
	border-radius: 999px;
	font-family: var(--mk-font-sans);
	font-size: 15px;
	outline: none;
}

.mk-search-overlay__field input:focus {
	background: #fff;
	border-color: var(--mk-brand);
	box-shadow: 0 0 0 4px rgba(196, 136, 85, 0.12);
}

.mk-search-overlay__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 12px;
	background: var(--mk-brand);
	color: #fff;
	font-family: var(--mk-font-sans);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
}

.mk-search-overlay__submit:hover {
	background: var(--mk-brand-dark);
}

@media (min-width: 1280px) {
	#brx-header.mk-site-header .category-nav {
		width: min(calc(100% - 48px), 1220px);
		justify-content: space-between;
		gap: 12px;
	}
}

@media (max-width: 1100px) {
	#brx-header.mk-site-header .topbar {
		width: min(calc(100% - 32px), var(--mk-content));
		gap: 12px;
	}

	#brx-header.mk-site-header .search input {
		height: 40px;
		padding: 0 16px;
		font-size: 13px;
	}

	#brx-header.mk-site-header .category-nav {
		width: calc(100% - 32px);
	}

	#brx-header.mk-site-header .mega-menu {
		left: 12px !important;
		width: calc(100vw - 24px);
		max-height: calc(100vh - 135px);
	}

	#brx-header.mk-site-header .mega-body,
	#brx-header.mk-site-header .mega-inner.is-single .mega-body {
		grid-template-columns: 190px minmax(0, 1fr);
		gap: 26px;
	}
}

@media (max-width: 640px) {
	#brx-header.mk-site-header .topbar {
		min-height: 60px;
		gap: 10px;
	}

	#brx-header.mk-site-header .brand-text {
		font-size: 24px;
	}

	#brx-header.mk-site-header .search input {
		height: 36px;
		padding: 0 12px;
		font-size: 12.5px;
	}

	#brx-header.mk-site-header .utility-icon,
	#brx-header.mk-site-header .mk-header-fav,
	#brx-header.mk-site-header .mk-header-bell-host,
	#brx-header.mk-site-header .mk-header-cart,
	#brx-header.mk-site-header .account-login,
	#brx-header.mk-site-header .account-avatar {
		width: 34px;
		height: 34px;
	}

	#brx-header.mk-site-header .mega-body,
	#brx-header.mk-site-header .mega-inner.is-single .mega-body {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	#brx-header.mk-site-header .subject-picker {
		padding-bottom: 16px;
		border-bottom: 1px solid var(--mk-line);
	}

	#brx-header.mk-site-header .subject-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#brx-header.mk-site-header .topic-list,
	#brx-header.mk-site-header .mega-inner.is-single .topic-list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	#brx-header.mk-site-header *,
	#brx-header.mk-site-header *::before,
	#brx-header.mk-site-header *::after,
	.mk-page-backdrop,
	.mk-mobile-drawer__panel {
		transition-duration: 0.01ms !important;
	}
}
