/* ==========================================================================
   HDREY home: hero slideshow (550/400), 12 product rails (4-up / 2-up),
   featured collection blocks (banner 550/300 + cards), scrolling marquee.
   Geometry measured against the reference site at 1440x900 and 390x844.
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */
.hd-hero {
	position: relative;
	height: 550px;
	overflow: hidden;
	background: #f4f4f4;
}
.hd-hero__viewport {
	position: relative;
	height: 100%;
}
.hd-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s cubic-bezier(0.44, 0.13, 0.48, 0.87), visibility 0.8s;
}
.hd-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}
.hd-hero__media,
.hd-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.hd-hero__img {
	object-fit: cover;
	object-position: center center;
}
.hd-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 2;
}
.hd-hero__content {
	position: relative;
	z-index: 3;
	max-width: 1440px;
	margin: 0 auto;
	padding: 142px 74px 0;
	text-align: center;
	color: #fff;
}
.hd-hero__eyebrow {
	margin: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0.4em;
	text-transform: uppercase;
}
.hd-hero__title {
	margin: 8px 0 4px;
	padding: 8px 16px 24px;
	color: #fff;
	font-size: 50px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: capitalize;
}
.hd-hero__subtitle {
	margin: 0;
	padding: 8px 0 0;
	color: #fff;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.2;
}
.hd-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 53px;
	padding-bottom: 0;
	border-bottom: 1px solid #fff;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hd-hero__cta:hover {
	color: #fff;
	opacity: 0.85;
}

.hd-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 30px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.hd-hero__dot {
	position: relative;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: 1px solid #fff;
	background: transparent;
	padding: 0;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}
.hd-hero__dot.is-active {
	background: #fff;
	border-color: #fff;
}
/* reference: the active dot carries a 15px ring */
.hd-hero__dot.is-active::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 15px;
	margin: -7.5px 0 0 -7.5px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	box-sizing: border-box;
	pointer-events: none;
}

/* Reference shrinks the hero heading on very wide screens (measured 40px/48 at 1904). */
@media (min-width: 1600px) {
	.hd-hero__title {
		font-size: 40px;
		line-height: 48px;
	}
}

/* --- Product rails -------------------------------------------------------- */
.hd-rails {
	padding-top: 30px;
}
.hd-rail {
	padding-bottom: 68px;
}
.hd-rail--banner {
	padding-top: 0;
	padding-bottom: 68px;
}
.hd-rail__banner {
	position: relative;
	display: block;
	height: 500px;
	overflow: hidden;
	margin-bottom: 8px;
	background: #f4f4f4;
}
.hd-rail__banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}
.hd-rail__banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
	z-index: 1;
}
.hd-rail__banner-label {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 2.2;
	letter-spacing: 0.4em;
	text-align: center;
	text-transform: uppercase;
}
.hd-rail__link-wrap {
	padding: 0 0 22px;
	text-align: center;
}
.hd-rail__head {
	text-align: center;
}
.hd-rail__title {
	margin: 0 0 48px;
	color: #000;
	font-size: 36px;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
}
.hd-rail__body {
	position: relative;
	max-width: var(--g-container);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}
.hd-rail__track {
	display: flex;
	gap: 30px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	padding-bottom: 2px;
}
.hd-rail__track::-webkit-scrollbar {
	display: none;
}
.hd-rail__track:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
}
.hd-rail .hd-card__info {
	padding-bottom: 20px;
}
.hd-rail__slide {
	flex: 0 0 calc((100% - 90px) / 4);
	min-width: 0;
	scroll-snap-align: start;
	display: flex;
}
.hd-rail__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #000;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.hd-rail:hover .hd-rail__arrow,
.hd-rail__arrow:focus-visible {
	opacity: 1;
}
.hd-rail__arrow[disabled] {
	opacity: 0 !important;
	pointer-events: none;
}
.hd-rail__arrow--prev {
	left: 4px;
}
.hd-rail__arrow--next {
	right: 4px;
}
.hd-rail__foot {
	padding: 52px 0 0;
	text-align: center;
}
.hd-rail__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 2px;
	border-bottom: 1px solid #000;
	color: #000;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hd-rail__more:hover {
	color: #666;
	border-color: #666;
}

/* --- Featured collection blocks ------------------------------------------- */
/* Wide "strip" banner (e.g. Body & Soul 1920x400): render at its natural aspect so the
   full artwork is visible (1440x300 at desktop) instead of being cover-cropped. */
.hd-banner.hd-banner--strip {
	height: auto;
	aspect-ratio: var(--hd-banner-ratio, 1920 / 400);
}
.hd-featured {
	padding-bottom: 20px;
}
.hd-feature-block {
	margin-top: 20px;
	padding-top: 40px;
}
.hd-feature-block .hd-banner {
	margin-bottom: 8px;
}
.hd-banner {
	position: relative;
	display: block;
	height: 550px;
	overflow: hidden;
	background: #f4f4f4;
}
.hd-banner__media,
.hd-banner__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.hd-banner__media img {
	object-fit: cover;
	object-position: center center;
}
.hd-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(127deg, rgba(0, 0, 0, 0.4) 11%, rgba(0, 0, 0, 0.4) 79%);
	z-index: 1;
}
.hd-banner__label {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 40px;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 2.2;
	letter-spacing: 0.4em;
	text-align: center;
	text-transform: uppercase;
}
.hd-feature-block__link-wrap {
	padding: 0 0 48px;
	text-align: center;
}
.hd-feature-block__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 2px;
	border-bottom: 1px solid #000;
	color: #000;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hd-collections {
	max-width: var(--g-container);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}
.hd-collections__track {
	display: flex;
	gap: 30px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
}
.hd-collections__track::-webkit-scrollbar {
	display: none;
}
.hd-collection-card {
	flex: 0 0 calc((100% - 90px) / 4);
	min-width: 0;
	scroll-snap-align: start;
	text-align: center;
	color: #000;
}
.hd-collection-card__media {
	display: block;
	position: relative;
	padding-top: 100%;
	overflow: hidden;
	background: #f4f4f4;
}
.hd-collection-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s ease;
}
.hd-collection-card:hover .hd-collection-card__media img {
	transform: scale(1.04);
}
.hd-collection-card__body {
	display: block;
	padding: 12px 4px 0;
}
.hd-collection-card__title {
	display: block;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: #000;
}
.hd-collection-card__count {
	display: block;
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 24px;
	letter-spacing: 0;
	text-transform: none;
	color: rgba(0, 0, 0, 0.6);
}

/* --- Scrolling marquee ---------------------------------------------------- */
.hd-marquee {
	overflow: hidden;
	background: #ffffff;
	color: #000;
	padding: 20px 0;
}
.hd-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: hd-marquee-scroll 32s linear infinite;
}
.hd-marquee:hover .hd-marquee__track {
	animation-play-state: paused;
}
.hd-marquee__item {
	white-space: nowrap;
	padding: 0 40px;
	font-size: 48px;
	font-weight: 300;
	line-height: 2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
.hd-marquee__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #000;
	flex: 0 0 auto;
}
@keyframes hd-marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.hd-marquee__track,
	.hd-announcement__track { animation: none; }
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 749px) {
	.hd-hero {
		height: 400px;
	}
	.hd-hero__content {
		padding: 86px 20px 0;
	}
	.hd-hero__eyebrow {
		line-height: 26px;
	}
	.hd-hero__title {
		font-size: 22px;
		padding: 8px 16px 24px;
		margin: 4px 0 2px;
	}
	.hd-hero__subtitle {
		font-size: 16px;
	}
	.hd-hero__cta {
		margin-top: 30px;
	}
	.hd-hero__dots {
		bottom: 12px;
	}

	.hd-rails {
		padding-top: 0;
	}
	.hd-rail {
		padding-bottom: 38px;
	}
	.hd-rail--banner {
		padding-bottom: 64px;
	}
	.hd-rail .hd-card__info {
		padding-bottom: 32px;
	}
	.hd-rail__foot {
		padding-top: 24px;
	}
	.hd-rail--banner {
		padding-bottom: 40px;
	}
	.hd-rail__banner {
		height: 300px;
		margin-bottom: 8px;
	}
	.hd-rail__banner-label {
		padding: 0 24px;
		font-size: 11px;
		letter-spacing: 0.3em;
	}
	.hd-rail__link-wrap {
		padding: 0 0 24px;
	}
	.hd-rail__title {
		font-size: 27px;
		margin-bottom: 48px;
	}
	.hd-rail__track {
		gap: 30px;
	}
	.hd-rail__slide {
		flex: 0 0 calc((100% - 30px) / 2);
	}
	.hd-rail__arrow {
		display: none;
	}
	.hd-rail__foot {
		padding-top: 24px;
	}

	.hd-featured {
		padding-bottom: 10px;
	}
	.hd-feature-block {
		padding-top: 40px;
	}
	.hd-banner {
		height: 300px;
	}
	.hd-banner.hd-banner--strip {
		height: 300px;
		aspect-ratio: auto;
	}
	.hd-banner__label {
		padding: 0 24px;
		font-size: 11px;
		letter-spacing: 0.3em;
	}
	.hd-feature-block__link-wrap {
		padding: 24px 0 20px;
	}
	.hd-collections__track {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px 0;
		margin: 0 -15px;
		overflow: visible;
	}
	.hd-collection-card {
		flex: none;
		min-width: 0;
		padding: 0 15px;
	}
	.hd-collection-card__media {
		padding-top: 0;
		height: 400px;
	}
	.hd-collection-card__body {
		padding: 12px 0 0;
	}
	.hd-collection-card__title {
		font-size: 20px;
		line-height: 1.4;
	}
	.hd-collection-card__count {
		font-size: 15px;
		line-height: 24px;
	}

	.hd-marquee {
		padding: 20px 0;
	}
	.hd-marquee__item {
		font-size: 32px;
		line-height: 2.4;
		padding: 0 24px;
	}
	.hd-marquee__dot {
		width: 5px;
		height: 5px;
	}
}
