/* Aqlano Mega Menu — dropdown panels only. Parent menu is never styled. */

.menu-item.aqlano-mm-parent > .sub-menu,
.aqlano-mm-parent > .sub-menu {
	display: none !important;
}

.menu-item.aqlano-mm-parent {
	position: relative;
}

/* Chevron arrow appended by JS inside parent <a> */
.aqlano-mm-parent > a .aqlano-mm-chevron {
	display: inline-block;
	width: 10px;
	height: 6px;
	margin-left: 5px;
	vertical-align: middle;
	flex-shrink: 0;
	transition: transform 0.2s ease;
	position: relative;
	top: -1px;
}

.aqlano-mm-parent:hover > a .aqlano-mm-chevron,
.aqlano-mm-parent.aqlano-mm-open > a .aqlano-mm-chevron {
	transform: rotate(180deg);
}

/* Hide chevron when disabled per menu config (JS adds data-mm-no-chevron attr) */
.aqlano-mm-parent[data-mm-no-chevron] > a .aqlano-mm-chevron {
	display: none;
}

.menu-item.aqlano-mm-parent:hover,
.menu-item.aqlano-mm-parent.aqlano-mm-open,
.menu-item.aqlano-mm-parent:focus-within {
	z-index: 100001;
}

/* Dropdown: position set by frontend.js (fixed + calculated left/top) */
.aqlano-mm-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100002;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	pointer-events: none;
	box-sizing: border-box;
}

.aqlano-mm-dropdown.is-positioned,
.menu-item.aqlano-mm-parent:hover > .aqlano-mm-dropdown,
.menu-item.aqlano-mm-parent.aqlano-mm-open > .aqlano-mm-dropdown,
.menu-item.aqlano-mm-parent:focus-within > .aqlano-mm-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* When JS positions (fixed), use translateY only on show */
.aqlano-mm-dropdown.is-positioned {
	transform: translateY(0);
}

.menu-item.aqlano-mm-parent:not(:hover):not(.aqlano-mm-open) > .aqlano-mm-dropdown:not(.is-positioned) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

[data-header] .ct-header,
[data-header] .ct-header [data-row],
header.ct-header,
#header {
	overflow: visible !important;
}

.aqlano-mm-panel {
	width: 100%;
	background: #fff;
	box-sizing: border-box;
}

.aqlano-mm-panel-inner {
	width: 100%;
}

.aqlano-mm-shadow-soft {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.aqlano-mm-shadow-medium {
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.aqlano-mm-columns {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0;
	width: 100%;
}

.aqlano-mm-has-dividers .aqlano-mm-column + .aqlano-mm-column {
	border-left: 1px solid #e8e8e8;
}

.aqlano-mm-column {
	padding: 0 28px;
	box-sizing: border-box;
	min-width: 0;
}

.aqlano-mm-column:first-child {
	padding-left: 0;
}

.aqlano-mm-column:last-child {
	padding-right: 0;
}

.aqlano-mm-column-title {
	margin: 0 0 18px;
	font-family: var(--aqlano-mm-font-family, inherit);
	font-size: var(--aqlano-mm-heading-font-size, 11px);
	font-weight: var(--aqlano-mm-heading-font-weight, 700);
	letter-spacing: var(--aqlano-mm-heading-letter-spacing, 0.12em);
	text-transform: var(--aqlano-mm-heading-text-transform, uppercase);
	color: var(--aqlano-mm-heading, #111);
	line-height: 1.2;
}

.aqlano-mm-items {
	display: grid;
	gap: 10px 20px;
}

.aqlano-mm-subcols-2 {
	grid-template-columns: 1fr 1fr;
}

.aqlano-mm-subcols-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

.aqlano-mm-item-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--aqlano-mm-link, #111);
	font-family: var(--aqlano-mm-font-family, inherit);
	font-size: var(--aqlano-mm-font-size, 14px);
	font-weight: var(--aqlano-mm-font-weight, 400);
	line-height: var(--aqlano-mm-line-height, 1.5);
	letter-spacing: var(--aqlano-mm-letter-spacing, 0);
	text-transform: var(--aqlano-mm-text-transform, none);
	padding: 4px 0;
	transition: color 0.15s ease;
}

.aqlano-mm-item-link:hover {
	color: var(--aqlano-mm-link-hover, #666);
}

.aqlano-mm-icon {
	flex-shrink: 0;
	width: var(--aqlano-mm-icon-size, 32px);
	height: var(--aqlano-mm-icon-size, 32px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.aqlano-mm-icon-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.aqlano-mm-badge {
	margin-left: auto;
	font-size: 9px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 3px;
	color: #fff;
	text-transform: uppercase;
	flex-shrink: 0;
}

.aqlano-mm-badge-hot { background: var(--aqlano-mm-badge-hot, #e53935); }
.aqlano-mm-badge-new { background: var(--aqlano-mm-badge-new, #1976d2); }
.aqlano-mm-badge-sale { background: #ff9800; }
.aqlano-mm-badge-custom { background: #555; }

.aqlano-mm-item-image .aqlano-mm-card {
	display: block;
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
}

.aqlano-mm-card-img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: middle;
}

.aqlano-mm-card-placeholder {
	aspect-ratio: 3/4;
	background: #f3f3f3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
}

.aqlano-mm-card-btn-wrap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	text-align: center;
}

.aqlano-mm-card-btn {
	display: inline-block;
	background: #fff;
	color: #111;
	padding: 10px 24px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.aqlano-mm-item-heading {
	font-weight: 600;
	font-size: 13px;
	color: var(--aqlano-mm-heading, #111);
}

.aqlano-mm-item-divider {
	height: 1px;
	background: #eee;
	margin: 8px 0;
}

.aqlano-mm-shortcode-nav .aqlano-mm-menu,
.aqlano-mm-elementor-nav .aqlano-mm-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 1024px) {
	.aqlano-mm-columns {
		flex-wrap: wrap;
	}

	.aqlano-mm-column {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		padding: 16px 0 !important;
	}

	.aqlano-mm-has-dividers .aqlano-mm-column + .aqlano-mm-column {
		border-left: none;
		border-top: 1px solid #e8e8e8;
	}
}
