/*
 * Homepage-only sections: hero, categories, carousels, promo banner,
 * value props, testimonials, newsletter.
 */

/* ---- Hero slider ---- */
.hero-slider {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	overflow: hidden;
	background: var(--color-ink-solid);
}

.hero-slider::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.42) 0%,
		rgba(0, 0, 0, 0.12) 16%,
		transparent 30%,
		transparent 72%,
		rgba(0, 0, 0, 0.38) 100%
	);
	z-index: 1;
}

.hero-slider__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform var(--duration-slow, 0.5s) var(--ease-standard, ease);
}

.hero-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	min-height: 100%;
	position: relative;
	display: block;
	overflow: hidden;
}

.hero-slider__image,
.hero-slider__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
}

.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	border: none;
	background: rgba(23, 23, 23, 0.45);
	color: #fff;
	cursor: pointer;
	transition: background var(--duration-base, 0.2s) var(--ease-standard, ease);
}

.hero-slider__arrow:hover,
.hero-slider__arrow:focus-visible {
	background: rgba(23, 23, 23, 0.75);
}

.hero-slider__arrow svg {
	width: 20px;
	height: 20px;
}

.hero-slider__arrow--prev {
	left: var(--space-4);
}

.hero-slider__arrow--next {
	right: var(--space-4);
}

.hero-slider__dots {
	position: absolute;
	left: 50%;
	bottom: clamp(20px, 4vh, 36px);
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: var(--space-2);
}

.hero-slider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: transform var(--duration-base, 0.2s) var(--ease-standard, ease), background var(--duration-base, 0.2s) var(--ease-standard, ease);
}

.hero-slider__dot.is-active {
	background: #fff;
	transform: scale(1.3);
}

/* ---- Hero Slider Sound / Unmute Button (Transparent Circular Icon) ---- */
.hero-slider__sound-btn {
	position: absolute;
	right: clamp(16px, 3vw, 32px);
	bottom: clamp(16px, 3.5vh, 32px);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: #FFFFFF;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
	user-select: none;
}

.hero-slider__sound-btn:hover {
	background: rgba(0, 0, 0, 0.5);
	border-color: rgba(255, 255, 255, 0.8);
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.2);
}

.hero-slider__sound-btn:active {
	transform: scale(0.94);
}

.hero-slider__sound-btn.is-unmuted {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.75);
	color: #FFFFFF;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 10px rgba(255, 255, 255, 0.25);
}

.hero-slider__sound-btn.is-unmuted:hover {
	background: rgba(255, 255, 255, 0.32);
	border-color: #FFFFFF;
	transform: scale(1.08);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 255, 255, 0.4);
}

.hero-slider__sound-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.hero-slider__sound-btn svg {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.hero-slider__sound-btn {
		right: var(--space-3, 12px);
		bottom: var(--space-3, 12px);
		width: 38px;
		height: 38px;
	}

	.hero-slider__sound-btn svg {
		width: 18px;
		height: 18px;
	}
}

/* ---- Categories ---- */
.categories__carousel {
	--category-gap: 10px;
	display: flex;
	gap: var(--category-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: var(--space-2);
	scrollbar-width: none;
	contain: layout;
	cursor: grab;
	user-select: none;
}

.categories__carousel.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.categories__carousel::-webkit-scrollbar {
	display: none;
}

/* 4 cards visible on desktop with comfortable spacing */
.category-carousel__item {
	flex: 0 0 calc((100% - (3 * var(--category-gap))) / 4);
	width: calc((100% - (3 * var(--category-gap))) / 4);
	scroll-snap-align: start;
}

.category-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	text-decoration: none;
	color: inherit;
	transition: opacity var(--duration-fast) ease;
}

.category-card:hover {
	opacity: 0.95;
}

.category-card__media {
	position: relative;
	display: block;
	aspect-ratio: 9 / 16;
	border-radius: var(--radius-lg, 16px);
	overflow: hidden;
	background: var(--color-bg-alt);
}

@media (min-width: 769px) {
	.category-card__media {
		aspect-ratio: auto;
		height: clamp(560px, 68vh, 740px);
	}
}

.category-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 10%;
	display: block;
	transform: scale(1.03);
	transition: transform var(--duration-slow) var(--ease-standard);
}

.category-card:hover .category-card__image {
	transform: scale(1.09);
}

.category-card__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 4px;
}

.category-card__name {
	font-weight: var(--fw-semibold);
	font-size: var(--fs-base, 1rem);
	color: var(--color-ink);
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.category-card__count {
	font-size: var(--fs-xs, 0.75rem);
	color: var(--color-ink-muted);
	line-height: 1.2;
}

@media (max-width: 1100px) {
	.category-carousel__item {
		flex: 0 0 calc((100% - (2 * var(--category-gap))) / 3);
		width: calc((100% - (2 * var(--category-gap))) / 3);
	}
}

@media (max-width: 768px) {
	.category-carousel__item {
		flex: 0 0 calc((100% - var(--category-gap)) / 2.2);
		width: calc((100% - var(--category-gap)) / 2.2);
	}
}

@media (max-width: 600px) {
	.categories__carousel {
		--category-gap: 8px;
	}

	.category-carousel__item {
		flex: 0 0 min(220px, 68vw);
		width: min(220px, 68vw);
	}
}

/* ---- Product grid (featured products) ---- */
.product-grid {
	align-items: start;
	gap: var(--space-6) 10px;
}

@media (max-width: 768px) {
	.product-grid {
		gap: var(--space-5) 8px;
	}
}

@media (max-width: 600px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-4) 8px;
	}
}


/* ---- Promo banner ---- */
.promo-banner {
	padding: var(--space-5) 0;
}

.promo-banner__card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(135deg, var(--color-ink-solid), #3A3A3A);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}

.promo-banner__card:hover {
	box-shadow: var(--shadow-md);
}

/* Image-only variant: the promo image is a fully designed graphic
   with its own baked-in headline/CTA, so it's shown full-bleed at
   its own aspect ratio (no crop, no dark overlay, no HTML text on
   top of it) rather than as a cropped background behind copy. */
.promo-banner__card--image-only {
	display: block;
	width: 100%;
	line-height: 0;
	text-decoration: none;
	cursor: pointer;
}

.promo-banner__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: inherit;
	object-fit: contain;
	object-position: center center;
}

.promo-banner__video {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: inherit;
	object-fit: cover;
	object-position: center center;
}

.promo-banner__copy {
	padding: var(--space-8);
	max-width: 480px;
	color: #fff;
}

.promo-banner__heading {
	color: #fff;
	margin-bottom: var(--space-2);
}

.promo-banner__text {
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: var(--space-5);
}

.promo-banner__copy .btn--secondary {
	color: #fff;
	border-color: #fff;
}

.promo-banner__copy .btn--secondary:hover {
	background: #fff;
	/* This button sits on a permanently-dark image overlay, so its
	   hover fill is a fixed white regardless of theme — the hover text
	   must stay a fixed dark color to match (--color-ink-solid, not
	   --color-ink, since --color-ink flips to near-white in dark mode
	   and would disappear against this white background). */
	color: var(--color-ink-solid);
}

/* ---- Value props Section (Redesigned) ---- */
.value-props {
	position: relative;
	padding: var(--space-8) 0;
	background: transparent;
}

.value-props__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-4);
}

.value-prop {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	padding: var(--space-5) var(--space-4);
	border-radius: var(--radius-lg, 16px);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.07);
	text-align: left;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		background 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

.value-prop:hover {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.055);
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.value-prop__icon-wrap {
	flex-shrink: 0;
}

.value-prop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease,
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.value-prop:hover .value-prop__icon {
	background: #FFFFFF;
	color: #000000;
	border-color: #FFFFFF;
	transform: scale(1.08) rotate(-2deg);
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.value-prop__icon svg {
	width: 24px;
	height: 24px;
	stroke-width: 1.7;
	transition: stroke 0.2s ease;
}

.value-prop__content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.value-prop__title {
	font-family: inherit;
	font-weight: 700;
	font-size: var(--fs-sm, 0.9375rem);
	color: var(--color-ink, #FFFFFF);
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-bottom: 3px;
}

.value-prop__text {
	font-size: var(--fs-xs, 0.8125rem);
	color: var(--color-ink-muted, #A1A1AA);
	line-height: 1.45;
}

/* Light Theme */
[data-theme="light"] .value-prop {
	background: #FFFFFF;
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .value-prop:hover {
	background: #FFFFFF;
	border-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .value-prop__icon {
	background: #F4F4F5;
	border-color: #E4E4E7;
	color: #18181B;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .value-prop:hover .value-prop__icon {
	background: #18181B;
	color: #FFFFFF;
	border-color: #18181B;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .value-prop__title {
	color: #18181B;
}

[data-theme="light"] .value-prop__text {
	color: #71717A;
}

@media (max-width: 1100px) {
	.value-props__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

@media (max-width: 640px) {
	.value-props {
		padding: var(--space-6) 0;
	}

	.value-props__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.value-prop {
		padding: 13px 11px;
		gap: 10px;
		border-radius: 14px;
	}

	.value-prop__icon-wrap {
		flex-shrink: 0;
	}

	.value-prop__icon {
		width: 38px;
		height: 38px;
		min-width: 38px;
		border-radius: 10px;
	}

	.value-prop__icon svg {
		width: 18px;
		height: 18px;
	}

	.value-prop__title {
		font-size: 12.5px;
		line-height: 1.25;
		margin-bottom: 2px;
	}

	.value-prop__text {
		font-size: 11px;
		line-height: 1.35;
	}
}

@media (max-width: 380px) {
	.value-props__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.value-prop {
		padding: 13px 14px;
		gap: 12px;
	}

	.value-prop__icon {
		width: 42px;
		height: 42px;
		min-width: 42px;
	}

	.value-prop__icon svg {
		width: 20px;
		height: 20px;
	}

	.value-prop__title {
		font-size: 13.5px;
	}

	.value-prop__text {
		font-size: 11.5px;
	}
}


/* ---- Testimonials ----
 * A horizontally-scrolling carousel (same prev/next + scroll-snap
 * pattern as the product rows) rather than a static grid, so it works
 * the same way at any item count and never leaves an odd last card
 * stranded alone on a short row. */
.testimonials__item {
	flex: 0 0 auto;
	width: min(360px, 85vw);
	display: flex;
	scroll-snap-align: start;
}

.testimonial-card {
	background: #FFFFFF;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: var(--radius-xl, 20px);
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.testimonial-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.14);
}

.testimonial-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.testimonial-card__stars {
	color: #F59E0B; /* Golden yellow */
	letter-spacing: 2.5px;
	font-size: 1.125rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.testimonial-card__stars .stars-filled {
	color: #F59E0B;
}

.testimonial-card__stars .stars-empty {
	color: #E5E7EB;
}

.testimonial-card__quote-icon {
	color: #9CA3AF;
	opacity: 0.45;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.testimonial-card:hover .testimonial-card__quote-icon {
	opacity: 0.8;
	color: #F59E0B;
}

.testimonial-card__quote-icon svg {
	width: 22px;
	height: 22px;
}

.testimonial-card__text {
	font-size: 0.9375rem;
	line-height: 1.62;
	color: var(--color-ink);
	margin: 0;
	flex-grow: 1;
	font-style: normal;
}

.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-card__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-full);
	background: #171717;
	color: #FFFFFF;
	font-family: var(--font-display, serif);
	font-size: 1rem;
	font-weight: var(--fw-semibold);
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.testimonial-card__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.testimonial-card__name {
	font-size: 0.9375rem;
	font-weight: var(--fw-semibold);
	color: var(--color-ink);
	line-height: 1.25;
}

.testimonial-card__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #059669;
	line-height: 1;
}

.testimonial-card__verified svg {
	width: 12px;
	height: 12px;
	color: #059669;
}

/* Testimonial card in Dark Theme */
[data-theme="dark"] .testimonial-card {
	background: #1A1816;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .testimonial-card:hover {
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
	border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .testimonial-card__author {
	border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .testimonial-card__avatar {
	background: #2D2A26;
	color: #FFFFFF;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .testimonial-card__quote-icon {
	color: #737373;
}

[data-theme="dark"] .testimonial-card__stars .stars-empty {
	color: #404040;
}

/* ---- Homepage newsletter ---- */
.homepage-newsletter__inner {
	text-align: center;
	max-width: 480px;
}

.homepage-newsletter__text {
	color: var(--color-ink-muted);
	margin-bottom: var(--space-5);
}

.homepage-newsletter__form {
	display: flex;
	gap: var(--space-2);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.categories__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.hero-slider__slide {
		aspect-ratio: auto;
		height: 100%;
		min-height: 100%;
	}

	.hero-slider__image,
	.hero-slider__video {
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		object-fit: cover;
		object-position: center center;
	}

	.hero-slider__arrow {
		width: 36px;
		height: 36px;
	}

	.hero-slider__arrow svg {
		width: 16px;
		height: 16px;
	}

	.hero-slider__arrow--prev {
		left: var(--space-2);
	}

	.hero-slider__arrow--next {
		right: var(--space-2);
	}
}

@media (max-width: 768px) {
	/* Mobile: Show hero slider, video, and banner in square (1:1), not portrait */
	.hero-slider {
		height: auto;
		min-height: unset;
		aspect-ratio: 1 / 1;
		width: 100%;
		overflow: hidden;
	}

	.hero-slider__track {
		height: 100%;
		aspect-ratio: 1 / 1;
	}

	.hero-slider__slide {
		aspect-ratio: 1 / 1;
		height: 100%;
		min-height: unset;
	}

	.hero-slider__image,
	.hero-slider__video {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		object-position: center center;
	}

	.promo-banner__card:has(.promo-banner__video),
	.promo-banner__video {
		aspect-ratio: 1 / 1;
		object-fit: cover;
		object-position: center center;
	}

	.categories__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.promo-banner {
		padding: var(--space-4) 0;
	}

	.promo-banner__card {
		border-radius: var(--radius-md);
	}

	.promo-banner__copy {
		padding: var(--space-4);
	}
}

@media (max-width: 600px) {
	.hero-slider {
		height: auto;
		min-height: unset;
		aspect-ratio: 1 / 1;
		width: 100%;
	}

	.hero-slider__slide {
		aspect-ratio: 1 / 1;
		height: 100%;
		min-height: unset;
	}

	.hero-slider__image,
	.hero-slider__video {
		width: 100%;
		height: 100%;
		min-width: 100%;
		min-height: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		object-position: center center;
	}

	.hero-slider__arrow {
		width: 32px;
		height: 32px;
	}

	.hero-slider__arrow svg {
		width: 14px;
		height: 14px;
	}

	.hero-slider__dots {
		bottom: clamp(14px, 3vh, 22px);
	}

	.hero-slider__sound-btn {
		right: clamp(12px, 3vw, 20px);
		bottom: clamp(14px, 2.5vh, 22px);
		width: 38px;
		height: 38px;
	}
}

/* Phones only (see header.css's "standard mobile breakpoint" comment) —
   the grid becomes a swipeable horizontal slider so all categories stay
   reachable without stacking into a tall, scroll-heavy 2-column block. */


@media (max-width: 480px) {
	.promo-banner {
		padding: var(--space-3) 0;
	}

	.homepage-newsletter__form {
		flex-direction: column;
	}
}

/* ==========================================================================
   Time-Based Deals & Limited-Time Offers Section
   ========================================================================== */

.time-deals {
	position: relative;
	padding: var(--space-5) 0;
}

.time-deals__card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.time-deals__card:hover {
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-md);
}

/* Deal Media (Left column on desktop) */
.time-deals__media {
	flex: 0 0 48%;
	max-width: 48%;
	position: relative;
	min-height: 420px;
	background: var(--color-bg-alt);
	overflow: hidden;
	display: flex;
}

.time-deals__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform var(--duration-slow) var(--ease-standard);
}

.time-deals__card:hover .time-deals__image {
	transform: scale(1.03);
}

.time-deals__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 380px;
	background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
}

.time-deals__media-icon {
	font-size: 4rem;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Deal Content (Right column on desktop) */
.time-deals__content {
	flex: 1 1 52%;
	padding: clamp(var(--space-6), 3.5vw, var(--space-10));
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	background: var(--color-surface);
}

/* Badge */
.time-deals__badge-wrap {
	margin-bottom: var(--space-3);
}

.time-deals__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding: 6px 14px;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: var(--fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--color-accent-tint);
	color: var(--color-accent);
	border: 1px solid rgba(229, 57, 53, 0.25);
}

/* Title */
.time-deals__title {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 2.4vw + 0.5rem, 2.75rem);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
	color: var(--color-ink);
	margin: 0 0 var(--space-3) 0;
	letter-spacing: -0.01em;
}

/* Description */
.time-deals__desc {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-relaxed);
	color: var(--color-ink-muted);
	margin: 0 0 var(--space-4) 0;
	max-width: 520px;
}

/* Discount Pill */
.time-deals__discount {
	margin-bottom: var(--space-6);
}

.time-deals__discount-pill {
	display: inline-block;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	background: var(--color-ink-solid);
	color: #ffffff;
}

/* Live Countdown Container */
.deals-countdown {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-6);
	background: var(--color-bg-alt);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
}

.deals-countdown__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	padding: var(--space-2) var(--space-3);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
}

.deals-countdown__num {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1.8vw, 2rem);
	font-weight: var(--fw-bold);
	line-height: 1;
	color: var(--color-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.deals-countdown__lbl {
	font-family: var(--font-body);
	font-size: 0.68rem;
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-ink-muted);
	margin-top: 4px;
	line-height: 1;
}

.deals-countdown__colon {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: var(--fw-bold);
	color: var(--color-accent);
	margin-top: -6px;
	user-select: none;
}

/* Action CTA */
.time-deals__action {
	width: auto;
}

.time-deals__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	min-height: 50px;
	padding: var(--space-3) var(--space-8);
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: var(--fw-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--color-cta-bg);
	color: var(--color-cta-text) !important;
	border: none;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: background-color var(--duration-fast) var(--ease-standard),
		transform var(--duration-fast) var(--ease-standard),
		box-shadow var(--duration-fast) var(--ease-standard);
}

.time-deals__cta:hover {
	background: var(--color-cta-hover-bg);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(229, 57, 53, 0.25);
}

.time-deals__cta:active {
	transform: scale(0.98);
}

.time-deals__cta-icon {
	transition: transform var(--duration-fast) var(--ease-standard);
}

.time-deals__cta:hover .time-deals__cta-icon {
	transform: translateX(4px);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
	.time-deals__card {
		flex-direction: column;
	}

	.time-deals__media {
		flex: none;
		max-width: 100%;
		width: 100%;
		min-height: 280px;
		height: 320px;
	}

	.time-deals__content {
		flex: none;
		width: 100%;
		padding: var(--space-6) var(--space-5);
	}
}

@media (max-width: 540px) {
	.time-deals {
		padding: var(--space-3) 0;
	}

	.time-deals__media {
		height: 220px;
		min-height: 200px;
	}

	.time-deals__content {
		padding: var(--space-5) var(--space-4);
	}

	.time-deals__title {
		font-size: 1.6rem;
	}

	.time-deals__desc {
		font-size: var(--fs-sm);
		margin-bottom: var(--space-3);
	}

	.time-deals__discount {
		margin-bottom: var(--space-4);
	}

	.deals-countdown {
		width: 100%;
		justify-content: space-between;
		padding: var(--space-2) var(--space-3);
		gap: var(--space-1);
		margin-bottom: var(--space-5);
	}

	.deals-countdown__box {
		min-width: 52px;
		padding: 6px 4px;
		flex: 1;
	}

	.deals-countdown__num {
		font-size: 1.35rem;
	}

	.deals-countdown__lbl {
		font-size: 0.6rem;
		letter-spacing: 0.04em;
	}

	.deals-countdown__colon {
		font-size: 1.1rem;
		margin-top: -4px;
	}

	.time-deals__action {
		width: 100%;
	}

	.time-deals__cta {
		width: 100%;
	}
}

/* ==========================================================================
   HOMEPAGE SCROLL-OVERLAY: FIRST SECTION (HERO) OVERLAID BY CATEGORIES
   ========================================================================== */

/* Container safety: ensure .site-main allows sticky positioning without clipping */
.home .site-main {
	overflow: visible;
	position: relative;
}

/* First Section: Hero slider stays sticky pinned at top 0 on desktop while scrolling starts */
@media (min-width: 769px) {
	.home .site-main > .hero-slider {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		width: 100%;
		height: 100vh;
		height: 100svh;
		height: 100dvh;
		min-height: 100vh;
		min-height: 100svh;
		min-height: 100dvh;
		z-index: 1;
	}
}

/* Second Section: "Shop by Category" overlays the hero as user scrolls down */
.home .site-main > .categories {
	position: relative;
	z-index: 2;
	background-color: var(--color-bg);
	border-top-left-radius: 28px;
	border-top-right-radius: 28px;
	box-shadow: 0 -16px 40px -4px rgba(0, 0, 0, 0.12);
	padding-top: var(--space-4, 18px);
	padding-bottom: var(--space-6, 32px);
}

.home .site-main > .categories .section__head {
	margin-bottom: var(--space-3, 14px);
}

.home .site-main > .categories .section__eyebrow {
	margin-bottom: 2px;
}

[data-theme="dark"] .home .site-main > .categories {
	box-shadow: 0 -20px 48px -4px rgba(0, 0, 0, 0.6);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 769px) {
	.home .site-main > .categories {
		position: relative;
		width: 100%;
		min-height: 100vh;
		min-height: 100svh;
		min-height: 100dvh;
		z-index: 2;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		padding-top: calc(var(--header-height, 70px) + 16px);
		padding-bottom: 32px;
		box-sizing: border-box;
	}

	.home .site-main > .categories .container {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	.home .site-main > .categories .section__head {
		flex-shrink: 0;
		margin-bottom: 12px;
	}

	.home .site-main > .categories .categories__carousel {
		flex-shrink: 0;
	}
}

/* Third Section: Time-Based Deals (Festival Flash Sale) - Full screen sticky, next section overlays it */
.home .site-main > .time-deals {
	position: relative;
	z-index: 2;
	background-color: var(--color-bg);
	box-sizing: border-box;
}

@media (min-width: 769px) {
	.home .site-main > .time-deals {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		width: 100%;
		height: 100vh;
		height: 100svh;
		height: 100dvh;
		min-height: 100vh;
		min-height: 100svh;
		min-height: 100dvh;
		z-index: 2;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		padding-top: calc(var(--header-height, 70px) + 16px);
		padding-bottom: 24px;
		box-sizing: border-box;
		overflow: hidden;
	}

	.home .site-main > .time-deals .container {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		flex-grow: 1;
	}

	.home .site-main > .time-deals .time-deals__card {
		width: 100%;
		height: 100%;
		max-height: calc(100vh - var(--header-height, 70px) - 40px);
		min-height: clamp(520px, 76vh, 780px);
		display: flex;
		flex-direction: row;
		align-items: stretch;
	}

	.home .site-main > .time-deals .time-deals__media {
		flex: 0 0 50%;
		max-width: 50%;
		height: 100%;
		min-height: 100%;
	}

	.home .site-main > .time-deals .time-deals__content {
		flex: 0 0 50%;
		max-width: 50%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: clamp(var(--space-6), 3vw, var(--space-8));
	}
}

/* Fourth Section: Featured Products - Overlays Time-Based Deals as user scrolls down */
.home .site-main > .featured-products {
	position: relative;
	z-index: 4;
	background-color: var(--color-bg-alt);
	border-top-left-radius: 28px;
	border-top-right-radius: 28px;
	box-shadow: 0 -18px 44px -4px rgba(0, 0, 0, 0.14);
	padding-top: var(--space-8, 48px);
}

[data-theme="dark"] .home .site-main > .featured-products {
	box-shadow: 0 -22px 50px -4px rgba(0, 0, 0, 0.65);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subsequent sections scroll naturally in standard document flow */
.home .site-main > section:not(.hero-slider):not(.categories):not(.time-deals):not(.featured-products) {
	position: relative;
	z-index: 4;
	background-color: var(--color-bg);
	min-height: auto;
	height: auto;
}

.home .site-main > section.section--alt:not(.featured-products) {
	background-color: var(--color-bg-alt);
}

/* Footer sits cleanly in normal flow */
.home .site-footer {
	position: relative;
	z-index: 5;
}