/*
 * Finished Raizon homepage banners.
 * Every promotional card is a single raster image; CSS only controls layout.
 */

body.home .hero-section {
	overflow: hidden;
	border: 1px solid rgba(255, 87, 34, .2);
	border-radius: 18px;
	background: #090909;
}

body.home .hero-carousel,
body.home .hero-carousel .owl-stage-outer {
	height: auto;
	border-radius: inherit;
}

body.home .hero-slide.raizon-hero-slide {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1368 / 300;
	overflow: hidden;
	background: #090909;
}

body.home .raizon-hero-slide img,
body.home .raizon-category-promo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.home .raizon-hero-slide:focus-visible,
body.home .raizon-category-promo:focus-visible {
	outline: 3px solid #ff5722;
	outline-offset: 3px;
}

body.home .raizon-category-promo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 7px;
}

body.home .raizon-category-promo {
	position: relative;
	display: block;
	aspect-ratio: 410 / 381;
	overflow: hidden;
	background: #ececec;
	color: #fff;
}

body.home .raizon-category-promo img {
	transition: transform .25s ease, filter .25s ease;
}

body.home .raizon-category-promo__title {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 8px 12px;
	background: rgba(24, 31, 40, .84);
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

body.home .raizon-category-promo:nth-child(2) .raizon-category-promo__title,
body.home .raizon-category-promo:nth-child(4) .raizon-category-promo__title {
	background: rgba(185, 64, 24, .84);
}

body.home .raizon-category-promo:hover img {
	transform: scale(1.025);
	filter: saturate(1.04);
}

@media (max-width: 991px) {
	body.home .raizon-category-promo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
	}
}

@media (max-width: 767px) {
	body.home .hero-section,
	body.home .hero-carousel,
	body.home .hero-carousel .owl-stage-outer,
	body.home .hero-slide.raizon-hero-slide {
		height: auto;
	}

	body.home .hero-slide.raizon-hero-slide {
		aspect-ratio: 1368 / 300;
	}

	body.home .hero-slide.raizon-hero-slide img {
		height: 100%;
		object-position: center;
	}

	body.home .hero-section {
		border-radius: 0;
	}

	body.home .raizon-category-promo-grid {
		gap: 6px;
	}

	body.home .raizon-category-promo__title {
		min-height: 44px;
		padding: 6px 8px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .raizon-category-promo img {
		transition: none;
	}
}
