/**
 * AJ Menu Icons & Luxury Mega Menu - Frontend Stylesheet
 * Preserves exact desktop layout, text wrapping, and provides customizable mobile & tablet styling.
 */

/* -------------------------------------------------------------
 * 1. TOP MENU BAR ICONS (HOME, PRODUCTS, SILVER, etc.)
 * ------------------------------------------------------------- */
.aj-menu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: var(--aj-icon-valign, middle);
	margin-right: var(--aj-icon-gap, 8px);
	line-height: 1;
	transition: color 0.25s ease, stroke 0.25s ease, transform 0.2s ease;
}

.aj-menu-label + .aj-menu-icon {
	margin-right: 0;
	margin-left: var(--aj-icon-gap, 8px);
}

.aj-menu-icon--vector svg {
	width: var(--aj-icon-size-desktop, 18px);
	height: var(--aj-icon-size-desktop, 18px);
	stroke: var(--aj-icon-color, #EBBF70);
	fill: none;
	display: block;
	transition: stroke 0.25s ease, transform 0.2s ease;
}

.menu-item a:hover .aj-menu-icon--vector svg {
	stroke: var(--aj-icon-hover, #DE3C14);
	transform: scale(1.08);
}

.main-navigation .menu-item > a,
.ast-builder-menu .menu-item > a,
.elementor-nav-menu .menu-item > a {
	display: inline-flex !important;
	align-items: center !important;
}

/* -------------------------------------------------------------
 * 2. SUPPRESS NATIVE SUBMENUS UNDER MEGA MENU ITEMS
 * ------------------------------------------------------------- */
.menu-item.aj-has-mega-menu > ul.sub-menu,
.menu-item.aj-has-mega-menu > ul.elementor-nav-menu--dropdown,
.menu-item.aj-has-mega-menu > .sub-menu {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* -------------------------------------------------------------
 * 3. SCREEN-CENTERED MEGA MENU CONTAINER
 * ------------------------------------------------------------- */
.menu-item.aj-has-mega-menu {
	position: static !important;
}

.main-navigation,
.main-header-bar,
.ast-builder-menu,
.elementor-widget-nav-menu,
.elementor-nav-menu--main {
	position: relative !important;
}

.menu-item.aj-has-mega-menu:hover > .aj-mega-menu-panel,
.menu-item.aj-has-mega-menu:focus-within > .aj-mega-menu-panel,
.menu-item.aj-has-mega-menu.aj-is-active > .aj-mega-menu-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.aj-mega-menu-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-left: auto;
	margin-right: auto;
	width: calc(100vw - 48px);
	max-width: 1160px;
	background: var(--aj-mega-bg, #ffffff);
	border: 1px solid var(--aj-mega-border, #ebebeb);
	border-radius: 10px;
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 999999;
	text-align: left;
	pointer-events: none;
	overflow: hidden;
	box-sizing: border-box;
}

.aj-mega-menu-inner {
	display: grid;
	grid-template-columns: 190px 1fr 280px;
	min-height: 480px;
	background: var(--aj-mega-bg, #ffffff);
}

/* -------------------------------------------------------------
 * 4. LEFT VERTICAL TABS
 * ------------------------------------------------------------- */
.aj-mega-sidebar {
	border-right: 1px solid var(--aj-mega-border, #f2f2f2);
	padding: 24px 16px;
	background-color: var(--aj-section-sidebar-bg, var(--aj-mega-sidebar-bg, #ffffff));
	background-image: var(--aj-section-sidebar-img, none);
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: cover;
}

.aj-mega-tab-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.aj-tab-btn {
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--aj-mega-text, #444444);
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.aj-tab-btn:hover {
	color: var(--aj-mega-text-hover, #851c27);
	background: var(--aj-mega-pill-hover, #fdfaf7);
}

.aj-tab-btn.active {
	background: var(--aj-mega-pill-hover, #fcf5f5);
	color: var(--aj-mega-text-hover, #851c27);
	border-color: var(--aj-mega-pill-border-hover, #f7e6e6);
	font-weight: 600;
}

/* -------------------------------------------------------------
 * 5. CENTRAL CONTENT AREA
 * ------------------------------------------------------------- */
.aj-mega-content {
	padding: 28px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow-x: hidden;
	background-color: var(--aj-section-content-bg, var(--aj-mega-bg, #ffffff));
	background-image: var(--aj-section-content-img, none);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.aj-tab-pane {
	display: none;
}

.aj-tab-pane.active {
	display: block;
	animation: ajFadeIn 0.2s ease-in-out;
}

@keyframes ajFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
 * 6. CATEGORY 3-COLUMN PILL GRID & BADGES
 * ------------------------------------------------------------- */
.aj-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 20px;
	row-gap: 12px;
	align-items: stretch;
}

.aj-category-pill {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--aj-mega-text, #222222);
	background: var(--aj-mega-pill-bg, #ffffff);
	border: 1.5px solid transparent;
	transition: all 0.2s ease;
	min-height: 48px;
	box-sizing: border-box;
}

.aj-pill-icon-circle {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: rgba(125, 125, 125, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--aj-mega-border, #eeeeee);
	transition: all 0.2s ease;
	overflow: hidden;
	flex-shrink: 0;
}

.aj-pill-icon-circle svg {
	width: 20px;
	height: 20px;
	stroke: var(--aj-mega-icon, #bb9448);
	fill: none;
	transition: stroke 0.2s ease;
}

.aj-item-custom-img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.aj-pill-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--aj-mega-text, #222222);
	line-height: 1.35;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	word-break: normal;
	display: inline-block;
}

.aj-pill-badge {
	font-size: 9.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 6px;
	border-radius: 3px;
	background: var(--aj-mega-pill-hover, #fcf5f5);
	color: var(--aj-mega-text-hover, #851c27);
	border: 1px solid var(--aj-mega-pill-border-hover, #f0d5d5);
	margin-left: auto;
	flex-shrink: 0;
}

.aj-category-pill:hover {
	background: var(--aj-mega-pill-hover, #fcf5f5);
	border-color: var(--aj-mega-pill-border-hover, #f0d5d5);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.aj-category-pill:hover .aj-pill-icon-circle svg {
	stroke: var(--aj-mega-icon-hover, #851c27);
}

.aj-category-pill:hover .aj-pill-label {
	color: var(--aj-mega-text-hover, #851c27);
}

/* -------------------------------------------------------------
 * 7. PRICE TILES
 * ------------------------------------------------------------- */
.aj-price-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 10px;
}

.aj-price-card {
	background: var(--aj-mega-pill-bg, #ffffff);
	border: 1px solid var(--aj-mega-border, #ececec);
	border-radius: 8px;
	padding: 12px;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
}

.aj-price-card:hover {
	border-color: var(--aj-mega-icon, #bb9448);
	box-shadow: 0 4px 14px rgba(0,0,0,0.06);
	transform: translateY(-2px);
}

.aj-price-img-wrap {
	width: 100%;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(125, 125, 125, 0.05);
	border-radius: 6px;
	margin-bottom: 8px;
}

.aj-price-img-wrap img {
	max-height: 60px;
	max-width: 60px;
	object-fit: contain;
}

.aj-price-img-wrap svg {
	width: 32px;
	height: 32px;
	stroke: var(--aj-mega-icon, #bb9448);
}

.aj-price-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: var(--aj-mega-text, #111111);
}

.aj-price-badge {
	display: inline-block;
	font-size: 10px;
	background: var(--aj-mega-pill-hover, #fdf5f5);
	color: var(--aj-mega-text-hover, #851c27);
	padding: 2px 6px;
	border-radius: 3px;
	margin-top: 4px;
}

/* -------------------------------------------------------------
 * 8. OCCASION TILES
 * ------------------------------------------------------------- */
.aj-occasion-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 10px;
}

.aj-occasion-card {
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	text-align: center;
	background: var(--aj-mega-pill-bg, #ffffff);
	border: 1px solid var(--aj-mega-border, #eee);
	padding-bottom: 10px;
	transition: all 0.2s ease;
}

.aj-occasion-card:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	border-color: var(--aj-mega-icon-hover, #851c27);
}

.aj-occasion-img-wrap {
	width: 100%;
	height: 100px;
	background: rgba(125, 125, 125, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
}

.aj-occasion-img-wrap img {
	max-height: 70px;
	object-fit: contain;
}

.aj-occasion-img-wrap svg {
	width: 36px;
	height: 36px;
	stroke: var(--aj-mega-icon, #bb9448);
}

.aj-occasion-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--aj-mega-text, #111111);
	margin: 8px 0 2px;
}

.aj-occasion-desc {
	font-size: 11px;
	color: #777777;
	margin: 0;
}

/* -------------------------------------------------------------
 * 9. BOTTOM PROMO STRIP
 * ------------------------------------------------------------- */
.aj-mega-bottom-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	border: 1px solid var(--aj-mega-border, #f6e8e8);
	border-radius: 8px;
	margin-top: 20px;
}

.aj-bottom-preview {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aj-bottom-thumb-img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
}

.aj-bottom-icon svg {
	width: 24px;
	height: 24px;
	stroke: var(--aj-mega-icon, #bb9448);
}

.aj-bottom-text strong {
	display: block;
	font-size: 13px;
	color: var(--aj-mega-text, #111111);
}

.aj-bottom-text span {
	font-size: 11.5px;
	color: #666666;
}

.aj-bottom-btn {
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.aj-bottom-btn:hover {
	background: var(--aj-bot-btn-hover) !important;
}

/* -------------------------------------------------------------
 * 10. RIGHT SIDE FEATURED CARD
 * ------------------------------------------------------------- */
.aj-mega-banner {
	border-left: 1px solid var(--aj-mega-border, #f2f2f2);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: var(--aj-section-banner-bg, var(--aj-side-bg, #FFFEFB));
	background-image: var(--aj-section-banner-img, none);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
}

.aj-banner-card {
	text-align: center;
}

.aj-banner-photo-wrap {
	margin-bottom: 14px;
	border-radius: 8px;
	overflow: hidden;
}

.aj-banner-photo {
	width: 100%;
	max-height: 220px;
	object-fit: cover;
	border-radius: 8px;
}

.aj-banner-graphic {
	margin-bottom: 14px;
}

.aj-banner-crown svg {
	width: 44px;
	height: 44px;
	stroke: var(--aj-mega-icon, #bb9448);
}

.aj-banner-info h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 6px;
	color: var(--aj-mega-text, #111111);
	line-height: 1.3;
}

.aj-banner-info p {
	font-size: 12px;
	color: #777777;
	margin: 0 0 14px;
}

.aj-banner-link {
	display: inline-block;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	transition: color 0.2s ease;
}

.aj-banner-link:hover {
	color: var(--aj-side-hover) !important;
}

/* -------------------------------------------------------------
 * 11. TABLET & MOBILE DRAWER (CUSTOMIZABLE CONTRAST & HOVER)
 * ------------------------------------------------------------- */
@media screen and (max-width: 980px) {
	.aj-mega-menu-panel {
		display: none !important;
	}

	.aj-mobile-menu-drawer {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: var(--aj-mob-drawer-bg, var(--aj-mega-bg, #ffffff)) !important;
		z-index: 1000000;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
	}

	.aj-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		border-bottom: 1px solid var(--aj-mega-border, #eeeeee);
		background: var(--aj-mob-header-bg, #ffffff) !important;
		position: sticky;
		top: 0;
		z-index: 10;
	}

	.aj-drawer-back,
	.aj-drawer-close {
		background: transparent;
		border: none;
		font-size: 22px;
		color: var(--aj-mob-header-text, #222222) !important;
		cursor: pointer;
		padding: 4px;
		line-height: 1;
	}

	.aj-drawer-title {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		font-size: 16px;
		color: var(--aj-mob-header-text, #222222) !important;
	}

	.aj-drawer-header-icon svg {
		width: 18px;
		height: 18px;
		stroke: var(--aj-mega-icon, #bb9448);
	}

	.aj-mobile-tab-bar {
		display: flex;
		background: var(--aj-mob-tab-bar-bg, #fafafa) !important;
		border-bottom: 1px solid var(--aj-mega-border, #eeeeee);
		padding: 8px 12px;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		flex-shrink: 0;
	}

	.aj-mob-tab {
		background: transparent;
		border: 1px solid transparent;
		border-radius: 5px;
		padding: 8px 14px;
		font-size: 13px;
		font-weight: 500;
		color: var(--aj-mob-tab-text, #555555) !important;
		cursor: pointer;
		white-space: nowrap;
		transition: all 0.2s ease;
	}

	.aj-mob-tab.active {
		background: var(--aj-mob-tab-active-bg, #ffffff) !important;
		border-color: var(--aj-mega-border, #e5e5e5) !important;
		color: var(--aj-mob-tab-active-text, #731720) !important;
		font-weight: 600;
		box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	}

	.aj-drawer-body {
		padding: 20px;
		flex: 1;
	}

	.aj-mobile-pane {
		display: none;
	}

	.aj-mobile-pane.active {
		display: block;
	}

	.aj-mobile-grid-buttons {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	@media screen and (max-width: 520px) {
		.aj-mobile-grid-buttons {
			grid-template-columns: repeat(2, 1fr);
		}
	}

	/* Tablet & Mobile Buttons (Contrast Lock prevents text disappearing) */
	.aj-mob-grid-btn {
		background: var(--aj-mob-btn-bg, #ffffff) !important;
		border: 1px solid var(--aj-mob-btn-border, #e2e2e2) !important;
		border-radius: 6px;
		padding: 12px 8px;
		font-size: 12px;
		font-weight: 500;
		color: var(--aj-mob-btn-text, #222222) !important;
		text-align: center;
		text-decoration: none !important;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		box-sizing: border-box;
		transition: all 0.2s ease;
		box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	}

	/* High-specificity hover, tap, and focus state */
	.aj-mob-grid-btn:hover,
	.aj-mob-grid-btn:active,
	.aj-mob-grid-btn:focus {
		background: var(--aj-mob-btn-hover-bg, #731720) !important;
		color: var(--aj-mob-btn-hover-text, #ffffff) !important;
		border-color: var(--aj-mob-btn-hover-border, #731720) !important;
		box-shadow: 0 3px 8px rgba(0,0,0,0.12);
	}

	.aj-mobile-banner-card {
		margin-top: 24px;
		border: 1px solid var(--aj-mega-border, #f2ece4);
		border-radius: 8px;
		padding: 20px;
		text-align: center;
	}

	.aj-mobile-banner-card h4 {
		margin: 0 0 4px;
		font-size: 15px;
		color: var(--aj-mega-text, #111111);
	}

	.aj-mobile-banner-card p {
		margin: 0 0 12px;
		font-size: 11px;
		letter-spacing: 1px;
		color: #777777;
	}
}