/* Homepage category entrances, following the approved cloudy MGG identity. */
.home-categories {
	--home-ink: #26324a;
	--home-berry: #702141;
	--home-pink: #f1bfd6;
	width: min(100% - 64px, 1320px);
	margin: clamp(48px, 7vw, 100px) auto 0;
	padding-bottom: clamp(72px, 9vw, 128px);
}

.home-categories-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 26px;
}

.home-categories-heading h2 {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: 1.04;
	text-wrap: balance;
}

.home-categories-heading p {
	max-width: 34ch;
	margin: 0 0 4px;
	color: #493c50;
	font-size: 14px;
	line-height: 1.65;
}

.home-category-paths {
	display: grid;
	grid-template-columns: 1.08fr .96fr 1fr;
	gap: 16px;
}

.home-category-path {
	position: relative;
	isolation: isolate;
	display: flex;
	min-width: 0;
	min-height: 168px;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	overflow: hidden;
	padding: 26px 24px 26px 29px;
	border: 1px solid #fff;
	border-radius: 42px 31px 39px 33px;
	color: var(--home-ink);
	box-shadow: 0 12px 28px #6a547516;
	transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s cubic-bezier(.16, 1, .3, 1);
}

.home-category-path::before,
.home-category-path::after {
	position: absolute;
	z-index: -1;
	content: "";
	border-radius: 52% 48% 45% 55%;
	background: #fff;
	opacity: .48;
	filter: blur(1px);
	pointer-events: none;
}

.home-category-path::before {
	top: -38px;
	right: 4px;
	width: 160px;
	height: 104px;
}

.home-category-path::after {
	right: 80px;
	bottom: -58px;
	width: 132px;
	height: 82px;
	background: #fff8fc;
}

.home-category-all {
	background: linear-gradient(130deg, #f1bfd6 0%, #f7dbea 67%, #fff0f7 100%);
}

.home-category-tpe {
	background: linear-gradient(130deg, #d3ebf8 0%, #e5f4fb 67%, #f4faff 100%);
}

.home-category-silicone {
	background: linear-gradient(130deg, #f3d7e5 0%, #faeaf1 68%, #fff6fa 100%);
}

.home-category-copy {
	position: relative;
	z-index: 1;
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
}

.home-category-prelude {
	margin-bottom: 9px;
	color: #594757;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: .015em;
}

.home-category-path strong {
	max-width: 15ch;
	font-size: clamp(20px, 2vw, 27px);
	font-weight: 600;
	letter-spacing: -.04em;
	line-height: 1.1;
	text-wrap: balance;
}

.home-category-arrow {
	position: relative;
	z-index: 1;
	display: grid;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	place-items: center;
	border: 1px solid #fff;
	border-radius: 50%;
	background: #fff9fb;
	color: var(--home-berry);
	box-shadow: 0 6px 15px #6a54751b;
	transition: transform .28s cubic-bezier(.16, 1, .3, 1), background .2s;
}

.home-category-arrow svg {
	width: 19px;
	height: 19px;
}

@media (hover: hover) and (pointer: fine) {
	.home-category-path:hover {
		transform: translateY(-4px);
		box-shadow: 0 18px 32px #6a547522;
	}

	.home-category-path:hover .home-category-arrow {
		transform: translateX(3px);
		background: #fff;
	}
}

.home-category-path:active .home-category-arrow {
	transform: scale(.94);
}

.home-category-path:focus-visible {
	outline: 3px solid var(--home-berry);
	outline-offset: 5px;
}

@media (max-width: 760px) {
	.home-categories {
		width: min(100% - 36px, 560px);
		margin: 48px auto 0;
		padding-bottom: 72px;
	}

	.home-categories-heading {
		display: block;
		margin-bottom: 20px;
	}

	.home-categories-heading h2 {
		max-width: 12ch;
		font-size: clamp(31px, 8vw, 39px);
	}

	.home-categories-heading p {
		max-width: 32ch;
		margin: 9px 0 0;
		font-size: 13px;
	}

	/* Mobile gets a single, full-width catalogue entrance, followed by two
	   side-by-side material choices that sit naturally within thumb reach. */
	.home-category-paths {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px;
	}

	.home-category-path {
		min-height: 138px;
		align-items: flex-start;
		justify-content: flex-end;
		padding: 18px 14px 16px;
		border-radius: 29px 23px 31px 25px;
	}

	.home-category-all {
		grid-column: 1 / -1;
		min-height: 96px;
		align-items: center;
		justify-content: space-between;
		padding: 17px 19px 17px 22px;
		border-radius: 32px 25px 33px 27px;
	}

	.home-category-path::before {
		top: -27px;
		right: -7px;
		width: 116px;
		height: 75px;
	}

	.home-category-path::after {
		right: 38px;
		bottom: -41px;
		width: 90px;
		height: 59px;
	}

	.home-category-all::before {
		top: -39px;
		right: 54px;
		width: 150px;
		height: 92px;
	}

	.home-category-all::after {
		right: 115px;
		bottom: -60px;
		width: 118px;
		height: 74px;
	}

	.home-category-prelude {
		margin-bottom: 5px;
		font-size: 10px;
	}

	.home-category-path strong {
		font-size: 17px;
		line-height: 1.12;
	}

	.home-category-arrow {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.home-category-arrow svg {
		width: 16px;
		height: 16px;
	}

	.home-category-all .home-category-arrow {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}
}

@media (max-width: 359px) {
	.home-categories {
		width: calc(100% - 28px);
		padding-bottom: 60px;
	}

	.home-category-path {
		padding-right: 11px;
		padding-left: 12px;
	}

	.home-category-path strong {
		font-size: 16px;
	}

	.home-category-arrow {
		width: 32px;
		height: 32px;
		flex-basis: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-category-path,
	.home-category-arrow {
		transition: none;
	}
}
