/*
 * /app home hub — shared chrome, product rails, and hero variants.
 * Hero type is driven by App settings layout (see wc_app_get_home_hero_type).
 * Depends on: app-shell.css
 */

/* --- Shell + main (all home layouts share the same look below the hero type) --- */
body.wc-app--route-home.wc-app-shell {
	background: var(--wc-app-color-page-bg);
	color: var(--wc-app-color-title);
}

body.wc-app--route-home .wc-app-device {
	background: var(--wc-app-cart-bg);
	box-shadow: 0 12px 36px rgba(var(--wc-app-color-accent-rgb), 0.14);
}

body.wc-app--route-home .wc-app-main {
	padding-top: 10px;
	padding-left: 14px;
	padding-right: 14px;
	padding-bottom: var(--wc-app-main-bottom-tabs);
}

body.wc-app--route-home .wc-app-topbar__location {
	color: var(--wc-app-cart-title);
}

body.wc-app--route-home .wc-app-topbar__location-text {
	font-size: 1.02rem;
	font-weight: 700;
}

body.wc-app--route-home .wc-app-topbar__notif {
	width: 42px;
	height: 42px;
	margin: -4px 0;
	background: var(--wc-app-cart-surface);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	color: var(--wc-app-cart-title);
}

body.wc-app--route-home .wc-app-topbar__notif:hover,
body.wc-app--route-home .wc-app-topbar__notif:focus {
	outline: none;
	background: var(--wc-app-cart-surface);
	color: var(--wc-app-cart-primary);
	box-shadow: 0 2px 14px rgba(var(--wc-app-color-accent-rgb), 0.28);
}

body.wc-app--route-home .wc-app-home {
	gap: 26px;
}

body.wc-app--route-home .wc-app-section__title {
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--wc-app-color-title);
}

body.wc-app--route-home .wc-app-section__seeall {
	color: var(--wc-app-color-accent);
}

/* Horizontal product rails */
body.wc-app--route-home .wc-app-home .wc-app-section--products .wc-app-product-grid {
	margin-left: -14px;
	margin-right: -14px;
}

body.wc-app--route-home .wc-app-home .wc-app-section--products .wc-app-product-grid .woocommerce ul.products {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap !important;
	grid-template-columns: unset !important;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 14px;
	padding: 2px 14px 12px !important;
	scrollbar-width: none;
	box-sizing: border-box;
}

body.wc-app--route-home .wc-app-home .wc-app-section--products .wc-app-product-grid .woocommerce ul.products::-webkit-scrollbar {
	display: none;
}

body.wc-app--route-home .wc-app-home .wc-app-section--products .wc-app-product-grid .woocommerce ul.products li.product {
	flex: 0 0 min(46vw, 176px);
	width: min(46vw, 176px) !important;
	max-width: min(46vw, 176px);
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

/* Pastel tiles */
body.wc-app--route-home .wc-app-section--products ul.products li.product {
	position: relative;
	display: block;
	background: var(--tile-bg, var(--wc-app-home-pastel-a));
	border-radius: 22px;
	border: 1px solid var(--wc-app-color-border-soft);
	box-shadow: 0 4px 20px rgba(17, 17, 17, 0.06);
	overflow: visible;
}

body.wc-app--route-home .wc-app-section--products ul.products li.product:nth-child(4n + 1) {
	--tile-bg: var(--wc-app-home-pastel-a);
}

body.wc-app--route-home .wc-app-section--products ul.products li.product:nth-child(4n + 2) {
	--tile-bg: var(--wc-app-home-pastel-b);
}

body.wc-app--route-home .wc-app-section--products ul.products li.product:nth-child(4n + 3) {
	--tile-bg: var(--wc-app-home-pastel-c);
}

body.wc-app--route-home .wc-app-section--products ul.products li.product:nth-child(4n) {
	--tile-bg: var(--wc-app-home-pastel-d);
}

body.wc-app--route-home .wc-app-section--products ul.products li.product a.woocommerce-loop-product__link {
	position: relative;
	display: block;
}

/* body.wc-app--route-home .wc-app-section--products ul.products li.product a.woocommerce-loop-product__link::after {
	content: "\f290";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 17px;
	line-height: 38px;
	text-align: center;
	position: absolute;
	top: 20px;
	right: 20px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--wc-app-cart-surface, #fff);
	color: var(--wc-app-cart-primary);
	box-shadow: 0 2px 12px rgba(var(--wc-app-color-accent-rgb), 0.35);
	pointer-events: none;
	z-index: 2;
} */

body.wc-app--route-home .wc-app-section--products ul.products li.product img {
	border-radius: 22px 22px 0 0 !important;
	object-fit: contain !important;
	aspect-ratio: 1;
	background: transparent !important;
}

body.wc-app--route-home .wc-app-section--products ul.products li.product .woocommerce-loop-product__title {
	padding: 12px 12px 4px !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	color: var(--wc-app-color-title) !important;
}

body.wc-app--route-home .wc-app-section--products ul.products li.product .price {
	padding: 2px 12px 14px !important;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	color: var(--wc-app-color-accent) !important;
}

body.wc-app--route-home .wc-app-section--pages .wc-app-chip {
	background: var(--wc-app-color-surface);
	border: 1px solid var(--wc-app-color-border);
	color: var(--wc-app-color-title);
	border-radius: 999px;
	font-weight: 600;
}

body.wc-app--route-home .wc-app-section--pages .wc-app-chip:hover,
body.wc-app--route-home .wc-app-section--pages .wc-app-chip:focus {
	border-color: var(--wc-app-color-accent-mid);
	color: var(--wc-app-color-accent);
}

/* --------------------------------------------------------------------------
   Hero: classic (single soft card)
   -------------------------------------------------------------------------- */
.wc-app-hero.wc-app-hero--classic {
	background: #e9f2fa;
	color: var(--wc-app-color-title);
	border-radius: 28px;
	padding: 22px 22px 26px;
	box-shadow: 0 12px 36px rgba(var(--wc-app-color-accent-rgb), 0.14);
}

.wc-app-hero--classic .wc-app-hero__copy {
	max-width: 100%;
}

.wc-app-hero--classic .wc-app-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(17, 17, 17, 0.55);
}

.wc-app-hero--classic .wc-app-hero__headline {
	margin: 0 0 10px;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--wc-app-color-title);
}

.wc-app-hero--classic .wc-app-hero__sub {
	margin: 0 0 18px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(17, 17, 17, 0.62);
}

.wc-app-hero--classic .wc-app-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	background: var(--wc-app-color-accent-pressed);
	color: var(--wc-app-color-on-accent);
	font-weight: 700;
	font-size: 0.88rem;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 60, 104, 0.25);
}

.wc-app-hero--classic .wc-app-hero__cta:hover,
.wc-app-hero--classic .wc-app-hero__cta:focus {
	background: #002e52;
	color: var(--wc-app-color-on-accent);
}

/* --------------------------------------------------------------------------
   Hero: minimal strip
   -------------------------------------------------------------------------- */
.wc-app-hero.wc-app-hero--minimal {
	background: var(--wc-app-color-surface);
	border-radius: 20px;
	padding: 18px 18px 20px;
	border: 1px solid var(--wc-app-color-border-soft);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.wc-app-hero--minimal .wc-app-hero__eyebrow {
	margin: 0 0 4px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wc-app-color-muted);
}

.wc-app-hero--minimal .wc-app-hero__headline {
	margin: 0 0 12px;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--wc-app-color-title);
}

.wc-app-hero--minimal .wc-app-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: var(--wc-app-color-accent);
	color: var(--wc-app-color-on-accent);
	font-weight: 700;
	font-size: 0.84rem;
	border-radius: 999px;
	text-decoration: none;
}

.wc-app-hero--minimal .wc-app-hero__cta:hover,
.wc-app-hero--minimal .wc-app-hero__cta:focus {
	filter: brightness(1.05);
	color: var(--wc-app-color-on-accent);
}

/* --------------------------------------------------------------------------
   Hero: carousels (scroll-snap; same chrome radius/shadow family)
   -------------------------------------------------------------------------- */
.wc-app-hero.wc-app-hero--carousel {
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.wc-app-hero--carousel .wc-app-hero__viewport {
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 12px 36px rgba(var(--wc-app-color-accent-rgb), 0.14);
	background: var(--wc-app-color-well);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.wc-app-hero--carousel .wc-app-hero__track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	gap: 0;
	touch-action: pan-x;
	overscroll-behavior-x: contain;
}

.wc-app-hero--carousel .wc-app-hero__track::-webkit-scrollbar {
	display: none;
}

.wc-app-hero--carousel .wc-app-hero__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	box-sizing: border-box;
	/* Optional --hero-slide-bg from Hero modal (App home layout); else theme tint */
	background: var(
		--hero-slide-bg,
		color-mix(in srgb, var(--wc-app-color-accent) 20%, var(--wc-app-color-page-bg) 80%)
	);
}

@supports not (background: color-mix(in srgb, red, red)) {
	.wc-app-hero--carousel .wc-app-hero__slide {
		background: var(--hero-slide-bg, var(--wc-app-color-well));
	}
}

/* Text slides */
.wc-app-hero--carousel-text .wc-app-hero__slide-inner {
	padding: 22px 22px 26px;
	min-height: 148px;
	box-sizing: border-box;
	background: var(--hero-slide-inner-bg, #e9f2fa);
	color: var(--wc-app-color-title);
}

.wc-app-hero--carousel-text .wc-app-hero__slide--accent .wc-app-hero__slide-inner {
	background: var(
		--hero-slide-inner-accent-bg,
		color-mix(in srgb, var(--wc-app-color-accent) 28%, var(--wc-app-color-page-bg) 72%)
	);
}

@supports not (background: color-mix(in srgb, red, red)) {
	.wc-app-hero--carousel-text .wc-app-hero__slide--accent .wc-app-hero__slide-inner {
		background: var(--hero-slide-inner-accent-bg, var(--wc-app-color-well));
	}
}

.wc-app-hero--carousel-text .wc-app-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(17, 17, 17, 0.55);
}

.wc-app-hero--carousel-text .wc-app-hero__headline {
	margin: 0 0 10px;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.wc-app-hero--carousel-text .wc-app-hero__sub {
	margin: 0 0 16px;
	font-size: 0.88rem;
	line-height: 1.45;
	color: rgba(17, 17, 17, 0.62);
}

.wc-app-hero--carousel-text .wc-app-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	background: var(--wc-app-color-accent-pressed);
	color: var(--wc-app-color-on-accent);
	font-weight: 700;
	font-size: 0.86rem;
	border-radius: 999px;
	text-decoration: none;
}

/* Image-only slides — inset + soft bottom scrim (shadow-style depth; photo stays visible) */
.wc-app-hero--carousel-images .wc-app-hero__slide-link {
	display: block;
	line-height: 0;
	text-decoration: none;
	color: inherit;
	position: relative;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -12px 28px rgba(15, 23, 42, 0.09);
}

.wc-app-hero--carousel-images .wc-app-hero__slide-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 45%;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0) 0%,
		rgba(15, 23, 42, 0.06) 45%,
		rgba(15, 23, 42, 0.14) 100%
	);
}

.wc-app-hero--carousel-images .wc-app-hero__slide-img {
	width: 100%;
	height: min(42vw, 220px);
	object-fit: cover;
	display: block;
	background: var(--wc-app-color-well);
	position: relative;
	z-index: 0;
}

/* Split slide = image + copy */
.wc-app-hero--carousel-split .wc-app-hero__slide-inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 160px;
	background: var(--hero-slide-inner-bg, #f0f6fa);
}

.wc-app-hero--carousel-split .wc-app-hero__split-media {
	flex: 0 0 42%;
	max-width: 42%;
	line-height: 0;
	background: var(--wc-app-color-well);
	position: relative;
	overflow: hidden;
	box-shadow: inset -14px 0 22px -8px rgba(15, 23, 42, 0.12);
}

.wc-app-hero--carousel-split .wc-app-hero__split-media::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 36%;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(240, 246, 250, 0) 0%,
		rgba(240, 246, 250, 0.55) 55%,
		rgba(240, 246, 250, 1) 100%
	);
}

.wc-app-hero--carousel-split .wc-app-hero__split-media img {
	width: 100%;
	height: 100%;
	min-height: 160px;
	object-fit: cover;
	display: block;
}

.wc-app-hero--carousel-split .wc-app-hero__split-copy {
	flex: 1;
	padding: 18px 18px 18px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.wc-app-hero--carousel-split .wc-app-hero__eyebrow {
	margin: 0 0 4px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--wc-app-color-muted);
}

.wc-app-hero--carousel-split .wc-app-hero__headline {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wc-app-color-title);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-app-hero--carousel-split .wc-app-hero__sub {
	margin: 0 0 12px;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--wc-app-color-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-app-hero--carousel-split .wc-app-hero__cta {
	display: inline-flex;
	align-self: flex-start;
	padding: 9px 18px;
	background: var(--wc-app-color-accent-pressed);
	color: var(--wc-app-color-on-accent);
	font-weight: 700;
	font-size: 0.8rem;
	border-radius: 999px;
	text-decoration: none;
	margin-top: auto;
}

/* Promo strip: copy left, art right, soft gradient card, next slide peeks */
.wc-app-hero--promo-strip .wc-app-hero__viewport {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
}

.wc-app-hero--promo-strip .wc-app-hero__track {
	gap: 12px;
	padding-bottom: 2px;
}

.wc-app-hero--promo-strip .wc-app-hero__slide {
	flex: 0 0 calc(100% - 40px);
	width: calc(100% - 40px);
	min-width: calc(100% - 40px);
	max-width: calc(100% - 40px);
	min-height: 168px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 32px rgba(17, 17, 17, 0.1);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
}

.wc-app-hero--promo-strip .wc-app-hero__promo-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	flex: 1 1 auto;
	min-height: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	box-sizing: border-box;
}

.wc-app-hero--promo-strip .wc-app-hero__promo-copy {
	flex: 1;
	min-width: 0;
	padding: 20px 16px 20px 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.wc-app-hero--promo-strip .wc-app-hero__headline {
	margin: 0 0 8px;
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #111;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-app-hero--promo-strip .wc-app-hero__sub {
	margin: 0 0 14px;
	font-size: 0.82rem;
	line-height: 1.45;
	color: rgba(17, 17, 17, 0.55);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-app-hero--promo-strip .wc-app-hero__cta--promo {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #fff;
	color: #111;
	font-weight: 700;
	font-size: 0.82rem;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
	margin-top: auto;
}

.wc-app-hero--promo-strip .wc-app-hero__cta--promo:hover,
.wc-app-hero--promo-strip .wc-app-hero__cta--promo:focus {
	filter: brightness(1.03);
	color: #111;
}

/* Promo art is CSS background on .wc-app-hero__slide (no img / .wc-app-hero__promo-media). */

/* Decorative swipe hint (static) */
.wc-app-hero--carousel .wc-app-hero__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 10px 0 0;
}

.wc-app-hero--carousel .wc-app-hero__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wc-app-color-border-strong);
	opacity: 0.45;
	transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
	cursor: pointer;
}

.wc-app-hero--carousel .wc-app-hero__dot.is-active {
	opacity: 1;
	background: var(--wc-app-color-accent);
	transform: scale(1.2);
}
