.shop-layout-toggle {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0.25rem;
	border-radius: 999px;
	background: var(--clr-bg-soft, #f6f6f2);
	border: 1px solid var(--clr-border, #e0e0d8);
}

.shop-layout-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--clr-text-3, #5c6478);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.shop-layout-toggle__btn:hover {
	color: var(--clr-text, #0f1020);
}

.shop-layout-toggle__btn.is-active {
	background: var(--clr-bg, #fff);
	color: var(--clr-text, #0f1020);
	box-shadow: 0 1px 4px rgba(15, 16, 32, 0.08);
}

.shop-family-catalog {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.shop-family-section {
	--family-color: var(--clr-bg-soft, #f6f6f2);
}

.shop-family-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	margin-bottom: 1rem;
	padding: 1rem 1.25rem;
	border-radius: var(--r-xl, 16px);
	background: color-mix(in srgb, var(--family-color) 42%, #fff 58%);
	border: 1px solid color-mix(in srgb, var(--family-color) 55%, var(--clr-border, #e0e0d8) 45%);
}

.shop-family-section__titles {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.shop-family-section__swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background: var(--family-color);
	border: 1px solid rgba(15, 16, 32, 0.12);
	flex-shrink: 0;
}

.shop-family-section__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--clr-text, #15203a);
}

.shop-family-section__desc {
	flex: 1 1 100%;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--clr-text-3, #5c6478);
}

.shop-family-section__view-all {
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	color: var(--clr-text, #15203a);
	white-space: nowrap;
}

.shop-family-section__view-all:hover {
	color: var(--clr-green, #1a8a52);
}

.shop-family-section__grid {
	margin-top: 0;
}

.shop-pipeline-section {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--clr-border, #e0e0d8);
	opacity: 0.92;
}

.pdp-pipeline-band {
	margin-top: var(--sp-16, 4rem);
	padding: 0 0 var(--sp-16, 4rem);
	width: 100%;
	box-sizing: border-box;
}

.pdp-pipeline-band .shop-pipeline-section {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
	opacity: 1;
}

.shop-family-section__title,
.shop-family-section__desc,
.family-landing-hero__title,
.family-landing-hero__count {
	color: #15203a;
}

.shop-family-section__desc,
.family-landing-hero__count {
	color: color-mix(in srgb, #15203a 72%, transparent);
}

body.retaup-family-landing--has-cinematic {
	overflow-x: clip;
}

.shop-archive--cinematic-stack {
	overflow-x: clip;
	max-width: 100%;
}

.family-landing-cinematic-stack {
	position: relative;
	width: 100vw;
	max-width: 100%;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
}

@supports (width: 100dvw) {
	.family-landing-cinematic-stack {
		width: 100dvw;
		margin-left: calc(50% - 50dvw);
		margin-right: calc(50% - 50dvw);
	}
}

.family-landing-cinematic-stack .family-landing-cinematic {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
}

.family-landing-cinematic {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-bottom: 1rem;
	overflow: hidden;
	line-height: 0;
}

.family-landing-cinematic__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom center;
}

.family-landing-cinematic__overlay {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100%;
	padding: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 16, 32, 0.45) 0%,
		rgba(15, 16, 32, 0.12) 22%,
		transparent 45%
	);
}

.family-landing-cinematic__overlay-top {
	padding-top: 1.25rem;
}

.family-landing-cinematic__overlay .ac-breadcrumb {
	margin-bottom: 0;
}

.family-landing-cinematic__overlay .ac-breadcrumb li,
.family-landing-cinematic__overlay .ac-breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
}

.family-landing-cinematic__overlay .ac-breadcrumb a:hover {
	color: #fff;
}

.family-landing-cinematic__overlay-bottom {
	margin-top: auto;
	padding-bottom: 1.5rem;
}

.family-landing-hero--overlay {
	width: 100%;
	max-width: 70%;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.family-landing-hero__overlay-panel {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border-radius: var(--r-xl, 16px);
	background: color-mix(
		in srgb,
		color-mix(in srgb, var(--family-color, #d8dcdf) 42%, #fff 58%) 88%,
		transparent
	);
	border: 1px solid color-mix(in srgb, var(--family-color, #d8dcdf) 55%, rgba(255, 255, 255, 0.45) 45%);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 24px rgba(15, 16, 32, 0.1);
	overflow: hidden;
}

.family-landing-hero--overlay .family-landing-hero__band {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--family-color, #d8dcdf) 55%, var(--clr-border, #e0e0d8) 45%);
	border-radius: 0;
	padding: 1rem 1.25rem 0.85rem;
}

.family-landing-hero--overlay .family-landing-hero__intro {
	margin: 0;
	width: 100%;
	padding: 0.9rem 1.25rem 1.15rem;
	border-radius: 0;
	background: transparent;
	color: color-mix(in srgb, #15203a 82%, transparent);
	box-shadow: none;
}

.family-landing-hero--overlay .family-landing-hero__intro p {
	color: color-mix(in srgb, #15203a 82%, transparent);
}

.family-landing-hero--overlay .family-landing-hero__intro p:last-child {
	margin-bottom: 0;
}

.family-landing-hero-after-cinematic {
	display: none;
}

@media (max-width: 767px) {
	.family-landing-cinematic__overlay--desktop {
		display: none;
	}

	.family-landing-hero-after-cinematic {
		display: block;
		margin-top: 1.25rem;
	}
}

@media (min-width: 768px) {
	.family-landing-hero-after-cinematic {
		display: none;
	}
}

@media (min-width: 768px) {
	.family-landing-cinematic-stack {
		height: 700px;
		max-height: 700px;
	}

	.family-landing-cinematic-stack .family-landing-cinematic,
	.family-landing-cinematic-stack .family-landing-cinematic__img {
		max-height: 700px;
	}

	.family-landing-cinematic__overlay {
		height: 700px;
		max-height: 700px;
	}
}

@media (max-width: 767px) {
	.family-landing-cinematic-stack {
		height: clamp(220px, 52vw, 280px);
	}

	.family-landing-cinematic-stack .family-landing-cinematic,
	.family-landing-cinematic-stack .family-landing-cinematic__img,
	.family-landing-cinematic__overlay {
		max-height: clamp(220px, 52vw, 280px);
	}

	.family-landing-cinematic-stack .family-landing-cinematic__img {
		object-position: 88% 100%;
	}
}

.shop-archive--cinematic-stack.shop-archive--hero {
	padding-top: 0;
}

.shop-archive--family-landing.shop-archive--hero:has(.family-landing-cinematic-stack) {
	padding-top: 0;
}

body.retaup-family-landing--has-cinematic .shop-archive--family-grid.section--sm {
	padding-top: 1.25rem;
}

body.retaup-family-landing--has-cinematic .family-landing-hero__intro {
	margin-top: 0.75rem;
}

.family-landing-hero {
	margin-bottom: 1.25rem;
}

.family-landing-hero--with-cinematic {
	margin-top: -0.35rem;
}

.family-landing-hero--with-cinematic .family-landing-hero__band {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.family-landing-hero__band {
	margin-bottom: 0;
}

.family-landing-hero__count {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
}

.family-landing-hero__intro {
	margin: 1rem 0 0;
	padding: 0 0.15rem;
	max-width: 46rem;
	color: color-mix(in srgb, #15203a 78%, transparent);
	font-size: 1rem;
	line-height: 1.6;
}

.family-landing-hero__intro p {
	margin: 0 0 0.75rem;
}

.family-landing-hero__intro p:last-child {
	margin-bottom: 0;
}

.shop-archive--family-landing .shop-toolbar {
	margin-top: 1.25rem;
}

.ac-product-grid--family-landing {
	margin-top: 0.5rem;
}
