/*
 * bm/mega-menu — styles from the approved mockup (mockup.css: "Nawigacja + mega menu", "Cenówka"), theme tokens only.
 * Desktop ≥ 960 px: dropdown under the navigation bar. It is absolutely positioned against the nearest positioned
 * ancestor, which must be the header (.bm-header), so the bar instance's own ancestors inside it stay static.
 * Phone < 960 px: fixed full-height drawer (full width up to 28rem, then a backdrop on the right).
 */

.wp-block-bm-mega-menu { color: inherit; }
.bm-mega-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.bm-mega__icon {
	width: 1.25rem; height: 1.25rem; flex: none;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
html.bm-mega-locked { overflow: hidden; }

/* Toggles ----------------------------------------------------------------------------------------------------- */
.bm-mega-toggle {
	display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
	margin: 0; border: 0; cursor: pointer; font: inherit; line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
}
/* "Wszystkie kategorie" at the start of the crimson bar. */
.bm-mega-toggle--bar {
	min-height: 52px; padding: 0 1.25rem; margin-left: -.25rem;
	background: var(--wp--preset--color--crimson-deep); color: var(--wp--preset--color--white);
	font-weight: 700; white-space: nowrap;
}
.bm-mega-toggle--bar:hover { background: var(--wp--preset--color--night); }
.bm-mega-toggle--bar[aria-expanded="true"] { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.bm-mega-toggle--bar:focus-visible { outline: 3px solid var(--wp--preset--color--white); outline-offset: -3px; }
.bm-mega-toggle--bar .bm-mega__icon--down { transition: transform var(--wp--custom--speed) var(--wp--custom--ease); }
.bm-mega-toggle--bar[aria-expanded="true"] .bm-mega__icon--down { transform: rotate(180deg); }
/* Hamburger for the phone header bar. */
.bm-mega-toggle--icon {
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	background: none; color: var(--wp--preset--color--ink);
}
.bm-mega-toggle--icon:hover { background: var(--wp--preset--color--shelf); }
.bm-mega-toggle--icon .bm-mega__icon { width: 1.5rem; height: 1.5rem; }

@media (max-width: 959.98px) {
	.wp-block-bm-mega-menu.is-variant-bar .bm-mega-toggle--bar { display: none; }
}
@media (min-width: 960px) {
	.wp-block-bm-mega-menu.is-variant-icon { display: none; }
}

/* Panel: shared ------------------------------------------------------------------------------------------------- */
.bm-mega {
	color: var(--wp--preset--color--ink); font-size: var(--wp--preset--font-size--base); font-weight: 400;
	line-height: 1.5; text-align: left; letter-spacing: normal; white-space: normal;
}
.bm-mega[hidden] { display: none !important; }
/* Ink focus ring on the white panel (the crimson bar around it uses a yellow one). */
.wp-block-bm-mega-menu .bm-mega :focus-visible { outline: 3px solid var(--wp--preset--color--ink); outline-offset: 2px; border-radius: 2px; }
.wp-block-bm-mega-menu .bm-mega .bm-mega__root:focus-visible, .wp-block-bm-mega-menu .bm-mega .bm-mega__back:focus-visible { outline-offset: -3px; }
.wp-block-bm-mega-menu .bm-mega a { color: inherit; text-decoration: none; }
.bm-mega :where(ul) { list-style: none; margin: 0; padding: 0; }
.bm-mega :where(h2) { margin: 0; }
.bm-mega button { font: inherit; color: inherit; cursor: pointer; }
.bm-mega__backdrop { background: rgba(35, 31, 32, .45); }
.bm-mega__sheet {
	position: relative; background: var(--wp--custom--glass--fill, var(--wp--preset--color--paper));
	-webkit-backdrop-filter: var(--wp--custom--glass--blur); backdrop-filter: var(--wp--custom--glass--blur);
}
.bm-mega__inner {
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size, 1280px) + 2 * var(--wp--custom--gutter));
	margin-inline: auto; padding-inline: var(--wp--custom--gutter);
}

.wp-block-bm-mega-menu .bm-mega__root {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%;
	min-height: 44px; margin: 0; padding: .5rem 1rem; border: 0; border-radius: 0; background: none; text-align: left;
	font-weight: 600; font-size: var(--wp--preset--font-size--sm); line-height: 1.3; text-decoration: none;
}
.bm-mega__root .bm-mega__icon { flex: none; width: 1rem; height: 1rem; color: var(--wp--preset--color--ink-soft); }
.bm-mega__root-name { flex: 1; min-width: 0; }
/* Category image (WooCommerce "Miniatura") in a circle: in the list and, bigger, above the panel title. */
.bm-mega__thumb, .bm-mega__media {
	display: block; flex: none; border-radius: 50%; object-fit: cover;
	background: var(--wp--preset--color--shelf); box-shadow: 0 0 0 1px var(--wp--preset--color--line);
}
.bm-mega__thumb { width: 36px; height: 36px; }
.bm-mega__media { width: 96px; height: 96px; }
/* Category icon (Lucide) in the list. */
.bm-mega__cat {
	display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
	background: var(--wp--preset--color--shelf); color: var(--wp--preset--color--ink);
	transition: background-color var(--wp--custom--speed) var(--wp--custom--ease), color var(--wp--custom--speed) var(--wp--custom--ease);
}
.bm-mega__cat-svg { width: 20px; height: 20px; }
.bm-mega__cat--lg { width: 88px; height: 88px; background: var(--wp--preset--color--orange-soft); color: var(--wp--preset--color--accent); }
.bm-mega__cat--lg .bm-mega__cat-svg { width: 44px; height: 44px; stroke-width: 1.5; }
.bm-mega__root:hover .bm-mega__cat, .bm-mega__root[aria-expanded="true"] .bm-mega__cat { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--accent); }
.bm-mega__root.is-promo .bm-mega__cat { background: var(--wp--preset--color--orange-soft); color: var(--wp--preset--color--accent); }
.bm-mega__header { display: grid; justify-items: start; gap: var(--wp--preset--spacing--30); }
.bm-mega__root:hover, .bm-mega__root[aria-expanded="true"] { background: var(--wp--preset--color--shelf); }
.bm-mega__root[aria-expanded="true"] { box-shadow: inset 4px 0 0 var(--wp--preset--color--crimson); }
.wp-block-bm-mega-menu .bm-mega__root.is-promo { color: var(--wp--preset--color--accent); font-weight: 800; }
.bm-mega__badge {
	margin-left: auto; color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--xs); font-weight: 500; font-variant-numeric: tabular-nums;
}

.bm-mega__panel { display: none; }
.bm-mega__panel.is-active { display: grid; align-content: start; }
.bm-mega__title { margin: 0; font-size: var(--wp--preset--font-size--lg); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
/* The whole title is the link to the category; the arrow in a white circle says it can be clicked. */
.bm-mega__title a { display: inline-flex; align-items: center; gap: .75rem; }
.bm-mega__title a:hover .bm-mega__title-text { text-decoration: underline; text-underline-offset: .15em; }
.bm-mega__go {
	display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
	background: #fff; color: var(--wp--preset--color--crimson);
	box-shadow: 0 0 0 1px var(--wp--preset--color--line), 0 4px 12px -6px rgba(35, 31, 32, .35);
	transition: transform var(--wp--custom--speed) var(--wp--custom--ease), background-color var(--wp--custom--speed) var(--wp--custom--ease), color var(--wp--custom--speed) var(--wp--custom--ease);
}
.bm-mega__go .bm-mega__icon { width: 1.25rem; height: 1.25rem; stroke-width: 2.25; }
.bm-mega__title a:hover .bm-mega__go, .bm-mega__title a:focus-visible .bm-mega__go {
	background: var(--wp--preset--color--crimson); color: #fff; transform: translateX(3px);
}
.bm-mega__count {
	display: block; margin-top: .25rem; color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--sm); font-weight: 500; letter-spacing: 0;
}
.bm-mega__links a { display: flex; align-items: center; gap: .625rem; padding: .5rem 0; font-size: var(--wp--preset--font-size--sm); line-height: 1.35; }
.bm-mega__sub-icon { flex: none; width: 18px; height: 18px; color: var(--wp--preset--color--accent); }
.wp-block-bm-mega-menu .bm-mega__links a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: .2em; }
.wp-block-bm-mega-menu .bm-mega__links .is-all { font-weight: 700; color: var(--wp--preset--color--accent); }

/* "Najpopularniejsze w tej kategorii": the root's best sellers in a row under the subcategories. */
.bm-mega__picks { display: grid; gap: .75rem; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--line); }
.bm-mega__picks-title { margin: 0; font-size: var(--wp--preset--font-size--base); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.bm-mega__picks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.wp-block-bm-mega-menu .bm-mega__pick {
	display: grid; align-content: start; justify-items: start; gap: .375rem; height: 100%; padding: .625rem;
	border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--paper);
	transition: border-color var(--wp--custom--speed) var(--wp--custom--ease), box-shadow var(--wp--custom--speed) var(--wp--custom--ease);
}
.wp-block-bm-mega-menu .bm-mega__pick:hover { border-color: var(--wp--preset--color--accent); box-shadow: 0 8px 20px -14px rgba(35, 31, 32, .45); }
/* White photo box in both themes: product photos have white backgrounds. */
.bm-mega__pick-media {
	position: relative; display: grid; place-items: center; justify-self: stretch; aspect-ratio: 1;
	border-radius: calc(var(--wp--custom--radius--md) - 4px); background: #fff; overflow: hidden;
}
.bm-mega__pick-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bm-mega__pick-off {
	position: absolute; top: .375rem; left: .375rem; padding: .125rem .4rem; border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--crimson); color: #fff; font-size: var(--wp--preset--font-size--xs); font-weight: 800; line-height: 1.3;
}
.bm-mega__pick-name {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-size: var(--wp--preset--font-size--sm); font-weight: 600; line-height: 1.3;
}
.bm-mega__pick:hover .bm-mega__pick-name { text-decoration: underline; text-underline-offset: .15em; }
.bm-mega__pick .bm-mega__price { margin-top: auto; font-size: 1.125rem; }

/* Price as on the product cards (redesign 2026-10-26): the regular price is plain text, a promotional price sits on an
   orange tag; no frame, no slant. */
.bm-mega__price {
	display: inline-flex; align-items: baseline; gap: .2em;
	margin: .25rem 0 0; padding: .125em 0;
	font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.bm-mega__price.is-promo {
	padding: .3em .6em .25em; border-radius: 6px;
	background: var(--wp--preset--color--orange); color: var(--wp--preset--color--night);
}
@media (forced-colors: active) { .bm-mega__price.is-promo { border: 1px solid CanvasText; } }
.bm-mega__price small { font-size: .55em; font-weight: 700; letter-spacing: 0; }

.bm-mega__head, .bm-mega__back, .bm-mega__extra, .bm-mega__heading { display: none; }
.bm-mega__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@keyframes bm-mega-fade { from { opacity: 0; } }
@keyframes bm-mega-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes bm-mega-out { to { opacity: 0; } }
@keyframes bm-mega-sheet-in { from { transform: translateX(-100%); } }
@keyframes bm-mega-sheet-out { to { transform: translateX(-100%); } }
@keyframes bm-mega-row-in { from { opacity: 0; transform: translateX(-16px); } }
@keyframes bm-mega-from-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes bm-mega-from-left { from { opacity: 0; transform: translateX(-40px); } }

/* Phone and tablet: drawer ----------------------------------------------------------------------------------- */
@media (max-width: 959.98px) {
	/*
	 * Motion: the sheet slides in from the left edge with a soft deceleration while the backdrop fades in, the rows
	 * follow with a short stagger; closing (view.js adds .is-closing for --bm-drawer-out) runs it backwards, faster.
	 * Drill-down slides the panel in from the right, "back" brings the categories in from the left.
	 */
	.bm-mega {
		--bm-drawer-ease: cubic-bezier(.32, .72, 0, 1); --bm-drawer-in: 380ms; --bm-drawer-out: 240ms;
		position: fixed; inset: 0; z-index: 100;
	}
	.bm-mega__backdrop { position: absolute; inset: 0; animation: bm-mega-fade var(--bm-drawer-in) ease-out; }
	.bm-mega__sheet {
		position: absolute; inset: 0 auto 0 0; width: min(100%, 28rem);
		overflow-y: auto; overscroll-behavior: contain;
		box-shadow: 16px 0 48px -24px rgba(35, 31, 32, .5);
		animation: bm-mega-sheet-in var(--bm-drawer-in) var(--bm-drawer-ease);
	}
	.bm-mega:not(.is-back):not(.is-drilled) :is(.bm-mega__extra, .bm-mega__heading, .bm-mega__roots > li) {
		animation: bm-mega-row-in 320ms var(--bm-drawer-ease) both; animation-delay: 90ms;
	}
	.bm-mega:not(.is-back):not(.is-drilled) .bm-mega__heading { animation-delay: 130ms; }
	.bm-mega__roots > li:nth-child(1) { --bm-row: 0; } .bm-mega__roots > li:nth-child(2) { --bm-row: 1; }
	.bm-mega__roots > li:nth-child(3) { --bm-row: 2; } .bm-mega__roots > li:nth-child(4) { --bm-row: 3; }
	.bm-mega__roots > li:nth-child(5) { --bm-row: 4; } .bm-mega__roots > li:nth-child(6) { --bm-row: 5; }
	.bm-mega__roots > li:nth-child(7) { --bm-row: 6; } .bm-mega__roots > li:nth-child(n+8) { --bm-row: 7; }
	.bm-mega:not(.is-back):not(.is-drilled) .bm-mega__roots > li { animation-delay: calc(150ms + var(--bm-row, 0) * 25ms); }
	:root[data-bm-mega-view="categories"] .bm-mega:not(.is-back):not(.is-drilled) .bm-mega__roots > li { animation-delay: calc(90ms + var(--bm-row, 0) * 25ms); }
	.bm-mega.is-drilled .bm-mega__panel.is-active { animation: bm-mega-from-right 300ms var(--bm-drawer-ease); }
	.bm-mega.is-back:not(.is-drilled) :is(.bm-mega__extra, .bm-mega__heading, .bm-mega__roots) { animation: bm-mega-from-left 300ms var(--bm-drawer-ease); }
	.bm-mega.is-closing { pointer-events: none; }
	.bm-mega.is-closing .bm-mega__backdrop { animation: bm-mega-out var(--bm-drawer-out) ease-in forwards; }
	.bm-mega.is-closing .bm-mega__sheet { animation: bm-mega-sheet-out var(--bm-drawer-out) cubic-bezier(.4, 0, 1, 1) forwards; }
	.bm-mega__head {
		position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
		min-height: 60px; padding: .5rem var(--wp--custom--gutter);
		background: color-mix(in srgb, var(--wp--preset--color--paper) 90%, transparent); border-bottom: 1px solid var(--wp--preset--color--line);
	}
	.bm-mega__home { display: block; flex: none; color: inherit; text-decoration: none; }
	.bm-mega__logo { display: block; width: 130px; height: auto; }
	:root[data-theme="dark"] .bm-mega__logo { filter: brightness(0) invert(1); } /* white logo, as in the dark header */
	/* Language switcher in the head, after the logo: a small brand segment (grey track, the current language in
	   crimson), without the globe. The links keep a 44 px tap height through the padding of the track. */
	.bm-mega__head .bm-mega__lang { margin: 0 .25rem 0 auto; }
	.bm-mega__head .bm-mega__lang-icon { display: none; }
	.bm-mega__head .bm-mega__lang-list { gap: 2px; padding: 3px; border: 0; background: var(--wp--preset--color--shelf); }
	.wp-block-bm-mega-menu .bm-mega__head .bm-mega__lang a {
		min-width: 2.25rem; min-height: 30px; padding: 0 .5rem; border-radius: var(--wp--custom--radius--pill);
		color: var(--wp--preset--color--ink-soft); font-size: var(--wp--preset--font-size--xs); font-weight: 800; letter-spacing: .04em;
	}
	.wp-block-bm-mega-menu .bm-mega__head .bm-mega__lang a + a { border-left: 0; }
	.wp-block-bm-mega-menu .bm-mega__head .bm-mega__lang a:hover { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
	.wp-block-bm-mega-menu .bm-mega__head .bm-mega__lang a[aria-current] {
		background: var(--wp--preset--color--crimson); color: var(--wp--preset--color--white); box-shadow: 0 1px 2px rgb(142 1 34 / .35);
	}
	.bm-mega__head { gap: .5rem; }
	@media (max-width: 359.98px) {
		.bm-mega__logo { width: 112px; }
	}
	.bm-mega__logo-text { font-weight: 800; font-size: var(--wp--preset--font-size--md); }
	.wp-block-bm-mega-menu .bm-mega__close {
		display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -.5rem; padding: 0;
		border: 0; border-radius: 50%; background: none;
	}
	.bm-mega__close:hover { background: var(--wp--preset--color--shelf); }
	.bm-mega__close .bm-mega__icon { width: 1.5rem; height: 1.5rem; }
	.bm-mega__inner { padding: 0; }
	.bm-mega__roots { border-bottom: 1px solid var(--wp--preset--color--line); }
	.bm-mega__roots li + li { border-top: 1px solid var(--wp--preset--color--line); }
	.wp-block-bm-mega-menu .bm-mega__root {
		min-height: 52px; padding-inline: var(--wp--custom--gutter); font-size: var(--wp--preset--font-size--base);
	}
	.bm-mega__root[aria-expanded="true"] { background: none; box-shadow: none; }
	.bm-mega__panels { display: none; }
	.bm-mega.is-drilled .bm-mega__roots, .bm-mega.is-drilled .bm-mega__extra { display: none; }
	.bm-mega.is-drilled .bm-mega__panels { display: block; }
	.bm-mega__panel.is-active { gap: var(--wp--preset--spacing--40); padding: 0 var(--wp--custom--gutter) var(--wp--preset--spacing--60); }
	.bm-mega__media, .bm-mega__cat--lg { width: 72px; height: 72px; }
	.bm-mega__cat--lg .bm-mega__cat-svg { width: 36px; height: 36px; }
	.wp-block-bm-mega-menu .bm-mega__back {
		display: flex; align-items: center; gap: .5rem; min-height: 52px;
		width: calc(100% + 2 * var(--wp--custom--gutter)); margin: 0 calc(-1 * var(--wp--custom--gutter));
		padding: 0 var(--wp--custom--gutter); border: 0; border-bottom: 1px solid var(--wp--preset--color--line); border-radius: 0;
		background: var(--wp--preset--color--shelf); font-weight: 600; text-align: left;
	}
	.bm-mega__links li + li { border-top: 1px solid var(--wp--preset--color--line); }
	.bm-mega__links a { display: flex; align-items: center; min-height: 48px; padding: .75rem 0; font-size: var(--wp--preset--font-size--base); }
	.bm-mega__extra {
		display: block; padding: var(--wp--preset--spacing--30) var(--wp--custom--gutter) var(--wp--preset--spacing--40);
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
	.bm-mega__heading {
		display: block; margin: 0; padding: var(--wp--preset--spacing--40) var(--wp--custom--gutter) var(--wp--preset--spacing--20);
		color: var(--wp--preset--color--ink-soft); font-size: var(--wp--preset--font-size--sm); font-weight: 700;
	}
	.bm-mega.is-drilled .bm-mega__heading,
	:root[data-bm-mega-view="categories"] :is(.bm-mega__extra, .bm-mega__heading) { display: none; }
	/* Account: "Zaloguj się · Załóż konto" (or "Moje konto") as icon links in one row, above a hairline. */
	.bm-mega__account { margin-bottom: var(--wp--preset--spacing--20); padding-bottom: var(--wp--preset--spacing--20); border-bottom: 1px solid var(--wp--preset--color--line); }
	.bm-mega__account-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
	.bm-mega__account-links a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .25rem 0; border-radius: var(--wp--custom--radius--sm); font-weight: 700; }
	/* Social profiles: icon links in a row at the end of the extras. */
	.bm-mega__social { margin-top: var(--wp--preset--spacing--30); }
	.bm-mega__social .bm-social { display: flex; gap: .5rem; margin: 0; padding: 0; list-style: none; }
	.bm-mega__social .bm-social__link {
		display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--wp--preset--color--line-strong); border-radius: 50%;
		color: var(--wp--preset--color--ink);
	}
	.bm-mega__social .bm-social__link:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
	.bm-mega__social .bm-social__icon { width: 20px; height: 20px; }
	.bm-mega__extra-links { display: grid; gap: 0; }
	.bm-mega__extra-links a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .25rem 0; font-weight: 600; }
	.bm-mega__link-icon { flex: none; width: 20px; height: 20px; color: var(--wp--preset--color--accent); }
	/* Language: globe + segmented "PL | UA | RU". */
	.bm-mega__lang { display: flex; align-items: center; gap: .75rem; margin-top: var(--wp--preset--spacing--40); }
	.bm-mega__lang-icon { flex: none; width: 28px; height: 28px; color: var(--wp--preset--color--accent); }
	.bm-mega__lang-list {
		display: inline-flex; overflow: hidden;
		border: 1px solid var(--wp--preset--color--line-strong); border-radius: var(--wp--custom--radius--pill);
	}
	.wp-block-bm-mega-menu .bm-mega__lang a {
		display: inline-flex; align-items: center; justify-content: center; min-width: 3.5rem; min-height: 44px; padding: 0 .875rem;
		font-weight: 700; letter-spacing: .02em;
	}
	.wp-block-bm-mega-menu .bm-mega__lang a + a { border-left: 1px solid var(--wp--preset--color--line-strong); }
	.wp-block-bm-mega-menu .bm-mega__lang a:hover { background: var(--wp--preset--color--shelf); }
	.wp-block-bm-mega-menu .bm-mega__lang a[aria-current] { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
	.wp-block-bm-mega-menu .bm-mega__lang a:focus-visible { outline-offset: -3px; }
}

/* Desktop: dropdown under the navigation bar ------------------------------------------------------------------ */
@media (min-width: 960px) {
	.bm-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; }
	.bm-mega__backdrop {
		position: absolute; left: 0; right: 0; top: 0; height: 100vh; pointer-events: auto;
		animation: bm-mega-fade var(--wp--custom--speed) var(--wp--custom--ease);
	}
	.bm-mega__sheet {
		border-bottom: 1px solid var(--wp--preset--color--line);
		box-shadow: 0 24px 48px -24px rgba(35, 31, 32, .35);
		animation: bm-mega-drop var(--wp--custom--speed) var(--wp--custom--ease);
	}
	.bm-mega__inner { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 480px; }
	.bm-mega__roots {
		padding: 0; margin-left: -1rem;
		border-right: 1px solid var(--wp--preset--color--line);
		max-height: min(70vh, 620px); overflow-y: auto; overscroll-behavior: contain;
	}
	.bm-mega__panels { padding: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
	.bm-mega__panel.is-active { grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--40); }
	.bm-mega__links { columns: 4 190px; column-gap: var(--wp--preset--spacing--50); }
	/* Desktop picks: four compact cards in one row, photo on the left. */
	.bm-mega__picks-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wp-block-bm-mega-menu .bm-mega__pick { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: .75rem; align-items: start; }
	.bm-mega__pick-media { grid-row: 1 / span 2; width: 76px; }
	.bm-mega__pick .bm-mega__price { align-self: end; }
	.bm-mega__links li { break-inside: avoid; }
	.bm-mega__links a { min-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.bm-mega__go, .bm-mega__pick { transition: none; }
	.bm-mega__title a:hover .bm-mega__go { transform: none; }
	.bm-mega__backdrop, .bm-mega__sheet, .bm-mega__panel, .bm-mega__extra, .bm-mega__heading, .bm-mega__roots, .bm-mega__roots > li { animation: none !important; }
	.bm-mega-toggle--bar .bm-mega__icon--down { transition: none; }
}
