/* Mega Menu Pro — front-end styles (V2, desktop only)
   Structural / behavioral rules. Colors, typography, spacing, container
   width, rail width, image ratio etc. are controlled from the Elementor
   Style tab and land as inline selectors that override these defaults. */

.mmp-mega-menu {
	position: relative;
	width: 100%;
}

/* ---------------------------------------------------------------
   Nav bar
------------------------------------------------------------------ */

.mmp-nav__list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mmp-nav__item {
	position: static; /* lets the panel span full width relative to the bar */
}

/* No background, no border, no hover background by default. */
.mmp-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none !important;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mmp-nav__item:hover > .mmp-nav__link,
.mmp-nav__item.mmp-is-open > .mmp-nav__link {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Keyboard focus only — mouse clicks show no box. */
.mmp-nav__link:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 2px;
}

/* Down chevron on mega items; flips to point up when the panel is open. */
.mmp-nav__caret {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -3px;
	flex-shrink: 0;
}

.mmp-nav__item.mmp-is-open .mmp-nav__caret {
	transform: rotate(-135deg);
	margin-top: 2px;
}

/* ---------------------------------------------------------------
   Mega panel — full viewport width, content held to the container
------------------------------------------------------------------ */

.mmp-panel {
	position: absolute;
	top: 100%;
	left: 0;            /* JS sets exact left + width for the full-bleed break-out */
	width: 100vw;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.mmp-mega-menu[data-animation="none"] .mmp-panel {
	transition: opacity 0s, visibility 0s;
	transform: none;
}

.mmp-mega-menu[data-animation="fade"] .mmp-panel {
	transform: none;
}

.mmp-nav__item.mmp-is-open > .mmp-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* The content wrapper is what stays inside the container. Its max-width is
   the "Content Container Width" control (default 1300px), centered. */
.mmp-panel__inner {
	display: grid;
	grid-template-columns: 25% 1fr;   /* rail | body — overridden by "Rail Width" */
	column-gap: 48px;                 /* gap between the rail and the content */
	max-width: 1300px;                /* overridden by "Content Container Width" */
	margin: 0 auto;
	box-sizing: border-box;
}

/* Inside the 75% body: subcategories | products (~25% / ~55% of the whole). */
.mmp-panel__body {
	display: grid;
	grid-template-columns: 31% 69%;
	position: relative;
}

/* Category panels stack; JS toggles mmp-is-active. */
.mmp-cat-panel {
	display: none;
	grid-column: 1 / -1;
	grid-row: 1;
	grid-template-columns: subgrid;
}

.mmp-cat-panel.mmp-is-active {
	display: grid;
}

/* ---------------------------------------------------------------
   Rail (left 25%)
------------------------------------------------------------------ */

.mmp-rail {
	list-style: none;
	margin: 0;
	padding: 0;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mmp-rail__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.mmp-rail__item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Right chevron shown only on rail items that have subcategories. */
.mmp-rail__chevron {
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	flex-shrink: 0;
	opacity: 0.55;
}

.mmp-rail__all {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mmp-rail__view-all {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: underline;
}

/* ---------------------------------------------------------------
   Subcategories column
------------------------------------------------------------------ */

.mmp-subcats__heading {
	margin: 0 0 14px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
}

.mmp-subcats__list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mmp-subcats__link {
	text-decoration: none;
	transition: color 0.15s ease;
}

/* ---------------------------------------------------------------
   Featured products (right ~55%) — image, title, price; equal height
------------------------------------------------------------------ */

.mmp-products__heading {
	margin: 0 0 16px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
}

.mmp-products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: stretch; /* equal-height cards */
}

.mmp-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.mmp-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	background: #f2f2f2;
	aspect-ratio: 2 / 3; /* taller product images, closer to the reference */
}

.mmp-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.mmp-card:hover .mmp-card__image img {
	transform: scale(1.03);
}

.mmp-card__sale {
	position: absolute;
	top: 8px;
	left: 8px;
	color: #fff;
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 2px;
}

/* Trim long titles to a fixed two lines; full title is in the tooltip. */
.mmp-card__title {
	font-size: 13px;
	line-height: 1.35;
	min-height: 2.7em; /* reserve 2 lines so every card is the same height */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	cursor: help;
}

.mmp-card__price {
	margin-top: auto; /* pin price to the bottom for aligned rows */
	font-size: 13px;
	font-weight: 600;
}

.mmp-card__price del {
	opacity: 0.55;
	font-weight: 400;
	margin-right: 6px;
}
