/* Amro Mega Menu — front end */

.amm-nav--desktop,
.amm-nav--mobile {
	--amm-accent: #ffb198;
}

.amm-nav--desktop {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amm-nav--desktop > .amm-item {
	position: static;
	margin: 0;
}

.amm-nav--desktop > .amm-item > a {
	display: inline-block;
	padding: 6px 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: inherit;
	text-decoration: none;
}

/* The bar's underline grows from the left, like the theme's own nav style. */
.amm-item__label {
	position: relative;
	display: inline-block;
}

.amm-nav--desktop > .amm-item > a .amm-item__label::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--amm-accent);
	transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.amm-nav--desktop > .amm-item > a:hover .amm-item__label::after,
.amm-nav--desktop > .amm-item:hover > a .amm-item__label::after,
.amm-nav--desktop > .amm-item:focus-within > a .amm-item__label::after,
.amm-nav--desktop > .amm-item.is-open > a .amm-item__label::after,
.amm-nav--desktop > .amm-item.current-menu-item > a .amm-item__label::after {
	width: 100%;
}

.amm-nav--desktop > .amm-item--highlight > a {
	padding: 7px 14px;
	border-radius: 6px;
	background: var(--amm-accent);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #1c1b19;
}

.amm-nav--desktop > .amm-item--highlight > a .amm-item__label::after {
	content: none;
}

/* The dropdown */

.amm-mega {
	position: absolute;
	left: var(--amm-full-left, 0);
	right: auto;
	width: var(--amm-full-width, 100%);
	z-index: 400;
	visibility: hidden;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
	background: #ffffff;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
	border-top: 1px solid #f0efed;
}

/* With the script running, opening is handled in JS (see initHover); plain :hover is the fallback. */
.amm-nav--desktop:not(.amm-js) .amm-item--mega:hover > .amm-mega,
.amm-item--mega:focus-within > .amm-mega,
.amm-item--mega.is-open > .amm-mega {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

/* Content lines up with the menu bar above it, while the panel itself stays full width. */
.amm-mega__inner {
	display: flex;
	gap: 0;
	align-items: flex-start;
	padding: 30px var(--amm-offset, 40px) 28px;
	box-sizing: border-box;
}

/* Wide enough for the longest subcategory, so titles never wrap onto a second line. */
.amm-tabs {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 214px;
	max-width: 360px;
	/* The corridor between the two columns, as on the rest of the site, narrower on smaller screens. */
	margin: 0 clamp(32px, 6vw, 114px) 0 0;
	padding: 0;
	list-style: none;
}

.amm-tab {
	margin: 0;
}

.amm-tab__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	color: #000000;
	text-decoration: none;
	white-space: nowrap;
}

.amm-tab__link > span {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Inside the dropdown the underline sweeps in from the left and out to the right. */
.amm-tab__link::after,
.amm-link a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	background: var(--amm-accent);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.3s;
}

.amm-tab.is-active > .amm-tab__link::after,
.amm-tab__link:hover::after,
.amm-tab__link:focus-visible::after,
.amm-link a:hover::after,
.amm-link a:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.amm-tab__link .amm-chevron {
	color: #9a9793;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.amm-tab.is-active > .amm-tab__link,
.amm-tab__link:hover,
.amm-tab__link:focus-visible {
	font-weight: 700;
	color: #000000;
}

.amm-panels {
	flex: 1 1 auto;
	min-width: 0;
}

.amm-panel {
	display: none;
}

.amm-panel.is-active {
	display: block;
}

/* Same rhythm as the subcategory column on the left. */
.amm-links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amm-links--split {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: column;
	grid-template-rows: repeat(12, auto);
}

.amm-link a {
	position: relative;
	display: inline-block;
	padding: 5px 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	color: #000000;
	text-decoration: none;
}

.amm-viewall {
	display: inline-block;
	margin-top: 14px;
	padding: 7px 14px;
	border: 1px solid var(--amm-accent);
	border-radius: 4px;
	font-size: 15px;
	color: var(--amm-accent);
	text-decoration: none;
	transition: background-color 0.25s, color 0.25s;
}

.amm-viewall:hover,
.amm-viewall:focus-visible {
	background: var(--amm-accent);
	color: #1c1b19;
}

.amm-banner {
	flex: 0 0 300px;
	width: 300px;
	margin-left: 40px;
}

.amm-banner a {
	display: block;
	position: relative;
	text-decoration: none;
}

.amm-banner__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.amm-banner__text {
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #1c1b19;
}

.amm-brands {
	flex: 0 0 356px;
	width: 356px;
	margin-left: 24px;
}

.amm-brands__title {
	display: block;
	margin-bottom: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6f6c67;
}

.amm-brands__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amm-brand a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	text-decoration: none;
}

.amm-brand img {
	max-width: 100%;
	max-height: 46px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.amm-brand__name {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #2b2a28;
	text-align: center;
}

/* Mobile drawer: sliding panels, one level at a time */

.amm-nav.amm-nav--mobile {
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #ffffff;
	transition: height 0.28s ease;
}

.amm-nav--mobile .amm-m-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Belt and braces: if the theme still injects its own opener, it stays out of sight. */
.amm-nav .wd-nav-opener,
.amm-nav .wd-nav-arrow {
	display: none !important;
}

/* Themes tend to make list items positioned; a panel must cover the whole drawer, not just its row. */
.amm-nav--mobile .amm-m-item {
	position: static;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #f4f2ef;
	list-style: none;
}

/* Rows are buttons and links; the theme's own button styling must not reach them. */
.amm-nav--mobile .amm-m-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: #000000;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	cursor: pointer;
}

.amm-nav--mobile .amm-m-row:hover,
.amm-nav--mobile .amm-m-row:focus-visible {
	background: #faf8f6;
	color: #b4502f;
}

.amm-nav--mobile .amm-m-label {
	flex: 1 1 auto;
	min-width: 0;
}

.amm-m-chevron {
	flex: 0 0 auto;
	color: #a3a09a;
}

.amm-nav--mobile .amm-m-panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
	background: #ffffff;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	z-index: 2;
}

/* A panel is the frame for the one that opens on top of it. */
.amm-m-panel .amm-m-panel {
	z-index: 3;
}

.amm-nav--mobile .amm-m-panel.is-open {
	transform: translateX(0);
}

.amm-m-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 8px;
	border-bottom: 1px solid #f0efed;
	background: #faf8f6;
}

.amm-nav--mobile .amm-m-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 8px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #55524c;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.amm-m-chevron--back {
	transform: rotate(180deg);
}

.amm-m-title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1c1b19;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.amm-nav--mobile .amm-m-all {
	display: block;
	padding: 13px 16px;
	border-bottom: 1px solid #f4f2ef;
	font-size: 15px;
	font-weight: 600;
	color: var(--amm-accent);
	text-decoration: none;
}

.amm-nav--mobile .amm-m-all:hover,
.amm-nav--mobile .amm-m-all:focus-visible {
	background: #fff4ef;
	color: #b4502f;
}

@media (prefers-reduced-motion: reduce) {
	.amm-mega,
	.amm-m-toggle__icon,
	.amm-viewall,
	.amm-item__label::after,
	.amm-tab__link::after,
	.amm-link a::after {
		transition: none;
	}
}

@media (max-width: 1024px) {
	.amm-mega__inner {
		gap: 20px;
		padding: 24px 20px;
	}

	.amm-banner,
	.amm-brands {
		display: none;
	}
}
