/**
 * HOME 04 — Find Your Next Favourite.
 *
 * This file is intentionally scoped to the Homepage collection overview. It
 * must not alter the shared product-card component or any other Homepage block.
 */

body.home [data-home-collections] {
	min-height: 0;
	padding-block: clamp(3.25rem, 5vw, 5.25rem);
	background: #fffdfb;
	overflow: clip;
}

body.home [data-home-collections] > .f4u-container {
	display: flex;
	width: min(calc(100% - clamp(2rem, 7vw, 10rem)), 108rem);
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
	flex-direction: column;
	align-items: stretch;
}

body.home [data-home-collections] .f4u-section-heading {
	order: 1;
	max-width: 62rem;
	margin: 0 auto;
	text-align: center;
}

body.home [data-home-collections] .f4u-section-heading h2 {
	display: flex;
	margin: .55rem 0 0;
	align-items: baseline;
	justify-content: center;
	column-gap: .25em;
	font-family: var(--f4u-font-display);
	font-size: clamp(2.75rem, 4.6vw, 4.9rem);
	font-weight: 400;
	line-height: 1.02;
}

body.home [data-home-collections] .f4u-home-collections__script {
	color: var(--f4u-petal);
	font-family: var(--f4u-font-script);
	font-size: .95em;
	font-weight: 400;
	font-synthesis: none;
	line-height: 1;
}

body.home [data-home-collections] .f4u-gold-stroke--center {
	width: clamp(5rem, 12vw, 9rem);
	height: 1.1rem;
	margin-block: .65rem;
	background: var(--f4u-home-gold-original) center / contain no-repeat;
	transform: none;
}

body.home [data-home-collections] .f4u-section-heading .f4u-lede {
	margin: .9rem auto 0;
}

body.home .f4u-section--collections[data-home-collections] > .f4u-container > .f4u-section-action {
	order: 2;
	margin: 1.6rem auto 2.25rem;
}

body.home [data-home-collections] .f4u-section-action .f4u-button {
	min-width: 13.5rem;
}

body.home .f4u-section--collections[data-home-collections] > .f4u-container > [data-home-collections-track] {
	display: grid !important;
	order: 3;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(.75rem, 1.25vw, 1.35rem);
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: visible;
}

body.home [data-home-collections-track] > .f4u-collection-card {
	display: flex !important;
	min-width: 0;
	border: 1px solid rgba(219, 189, 191, .58);
	border-radius: .55rem;
	background: #fff;
	box-shadow: 0 .35rem 1.2rem rgba(77, 45, 50, .055);
	flex-direction: column;
	overflow: hidden;
	scroll-snap-align: start;
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.home [data-home-collections-track] > .f4u-collection-card:hover,
body.home [data-home-collections-track] > .f4u-collection-card:focus-visible {
	border-color: var(--f4u-petal);
	box-shadow: 0 .65rem 1.7rem rgba(77, 45, 50, .1);
	transform: translateY(-.18rem);
}

body.home [data-home-collections-track] .f4u-media--portrait {
	width: 100%;
	aspect-ratio: 3 / 4;
	background: #f8efed;
	overflow: hidden;
}

body.home [data-home-collections-track] .f4u-home-collections__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--f4u-media-position, 50% 50%);
}

body.home [data-home-collections-track] .f4u-card__body {
	display: flex;
	min-height: 0;
	padding: .8rem .7rem .9rem;
	align-items: center;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

body.home [data-home-collections-track] .f4u-card__body h3 {
	margin: 0;
	font-family: var(--f4u-font-body);
	font-size: clamp(1rem, .82rem + .35vw, 1.45rem);
	font-weight: 600;
	letter-spacing: .075em;
	line-height: 1.25;
	text-transform: uppercase;
}

body.home [data-home-collections-track] .f4u-card__body p {
	margin: .35rem 0 0;
}

@media (max-width: 1099px) {
	body.home [data-home-collections] > .f4u-container {
		width: min(calc(100% - 2.5rem), 64rem);
	}

	body.home .f4u-section--collections[data-home-collections] > .f4u-container > [data-home-collections-track] {
		display: flex !important;
		gap: 1rem;
		width: 100%;
		margin-inline: 0;
		padding: 0 0 1rem;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-behavior: smooth;
		scroll-padding-inline: 0;
		scroll-snap-type: x mandatory;
		scrollbar-color: rgba(203, 105, 125, .55) rgba(237, 219, 219, .45);
		scrollbar-width: thin;
	}

	body.home .f4u-section--collections[data-home-collections] > .f4u-container > [data-home-collections-track] > .f4u-collection-card {
		flex: 0 0 calc((100% - 2rem) / 3);
	}
}

@media (max-width: 767px) {
	body.home [data-home-collections] {
		padding-block: 2.75rem 3rem;
	}

	body.home [data-home-collections] > .f4u-container {
		width: calc(100% - 2rem);
	}

	body.home [data-home-collections] .f4u-section-heading h2 {
		display: block;
		font-size: clamp(2.45rem, 11vw, 3.65rem);
	}

	body.home [data-home-collections] .f4u-home-collections__script {
		display: block;
		margin-top: .15em;
	}

	body.home .f4u-section--collections[data-home-collections] > .f4u-container > .f4u-section-action {
		margin: 1.35rem auto 1.8rem;
	}

	body.home .f4u-section--collections[data-home-collections] > .f4u-container > [data-home-collections-track] {
		margin-inline: 0;
		padding-inline: 0;
	}

	body.home .f4u-section--collections[data-home-collections] > .f4u-container > [data-home-collections-track] > .f4u-collection-card {
		flex-basis: calc((100% - 1rem) / 2);
	}

}

@media (max-width: 519px) {
	body.home .f4u-section--collections[data-home-collections] > .f4u-container > [data-home-collections-track] > .f4u-collection-card {
		flex-basis: 100%;
	}
}

@media (max-width: 359px) {
	body.home [data-home-collections] > .f4u-container {
		width: calc(100% - 1.5rem);
	}

}

@media (prefers-reduced-motion: reduce) {
	body.home [data-home-collections-track],
	body.home [data-home-collections-track] > .f4u-collection-card {
		scroll-behavior: auto;
		transition: none;
	}
}
