/**

 * Mega menu — Diamonds Factory stylesheet alignment (demo).

 * Ref: diamondsfactory.co.nz stylesheet-min.css (.style-icon, .dropdown-bold, .mega-dropdown-menu)

 */



/* ── Column headings (.dropdown-bold) ── */

.mega-panel-heading {

	font-family: var(--font-serif, Georgia, serif);

	font-size: 1.25rem;

	font-weight: 400;

	line-height: 1.2;

	letter-spacing: 0;

	text-transform: capitalize;

	color: var(--color-text, #1a1614);

	margin: 0 0 15px;

	padding: 3px 0;

	position: relative;

}



.mega-panel-heading::after {

	content: "";

	display: block;

	margin-top: 5px;

	height: 1.5px;

	width: 75%;

	max-width: 120px;

	background-color: var(--color-gold, #dec15c);

}



.mega-panel-col-popular .mega-panel-heading::after {

	display: none;

}



/* ── Menu links (.style-icon .name) ── */

.mega-panel-list a {

	display: grid;

	grid-template-columns: 48px minmax(0, 1fr);

	column-gap: 10px;

	align-items: center;

	min-height: 36px;

	padding: 3px 5px;

	font-family: var(--font-sans, "Helvetica Neue", Arial, sans-serif);

	font-size: 12px;

	font-weight: 400;

	letter-spacing: 0.02em;

	line-height: 1.35;

	color: #6d6d6d;

	text-decoration: none;

	transition: color 0.25s ease;

}



.mega-panel-list a:hover {

	color: var(--color-gold, #dec15c);

}



.mega-panel-list a > span:last-child {

	grid-column: 2;

	align-self: center;

}



/* ── Sprite icons (.style-icon + menu-icons.png) ── */

.mega-menu-sprite {

	display: block;

	width: 48px;

	height: 48px;

	background-image: url("../images/menu/menu_category_icons.svg");

	background-repeat: no-repeat;

	background-size: 624px 192px;

	grid-column: 1;

	justify-self: center;

	flex-shrink: 0;

}



/* img fallback when sprite key missing */

.mega-menu-icon {

	display: block;

	width: 44px;

	height: 44px;

	object-fit: contain;

	justify-self: center;

	grid-column: 1;

}



/* Reference icon PNGs are already dark line-art on transparent — no inversion needed. */



.mega-menu-icon-stone {

	width: 28px;

	height: 28px;

	object-fit: contain;

	filter: none;

}



/* ── Metal swatches ── */

.mega-swatch {

	width: 22px;

	height: 22px;

	border-radius: 50%;

	border: 1px solid rgba(0, 0, 0, 0.12);

	grid-column: 1;

	justify-self: center;

}



.mega-swatch-platinum    { background: linear-gradient(135deg, #ececec, #b8b8b8); }

.mega-swatch-white-gold  { background: linear-gradient(135deg, #f8f8f5, #dddcd6); }

.mega-swatch-yellow-gold { background: linear-gradient(135deg, #f4d03f, #c9a032); }

.mega-swatch-rose-gold   { background: linear-gradient(135deg, #e8b4a0, #c99585); }

.mega-swatch-silver      { background: linear-gradient(135deg, #d8d8d8, #9a9a9a); }



/* ── Stone type dots ── */

.mega-stone {

	width: 22px;

	height: 22px;

	border-radius: 50%;

	grid-column: 1;

	justify-self: center;

	border: 1px solid rgba(0, 0, 0, 0.08);

}



.mega-stone-natural    { background: linear-gradient(135deg, #fff, #e8f4ff); }

.mega-stone-lab-grown  { background: linear-gradient(135deg, #fff, #f0fff4); }

.mega-stone-moissanite { background: linear-gradient(135deg, #f3e8ff, #ddd6fe); }

.mega-stone-yellow     { background: #f4d03f; }

.mega-stone-black      { background: #222; }



/* ── Brand logo ── */
.header-inner-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	position: relative;
	z-index: 320;
	padding: 0 18px;
}

.header-inner-top .site-branding {
	order: unset;
	grid-column: 2;
	justify-self: center;
	flex-shrink: 0;
	z-index: 2;
}

.header-inner-top .header-center-spacer {
	display: none;
}

.header-inner-top .header-actions {
	order: unset;
	grid-column: 3;
	justify-self: end;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	min-width: auto;
	overflow: visible;
}

.site-branding .custom-logo-link img,
.site-branding img.custom-logo,
.site-branding img.site-logo,
.site-branding svg.custom-logo,
.site-branding svg.site-logo {
	display: block;
	height: min(70px, 13vw);
	width: auto;
	max-width: 240px;
	overflow: visible;
	object-fit: contain;
	transform: none;
}

/* White logo on homepage video hero (dark logo SVG is maroon) */
body.has-video-hero .site-header:not(.is-scrolled) .site-branding svg,
body.has-video-hero .site-header:not(.is-scrolled) .site-branding img.custom-logo {
	filter: brightness(0) invert(1);
}

body.has-video-hero .site-header.is-scrolled .site-branding svg,
body.has-video-hero .site-header.is-scrolled .site-branding img.custom-logo {
	filter: none;
}

.footer-logo svg.footer-logo-img,
.footer-logo img.footer-logo-img {
	height: 88px;
	width: auto;
	max-width: 260px;
	display: block;
	object-fit: contain;
	margin-bottom: 12px;
}



/* ── Header cart clickability ── */

.header-inner-top {

	position: relative;

	z-index: 320;

}



.header-actions {

	position: relative;

	z-index: 321;

}



.header-cart,

#mini-cart-toggle {

	cursor: pointer;

	pointer-events: auto;

}



.wishlist-grid .add_to_cart_button,
.wishlist-grid .product_type_simple,
.wishlist-grid .product_type_variable {

	grid-column: 1 / -1;

	margin-top: 8px;

	width: 100%;

}


