/* ==========================================================
   Category Hover Gallery
   ========================================================== */
ul.products li.product,
.products .product {
	position: relative;
	overflow: hidden;
}

ul.products li.product img.wp-post-image,
.products .product img.wp-post-image {
	transition: opacity 0.15s ease-in-out;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

@media (hover: none) {
	.products .product img.wp-post-image {
		cursor: pointer;
	}
}

/* ==========================================================
   Header Promo / Offer Bar
   ========================================================== */
.promo-bar {
	width: 100%;
	overflow: hidden;
	font-size: 0.8rem;
	text-align: center;
}

.promo-bar__track {
	position: relative;
	height: 36px;
}

.promo-bar__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease-in-out;
	padding: 0 12px;
}

.promo-bar__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.promo-bar__slide a,
.promo-bar__slide span {
	color: inherit;
	text-decoration: none;
}

.promo-bar__code {
	padding: 1px 6px;
	border: 1px dashed currentColor;
	border-radius: 3px;
	letter-spacing: 0.5px;
}

@media (max-width: 480px) {
	.promo-bar {
		font-size: 0.7rem;
	}
	.promo-bar__slide {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ==========================================================
   Homepage Hero Banner (image or video)
   ========================================================== */
.hero-banner {
	position: relative;
	width: 100%;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-banner__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.hero-banner__content {
	position: relative;
	z-index: 1;
	padding: 24px;
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-banner__content h1 {
	font-size: 1.8rem;
	line-height: 1.2;
	margin: 0 0 8px;
	font-family: var(--wl-font-heading);
}

.hero-banner__cta {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 20px;
	background: #fff;
	color: #111;
	text-decoration: none;
	border-radius: 2px;
	font-weight: 600;
}

@media (min-width: 768px) {
	.hero-banner {
		min-height: 80vh;
	}
	.hero-banner__content {
		padding: 60px;
		max-width: 640px;
	}
	.hero-banner__content h1 {
		font-size: 3rem;
	}
}
