/* Hero slider */
.hero {
	position: relative;
	height: clamp(520px, 72vh, 700px);
	overflow: hidden;
}
.hero__track { position: relative; width: 100%; height: 100%; }
.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 600ms ease, visibility 600ms ease;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background: var(--color-overlay);
}
.hero__overlay .container { width: 100%; }
.hero__text-block { max-width: 560px; }
.hero__headline {
	font-family: var(--font-heading);
	font-size: var(--text-hero);
	font-weight: 700;
	color: #fff;
	line-height: var(--leading-tight);
	margin: var(--space-3) 0 0;
}
.hero__text {
	font-size: var(--text-lg);
	color: rgba(255, 255, 255, .92);
	line-height: var(--leading-body);
	margin: var(--space-4) 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hero__cta-row { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.hero__cta-secondary {
	color: #fff;
	font-weight: 600;
	font-size: var(--text-base);
	text-decoration: underline;
	text-underline-offset: 4px;
	transition: opacity var(--transition);
}
.hero__cta-secondary:hover { opacity: .8; }

.hero__dots {
	position: absolute;
	bottom: var(--space-6);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: var(--space-2);
	z-index: 2;
}
.hero__dot {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-pill);
	background: rgba(255, 255, 255, .45);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: width var(--transition), background var(--transition);
}
.hero__dot.is-active { width: 24px; background: #fff; }

.hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	backdrop-filter: blur(4px);
	border: none;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: background var(--transition);
}
.hero__arrow:hover { background: rgba(255, 255, 255, .3); }
.hero__arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.hero__arrow--prev { left: var(--space-6); }
.hero__arrow--next { right: var(--space-6); }

@media (min-width: 900px) {
	.hero__arrow { display: flex; }
}
@media (max-width: 899px) {
	.hero { height: clamp(440px, 65vh, 560px); }
}
@media (max-width: 599px) {
	.hero { height: min(78vh, 560px); min-height: 480px; }
	.hero__overlay { align-items: flex-end; padding-bottom: var(--space-16); }
	.hero__text { font-size: var(--text-base); }
}
@media (prefers-reduced-motion: reduce) {
	.hero__slide { transition-duration: 100ms; }
}

/* Shared light-on-image variants */
.overline--light {
	display: block;
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-overline);
	color: #fff;
	opacity: .85;
	font-weight: 600;
	margin-block-end: var(--space-2);
}
.btn--solid-light { background: #fff; color: var(--color-heading); }
.btn--solid-light:hover { background: var(--color-bg); }

/* Section header pattern (Latest Arrivals / Bestsellers / FAQ) */
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: var(--space-8);
	gap: var(--space-4);
}
.section-header__heading { margin: 0; }
.section-header__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-accent);
	text-decoration: none;
	white-space: nowrap;
}
.section-header__link:hover { color: var(--color-accent-hover); text-decoration: underline; }
.section-header__link-arrow { display: inline-block; transition: transform var(--transition); }
.section-header__link:hover .section-header__link-arrow { transform: translateX(2px); }

/* Product card (shared with Phase 3 shop archive) */
.product-card__link { display: block; text-decoration: none; }
.product-card__image {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
}
.product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition), opacity var(--transition);
}
.product-card__img--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
}
@media (hover: hover) {
	.product-card:hover .product-card__img--primary { transform: scale(1.04); }
	.product-card:has(.product-card__img--secondary):hover .product-card__img--primary { transform: none; opacity: 0; }
	.product-card:hover .product-card__img--secondary { opacity: 1; }
}
.product-card--soldout .product-card__img { opacity: .7; }

.badge {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-overline);
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-sm);
	color: #fff;
}
.product-card .badge {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	z-index: 1;
}
.badge--sale { background: var(--color-badge-sale); }
.badge--soldout { background: var(--color-badge-soldout); }

.product-card__quickview {
	position: absolute;
	left: var(--space-3);
	right: var(--space-3);
	bottom: var(--space-3);
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(4px);
	color: var(--color-heading);
	font-size: var(--text-sm);
	font-weight: 600;
	border-radius: var(--radius-pill);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--transition), transform var(--transition);
}
@media (hover: hover) {
	.product-card:hover .product-card__quickview,
	.product-card:focus-within .product-card__quickview {
		opacity: 1;
		transform: translateY(0);
	}
}
@media (hover: none) {
	.product-card__quickview { display: none; }
}

.product-card__body { margin-top: var(--space-3); }
.product-card__vendor {
	display: block;
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: var(--tracking-overline);
	color: var(--color-muted);
	font-weight: 500;
}
.product-card__name {
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 500;
	color: var(--color-ink);
	margin: var(--space-1) 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card:hover .product-card__name { color: var(--color-accent); }
.product-card__price {
	display: block;
	margin-top: var(--space-1);
	font-size: var(--text-base);
	font-weight: 600;
	color: var(--color-heading);
}
.product-card__price ins { text-decoration: none; color: var(--color-accent); font-weight: 600; }
.product-card__price del { color: var(--color-muted); font-weight: 400; margin-inline-end: var(--space-2); opacity: .7; }

/* Featured collection banner + floating product card */
.collection-feature { position: relative; height: 420px; }
.collection-feature__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-feature__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(31,45,42,.55), rgba(31,45,42,.15));
}
.collection-feature__inner { position: relative; height: 100%; }
.collection-feature__text {
	padding: var(--space-8) 0;
	max-width: 440px;
}
.collection-feature__heading { font-size: var(--text-3xl); color: #fff; margin: var(--space-3) 0 0; }
.collection-feature__text-body { font-size: var(--text-base); color: rgba(255,255,255,.92); margin: var(--space-4) 0 var(--space-6); line-height: var(--leading-body); }

.collection-card {
	background: var(--color-surface);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-drawer);
	padding: var(--space-4);
	margin: 0 var(--space-4) calc(-1 * var(--space-12));
}
.collection-card__viewport { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; }
.collection-card__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 240ms ease, visibility 240ms ease;
	text-decoration: none;
	display: block;
}
.collection-card__slide.is-active { opacity: 1; visibility: visible; }
.collection-card__image { width: 100%; height: 100%; object-fit: cover; }
.collection-card__body { display: block; margin-top: var(--space-3); }
.collection-card__vendor { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-overline); color: var(--color-muted); }
.collection-card__name {
	display: block;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--color-ink);
	margin-top: var(--space-1);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.collection-card__price { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-heading); margin-top: var(--space-1); }
.collection-card__controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-3); }
.collection-card__dots { display: flex; gap: var(--space-2); }
.collection-card__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-border);
	border: none;
	padding: 0;
	cursor: pointer;
}
.collection-card__dot.is-active { background: var(--color-accent); }
.collection-card__arrows { display: flex; gap: var(--space-2); }
.collection-card__arrow {
	width: 32px;
	height: 32px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
}
.collection-card__arrow svg { width: 16px; height: 16px; }
.collection-card__arrow:hover { border-color: var(--color-accent); }

@media (max-width: 899px) {
	.collection-feature__text { padding: var(--space-8); }
}
@media (min-width: 900px) {
	.collection-feature { height: clamp(560px, 75vh, 720px); }
	.collection-feature__inner { display: block; }
	.collection-feature__text {
		position: absolute;
		bottom: var(--space-16);
		left: var(--container-pad);
		padding: 0;
	}
	.collection-card {
		position: absolute;
		bottom: var(--space-16);
		right: var(--container-pad);
		width: 320px;
		margin: 0;
	}
}
@media (min-width: 900px) and (max-width: 1199px) {
	.collection-card { width: 280px; }
}

/* FAQ accordion (homepage excerpt — full list lives on /faq/ in Phase 4) */
.home-faq { background: var(--color-surface); border-top: 1px solid var(--color-border); padding-block: var(--section-pad); }
.home-faq__inner { max-width: 800px; }
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__toggle { padding-block: var(--space-4); }
.faq-item__question { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 600; color: var(--color-heading); }
.faq-item__toggle:hover .faq-item__question { color: var(--color-accent); }
.faq-item__icon svg { width: 100%; height: 100%; stroke: var(--color-muted); fill: none; stroke-width: 1.5; }
.accordion__toggle[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { font-size: var(--text-base); color: var(--color-ink); line-height: var(--leading-body); max-width: 640px; padding-bottom: var(--space-6); margin: 0; }
@media (min-width: 900px) {
	.faq-item__toggle { padding-block: var(--space-6); }
	.faq-item__question { font-size: var(--text-lg); }
}

/* Newsletter */
.newsletter { background: var(--color-primary); padding-block: var(--space-16); }
.newsletter__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
.newsletter__heading { color: #fff; font-size: var(--text-2xl); margin: var(--space-3) 0 0; }
.newsletter__body { color: rgba(255,255,255,.8); font-size: var(--text-base); margin: var(--space-3) 0 0; }
.newsletter__form-col { max-width: 480px; }
.newsletter__row { display: flex; gap: var(--space-2); }
.newsletter__input {
	flex: 1;
	height: 48px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: var(--radius-pill);
	padding-inline: var(--space-6);
	color: #fff;
	font-size: var(--text-base);
}
.newsletter__input::placeholder { color: rgba(255,255,255,.5); }
.newsletter__input:focus { outline: none; border-color: var(--color-accent); }
.newsletter__input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.newsletter__submit { background: var(--color-accent); color: #fff; flex-shrink: 0; }
.newsletter__submit:hover:not(:disabled) { background: var(--color-accent-hover); }
.newsletter__submit:disabled { opacity: .7; cursor: default; }
.newsletter__error { color: #F2B8A2; font-size: var(--text-sm); margin: var(--space-2) 0 0; min-height: 1em; }
.newsletter__disclaimer { color: rgba(255,255,255,.6); font-size: var(--text-xs); margin: var(--space-3) 0 0; }
.newsletter__success { color: #fff; font-size: var(--text-base); }
.newsletter__input[aria-invalid="true"] { border-color: #F2B8A2; }

@media (min-width: 900px) {
	.newsletter { padding-block: var(--space-24); }
	.newsletter__grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
	.newsletter__form-col { justify-self: end; }
}
@media (max-width: 599px) {
	.newsletter__row { flex-direction: column; }
	.newsletter__submit { width: 100%; }
}

/* Homepage product grid sections */
.home-grid { padding-block: var(--section-pad); background: var(--color-bg); }
.home-grid__products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-4) var(--space-3);
}
@media (min-width: 600px) {
	.home-grid__products { gap: var(--space-6) var(--space-4); }
}
@media (min-width: 900px) {
	.home-grid__products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
	.home-grid__products { grid-template-columns: repeat(4, 1fr); }
}

/* Trust badges */
.trust-badges {
	background: var(--color-surface);
	border-block: 1px solid var(--color-border);
	padding-block: var(--space-16);
}
.trust-badges__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
}
.trust-badge__icon svg { width: 32px; height: 32px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }
.trust-badge__heading { font-size: var(--text-base); font-weight: 600; color: var(--color-heading); margin: var(--space-3) 0 0; }
.trust-badge__text {
	font-size: var(--text-sm);
	color: var(--color-muted);
	line-height: var(--leading-body);
	margin: var(--space-1) 0 0;
}
.trust-badge__link {
	display: inline-block;
	margin-top: var(--space-2);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-accent);
	text-decoration: none;
}
.trust-badge__link:hover { text-decoration: underline; color: var(--color-accent-hover); }
@media (max-width: 899px) {
	.trust-badge { display: flex; align-items: flex-start; gap: var(--space-4); text-align: left; }
}
@media (min-width: 900px) {
	.trust-badges__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
	.trust-badge { text-align: center; max-width: 320px; margin-inline: auto; }
	.trust-badge__text {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* Secondary promo banner */
.promo-banner { position: relative; min-height: 360px; }
.promo-banner__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-banner__overlay {
	position: relative;
	min-height: inherit;
	display: flex;
	align-items: center;
	background: var(--color-overlay);
	padding-block: var(--space-16);
}
.promo-banner__text-block { max-width: 520px; }
.promo-banner__heading { font-size: var(--text-3xl); color: #fff; font-weight: 700; margin: var(--space-3) 0 0; }
.promo-banner__text { font-size: var(--text-base); color: rgba(255,255,255,.92); margin: var(--space-4) 0 0; line-height: var(--leading-body); }
@media (min-width: 900px) {
	.promo-banner { min-height: 420px; }
}

/* Two-tile promo row */
.promo-tiles { padding-block: var(--section-pad); }
.promo-tiles__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.promo-tile {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-md);
	overflow: hidden;
	text-decoration: none;
}
.promo-tile__image { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.promo-tile__overlay { position: absolute; inset: 0; background: var(--color-overlay); transition: background var(--transition); }
.promo-tile:hover .promo-tile__image { transform: scale(1.03); }
.promo-tile:hover .promo-tile__overlay { background: rgba(31, 45, 42, .55); }
.promo-tile__content { position: absolute; inset-inline: 0; bottom: 0; padding: var(--space-6); }
.promo-tile__heading { font-size: var(--text-xl); font-weight: 600; color: #fff; margin: var(--space-2) 0 0; }
.promo-tile__text {
	font-size: var(--text-sm);
	color: rgba(255,255,255,.92);
	margin: var(--space-2) 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.promo-tile__links { display: flex; gap: var(--space-6); margin-top: var(--space-4); }
.promo-tile__link { color: #fff; font-weight: 600; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 4px; }
.promo-tile__link--secondary { opacity: .8; }
@media (min-width: 900px) {
	.promo-tiles__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
	.promo-tile { aspect-ratio: 4 / 3; }
	.promo-tile__content { padding: var(--space-8); }
}
