/* ==========================================================================
   Mega-Menu — Tanishq-inspired pattern (Jewelry + Occasions share this panel)
   Desktop full-width frosted glass panel (NAV-1 builder)
   Spec: docs/state/2026-09-19/14-DESIGN-BASELINE.md (frosted glass surface)
   Host: any top-level <li> flagged .bj-mm-host (biyani-presentation.php
   adds the class via nav_menu_css_class whenever it renders a panel for it).
   ========================================================================== */

/* 1. Hide the flat sub-menu for any item that has a mega-menu panel — wherever the panel
 * itself now shows (768px+, since 9b below extends it into the tablet range instead of just
 * desktop), not only desktop's ≥1024px; otherwise 768–1023px shows BOTH at once (the flat
 * list rendering over/under the mega-menu panel it duplicates). */
@media (min-width: 768px) {
	header.ts-header .header-middle li.bj-mm-host > .sub-menu {
		display: none !important;
	}
}

/* 2. Mega-menu panel container.
 * `display: none` by default — a CLOSED panel must have zero footprint, so it can never
 * push document width regardless of what the current page template's ancestors clip (some
 * templates have no overflow-hidden wrapper around the header; measured on /shop/ at a
 * 1024px viewport, the closed panel alone added 73px to document.scrollWidth). `display`
 * is transitioned via `@starting-style`/`allow-discrete` so the open/close fade still
 * animates in browsers that support it; browsers that don't get an instant cut instead of a
 * fade, never the overflow.
 */
.bj-megamenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, -4px);
	margin-top: 14px;
	width: min(1360px, calc(100vw - 48px));
	min-height: 447px;
	z-index: 9999;
	background: rgba(255, 253, 248, 0.96);
	border: 1px solid rgba(202, 146, 52, 0.35);
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(28, 26, 23, 0.16), 0 4px 14px rgba(28, 26, 23, 0.06);
	padding: 24px 28px;
	opacity: 0;
	flex-direction: column;
	justify-content: center;
	clip-path: circle(0px at var(--bj-mm-ox, 50%) 0%);
	transition: opacity 150ms ease, transform .22s cubic-bezier(.2, .8, .2, 1), clip-path 150ms ease, display .22s allow-discrete;
	box-sizing: border-box;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-megamenu {
		background: rgba(252, 249, 243, 0.94);
		-webkit-backdrop-filter: blur(16px) saturate(160%);
		backdrop-filter: blur(16px) saturate(160%);
	}
}

/* Open states: hover, focus-within, or active JS class */
header.ts-header .header-middle li.bj-mm-host:hover > .bj-megamenu,
header.ts-header .header-middle li.bj-mm-host:focus-within > .bj-megamenu,
header.ts-header .header-middle li.bj-mm-host.bj-mm-open > .bj-megamenu {
	display: flex;
	opacity: 1;
	transform: translate(-50%, 0);
	clip-path: circle(1600px at var(--bj-mm-ox, 50%) 0%);
	transition: opacity .22s cubic-bezier(.2, .8, .2, 1), transform .22s cubic-bezier(.2, .8, .2, 1), clip-path 260ms cubic-bezier(.2, .8, .2, 1), display .22s allow-discrete;
	will-change: clip-path, opacity;
}
header.ts-header .header-middle li.bj-mm-host:hover > .bj-megamenu .bj-mm-inner,
header.ts-header .header-middle li.bj-mm-host:focus-within > .bj-megamenu .bj-mm-inner,
header.ts-header .header-middle li.bj-mm-host.bj-mm-open > .bj-megamenu .bj-mm-inner {
	opacity: 1;
	transition: opacity 180ms ease 80ms;
}

@starting-style {
	header.ts-header .header-middle li.bj-mm-host:hover > .bj-megamenu,
	header.ts-header .header-middle li.bj-mm-host:focus-within > .bj-megamenu,
	header.ts-header .header-middle li.bj-mm-host.bj-mm-open > .bj-megamenu {
		opacity: 0;
		transform: translate(-50%, -4px);
		clip-path: circle(0px at var(--bj-mm-ox, 50%) 0%);
	}
}

/* Switching directly between two open menus (owner, 2026-09-26): the panel frame is already
 * on screen at the unified position/size (above) — only the content cross-fades; skip the
 * slow reveal so it doesn't replay per item. megamenu.js also applies this class under
 * reduced motion (belt-and-braces with the media query below). */
.bj-megamenu.bj-mm-instant {
	transition: opacity 150ms ease !important;
	clip-path: circle(1600px at var(--bj-mm-ox, 50%) 0%) !important;
}
.bj-megamenu.bj-mm-instant .bj-mm-inner {
	transition: opacity 150ms ease !important;
}

/* Open item keeps the header's glass hover pill (header.css §Plum-glass "pop") while its
 * panel is open — also when opened by tap or keyboard, where :hover doesn't apply (owner,
 * 2026-09-27: "fine without any connecting as long as the right menu item is glass
 * highlighted"). */
header.ts-header .header-middle .menu-wrapper .menu > li.bj-mm-host.bj-mm-open > a {
	background-color: rgba(251, 248, 243, 0.14) !important;
	border-color: rgba(251, 248, 243, 0.32) !important;
	box-shadow: 0 4px 14px rgba(28, 26, 23, 0.16) !important;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	header.ts-header .header-middle .menu-wrapper .menu > li.bj-mm-host.bj-mm-open > a {
		-webkit-backdrop-filter: blur(10px) saturate(160%) !important;
		backdrop-filter: blur(10px) saturate(160%) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bj-megamenu,
	.bj-megamenu.bj-mm-instant,
	.bj-megamenu .bj-mm-inner,
	.bj-megamenu.bj-mm-instant .bj-mm-inner {
		transition: none !important;
	}
}

/* Invisible bridge so mouse hover doesn't drop across the 14px gap (10px sticky) */
.bj-megamenu::before {
	content: "";
	position: absolute;
	top: -16px;
	left: 0;
	right: 0;
	height: 16px;
	background: transparent;
}

/* Sticky header: smaller offset */
.sticky-wrapper.is-sticky .header-middle .bj-megamenu {
	margin-top: 10px;
}
.sticky-wrapper.is-sticky .header-middle .bj-megamenu::before {
	top: -12px;
	height: 12px;
}

/* 3. Three-column layout */
.bj-mm-inner {
	display: grid;
	grid-template-columns: 210px 1fr 280px;
	gap: 32px;
	align-items: stretch;
	opacity: 0;
	transition: opacity 120ms ease;
}

/* 4. Left Column: item groups (Jewelry: category + children; Occasions: flat list) */
.bj-mm-groups {
	border-right: 1px solid rgba(28, 26, 23, 0.08);
	padding-right: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.bj-mm-group {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.bj-mm-group-title,
.bj-mm-group-heading {
	font-family: var(--bj-font-display, "Marcellus", serif) !important;
	font-size: 16px !important;
	color: var(--bj-ink, #1C1A17) !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	letter-spacing: .02em;
	line-height: 1.3 !important;
}
.bj-mm-group-title {
	display: inline-flex !important;
	padding: 4px 8px !important;
	margin: -4px -8px !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	transition: color .2s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bj-mm-group-title:hover {
	color: var(--bj-gold-deep, #9C6D1C) !important;
}
.bj-mm-group-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 0 0 8px !important;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bj-mm-group-list li {
	margin: 0 !important;
	padding: 0 !important;
}
.bj-mm-group-list a {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 14px !important;
	color: var(--bj-stone, #4A443C) !important;
	text-decoration: none !important;
	padding: 4px 8px !important;
	margin: -4px -8px !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	display: inline-block;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
	line-height: 1.4 !important;
}
.bj-mm-group-list a:hover {
	color: var(--bj-gold-deep, #9C6D1C) !important;
}

/* "Explore/all" link at the foot of the left column */
.bj-mm-explore {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed rgba(202, 146, 52, 0.4);
}
.bj-mm-explore-link {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--bj-gold-deep, #9C6D1C) !important;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px !important;
	margin: -4px -8px !important;
	border-radius: 10px !important;
	border: 1px solid transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	transition: gap .2s ease, color .2s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bj-mm-explore-link:hover {
	color: var(--bj-ink, #1C1A17) !important;
	gap: 10px;
}

/* 5. Centre Column: Tiles Grid */
.bj-mm-tiles-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.bj-mm-tiles-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.bj-mm-eyebrow {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: .14em;
	color: var(--bj-mute, #716B5B) !important;
	text-transform: uppercase;
}
.bj-mm-tiles-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px 10px;
}
/* Occasions has 7 tiles, not Jewelry's 12 — 6 columns would orphan the 7th onto its own
 * row. Fits all 7 on one row at desktop widths (owner, 2026-09-26); below 1200px this falls
 * back to the shared 4-column rule (4 + 3, never a single orphan). */
@media (min-width: 1200px) {
	.bj-megamenu--occasions .bj-mm-tiles-grid {
		grid-template-columns: repeat(7, minmax(0, 1fr));
	}
	/* Tiles must shrink with the row (never force it wider than the panel); 92px is the
	 * most they need at 1512, everything narrower flexes down with the column. */
	.bj-megamenu--occasions .bj-mm-tile-media {
		width: 100%;
		max-width: 92px;
		height: auto;
	}
}
.bj-mm-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none !important;
	padding: 8px 6px;
	border-radius: 12px;
	background-color: transparent;
	border: 1px solid transparent;
	box-shadow: none;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bj-mm-tile:hover {
	background-color: var(--bj-ivory-2, #F5EFE5) !important;
}
.bj-mm-tile-media {
	width: 96px;
	height: 96px;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(28, 26, 23, 0.08);
	box-shadow: 0 2px 6px rgba(28, 26, 23, 0.05);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bj-mm-tile-media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	border-radius: 11px;
	transition: transform .25s ease;
}
.bj-mm-tile:hover .bj-mm-tile-media img,
.bj-mm-tile:focus-visible .bj-mm-tile-media img {
	transform: scale(1.05);
}
.bj-mm-tile-label {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--bj-ink, #1C1A17) !important;
	line-height: 1.25 !important;
	transition: color .2s ease;
}
.bj-mm-tile:hover .bj-mm-tile-label,
.bj-mm-tile:focus-visible .bj-mm-tile-label {
	color: var(--bj-gold-deep, #9C6D1C) !important;
}
/* Occasions tiles add a short headline under the name (biyani_occasions_content()) */
.bj-mm-tile-sub {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 11px !important;
	color: var(--bj-mute, #716B5B) !important;
	line-height: 1.3 !important;
	margin-top: 2px;
}

/* 6. Right Column: Lifestyle Section */
.bj-mm-lifestyle {
	border-left: 1px solid rgba(28, 26, 23, 0.08);
	padding-left: 20px;
	display: flex;
}
.bj-mm-lifestyle-card {
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	background: var(--bj-ivory-2, #F5EFE5);
	border: 1px solid rgba(202, 146, 52, 0.3);
	border-radius: 12px;
	padding: 12px;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	width: 100%;
	box-sizing: border-box;
}
.bj-mm-lifestyle-card:hover {
	box-shadow: 0 8px 20px rgba(28, 26, 23, 0.08);
	border-color: var(--bj-gold, #CA9234);
}
.bj-mm-lifestyle-media {
	display: flex;
	gap: 8px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
	height: 168px;
}
.bj-mm-lifestyle-media img {
	width: 50% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	border-radius: 6px;
}
/* Occasions' card carries one signature photo, not the pair of homepage photos Jewelry uses */
.bj-mm-lifestyle-media--single img {
	width: 100% !important;
	object-position: center 20%;
}
.bj-mm-lifestyle-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bj-mm-lifestyle-title {
	font-family: var(--bj-font-display, "Marcellus", serif) !important;
	font-size: 15px !important;
	color: var(--bj-ink, #1C1A17) !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
}
.bj-mm-lifestyle-sub {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 12px !important;
	color: var(--bj-stone, #4A443C) !important;
	line-height: 1.35 !important;
}
.bj-mm-lifestyle-cta {
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: var(--bj-gold-deep, #9C6D1C) !important;
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.bj-mm-lifestyle-card:hover .bj-mm-lifestyle-cta,
.bj-mm-lifestyle-card:focus-visible .bj-mm-lifestyle-cta {
	color: var(--bj-ink, #1C1A17) !important;
}

/* 7. Ivory-glass hover/focus "pop" on every interactive item (owner, 2026-09-26): a
 * translucent ivory pill/tile lift, independent of each item's own hover colour change
 * above. Tiles and the lifestyle card already carry their own background/border, so this
 * layers a soft blur + shadow rather than replacing them. */
@media (hover: hover) {
	.bj-mm-group-title:hover,
	.bj-mm-group-list a:hover,
	.bj-mm-explore-link:hover,
	.bj-mm-tile:hover {
		background-color: rgba(251, 248, 243, 0.7) !important;
		border-color: rgba(202, 146, 52, 0.3) !important;
		box-shadow: 0 6px 16px rgba(28, 26, 23, 0.10) !important;
	}
}
.bj-mm-group-title:focus-visible,
.bj-mm-group-list a:focus-visible,
.bj-mm-explore-link:focus-visible,
.bj-mm-tile:focus-visible {
	background-color: rgba(251, 248, 243, 0.7) !important;
	border-color: rgba(202, 146, 52, 0.3) !important;
	box-shadow: 0 6px 16px rgba(28, 26, 23, 0.10) !important;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-mm-group-title:is(:hover, :focus-visible),
	.bj-mm-group-list a:is(:hover, :focus-visible),
	.bj-mm-explore-link:is(:hover, :focus-visible),
	.bj-mm-tile:is(:hover, :focus-visible) {
		-webkit-backdrop-filter: blur(8px) saturate(140%) !important;
		backdrop-filter: blur(8px) saturate(140%) !important;
	}
}
@media (prefers-reduced-motion: no-preference) {
	@media (hover: hover) {
		.bj-mm-group-title:hover,
		.bj-mm-group-list a:hover,
		.bj-mm-explore-link:hover,
		.bj-mm-tile:hover,
		.bj-mm-lifestyle-card:hover {
			transform: translateY(-1px);
		}
	}
	.bj-mm-group-title:focus-visible,
	.bj-mm-group-list a:focus-visible,
	.bj-mm-explore-link:focus-visible,
	.bj-mm-tile:focus-visible,
	.bj-mm-lifestyle-card:focus-visible {
		transform: translateY(-1px);
	}
}
.bj-mm-lifestyle-card:focus-visible {
	box-shadow: 0 8px 20px rgba(28, 26, 23, 0.08);
	border-color: var(--bj-gold, #CA9234);
}

/* 8. Accessibility focus-visible outline (plum, owner 2026-09-26) */
.bj-megamenu a:focus-visible,
.bj-megamenu button:focus-visible {
	outline: 2px solid #4A1F4F !important;
	outline-offset: 3px !important;
	border-radius: 4px !important;
}

/* 9. Responsive breakpoints */
@media (max-width: 1199px) {
	.bj-mm-inner {
		grid-template-columns: 180px 1fr;
		gap: 20px;
	}
	.bj-mm-lifestyle {
		display: none !important;
	}
	.bj-mm-tiles-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.bj-megamenu {
		padding: 20px 22px;
		min-height: 515px;
	}
}

/* Below 768px the panels are the phone drawer's job instead (megamenu.js initMobileDrawer /
 * initDrawerRedesign) — the shared frame here is desktop+tablet only. 768–1199 gets its own
 * touch-optimised sizing below (9b) instead of being hidden; only <768 (phone) hides it. */
@media (max-width: 767px) {
	.bj-megamenu {
		display: none !important;
	}
}

/* 9b. Tablet touch treatment (768–1199 — owner-reported 2026-09-26: "the menu expansion
 * doesn't work the same way as the web nor as mobile … closest to web but optimised for
 * touch"). The shared frame/tiles/groups sizing above (9.) already covers this width band;
 * this section adds what touch needs on top of it: a reachable close button (megamenu.js
 * opens on tap instead of hover at `(hover:none), (pointer:coarse)` — there's no hover to
 * "move the mouse away from" to dismiss it) and a 2×2 Contact grid in portrait, where 4-across
 * would otherwise squeeze each card wafer-thin. Landscape (1024×768, 1194×834 …) has the width
 * to keep the 4-across row. */
.bj-mm-close {
	display: none;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(28, 26, 23, 0.14);
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-mm-close {
		-webkit-backdrop-filter: blur(10px) saturate(140%);
		backdrop-filter: blur(10px) saturate(140%);
	}
}
.bj-mm-close::before,
.bj-mm-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	margin: -1px 0 0 -8px;
	background: var(--bj-ink, #1C1A17);
	border-radius: 2px;
}
.bj-mm-close::before {
	transform: rotate(45deg);
}
.bj-mm-close::after {
	transform: rotate(-45deg);
}
@media (hover: hover) {
	.bj-mm-close:hover {
		background-color: rgba(28, 26, 23, 0.1);
		border-color: rgba(28, 26, 23, 0.22);
	}
}
/* Baseline focus-visible spec (docs/state/2026-09-19/14-DESIGN-BASELINE.md): 2px plum
 * outline, 3px offset — this is a new element, not the panel's existing gold-light links. */
.bj-mm-close:focus-visible {
	outline: 2px solid #4A1F4F;
	outline-offset: 3px;
}
@media (max-width: 1199px) {
	.bj-mm-close {
		display: flex;
	}
}

/* 10. Mobile drawer: a visible, reachable close button (audit #11 — the only way to
 * dismiss it was a 10px sliver of overlay at 360px) and a width that leaves a real overlay
 * strip on narrow phones. The theme ships a `.close` for every OTHER floating sidebar
 * (search, cart) but not this one; megamenu.js injects the same element here and reuses the
 * theme's own icon glyph/position base (style.css:10426-10446) plus its close click-wiring,
 * only widening the tap target and giving it glass to match the design system. */
@media (max-width: 767px) {
	#group-icon-header .ts-sidebar-content {
		width: min(350px, 86vw) !important;
	}
	/* Slide in from (and back out to) the RIGHT edge, the side the header hamburger sits on
	 * (owner, 2026-09-27). The theme's phone rule (responsive.css `#group-icon-header
	 * .ts-sidebar-content{left:0;right:auto;transform:translateX(-100%)}`) pinned it left;
	 * its own 0.5s transform transition, overlay and `.active` state are reused unchanged. */
	#group-icon-header.ts-floating-sidebar .ts-sidebar-content {
		left: auto;
		right: 0;
		transform: translateX(100%);
	}
	#group-icon-header.ts-floating-sidebar.active .ts-sidebar-content {
		transform: translateX(0);
	}
	/* biyani-brand.php fixes this drawer's own logo at 230px regardless of viewport; at the
	 * narrowest phones the shrunk drawer (above) leaves under 80px after it, colliding with
	 * the close button below. */
	#group-icon-header .ts-sidebar-content .logo-wrapper img {
		width: 170px !important;
	}
}
#group-icon-header .ts-sidebar-content > .close.bj-drawer-close {
	/* The theme hides `.close` inside this specific drawer by default (style.css:
	 * `#group-icon-header .close{display:none}` — its own unmodified design never gave it
	 * one; audit #11). */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	top: 12px !important;
	right: 12px !important;
	border-radius: 999px !important;
	background: rgba(28, 26, 23, 0.05) !important;
	border: 1px solid rgba(28, 26, 23, 0.14) !important;
	transition: background-color .18s ease, border-color .18s ease !important;
}
#group-icon-header .ts-sidebar-content > .close.bj-drawer-close::after {
	/* The theme's own `.close:after` is white, meant for the plum/dark search+cart
	 * sidebars — invisible on this drawer's white background. */
	color: var(--bj-ink, #1C1A17) !important;
	font-size: 20px !important;
	line-height: 44px !important;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#group-icon-header .ts-sidebar-content > .close.bj-drawer-close {
		background: rgba(255, 255, 255, 0.55) !important;
		-webkit-backdrop-filter: blur(10px) saturate(140%) !important;
		backdrop-filter: blur(10px) saturate(140%) !important;
	}
}
@media (hover: hover) {
	#group-icon-header .ts-sidebar-content > .close.bj-drawer-close:hover {
		background-color: rgba(28, 26, 23, 0.1) !important;
		border-color: rgba(28, 26, 23, 0.22) !important;
	}
}
#group-icon-header .ts-sidebar-content > .close.bj-drawer-close:focus-visible {
	outline: 2px solid var(--bj-gold-deep, #9C6D1C) !important;
	outline-offset: 2px !important;
}

/* ==========================================================================
   Contact panel (ContactMenu, 2026-09-26)
   Reuses the shared .bj-megamenu wrapper above via
   biyani_presentation_render_megamenu()'s 'body' override
   (biyani-presentation.php) — same host-class/open-close/keyboard/Esc
   plumbing as Jewelry/Occasions, a different inner shape: 3 boutique cards +
   a side column, instead of groups/tiles/lifestyle. Card data:
   biyani_contact_menu_panel_html() (biyani-contact.php, data-tz/data-hours
   straight from biyani_contact_shops() — no copy of hours here). Status
   text: biyani-contact/status.js (site-wide, shared with /contact/).
   ========================================================================== */
.bj-megamenu--contact .bj-mm-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	align-items: stretch;
}
/* Tablet touch (9b, above): 4-across gets too narrow to read in portrait (834/768/900/
 * 1024-portrait) — 2×2 gives each card the shop-media aspect-ratio square room back.
 * Landscape (1024×768, 1194×834 …) keeps the 4-across row, there's width for it. Must
 * come AFTER the base rule above — identical specificity, source order decides the tie. */
@media (max-width: 1199px) and (orientation: portrait) {
	.bj-megamenu--contact .bj-mm-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}
.bj-mm-contact-shops { display: contents; } /* each card (incl. the 4th "all boutiques" card) is its own grid cell */
.bj-mm-shop {
	display: flex; flex-direction: column;
	border-radius: 12px;
	background: var(--bj-ivory-2, #F5EFE5);
	border: 1px solid rgba(202, 146, 52, 0.25);
	transition: transform .2s ease, box-shadow .2s ease;
}
/* Clipped on the media only (not the whole card) — the card itself needs overflow:visible so
 * the action-button tooltip below can float above the card without being cut off. */
.bj-mm-shop-media { position: relative; aspect-ratio: 1 / 1; contain: size; border-radius: 12px 12px 0 0; overflow: hidden; }
.bj-mm-shop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Frosted-glass caption plate, same spec as the /contact/ collage cards (contact.css
 * .bj-ct-collage__caption): rgba(40,16,48,.62) dark-plum glass + blur(10px), 1px ivory
 * hairline, corners inherited from the media's own overflow:hidden radius. Ivory city +
 * status text, only the status dot changes colour (AA contrast checked against real photo
 * highlights, not just the average pixel). */
.bj-shop-plate {
	position: absolute; inset: auto 0 0 0; padding: 7px 7px 6px;
	background: rgba(40, 16, 48, .62);
	border-top: 1px solid rgba(251, 248, 243, .35);
	display: grid; gap: 3px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-shop-plate { -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
}
.bj-mm-shop-city {
	font-family: var(--bj-font-display, "Marcellus", serif) !important;
	font-size: 14px !important; color: var(--bj-ivory, #FBF8F3) !important;
	font-weight: 400 !important; line-height: 1.2 !important;
}
.bj-mm-shop-status {
	display: flex; align-items: center; gap: 8px;
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 14px !important; font-weight: 500 !important;
	color: var(--bj-ivory, #FBF8F3) !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bj-mm-shop-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.bj-mm-shop-status.is-open::before { background: #4ADE80; }
.bj-mm-shop-status.is-closed::before { background: #F5B971; }
.bj-mm-shop-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bj-mm-shop-addr {
	margin: 0; display: flex; align-items: center; gap: 6px;
	font-family: var(--bj-font-body, "Jost", sans-serif) !important;
	font-size: 12px !important; color: var(--bj-stone, #4A443C) !important; line-height: 1.35 !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bj-mm-shop-addr .bj-icon-pin { width: 11px; height: 11px; flex: none; color: var(--bj-gold-deep, #9C6D1C); }
.bj-mm-shop-actions { display: flex; gap: 8px; margin-top: auto; }
/* Icon-ONLY action buttons (owner: "the text doesn't fit on the small icons so remove those" +
 * "too much green, we don't want to advertise WhatsApp here" — ink glyphs, no colour per
 * action, same frosted-glass recipe as the header's other action rings (biyani-design/
 * controls.css .bj-glass — var(--bj-glass-*) tokens, tokens.css). The full accessible name
 * stays on the element (aria-label, biyani_contact_ibtn()); the visible label span is
 * screen-reader-only here, and a small glass tooltip repeats it on hover/focus for sighted
 * mouse/keyboard use. /contact/ page cards keep the icon + visible label (contact.css has its
 * own .bj-shop-ibtn — plenty of room there, no duplication). */
.bj-megamenu--contact .bj-shop-ibtn {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative; text-decoration: none !important; border-radius: 999px;
	background: var(--bj-glass-bg-solid, rgba(255, 253, 248, 0.92));
	border: 1px solid var(--bj-glass-border-solid, rgba(140, 90, 43, 0.20));
	box-shadow: var(--bj-glass-shadow-solid, 0 1px 2px rgba(18, 14, 10, 0.06));
	color: var(--bj-ink, #1C1A17) !important;
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-megamenu--contact .bj-shop-ibtn {
		background: var(--bj-glass-bg, rgba(252, 249, 243, 0.58));
		-webkit-backdrop-filter: var(--bj-glass-blur, blur(14px) saturate(160%));
		backdrop-filter: var(--bj-glass-blur, blur(14px) saturate(160%));
		border-color: var(--bj-glass-border, rgba(255, 255, 255, 0.55));
	}
}
.bj-megamenu--contact .bj-ibtn-icon { width: 14px; height: 14px; flex: none; }
.bj-megamenu--contact .bj-shop-ibtn:focus-visible { outline: 2px solid #4A1F4F !important; outline-offset: 3px !important; }
.bj-mm-shop-actions .bj-shop-ibtn {
	width: 44px; height: 44px; padding: 0; flex: none;
}
.bj-mm-shop-actions .bj-ibtn-icon { width: 18px; height: 18px; }
/* Visible label kept for the DOM (consistent shared markup) but visually hidden in this
 * icon-only context — sr-only, not display:none, so it's still announced. */
.bj-mm-shop-actions .bj-shop-ibtn span {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bj-mm-shop-actions .bj-shop-ibtn::after {
	content: attr(aria-label);
	position: absolute; bottom: calc(100% + 8px); left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: rgba(28, 26, 23, 0.88); color: var(--bj-ivory, #FBF8F3);
	font-family: var(--bj-font-body, "Jost", sans-serif); font-size: 11px; font-weight: 500;
	white-space: nowrap; padding: 5px 10px; border-radius: 8px;
	opacity: 0; pointer-events: none; z-index: 5;
	transition: opacity .15s ease, transform .15s ease;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-mm-shop-actions .bj-shop-ibtn::after {
		background: rgba(28, 26, 23, 0.68);
		-webkit-backdrop-filter: blur(8px) saturate(140%);
		backdrop-filter: blur(8px) saturate(140%);
	}
}
.bj-mm-shop-actions .bj-shop-ibtn:hover::after,
.bj-mm-shop-actions .bj-shop-ibtn:focus-visible::after {
	opacity: 1; transform: translateX(-50%) translateY(0);
}
/* 4th card — "All boutiques & hours" (owner, round 4: replaces the side column entirely). The
 * 2026 gold gift-box BJ mark filling the square (owner, 2026-09-27), over the plum-glass ground
 * it had before (header.css .ts-search-by-category recipe) while the image loads. No
 * border-colour change on hover anywhere on these cards (owner: "no gold/brown borders on any
 * card in any state") — a plain shadow lift instead, same language as .bj-mm-lifestyle-card. */
.bj-mm-shop--all { text-decoration: none !important; }
.bj-mm-shop-media--symbol {
	aspect-ratio: 1 / 1; contain: size; border-radius: 12px 12px 0 0; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	background: rgba(74, 15, 71, 0.88);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.bj-mm-shop-media--symbol {
		-webkit-backdrop-filter: blur(16px) saturate(160%);
		backdrop-filter: blur(16px) saturate(160%);
	}
}
.bj-mm-shop-media--symbol img { width: 100%; height: 100%; object-fit: cover; }
.bj-mm-shop-body--all {
	padding: 10px 12px 12px; flex: 1;
	display: flex; align-items: center; justify-content: center; text-align: center;
}
.bj-mm-shop-all-label {
	font-family: var(--bj-font-display, "Marcellus", serif) !important;
	font-size: 14px !important; font-weight: 400 !important; color: var(--bj-ink, #1C1A17) !important;
	display: inline-flex; align-items: center; gap: 6px; line-height: 1.3;
}
.bj-mm-shop--all:hover, .bj-mm-shop--all:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(28, 26, 23, .14);
}
.bj-mm-shop--all:focus-visible { outline: 2px solid #4A1F4F; outline-offset: 3px; }

/* Ivory-glass hover/focus pop — same rule as section 7 above, extended to the Contact panel's
 * own action buttons (its cards aren't .bj-mm-tile, so the shared selector list doesn't cover them). */
@media (hover: hover) {
	.bj-mm-shop-actions .bj-shop-ibtn:hover {
		background-color: rgba(251, 248, 243, 0.7) !important;
		border-color: rgba(202, 146, 52, 0.3) !important;
		box-shadow: 0 6px 16px rgba(28, 26, 23, 0.10) !important;
	}
}
.bj-mm-shop-actions .bj-shop-ibtn:focus-visible {
	background-color: rgba(251, 248, 243, 0.7) !important;
	border-color: rgba(202, 146, 52, 0.3) !important;
	box-shadow: 0 6px 16px rgba(28, 26, 23, 0.10) !important;
}
/* ===== end Contact panel ===== */
