/* VivaMarket Mega Menu – every rule is scoped to .vmm so themes (Astra) cannot leak in or out. */

.vmm,
.vmm *,
.vmm *::before,
.vmm *::after { box-sizing: border-box; }

.vmm {
	--vmm-bar: #fff;
	--vmm-text: #1b1b1f;
	--vmm-accent: #d6204a;
	--vmm-panel: #fff;
	--vmm-max: 1400px;
	--vmm-line: rgba(0, 0, 0, .09);
	--vmm-hover: rgba(0, 0, 0, .05);
	--vmm-muted: #5d5d66;
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.35;
	color: var(--vmm-text);
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}

/* ---- theme resets (Astra styles bare button / a / ul) ---- */
.vmm .vmm-top,
.vmm .vmm-col,
.vmm .vmm-m-list,
.vmm .vmm-m-crumb__list { list-style: none; margin: 0; padding: 0; }
.vmm .vmm-top__item,
.vmm .vmm-li,
.vmm .vmm-m-li,
.vmm .vmm-m-crumb__item { list-style: none; margin: 0; padding: 0; background: none; border: 0; }
.vmm a,
.vmm button {
	font: inherit;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	margin: 0;
}
.vmm button { background: none; border: 0; padding: 0; cursor: pointer; line-height: inherit; }
.vmm a:hover, .vmm a:focus, .vmm button:hover, .vmm button:focus { text-decoration: none; }
.vmm :focus-visible { outline: 2px solid var(--vmm-accent); outline-offset: -2px; }

.vmm .vmm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- desktop bar ---- */
.vmm .vmm-bar { position: relative; background: var(--vmm-bar); border-bottom: 1px solid var(--vmm-line); }
.vmm .vmm-top { display: flex; align-items: stretch; justify-content: space-between; max-width: var(--vmm-max); margin: 0 auto; padding: 0 8px; }
.vmm .vmm-top__item { flex: 0 1 auto; display: flex; }
.vmm .vmm-top__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 8px 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	color: var(--vmm-text);
	background: none;
	cursor: pointer;
}
.vmm .vmm-top__link--static { cursor: default; }
.vmm .vmm-top__link::after {
	content: "";
	position: absolute;
	left: 10px; right: 10px; bottom: 0;
	height: 3px;
	background: var(--vmm-accent);
	transform: scaleX(0);
	transition: transform .18s ease;
}
.vmm .vmm-top__link:hover,
.vmm .vmm-top__item--open > .vmm-top__link { color: var(--vmm-accent); }
.vmm .vmm-top__link:hover::after,
.vmm .vmm-top__item--open > .vmm-top__link::after { transform: scaleX(1); }
.vmm .vmm-top__item--zone18 .vmm-top__link { color: var(--vmm-accent); }

/* ---- desktop panel: columns open side by side, never on top of each other ---- */
.vmm .vmm-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	min-height: 220px;
	max-height: var(--vmm-panel-h, 70vh);
	overflow: hidden;
	background: var(--vmm-panel);
	border-top: 1px solid var(--vmm-line);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}
.vmm .vmm-panel[hidden] { display: none; }
.vmm .vmm-cols { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.vmm .vmm-col {
	flex: 0 0 260px;
	min-width: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px 0;
	border-right: 1px solid var(--vmm-line);
}
.vmm .vmm-col[hidden] { display: none; }
.vmm .vmm-col:last-child { border-right: 0; }

.vmm .vmm-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 8px 18px;
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
	color: var(--vmm-text);
	background: none;
	cursor: pointer;
	overflow-wrap: anywhere;
}
.vmm .vmm-item--static { cursor: default; }
.vmm .vmm-item:hover,
.vmm .vmm-item.is-active { background: var(--vmm-hover); }
.vmm .vmm-item.is-active { color: var(--vmm-accent); font-weight: 600; }
.vmm .vmm-item__chev {
	flex: 0 0 auto;
	width: 7px; height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .55;
}

.vmm .vmm-trail { padding: 8px 16px; background: var(--vmm-hover); border-bottom: 1px solid var(--vmm-line); font-size: 13px; }
.vmm .vmm-trail[hidden] { display: none; }
.vmm .vmm-trail__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.vmm .vmm-trail__btn { color: var(--vmm-accent); font-weight: 600; text-decoration: underline; padding: 2px 0; }
.vmm .vmm-trail__sep { color: var(--vmm-muted); }

.vmm .vmm-status { display: flex; align-items: center; gap: 12px; padding: 24px 18px; color: var(--vmm-muted); }
.vmm .vmm-retry { padding: 8px 14px; color: #fff; background: var(--vmm-accent); border-radius: 4px; font-weight: 600; }
.vmm .vmm-empty { padding: 12px 16px; color: var(--vmm-muted); }

/* ---- mobile toggle (shown by the inline breakpoint rule) ---- */
.vmm .vmm-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 16px;
	font-weight: 600;
	font-size: 15px;
	color: #fff;
	background: var(--vmm-accent);
	border-radius: 6px;
}
.vmm .vmm-toggle__icon { display: inline-flex; flex-direction: column; gap: 4px; }
.vmm .vmm-toggle__icon i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px; }

/* ---- mobile drawer ---- */
.vmm .vmm-drawer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #1b1b1f;
	overflow: hidden;
}
.vmm .vmm-drawer[hidden] { display: none; }
html.vmm-lock, html.vmm-lock body { overflow: hidden; }

.vmm .vmm-m-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 6px; border-bottom: 1px solid var(--vmm-line); flex: 0 0 auto; }
.vmm .vmm-m-back,
.vmm .vmm-m-close { display: inline-flex; align-items: center; gap: 6px; min-width: 48px; min-height: 48px; padding: 0 12px; font-weight: 600; color: var(--vmm-text); }
.vmm .vmm-m-back[hidden] { display: none; }
.vmm .vmm-m-close { margin-left: auto; justify-content: center; }
.vmm .vmm-m-back__ico { width: 10px; height: 10px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.vmm .vmm-m-close__ico { position: relative; width: 20px; height: 20px; }
.vmm .vmm-m-close__ico::before,
.vmm .vmm-m-close__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.vmm .vmm-m-close__ico::after { transform: translate(-50%, -50%) rotate(-45deg); }

.vmm .vmm-m-title { flex: 0 0 auto; margin: 0; padding: 14px 16px 4px; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--vmm-text); }
.vmm .vmm-m-title:focus { outline: none; }
.vmm .vmm-m-title:focus-visible { outline: 2px solid var(--vmm-accent); outline-offset: -2px; }
.vmm .vmm-m-title__link { color: inherit; }
.vmm .vmm-m-crumb { flex: 0 0 auto; padding: 0 16px 10px; font-size: 12.5px; color: var(--vmm-muted); }
.vmm .vmm-m-crumb[hidden] { display: none; }
.vmm .vmm-m-crumb__list { display: flex; flex-wrap: wrap; gap: 2px 0; }
.vmm .vmm-m-crumb__item + .vmm-m-crumb__item::before { content: "›"; margin: 0 6px; }
.vmm .vmm-m-crumb__item[aria-current] { color: var(--vmm-text); font-weight: 600; }

.vmm .vmm-m-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--vmm-line); padding-bottom: env(safe-area-inset-bottom, 0); }
.vmm .vmm-m-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	font-size: 16px;
	line-height: 1.3;
	text-align: left;
	color: var(--vmm-text);
	background: none;
	border-bottom: 1px solid var(--vmm-line);
	overflow-wrap: anywhere;
}
.vmm .vmm-m-item--static { color: var(--vmm-muted); }
.vmm .vmm-m-item:active { background: var(--vmm-hover); }
.vmm .vmm-m-item__chev { flex: 0 0 auto; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .55; }
.vmm .vmm-m-li--zone18 .vmm-m-item { color: var(--vmm-accent); font-weight: 600; }

.vmm .vmm-anim-fwd { animation: vmm-in-right .22s ease-out; }
.vmm .vmm-anim-back { animation: vmm-in-left .22s ease-out; }
@keyframes vmm-in-right { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vmm-in-left { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.vmm .vmm-anim-fwd, .vmm .vmm-anim-back { animation: none; }
	.vmm .vmm-top__link::after { transition: none; }
}

/* narrow desktops: items wrap to two lines instead of overflowing */
@media (max-width: 1180px) {
	.vmm .vmm-top__link { font-size: 13px; padding: 8px 6px; }
}
