/* Keep native Woodmart slide text readable over bright banner photography. */
.wd-slider .wd-slide-bg::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, .35);
	content: "";
	pointer-events: none;
}

/* WooLentor Quick Checkout is enabled globally but is not wanted in product
 * loops. Keep its single-product and checkout functionality untouched. */
:is(.products, .wd-products, .woolentor-products) [class*="woolentor-quick-checkout"] {
	display: none !important;
}

:is(.products, .wd-products, .woolentor-products) :is(a, button):has([class*="woolentor-quick-checkout"]) {
	display: none !important;
}

/* Generated Woodmart aside mega-menu panels. */
.gift-mega-panel {
	display: flex;
	min-height: 420px;
	flex-direction: column;
	gap: 22px;
	padding: 8px;
	background: #fff;
}

.gift-mega-panel__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.gift-mega-panel__eyebrow {
	display: block;
	margin-bottom: 4px;
	color: var(--wd-primary-color);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.gift-mega-panel__heading h3 {
	margin: 0;
	font-size: 25px;
	line-height: 1.2;
}

.gift-mega-panel__all {
	flex: 0 0 auto;
	font-weight: 700;
	text-decoration: none;
}

.gift-mega-panel__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.gift-mega-panel__card {
	display: block;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 12px;
	background: #fff;
	color: var(--wd-title-color);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.gift-mega-panel__card:hover {
	color: var(--wd-title-color);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.gift-mega-panel__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8;
	background: #f5f5f5;
	object-fit: cover;
}

.gift-mega-panel__card-title {
	display: block;
	padding: 13px 15px 14px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.gift-mega-panel__empty {
	display: flex;
	min-height: 340px;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #f7f7f7;
	color: var(--color-gray-600);
}

/* Keep the accent aside rail compact so all ten gift departments scan quickly. */
@media (min-width: 1025px) {
	.wd-dropdown-menu.wd-design-aside .wd-sub-menu-wrapp > .wd-sub-menu {
		max-width: 235px;
	}

	.wd-dropdown-menu.wd-design-aside .wd-dropdown {
		inset-inline-start: 235px;
	}

	.wd-dropdown-menu.wd-design-aside.wd-style-with-bg .wd-sub-menu-wrapp > .wd-sub-menu > li > a {
		padding: 15px !important;
		font-size: 14px !important;
		line-height: 20px !important;
	}

	.wd-dropdown-menu.wd-design-aside.wd-style-with-bg .wd-sub-menu-wrapp > .wd-sub-menu > li > a .wd-nav-img {
		--nav-img-height: 17px;
		margin-inline-end: 8px;
	}

	/* Keep the complete header, including currency/phone/utility links, above
	 * Woodmart's page veil while the Categories mega-menu is open. */
	body:has(.wd-close-side-opened[class*="wd-location-header"]) .whb-main-header {
		z-index: 401 !important;
	}

	/* Start the veil below the whole Woodmart header instead of behind it.
	 * This also prevents translucent top-bar backgrounds showing black through. */
	.wd-close-side.wd-close-side-opened.wd-location-header:not(.wd-location-header-sticky) {
		top: calc(var(--wd-admin-bar-h) + var(--wd-header-h)) !important;
	}

	.wd-close-side.wd-close-side-opened.wd-location-header-sticky {
		top: calc(var(--wd-admin-bar-h) + var(--wd-header-sticky-h)) !important;
	}
}
