/**
 * Shopping Experience 1.0 — Flagship Dark.
 * Prefix: dxp-shx- · semantic DSI tokens only.
 */

.dxp-shx {
	color: var(--dxp-color-text-primary, #f5f7fb);
	background: var(--dxp-color-background-canvas, #070b14);
	overflow-x: clip;
	max-width: 100%;
}

.dxp-shx *,
.dxp-shx *::before,
.dxp-shx *::after {
	box-sizing: border-box;
}

.dxp-shx-stage {
	position: relative;
	padding: 1.25rem 0 1.75rem;
}

.dxp-shx-hero {
	padding: clamp(1.5rem, 4vw, 3rem) 0 1rem;
}

.dxp-shx-title {
	margin: 0.35rem 0 0.65rem;
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 750;
}

.dxp-shx-lede {
	margin: 0;
	max-width: 40rem;
	color: var(--dxp-color-text-secondary, #c7d0e0);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.dxp-shx-section-head h2 {
	margin: 0.35rem 0 0.5rem;
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.dxp-shx-section-head p {
	margin: 0 0 1.1rem;
	max-width: 40rem;
	color: var(--dxp-color-text-secondary, #c7d0e0);
}

.dxp-shx-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.dxp-shx-summary-grid li {
	padding: 0.95rem 1rem;
	border: 1px solid var(--dxp-color-border-subtle, #243047);
	border-radius: var(--dxp-radius-lg, 18px);
	background: color-mix(in srgb, var(--dxp-color-background-elevated, #15233b) 82%, transparent);
	backdrop-filter: blur(8px);
}

.dxp-shx-summary-grid span {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8rem;
	color: var(--dxp-color-text-secondary, #c7d0e0);
}

.dxp-shx-summary-grid strong {
	font-size: 1.05rem;
	line-height: 1.3;
}

.dxp-shx-budget-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.dxp-shx-budget-chip {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--dxp-color-border-subtle, #243047);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	background: color-mix(in srgb, var(--dxp-color-background-elevated, #15233b) 70%, transparent);
}

.dxp-shx-budget-chip.is-active,
.dxp-shx-budget-chip:focus-visible {
	border-color: var(--dxp-color-accent-warm, #ffc437);
	outline: 2px solid var(--dxp-color-focus-ring, #e8bb3f) !important;
	outline-offset: 2px;
}

.dxp-shx-custom-budget {
	display: grid;
	gap: 0.35rem;
	max-width: 16rem;
	margin-bottom: 1.25rem;
}

.dxp-shx-custom-budget input {
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--dxp-color-border-default, #334155);
	border-radius: 12px;
	background: var(--dxp-color-background-elevated, #0f172a);
	color: inherit;
}

.dxp-shx-timeline {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dxp-shx-stage-node {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--dxp-color-border-subtle, #243047);
	border-radius: 14px;
	background: color-mix(in srgb, var(--dxp-color-background-elevated, #15233b) 75%, transparent);
}

.dxp-shx-stage-node.is-complete {
	border-color: color-mix(in srgb, var(--dxp-color-accent-warm, #ffc437) 55%, #243047);
}

.dxp-shx-stage-node.is-missing {
	opacity: 0.85;
}

.dxp-shx-insights,
.dxp-shx-checks,
.dxp-shx-avail-list,
.dxp-shx-mini-list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dxp-shx-insights li,
.dxp-shx-checks li,
.dxp-shx-avail-list li,
.dxp-shx-mini-list li,
.dxp-shx-weather-panel {
	padding: 0.9rem 1rem;
	border: 1px solid var(--dxp-color-border-subtle, #243047);
	border-radius: 14px;
	background: color-mix(in srgb, var(--dxp-color-background-elevated, #15233b) 78%, transparent);
}

.dxp-shx-insights strong,
.dxp-shx-checks strong {
	display: block;
	margin-bottom: 0.25rem;
}

.dxp-shx-insights span,
.dxp-shx-checks span,
.dxp-shx-mini-list span,
.dxp-shx-reason {
	color: var(--dxp-color-text-secondary, #c7d0e0);
	font-size: 0.92rem;
}

.dxp-shx-checks .is-ok {
	border-color: color-mix(in srgb, #3d9a6a 50%, #243047);
}

.dxp-shx-checks .is-gap {
	border-color: color-mix(in srgb, var(--dxp-color-action-primary, #c1121f) 40%, #243047);
}

.dxp-shx-reco-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Within-budget suggestions must not stack as full-bleed product tiles. */
.dxp-shx-budget-suggestions .dxp-shx-budget-grid,
.dxp-shx-budget-suggestions .dxp-shx-reco-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
	gap: 0.75rem;
	align-items: stretch;
}

.dxp-shx-budget-suggestions .dxp-product-card,
.dxp-shx-budget-suggestions .dxp-shx-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.dxp-shx-budget-suggestions .dxp-product-card-media {
	aspect-ratio: 1 / 1;
	max-height: 11rem;
	overflow: hidden;
}

.dxp-shx-budget-suggestions .dxp-product-card-media img {
	width: 100%;
	height: 100%;
	max-height: 11rem;
	object-fit: cover;
}

.dxp-shx-budget-suggestions .dxp-product-card-body {
	padding: 0.65rem 0.75rem 0.85rem;
}

.dxp-shx-budget-suggestions .dxp-product-card-title {
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
	line-height: 1.25;
}

.dxp-shx-budget-suggestions .dxp-shx-reason {
	margin: 0 0 0.45rem;
	font-size: 0.8rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 900px) {
	.dxp-shx-budget-suggestions .dxp-shx-budget-grid,
	.dxp-shx-budget-suggestions .dxp-shx-reco-grid {
		grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	}
}

.dxp-shx-empty-note {
	color: var(--dxp-color-text-secondary, #c7d0e0);
}

.dxp-shx-list-embed {
	margin-top: 0.75rem;
	overflow-x: auto;
}

.dxp-shx-actions {
	margin-top: 1rem;
}

@media (max-width: 640px) {
	.dxp-shx-summary-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dxp-shx * {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
