/**
 * Mega Menu Optimized Stylesheet
 * Asiatik Theme - themes/ngoisaoso/css/jquery.menu_mega.css
 */

.navbar-default {
	color: #fff;
	background-color: #ccc6c6;
	border-color: #aca1a2;
}
.navbar-default .navbar-nav > li > a {
	color: #fff;
}
.navbar-default .navbar-nav > .dropdown > a .caret {
	border-top-color: #fff;
	border-bottom-color: #fff;
}
.navbar-default .navbar-brand {
	color: #fff;
}
.menu-large {
	position: static !important;
}

.navbar-nav > li > a {
	color: #fff;
	text-transform: uppercase;
	font-size: 15px;
}

.nav > li > a:hover,
.nav > li > a:focus {
	background: #d5b141;
}

/* ==========================================================================
   DROPDOWN & MEGA MENU CONTAINER (GOLDEN HARMONY)
   ========================================================================== */
.dropdown-menu {
	background: #d5b141;
	border: 1px solid #b89124;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	border-radius: 0 0 8px 8px;
	padding: 12px 0;
}

.dropdown-menu > li > a {
	padding: 8px 18px;
	margin: 0;
	color: #4a100c;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	white-space: normal;
	text-align: left;
	text-transform: uppercase;
	font-size: 13.5px;
	font-weight: 600;
	transition: all 0.2s ease;
}

/* Full Width Mega Menu */
.megamenu {
	padding: 18px 24px !important;
	width: 100% !important;
	left: 0 !important;
	right: 0 !important;
	background: #d5b141 !important;
	border: 1px solid #b89124 !important;
	border-top: 3px solid #50120d !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24) !important;
}

/* Mega Menu Structure: 75% Columns + 25% Featured Card */
.megamenu-wrapper {
	display: flex !important;
	width: 100% !important;
	gap: 20px !important;
	align-items: flex-start !important;
	box-sizing: border-box !important;
}

.megamenu-columns-wrap {
	flex: 1 1 75% !important;
	max-width: 75% !important;
	display: flex !important;
	flex-wrap: wrap !important;
	margin: 0 -10px !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Columns within the 75% area */
.megamenu-columns-wrap > li {
	flex: 1 1 33.333% !important;
	max-width: 33.333% !important;
	padding: 0 10px !important;
	list-style: none !important;
	box-sizing: border-box !important;
	margin-bottom: 8px !important;
}

/* Category Heading in Column */
.megamenu-columns-wrap > li > a,
.megamenu > li > a {
	display: block !important;
	font-family: "Roboto Condensed", sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #4a100c !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	padding: 4px 8px 6px !important;
	margin: 0 0 4px 0 !important;
	border-bottom: 2px solid rgba(80, 18, 13, 0.35) !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.megamenu-columns-wrap > li > a:hover,
.megamenu > li > a:hover {
	background: #50120d !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	padding-left: 12px !important;
}

/* Submenu Lists */
.megamenu-columns-wrap > li ul,
.megamenu > li > ul {
	padding: 0 !important;
	margin: 0 0 8px 0 !important;
	list-style: none !important;
	border: none !important;
}

.megamenu-columns-wrap > li ul > li,
.megamenu > li > ul > li {
	list-style: none !important;
	margin-bottom: 3px !important;
}

/* Submenu Item Links */
.megamenu-columns-wrap > li ul > li > a,
.megamenu > li > ul > li > a,
.dropdown-menu li li a {
	display: flex !important;
	align-items: center !important;
	padding: 6px 12px !important;
	clear: both !important;
	font-weight: 500 !important;
	font-size: 13.5px !important;
	line-height: 1.45 !important;
	color: #381f08 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24) !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	white-space: normal !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Icon indicator on the left of last-level menu items */
.megamenu-columns-wrap > li ul > li > a::before,
.megamenu > li > ul > li > a::before {
	content: "\f041"; /* FontAwesome fa-map-marker */
	font-family: FontAwesome;
	font-size: 11px;
	margin-right: 9px;
	color: #7b1d17;
	display: inline-block;
	flex-shrink: 0;
	transition: all 0.2s ease;
	opacity: 0.85;
}

.megamenu-columns-wrap > li ul > li > a:hover::before,
.megamenu > li > ul > li > a:hover::before {
	color: #ffffff !important;
	opacity: 1;
	transform: scale(1.25) translateY(-1px);
}

.megamenu-columns-wrap > li ul > li > a:has(img)::before {
	display: none !important;
}

/* ==========================================================================
   CRITICAL FIX: HOVER STATE PILL WITH 100% PURE WHITE TEXT & SHIFT
   ========================================================================== */
.megamenu-columns-wrap > li ul > li > a:hover,
.megamenu-columns-wrap > li ul > li > a:focus,
.megamenu > li ul > li > a:hover,
.megamenu > li ul > li > a:focus,
.dropdown-menu li li a:hover,
.dropdown-menu li li a:focus {
	text-decoration: none !important;
	background-color: #50120d !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	transform: translateX(4px) !important;
	box-shadow: 0 2px 8px rgba(80, 18, 13, 0.3) !important;
}

/* ==========================================================================
   FEATURED HIGHLIGHT BOX (25% RIGHT COLUMN)
   ========================================================================== */
.megamenu-featured-wrap {
	flex: 0 0 25% !important;
	max-width: 25% !important;
	padding-left: 14px !important;
	border-left: 1px solid rgba(80, 18, 13, 0.16) !important;
	box-sizing: border-box !important;
	align-self: flex-start !important;
}

.megamenu-featured-card {
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: auto !important;
}

.megamenu-featured-card:hover {
	background: rgba(255, 255, 255, 0.32);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.megamenu-featured-card .featured-card-img {
	position: relative !important;
	width: 100% !important;
	height: 135px !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 7px 7px 0 0 !important;
}

.megamenu-featured-card .featured-card-img img {
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	transition: transform 0.45s ease;
}

.megamenu-featured-card:hover .featured-card-img img {
	transform: scale(1.08);
}

.megamenu-featured-card .featured-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #50120d;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.megamenu-featured-card .featured-card-body {
	padding: 12px 14px 16px;
	display: flex;
	flex-direction: column;
	flex: none !important;
	justify-content: flex-start !important;
}

.megamenu-featured-card .featured-card-body h5 {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #4a100c;
	margin: 0 0 6px 0;
	text-transform: uppercase;
}

.megamenu-featured-card .featured-card-body p {
	font-size: 12.5px;
	line-height: 1.45;
	color: #2b1405;
	margin: 0 0 12px 0;
}

.megamenu-featured-card .btn-featured-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #50120d;
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 7px 16px;
	border-radius: 4px;
	text-decoration: none !important;
	transition: all 0.25s ease;
	align-self: flex-start;
}

.megamenu-featured-card .btn-featured-cta:hover {
	background: #7a1d15;
	box-shadow: 0 4px 12px rgba(80, 18, 13, 0.4);
	color: #ffffff !important;
}

.megamenu-note-custom {
	background: rgba(255, 255, 255, 0.25);
	padding: 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #2b1405;
}

/* ==========================================================================
   SMART 2-LEVEL DROPDOWN (LOCAL DROPDOWN BENEATH PARENT - NO EMPTY VOIDS)
   ========================================================================== */
.is-dropdown-2level {
	position: relative !important;
}

.dropdown-local {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: auto !important;
	background: #d5b141 !important;
	border: 1px solid #b89124 !important;
	border-top: 3px solid #50120d !important;
	border-radius: 0 0 8px 8px !important;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25) !important;
	padding: 10px 14px !important;
	z-index: 1050 !important;
	margin: 0 !important;
}

/* 2-Column Grid (when >= 4 items) */
.dropdown-local.dropdown-2col {
	width: 580px !important;
	min-width: 580px !important;
	max-width: 620px !important;
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 6px 14px;
	list-style: none !important;
}

/* When active or fadeIn */
.is-dropdown-2level:hover > .dropdown-local.dropdown-2col,
.is-dropdown-2level.open > .dropdown-local.dropdown-2col,
.dropdown-local.dropdown-2col[style*="display: block"] {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 6px 14px !important;
}

/* 1-Column List (when <= 3 items) */
.dropdown-local.dropdown-1col {
	width: 350px !important;
	min-width: 350px !important;
	display: none;
	list-style: none !important;
}

.is-dropdown-2level:hover > .dropdown-local.dropdown-1col,
.is-dropdown-2level.open > .dropdown-local.dropdown-1col,
.dropdown-local.dropdown-1col[style*="display: block"] {
	display: block !important;
}

/* Items inside local dropdown */
.dropdown-local > li.dropdown-local-item,
.dropdown-local > li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.dropdown-local > li > a {
	display: flex !important;
	align-items: center !important;
	padding: 8px 12px !important;
	color: #381f08 !important;
	font-family: "Roboto Condensed", -apple-system, sans-serif !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.3px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	white-space: normal !important;
	line-height: 1.4 !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Icon indicator on the left of 2-level dropdown items (slender SVG compass) */
.dropdown-local > li > a::before {
	content: "" !important;
	display: inline-block !important;
	width: 14px !important;
	height: 14px !important;
	margin-right: 9px !important;
	flex-shrink: 0 !important;
	background-color: #7b1d17 !important;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76' fill='currentColor'/%3E%3C/svg%3E") !important;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76' fill='currentColor'/%3E%3C/svg%3E") !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	opacity: 0.9 !important;
}

.dropdown-local > li > a:hover::before,
.dropdown-local > li > a:focus::before {
	background-color: #ffffff !important;
	opacity: 1 !important;
	transform: rotate(45deg) scale(1.15) !important;
}

.dropdown-local > li > a:has(img)::before {
	display: none !important;
}

/* Hover State for local dropdown items: Pill with white text */
.dropdown-local > li > a:hover,
.dropdown-local > li > a:focus {
	background-color: #50120d !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	transform: translateX(4px) !important;
	box-shadow: 0 2px 8px rgba(80, 18, 13, 0.3) !important;
	text-decoration: none !important;
}

/* Prevent overflow for items positioned on the right */
.navbar-nav > li:last-child .dropdown-local,
.navbar-nav > li:nth-last-child(2) .dropdown-local {
	left: auto !important;
	right: 0 !important;
}

/* ==========================================================================
   MOBILE FALLBACK (MAX-WIDTH: 768px)
   ========================================================================== */
@media (max-width: 768px) {
	.megamenu {
		margin-left: 0;
		margin-right: 0;
		padding: 10px !important;
	}
	.megamenu-wrapper {
		flex-direction: column !important;
		gap: 10px !important;
	}
	.megamenu-columns-wrap {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		flex-direction: column !important;
		margin: 0 !important;
	}
	.megamenu-columns-wrap > li {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin-bottom: 12px !important;
	}
	.megamenu-featured-wrap {
		display: none !important;
	}
}
