/**
 * Marketplace header — from design/aridoro.html
 */

/* Reset Elementor kit link styles inside theme chrome */
body.aridoro-marketplace-theme .mkt-announce a,
body.aridoro-marketplace-theme .mkt-header a,
body.aridoro-marketplace-theme .mkt-header button {
	text-decoration: none;
	color: inherit;
}

body.aridoro-marketplace-theme .mkt-header .mkt-menu__link,
body.aridoro-marketplace-theme .mkt-header .mkt-dropdown__link,
body.aridoro-marketplace-theme .mkt-header .mkt-mobile-menu__link,
.mkt-header .mkt-menu__link,
.mkt-header .mkt-dropdown__link,
.mkt-header .mkt-mobile-menu__link {
	font-family: var(--mkt-font-body);
	text-decoration: none;
}

/* Dropdown links must not inherit top-level nav uppercase/gold hover */
body.aridoro-marketplace-theme .mkt-header .mkt-dropdown__link,
.mkt-header .mkt-dropdown__link {
	text-transform: uppercase;
	color: var(--mkt-ink-soft);
}

body.aridoro-marketplace-theme .mkt-announce {
	background: var(--mkt-ink);
	color: rgba(251, 249, 244, 0.85);
	font-family: var(--mkt-font-body);
	font-size: 10.5px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-align: center;
	padding: 11px 20px;
}

body.aridoro-marketplace-theme .mkt-announce b,
body.aridoro-marketplace-theme .mkt-announce strong {
	color: var(--mkt-gold-soft);
	font-weight: 400;
}

body.aridoro-marketplace-theme .aridoro-header.mkt-header {
	position: sticky;
	top: 0;
	background: rgba(251, 249, 244, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mkt-line);
	z-index: 100;
}

body.aridoro-marketplace-theme .aridoro-topbar {
	display: none;
}

body.aridoro-marketplace-theme .mkt-header,
.mkt-header {
	overflow: visible;
}

body.aridoro-marketplace-theme .mkt-nav,
.mkt-header .mkt-nav {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--mkt-header-height);
	gap: 24px;
}

body.aridoro-marketplace-theme .mkt-nav > .mkt-logo,
body.aridoro-marketplace-theme .mkt-nav > .mkt-menu,
body.aridoro-marketplace-theme .mkt-nav > .mkt-icons,
.mkt-header .mkt-nav > .mkt-logo,
.mkt-header .mkt-nav > .mkt-menu,
.mkt-header .mkt-nav > .mkt-icons {
	align-self: center;
}

body.aridoro-marketplace-theme .mkt-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	justify-self: start;
}

body.aridoro-marketplace-theme .mkt-logo img {
	height: 44px;
	width: auto;
	display: block;
}

body.aridoro-marketplace-theme .mkt-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	height: auto;
}

body.aridoro-marketplace-theme .mkt-icons {
	display: flex;
	gap: 22px;
	align-items: center;
	flex-shrink: 0;
	justify-self: end;
	height: auto;
}

body.aridoro-marketplace-theme .mkt-menu__list {
	display: flex;
	gap: 42px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

body.aridoro-marketplace-theme .mkt-menu__item {
	position: relative;
	list-style: none;
	display: flex;
	align-items: center;
}

body.aridoro-marketplace-theme .mkt-menu__item.has-dropdown,
.mkt-header .mkt-menu__item.has-dropdown {
	width: max-content;
}

body.aridoro-marketplace-theme .mkt-menu__link {
	font-family: var(--mkt-font-body);
	font-size: 12px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	font-weight: 400;
	position: relative;
	padding: 0;
	line-height: 1;
	color: var(--mkt-ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	cursor: pointer;
}

body.aridoro-marketplace-theme .mkt-menu__link::after,
.mkt-header .mkt-menu__link::after {
	content: "";
	position: absolute;
	left: 0;
	top: auto;
	bottom: -5px;
	width: 0;
	height: 1px;
	background: var(--mkt-gold);
	transition: width 0.3s;
}

body.aridoro-marketplace-theme .mkt-menu__link:hover,
body.aridoro-marketplace-theme .mkt-menu__link.is-active,
.mkt-header .mkt-menu__link:hover,
.mkt-header .mkt-menu__link.is-active {
	color: var(--mkt-gold);
	border-bottom: none;
	box-shadow: none;
}

body.aridoro-marketplace-theme .mkt-menu__link:hover::after,
body.aridoro-marketplace-theme .mkt-menu__link.is-active::after,
.mkt-header .mkt-menu__link:hover::after,
.mkt-header .mkt-menu__link.is-active::after {
	width: 100%;
}

body.aridoro-marketplace-theme .mkt-menu__caret {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.4em;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	vertical-align: 0.15em;
	opacity: 0.85;
}

/* Dropdown — aligned to the Collections link, not offset into adjacent items */
body.aridoro-marketplace-theme .mkt-dropdown,
.mkt-header .mkt-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 18px;
	background: var(--mkt-ivory);
	border: 1px solid var(--mkt-line);
	min-width: 250px;
	padding: 12px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
	box-shadow: 0 24px 50px -24px rgba(43, 36, 28, 0.3);
	z-index: 200;
	pointer-events: none;
}

body.aridoro-marketplace-theme .mkt-menu__item.has-dropdown::before,
.mkt-header .mkt-menu__item.has-dropdown::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 18px;
}

body.aridoro-marketplace-theme .mkt-menu__item.has-dropdown:hover > .mkt-dropdown,
body.aridoro-marketplace-theme .mkt-menu__item.has-dropdown:focus-within > .mkt-dropdown,
.mkt-header .mkt-menu__item.has-dropdown:hover > .mkt-dropdown,
.mkt-header .mkt-menu__item.has-dropdown:focus-within > .mkt-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

body.aridoro-marketplace-theme .mkt-dropdown__head,
.mkt-header .mkt-dropdown__head {
	padding: 11px 26px 8px;
	font-family: var(--mkt-font-display);
	font-style: italic;
	font-size: 15px;
	font-weight: 400;
	color: var(--mkt-gold);
	border-bottom: 1px solid var(--mkt-line);
	margin-bottom: 8px;
	text-align: left;
	text-transform: none;
	letter-spacing: 0.01em;
	line-height: 1.3;
	white-space: normal;
}

body.aridoro-marketplace-theme .mkt-dropdown__link,
.mkt-header .mkt-dropdown__link {
	display: block;
	padding: 11px 26px;
	font-family: var(--mkt-font-body);
	font-size: 11px;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mkt-ink-soft);
	text-decoration: none;
	transition: color 0.25s, padding-left 0.25s;
	white-space: nowrap;
	line-height: 1.4;
}

body.aridoro-marketplace-theme .mkt-dropdown__link:hover,
.mkt-header .mkt-dropdown__link:hover {
	color: var(--mkt-gold);
	padding-left: 32px;
}

/* Collections mega menu — terms are managed in Collection Tiers and Product Types. */
body.aridoro-marketplace-theme .mkt-mega-menu,
.mkt-header .mkt-mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	padding: 0;
	background: var(--mkt-ivory);
	border: 0;
	border-bottom: 1px solid var(--mkt-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.32s ease, visibility 0.32s ease, transform 0.32s ease;
	box-shadow: 0 24px 50px -24px rgba(43, 36, 28, 0.3);
	z-index: 200;
	pointer-events: none;
}

/* Let the sticky header position the full-width panel directly below itself. */
body.aridoro-marketplace-theme .mkt-menu__item.is-mega-menu,
.mkt-header .mkt-menu__item.is-mega-menu {
	position: static;
}

body.aridoro-marketplace-theme .mkt-menu__item.is-mega-menu::before,
.mkt-header .mkt-menu__item.is-mega-menu::before {
	display: none;
}

html:not(.mkt-mega-js) .mkt-menu__item.is-mega-menu:hover > .mkt-mega-menu,
body.aridoro-marketplace-theme .mkt-menu__item.is-mega-menu:focus-within > .mkt-mega-menu,
body.aridoro-marketplace-theme .mkt-menu__item.is-mega-menu.is-open > .mkt-mega-menu,
.mkt-header .mkt-menu__item.is-mega-menu:focus-within > .mkt-mega-menu,
.mkt-header .mkt-menu__item.is-mega-menu.is-open > .mkt-mega-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.mkt-mega-menu__inner {
	width: min(100%, 1360px);
	margin-inline: auto;
	padding: 54px clamp(28px, 5vw, 72px) 46px;
}

.mkt-mega-menu__tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(38px, 7vw, 110px);
}

.mkt-mega-menu__tier {
	min-width: 0;
}

.mkt-mega-menu__title {
	margin: 0 0 7px;
	font-family: var(--mkt-font-display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
}

.mkt-mega-menu__title a {
	color: var(--mkt-ink);
	text-decoration: none;
}

.mkt-mega-menu__tagline,
.mkt-mega-menu__types-label {
	margin: 0;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--mkt-gold);
}

.mkt-mega-menu__links {
	display: grid;
	gap: 16px;
	margin-top: 24px;
}

.mkt-mega-menu__links a,
.mkt-mega-menu__type-links a {
	color: var(--mkt-ink-soft);
	font-family: var(--mkt-font-body);
	font-size: 14px;
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.35;
	text-decoration: none;
	text-transform: none;
	transition: color 0.25s;
}

.mkt-mega-menu__links a:hover,
.mkt-mega-menu__type-links a:hover {
	color: var(--mkt-gold);
}

.mkt-mega-menu__types {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-top: 46px;
	padding-top: 28px;
	border-top: 1px solid var(--mkt-line);
}

.mkt-mega-menu__types-label {
	flex: 0 0 auto;
	color: var(--mkt-ink-soft);
}

.mkt-mega-menu__type-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 16px 28px;
}

.mkt-mobile-mega {
	margin: 4px 0 16px;
	padding: 20px 0 8px 18px;
	border-left: 1px solid var(--mkt-line);
}

.mkt-mobile-mega .mkt-mega-menu__inner {
	width: 100%;
	padding: 0;
}

.mkt-mobile-mega .mkt-mega-menu__tiers {
	grid-template-columns: 1fr;
	gap: 28px;
}

.mkt-mobile-mega .mkt-mega-menu__title {
	font-size: 20px;
}

.mkt-mobile-mega .mkt-mega-menu__links {
	gap: 11px;
	margin-top: 14px;
}

.mkt-mobile-mega .mkt-mega-menu__types {
	display: block;
	margin-top: 28px;
	padding-top: 20px;
}

.mkt-mobile-mega .mkt-mega-menu__type-links {
	justify-content: flex-start;
	gap: 12px 20px;
	margin-top: 14px;
}

/* Utility icons — .aridoro-utility children */
body.aridoro-marketplace-theme .mkt-icons .aridoro-utility,
.mkt-header .mkt-icons .aridoro-utility {
	display: flex;
	gap: 22px;
	align-items: center;
}

body.aridoro-marketplace-theme .mkt-icons .aridoro-utility__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: transparent;
	border: 0;
	padding: 0;
	color: var(--mkt-ink);
	cursor: pointer;
	text-decoration: none;
	position: relative;
}

body.aridoro-marketplace-theme .mkt-icons .aridoro-utility__cart-count {
	position: absolute;
	top: -5px;
	right: -7px;
	width: 16px;
	height: 16px;
	min-width: 16px;
	max-width: 16px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mkt-font-body);
	font-size: 9px;
	font-weight: 500;
	line-height: 1;
	background: var(--mkt-gold);
	color: var(--mkt-ivory);
	border-radius: 50%;
	box-sizing: border-box;
}

body.aridoro-marketplace-theme .mkt-icons .aridoro-utility__btn svg {
	width: 18px;
	height: 18px;
	stroke: var(--mkt-ink);
	fill: none;
	stroke-width: 1.4;
	transition: stroke 0.3s;
}

body.aridoro-marketplace-theme .mkt-icons .aridoro-utility__btn:hover svg {
	stroke: var(--mkt-gold);
}

body.aridoro-marketplace-theme .mkt-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

body.aridoro-marketplace-theme .mkt-burger i {
	display: block;
	width: 24px;
	height: 1px;
	background: var(--mkt-ink);
}

body.aridoro-marketplace-theme .mkt-mobile-menu {
	border-top: 1px solid var(--mkt-line);
	background: var(--mkt-ivory);
}

body.aridoro-marketplace-theme .mkt-mobile-menu:not([hidden]) {
	display: block;
}

body.aridoro-marketplace-theme .mkt-mobile-menu__link {
	display: block;
	padding: 16px var(--mkt-gutter);
	font-family: var(--mkt-font-body);
	font-size: 12px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--mkt-line);
	color: var(--mkt-ink);
	text-decoration: none;
}

body.aridoro-marketplace-theme .mkt-mobile-menu__link--sub {
	padding-left: calc(var(--mkt-gutter) + 24px);
	font-size: 11px;
	color: var(--mkt-ink-soft);
}

body.aridoro-marketplace-theme .mkt-mobile-menu__link.is-active {
	color: var(--mkt-gold);
}

@media (max-width: 960px) {
	body.aridoro-marketplace-theme .mkt-menu {
		display: none;
	}

	body.aridoro-marketplace-theme .mkt-burger {
		display: flex;
	}

	/* Two columns only, since the desktop menu is hidden at this width. */
	body.aridoro-marketplace-theme .mkt-nav,
	.mkt-header .mkt-nav {
		grid-template-columns: minmax(0, auto) minmax(0, 1fr);
		gap: 12px;
	}

	body.aridoro-marketplace-theme .mkt-logo {
		min-width: 0;
	}

	body.aridoro-marketplace-theme .mkt-logo img {
		height: 34px;
		max-width: 100%;
	}

	body.aridoro-marketplace-theme .mkt-icons,
	body.aridoro-marketplace-theme .mkt-icons .aridoro-utility {
		gap: 14px;
	}

	body.aridoro-marketplace-theme .mkt-mobile-menu:not([hidden]) {
		max-height: calc(100vh - var(--mkt-header-height));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 480px) {
	body.aridoro-marketplace-theme .mkt-logo img {
		height: 28px;
	}

	body.aridoro-marketplace-theme .mkt-icons,
	body.aridoro-marketplace-theme .mkt-icons .aridoro-utility {
		gap: 10px;
	}

	/* Search and wishlist remain reachable from the opened menu. */
	body.aridoro-marketplace-theme .mkt-icons .aridoro-utility__search,
	body.aridoro-marketplace-theme .mkt-icons .aridoro-utility__wishlist {
		display: none;
	}
}
