/* =========================================
   Bontoy Heroes
   Reuses bon-viewed-products slider styles.
   Only the special card geometry is defined here.
   ========================================= */

.bon-heroes {
	margin-top: 58px;
	margin-bottom: 64px;
}

.bon-heroes .bon-viewed-products__track {
	padding-top: 2px;
	padding-bottom: 2px;
}

.bon-heroes .bon-hero-card {
	position: relative;

	display: block;
	aspect-ratio: 1 / 1.12;

	height: auto;
	min-height: 0;

	border: 0 !important;
	border-radius: 16px;
	background: transparent !important;

	color: inherit;
	text-decoration: none;

	overflow: hidden !important;
	isolation: isolate;
}

.bon-heroes .bon-hero-card::after {
	display: none !important;
	content: none !important;
}

.bon-heroes
	.bon-hero-card:nth-child(odd):not(:last-child) {
	border-right: 0 !important;
}

.bon-hero-card__background {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1;

	display: block;
	height: 70%;

	border-radius: 16px;
	background: var(--bon-hero-background, #f3db12);
}

.bon-hero-card__image {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;

	display: block;

	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;

	margin: 0;
	padding: 0;

	object-fit: contain;
	object-position: center bottom;

	transform: scale(1);
	transform-origin: center bottom;

	transition: transform 0.25s ease;

	-webkit-user-drag: none;
	user-select: none;
}

@media (hover: hover) and (pointer: fine) {
	a.bon-hero-card:hover .bon-hero-card__image,
	a.bon-hero-card:focus .bon-hero-card__image {
		transform: scale(1.025);
	}
}

@media (max-width: 767px) {
	.bon-heroes {
		margin-top: 34px;
		margin-bottom: 40px;
	}

	.bon-heroes .bon-viewed-products__header {
		margin-bottom: 18px;
	}

	.bon-heroes .bon-hero-card {
		aspect-ratio: 1 / 1.15;

		border-right: 0 !important;
		border-radius: 10px;
	}

	.bon-heroes .bon-hero-card::after {
		display: none !important;
	}

	.bon-hero-card__background {
		margin: 0 3px;
		border-radius: 10px;
	}

	.bon-hero-card__image {
		padding: 0 3px;

		transform: none !important;
	}
}
