/**
 * Home page — products currently receiving attention.
 */

.hm-interest-cards {
	padding: clamp(54px, 5vw, 84px) 0 clamp(66px, 6vw, 98px);
	background: linear-gradient(105deg, var(--hm-interest-bg-start, #55dbea) 0%, var(--hm-interest-bg-middle, #f35f9d) 50%, var(--hm-interest-bg-end, #ffd84d) 100%);
}

.hm-interest-cards__inner {
	width: min(2160px, calc(100% - 64px));
	margin-inline: auto;
}

.hm-interest-cards__heading {
	color: var(--hm-interest-heading, #111);
	font-family: "Jost", sans-serif;
	font-size: clamp(24px, 2.25vw, 42px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.hm-interest-cards__list {
	display: grid;
	grid-template-columns: repeat(var(--hm-interest-count, 5), minmax(0, 1fr));
	gap: clamp(12px, 1vw, 20px);
}

.hm-interest-card {
	min-width: 0;
	margin: 0;
	background: #252525;
}

.hm-interest-card__link {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #252525;
	color: var(--hm-interest-card-color, #fff);
	isolation: isolate;
	text-decoration: none;
}

.hm-interest-card__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}

.hm-interest-card__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, var(--hm-interest-overlay, .32));
	transition: background-color .3s ease;
}

.hm-interest-card__title {
	position: absolute;
	top: 50%;
	right: clamp(14px, 1.5vw, 28px);
	left: clamp(14px, 1.5vw, 28px);
	margin: 0;
	color: inherit;
	font-family: "Jost", sans-serif;
	font-size: clamp(20px, 1.55vw, 32px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.025em;
	text-align: center;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
	transform: translateY(-50%);
}

.hm-interest-card__title span {
	display: inline-block;
	max-width: 100%;
	padding-bottom: 5px;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: right bottom;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size .45s cubic-bezier(.22, 1, .36, 1);
}

.hm-interest-card__link:hover .hm-interest-card__title span,
.hm-interest-card__link:focus-visible .hm-interest-card__title span {
	background-position: left bottom;
	background-size: 100% 2px;
}

a.hm-interest-card__link:hover .hm-interest-card__image,
a.hm-interest-card__link:focus-visible .hm-interest-card__image {
	transform: scale(1.045);
}

a.hm-interest-card__link:hover,
a.hm-interest-card__link:focus-visible {
	color: var(--hm-interest-card-color, #fff);
}

a.hm-interest-card__link:hover .hm-interest-card__shade,
a.hm-interest-card__link:focus-visible .hm-interest-card__shade {
	background: rgba(0, 0, 0, calc(var(--hm-interest-overlay, .32) + .08));
}

a.hm-interest-card__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.hm-interest-cards--empty {
	padding: 0 0 64px;
	background: #fff;
}

.hm-interest-cards--empty .hm-interest-cards__inner {
	padding: 24px;
	border: 1px dashed #b6b6b6;
	border-radius: 10px;
	background: #f8f8f8;
	color: #111;
	text-align: center;
}

.hm-interest-cards--empty p {
	margin: 0;
}

@media (max-width: 1100px) {
	.hm-interest-cards__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.hm-interest-cards {
		padding: 42px 0 52px;
	}

	.hm-interest-cards__inner {
		width: 100%;
	}

	.hm-interest-cards__heading {
		width: auto;
		margin: 0 16px 24px;
		font-size: clamp(28px, 9vw, 38px);
	}

	.hm-interest-cards__list {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		padding: 0 16px 8px;
		scroll-padding-inline: 16px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.hm-interest-cards__list::-webkit-scrollbar {
		display: none;
	}

	.hm-interest-card {
		flex: 0 0 min(78vw, 320px);
		scroll-snap-align: start;
	}

	.hm-interest-card__title {
		font-size: clamp(21px, 6.5vw, 28px);
	}

	.hm-interest-cards--empty {
		padding: 0 12px 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-interest-card__image,
	.hm-interest-card__shade,
	.hm-interest-card__title span {
		transition: none;
	}
}
