/* ==========================================================================
   MEGATECH — header, category nav, mega menu, mobile drawer, bottom nav
   (COMPONENT-SPECS §1–7, §19, §21; RESPONSIVE-RULES §4–5)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Topbar (C§1)
   ----------------------------------------------------------------------- */

.mt-topbar {
	background: var(--mt-color-topbar);
	color: var(--mt-text-on-dark);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-medium);
}

.mt-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--mt-space-6);
	min-height: 32px;
}

.mt-topbar__messages {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--mt-space-8);
	min-width: 0;
	overflow: hidden;
}

.mt-topbar__links {
	flex-shrink: 0;
}

.mt-topbar__msg {
	display: none;
	align-items: center;
	gap: var(--mt-space-2);
	white-space: nowrap;
}

.mt-topbar__msg.is-active {
	display: flex;
	animation: mt-topbar-in var(--mt-dur-base) var(--mt-ease-out);
}

@keyframes mt-topbar-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

.mt-topbar__links {
	display: none;
}

.mt-topbar__menu {
	display: flex;
	align-items: center;
	gap: var(--mt-space-6);
}

.mt-topbar__menu a {
	display: inline-flex;
	align-items: center;
	gap: var(--mt-space-2);
	min-height: 32px;
	color: var(--mt-text-on-dark);
	text-decoration: none;
	white-space: nowrap;
}

.mt-topbar__menu a:hover {
	color: var(--mt-text-on-dark);
	text-decoration: underline;
}

.mt-topbar .mt-placeholder {
	border-color: rgba(255, 255, 255, 0.5);
	background: transparent;
	color: var(--mt-text-on-dark);
}

@media (min-width: 768px) {
	.mt-topbar__inner {
		justify-content: space-between;
	}
	.mt-topbar__msg,
	.mt-topbar__msg.is-active {
		display: none;
		animation: none;
	}
	.mt-topbar__msg:nth-child(-n + 2) {
		display: flex;
	}
	.mt-topbar__links {
		display: block;
	}
}

@media (min-width: 1024px) {
	.mt-topbar {
		font-size: var(--mt-fs-sm);
	}
	.mt-topbar__inner {
		min-height: var(--mt-topbar-h);
	}
	.mt-topbar__menu {
		gap: var(--mt-space-7);
	}
}

@media (min-width: 1280px) {
	.mt-topbar__msg:nth-child(n) {
		display: flex;
	}
}

/* --------------------------------------------------------------------------
   Header (C§2–5)
   ----------------------------------------------------------------------- */

.mt-header {
	position: sticky;
	top: 0;
	z-index: var(--mt-z-sticky);
	background: var(--mt-bg-surface);
	transition: box-shadow var(--mt-dur-base) var(--mt-ease-standard);
}

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

@media (max-width: 600px) {
	.admin-bar .mt-header {
		top: 0;
	}
}

.mt-header.is-condensed {
	box-shadow: var(--mt-shadow-header);
}

.mt-header__main {
	border-bottom: 1px solid var(--mt-border-subtle);
}

.mt-header__grid {
	display: grid;
	grid-template-areas:
		"burger logo actions"
		"search search search";
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: var(--mt-space-1);
	padding-block: var(--mt-space-1) var(--mt-space-2);
}

.mt-header__burger {
	grid-area: burger;
	margin-left: calc(-1 * var(--mt-space-2));
}

/* Logo (C§3) */
.mt-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.mt-header .mt-logo {
	grid-area: logo;
	justify-self: start;
	min-height: 48px;
	transform-origin: left center;
	transition: transform var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-logo img.mt-logo__img {
	width: auto;
	max-width: 280px;
	height: 30px;
}

.mt-header.is-condensed .mt-logo {
	transform: scale(0.85);
}

/* Search (C§4) */
.mt-search {
	position: relative;
	grid-area: search;
	display: flex;
	align-items: center;
	height: var(--mt-search-h);
	margin-top: var(--mt-space-1);
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-bg-surface);
	transition:
		border-color var(--mt-dur-fast) var(--mt-ease-standard),
		box-shadow var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-search:focus-within {
	border-color: var(--mt-border-focus);
	box-shadow: var(--mt-focus-ring);
}

.mt-search__icon {
	position: absolute;
	left: var(--mt-space-4);
	color: var(--mt-text-muted);
	pointer-events: none;
}

.mt-search__input {
	flex: 1;
	width: 0;
	min-width: 0;
	height: 100%;
	padding: 0 var(--mt-space-2) 0 calc(var(--mt-space-4) + 18px + var(--mt-space-3));
	border: 0;
	border-radius: var(--mt-radius-pill);
	background: transparent;
	font-size: 1rem; /* ≥16px on touch devices */
	outline: none;
}

.mt-search__input::placeholder {
	color: var(--mt-text-muted);
}

.mt-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.mt-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 36px;
	margin-right: 3px;
	padding: 0;
	border: 0;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-btn-primary-bg);
	color: var(--mt-btn-primary-text);
	font-size: var(--mt-fs-base);
	font-weight: var(--mt-fw-semibold);
	transition: background-color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-search__btn:hover {
	background: var(--mt-btn-primary-bg-hover);
}

.mt-search__btn:focus-visible {
	outline: 2px solid var(--mt-color-primary-strong);
	outline-offset: 2px;
}

.mt-search__btn-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Header actions (C§5) */
.mt-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: var(--mt-space-1);
}

.mt-header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mt-space-2);
	min-width: var(--mt-touch-min);
	min-height: var(--mt-touch-min);
	border-radius: var(--mt-radius-md);
	color: var(--mt-text-heading);
	text-decoration: none;
	transition: color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-header-action:hover {
	color: var(--mt-color-primary-strong);
}

.mt-header-action--account,
.mt-header-action--fav {
	display: none;
}

.mt-header-action__icon {
	position: relative;
	display: inline-flex;
}

@media (min-width: 1366px) {
	.mt-header-action--cart .mt-header-action__icon {
		margin-right: var(--mt-space-2);
	}
}

.mt-header-action__text {
	display: none;
	flex-direction: column;
	line-height: 1.2;
}

.mt-header-action__text strong {
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-bold);
}

.mt-header-action__text small {
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-2xs);
}

.mt-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	display: grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-color-primary-strong);
	color: var(--mt-color-on-primary);
	font-size: var(--mt-fs-2xs);
	font-weight: var(--mt-fw-bold);
	line-height: 1;
}

.mt-cart-count.is-bumping {
	animation: mt-bump var(--mt-dur-base) var(--mt-ease-standard);
}

@keyframes mt-bump {
	50% {
		transform: scale(1.2);
	}
}

/* Tablet 768–1023: ☰ · logo · icon actions / full-width search */
@media (min-width: 768px) {
	.mt-header__grid {
		column-gap: var(--mt-space-3);
		padding-block: var(--mt-space-2) var(--mt-space-3);
	}
	.mt-logo img.mt-logo__img {
		height: 40px;
	}
	.mt-header-action--account,
	.mt-header-action--fav {
		display: inline-flex;
	}
	.mt-search {
		margin-top: var(--mt-space-2);
	}
}

/* Laptop+ ≥1024: logo · search · actions on one 80px row; category nav visible */
@media (min-width: 1024px) {
	.mt-header__grid {
		grid-template-areas: "logo search actions";
		grid-template-columns: auto minmax(320px, 600px) auto;
		justify-content: space-between;
		column-gap: var(--mt-space-8);
		min-height: var(--mt-header-h);
		padding-block: 0;
	}
	.mt-header__burger {
		display: none;
	}
	.mt-logo img.mt-logo__img {
		height: 46px;
	}
	.mt-search {
		margin-top: 0;
	}
	.mt-search__input {
		font-size: var(--mt-fs-base);
	}
	.mt-search__btn {
		width: auto;
		min-width: 72px;
		padding: 0 var(--mt-space-4);
	}
	.mt-search__btn-text {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
	}
	.mt-header__actions {
		gap: var(--mt-space-4);
	}
}

/* Desktop ≥1366: action labels visible */
@media (min-width: 1366px) {
	/* Reference (02, 1536px) logo ≈ 277px wide → ≈ 56–60px tall; spec [T] 44–48 was an estimate. */
	.mt-logo img.mt-logo__img {
		height: 56px;
	}
	.mt-header__actions {
		gap: var(--mt-space-7);
	}
	.mt-header-action__text {
		display: flex;
	}
}

/* --------------------------------------------------------------------------
   Category navigation (C§6) — ≥1024 only
   ----------------------------------------------------------------------- */

.mt-catnav {
	position: relative;
	display: none;
	border-bottom: 1px solid var(--mt-border-subtle);
	background: var(--mt-bg-surface);
}

@media (min-width: 1024px) {
	.mt-catnav {
		display: block;
	}
}

.mt-catnav__inner {
	display: flex;
	align-items: center;
	gap: var(--mt-space-5);
	min-height: var(--mt-nav-h);
}

.mt-catnav__all {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--mt-space-3);
	height: 40px;
	padding: 0 var(--mt-space-5);
	border: 0;
	border-radius: var(--mt-radius-md);
	background: var(--mt-ink-900);
	color: var(--mt-text-on-dark);
	font-size: var(--mt-fs-base);
	font-weight: var(--mt-fw-semibold);
	transition: background-color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-catnav__all:hover,
.mt-catnav__all[aria-expanded="true"] {
	background: var(--mt-ink-700);
}

.mt-catnav__all:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-catnav__list {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: var(--mt-space-3);
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.mt-catnav__list::-webkit-scrollbar {
	display: none;
}

.mt-catnav__list > li {
	flex: 0 0 auto;
}

.mt-catnav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: var(--mt-nav-h);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
	text-decoration: none;
	white-space: nowrap;
}

.mt-catnav__list a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	height: 2px;
	border-radius: 1px;
	background: var(--mt-color-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-catnav__list a:hover,
.mt-catnav__list .current-menu-item > a,
.mt-catnav__list .current-product_cat-ancestor > a {
	color: var(--mt-color-primary-strong);
}

.mt-catnav__list a:hover::after,
.mt-catnav__list .current-menu-item > a::after,
.mt-catnav__list .current-product_cat-ancestor > a::after {
	transform: scaleX(1);
}

/* "Kampanyalar" — separator + green emphasis (menu item CSS class mt-catnav__promo) */
.mt-catnav__list .mt-catnav__promo {
	display: flex;
	align-items: center;
	gap: var(--mt-space-4);
}

.mt-catnav__list .mt-catnav__promo::before {
	content: "";
	width: 1px;
	height: 20px;
	background: var(--mt-border-default);
}

.mt-catnav__list .mt-catnav__promo > a {
	color: var(--mt-color-primary-strong);
	font-weight: var(--mt-fw-bold);
}

.mt-catnav__list .mt-catnav__promo .mt-menu-icon {
	color: var(--mt-color-primary);
	fill: currentColor;
	stroke: var(--mt-white);
}

/* Priority+ (JS): list may not scroll, so the dropdown is not clipped. */
.mt-catnav__list.is-priority {
	overflow: visible;
}

.mt-catnav__more {
	position: relative;
}

.mt-catnav__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: var(--mt-nav-h);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
	white-space: nowrap;
}

.mt-catnav__more-btn:hover,
.mt-catnav__more-btn[aria-expanded="true"] {
	color: var(--mt-color-primary-strong);
}

.mt-catnav__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: var(--mt-z-dropdown);
	min-width: 220px;
	padding: var(--mt-space-2);
	border: 1px solid var(--mt-border-subtle);
	border-radius: var(--mt-radius-lg);
	background: var(--mt-bg-surface);
	box-shadow: var(--mt-shadow-lg);
}

.mt-catnav__dropdown a {
	display: flex;
	min-height: 40px;
	padding: 0 var(--mt-space-3);
	border-radius: var(--mt-radius-md);
}

.mt-catnav__dropdown a::after {
	display: none;
}

.mt-catnav__dropdown a:hover {
	background: var(--mt-color-primary-soft);
}

@media (min-width: 1280px) {
	.mt-catnav__more-btn {
		font-size: var(--mt-fs-sm);
	}
	.mt-catnav__list a {
		font-size: var(--mt-fs-sm);
	}
}

@media (min-width: 1366px) {
	.mt-catnav__inner {
		gap: var(--mt-space-8);
	}
	.mt-catnav__all {
		min-width: 190px;
	}
	.mt-catnav__list a {
		font-size: var(--mt-fs-base);
	}
}

/* --------------------------------------------------------------------------
   Mega menu (C§7)
   ----------------------------------------------------------------------- */

.mt-mega {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: var(--mt-z-megamenu);
	opacity: 0;
	transform: translateY(-8px);
	transition:
		opacity var(--mt-dur-fast) var(--mt-ease-in),
		transform var(--mt-dur-fast) var(--mt-ease-in);
}

.mt-mega.is-open {
	opacity: 1;
	transform: none;
	transition-duration: var(--mt-dur-base);
	transition-timing-function: var(--mt-ease-out);
}

.mt-mega__panel {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: var(--mt-space-6);
	max-height: calc(100vh - 200px);
	padding: var(--mt-space-6);
	overflow: auto;
	border: 1px solid var(--mt-border-subtle);
	border-top: 0;
	border-radius: 0 0 var(--mt-radius-xl) var(--mt-radius-xl);
	background: var(--mt-bg-surface);
	box-shadow: var(--mt-shadow-lg);
}

.mt-mega__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-right: var(--mt-space-6);
	border-right: 1px solid var(--mt-border-subtle);
}

.mt-mega__cat {
	display: flex;
	align-items: center;
	gap: var(--mt-space-3);
	min-height: 44px;
	padding: 0 var(--mt-space-3);
	border-radius: var(--mt-radius-md);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-medium);
	text-decoration: none;
	transition: background-color var(--mt-dur-fast) var(--mt-ease-standard), color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-mega__cat-media {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: var(--mt-color-primary);
}

.mt-mega__cat-media img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.mt-mega__cat-name {
	flex: 1;
}

.mt-mega__chevron {
	color: var(--mt-text-muted);
}

.mt-mega__cat:hover,
.mt-mega__cat.is-active {
	background: var(--mt-color-primary-soft);
	color: var(--mt-color-primary-strong);
}

.mt-mega__cat.is-active .mt-mega__chevron {
	color: var(--mt-color-primary);
}

.mt-mega__content {
	min-width: 0;
}

.mt-mega__sub {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"head visual"
		"links visual";
	align-content: start;
	gap: var(--mt-space-4) var(--mt-space-6);
	animation: mt-fade var(--mt-dur-fast) var(--mt-ease-standard);
}

@keyframes mt-fade {
	from {
		opacity: 0;
	}
}

.mt-mega__sub-head {
	grid-area: head;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mt-space-4);
	padding-bottom: var(--mt-space-3);
	border-bottom: 1px solid var(--mt-border-subtle);
}

.mt-mega__sub-title {
	display: flex;
	align-items: center;
	gap: var(--mt-space-3);
	margin: 0;
	color: var(--mt-text-heading);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-xl);
	font-weight: var(--mt-fw-extrabold);
}

.mt-mega__sub-title::before {
	content: "";
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--mt-color-primary);
}

.mt-mega__children {
	grid-area: links;
	columns: 3 180px;
	column-gap: var(--mt-space-6);
}

.mt-mega__children li {
	break-inside: avoid;
}

.mt-mega__children a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--mt-text-body);
	font-size: var(--mt-fs-base);
	text-decoration: none;
}

.mt-mega__children a:hover {
	color: var(--mt-color-primary-strong);
	text-decoration: underline;
}

.mt-mega__desc {
	grid-area: links;
	margin: 0;
	color: var(--mt-text-secondary);
}

.mt-mega__visual {
	grid-area: visual;
	display: block;
	width: 220px;
	overflow: hidden;
	border-radius: var(--mt-radius-lg);
	background: var(--mt-bg-muted);
}

.mt-mega__visual img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.mt-mega-overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--mt-z-sticky) - 1);
	background: var(--mt-overlay-mega);
	opacity: 0;
	transition: opacity var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-mega-overlay.is-open {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Mobile / tablet drawer (C§19)
   ----------------------------------------------------------------------- */

.mt-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: var(--mt-z-drawer);
	display: flex;
	flex-direction: column;
	width: min(88vw, 380px);
	background: var(--mt-bg-surface);
	box-shadow: var(--mt-shadow-xl);
	transform: translateX(-100%);
	transition: transform var(--mt-dur-base) var(--mt-ease-in);
}

.mt-drawer.is-open {
	transform: none;
	transition-duration: var(--mt-dur-slow);
	transition-timing-function: var(--mt-ease-out);
}

.mt-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--mt-z-drawer) - 1);
	background: var(--mt-overlay-drawer);
	opacity: 0;
	transition: opacity var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-drawer-overlay.is-open {
	opacity: 1;
}

.mt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mt-space-3);
	padding: var(--mt-space-2) var(--mt-space-2) var(--mt-space-2) var(--mt-space-4);
	border-bottom: 1px solid var(--mt-border-subtle);
}

.mt-drawer__head .mt-logo img.mt-logo__img {
	height: 28px;
}

.mt-drawer__user {
	display: flex;
	align-items: center;
	gap: var(--mt-space-2);
	padding: var(--mt-space-3) var(--mt-space-4);
	background: var(--mt-bg-subtle);
}

.mt-drawer__user .mt-btn {
	flex: 1;
}

.mt-drawer__avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mt-color-primary-tint);
	color: var(--mt-color-primary);
}

.mt-drawer__hello {
	display: flex;
	flex-direction: column;
	font-size: var(--mt-fs-sm);
	line-height: 1.3;
}

.mt-drawer__hello strong {
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
}

.mt-drawer__panels {
	position: relative;
	flex: 1;
	overflow: hidden;
}

.mt-drawer__panel {
	position: absolute;
	inset: 0;
	padding-bottom: calc(var(--mt-space-6) + env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--mt-bg-surface);
	transition:
		transform var(--mt-dur-slow) var(--mt-ease-out),
		opacity var(--mt-dur-slow) var(--mt-ease-out);
}

.js .mt-drawer__panel {
	visibility: hidden;
	transform: translateX(100%);
}

.js .mt-drawer__panel.is-active {
	visibility: visible;
	transform: none;
}

.js .mt-drawer__panel.is-behind {
	visibility: visible;
	opacity: 0.6;
	transform: translateX(-24%);
}

.mt-drawer__label {
	margin: 0;
	padding: var(--mt-space-4) var(--mt-space-4) var(--mt-space-2);
	color: var(--mt-text-muted);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-bold);
	letter-spacing: var(--mt-ls-wide);
	text-transform: uppercase;
}

.mt-drawer__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mt-space-3);
	width: 100%;
	min-height: 52px;
	padding: 0 var(--mt-space-4);
	border: 0;
	border-bottom: 1px solid var(--mt-border-subtle);
	background: transparent;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-medium);
	text-align: left;
	text-decoration: none;
}

.mt-drawer__item > span {
	display: inline-flex;
	align-items: center;
	gap: var(--mt-space-2);
}

.mt-drawer__item:hover {
	background: var(--mt-color-primary-soft);
	color: var(--mt-color-primary-strong);
}

.mt-drawer__item .mt-icon {
	color: var(--mt-text-muted);
}

.mt-drawer__item--promo,
.mt-drawer__item--promo .mt-icon {
	color: var(--mt-color-primary-strong);
	font-weight: var(--mt-fw-bold);
}

.mt-drawer__item--all {
	color: var(--mt-color-primary-strong);
	font-weight: var(--mt-fw-semibold);
}

.mt-drawer__back {
	display: flex;
	align-items: center;
	gap: var(--mt-space-1);
	width: 100%;
	min-height: 48px;
	padding: 0 var(--mt-space-3);
	border: 0;
	border-bottom: 1px solid var(--mt-border-subtle);
	background: var(--mt-bg-subtle);
	color: var(--mt-text-heading);
	font-weight: var(--mt-fw-semibold);
}

.mt-drawer__help a,
.mt-drawer__phone {
	display: flex;
	align-items: center;
	gap: var(--mt-space-3);
	min-height: 48px;
	padding: 0 var(--mt-space-4);
	color: var(--mt-text-body);
	font-size: var(--mt-fs-base);
	text-decoration: none;
}

.mt-drawer__help .mt-icon,
.mt-drawer__phone .mt-icon {
	color: var(--mt-color-primary);
}

@media (min-width: 1024px) {
	.mt-drawer,
	.mt-drawer-overlay {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   Mobile bottom navigation (C§21) — ≤767 only
   ----------------------------------------------------------------------- */

.mt-bottom-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: var(--mt-z-bottom-nav);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	border-top: 1px solid var(--mt-border-subtle);
	background: var(--mt-bg-surface);
	box-shadow: var(--mt-shadow-bottom-nav);
}

.mt-bottom-nav__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	height: var(--mt-bottom-nav-h);
}

.mt-bottom-nav__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--mt-space-1);
	height: 100%;
	color: var(--mt-text-secondary);
	text-decoration: none;
	transition: color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-bottom-nav__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 24px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--mt-color-primary);
	opacity: 0;
	transform: translateX(-50%);
	transition: opacity var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-bottom-nav__item.is-active {
	color: var(--mt-color-primary-strong);
}

.mt-bottom-nav__item.is-active::before {
	opacity: 1;
}

.mt-bottom-nav__item.is-active .mt-icon {
	color: var(--mt-color-primary);
}

.mt-bottom-nav__icon {
	position: relative;
	display: inline-flex;
}

.mt-bottom-nav__label {
	font-size: var(--mt-fs-2xs);
	font-weight: var(--mt-fw-semibold);
	line-height: 1;
}

.mt-bottom-nav__item.is-active .mt-bottom-nav__label {
	font-weight: var(--mt-fw-bold);
}

.mt-bottom-nav__badge[data-mt-cart-count="0"] {
	display: none;
}

.mt-bottom-nav__dot {
	position: absolute;
	top: -2px;
	right: -4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mt-color-primary);
}

.mt-keyboard-open .mt-bottom-nav {
	display: none;
}

@media (min-width: 768px) {
	.mt-bottom-nav {
		display: none;
	}
}

/* Landscape phones: keep fixed UI under 25% of viewport height. */
@media (max-width: 767.98px) and (max-height: 500px) {
	.mt-bottom-nav__list {
		height: 48px;
	}
	.mt-bottom-nav__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}
