:root {
	--ts-category-color-text: #111827;
	--ts-category-color-muted: #6b7280;
	--ts-category-color-surface: #ffffff;
	--ts-category-color-surface-soft: #f8fafc;
	--ts-category-color-border: #e5e7eb;
	--ts-category-color-accent: #1d4ed8;
	--ts-category-color-accent-soft: rgba(29, 78, 216, 0.08);
	--ts-category-color-bg: #f9fafb;
	--ts-category-color-success: #0f766e;
	--ts-category-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.trendshelf-category {
	max-width: var(--ts-width-standard);
	margin: 0 auto;
	padding: 1.5rem 1rem 2.5rem;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--ts-category-color-text);
}

.trendshelf-category__shell {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	padding: 1.25rem 1.25rem 1.1rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 1.1rem;
	background: var(--ts-category-color-surface);
	box-shadow: var(--ts-category-shadow-soft);
}

.trendshelf-category__breadcrumb {
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trendshelf-category__breadcrumb li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	overflow-wrap: anywhere;
}

.trendshelf-category__breadcrumb li + li::before {
	margin-right: 0.5rem;
	color: var(--ts-category-color-muted);
	content: "/";
}

.trendshelf-category__breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__header {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.35rem 0 1rem;
	border-bottom: 1px solid var(--ts-category-color-border);
}

.trendshelf-category__eyebrow,
.trendshelf-category__back,
.trendshelf-category__context,
.trendshelf-category__description,
.trendshelf-category__meta-item,
.trendshelf-category__empty {
	margin: 0;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__back a {
	color: var(--ts-category-color-accent);
	text-decoration: none;
	font-weight: 700;
}

.trendshelf-category__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.2vw, 2.25rem);
	line-height: 1.18;
	letter-spacing: 0;
}

.trendshelf-category__context,
.trendshelf-category__description {
	max-width: 58ch;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
	padding-top: 0.3rem;
}

.trendshelf-category__source,
.trendshelf-category__observed {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0.32rem 0.55rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 6px;
	background: var(--ts-category-color-surface-soft);
	font-size: 0.75rem;
	line-height: 1.3;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__source span,
.trendshelf-category__observed span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.trendshelf-category__source strong,
.trendshelf-category__observed time {
	font-weight: 600;
	color: var(--ts-category-color-text);
}

.trendshelf-category__meta-item {
	display: inline-flex;
	align-items: center;
	padding: 0.38rem 0.62rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 999px;
	background: var(--ts-category-color-surface-soft);
	font-size: 0.76rem;
	line-height: 1.3;
	color: var(--ts-category-color-text);
}

.trendshelf-category__meta-item--trust {
	color: var(--ts-category-color-muted);
}

.trendshelf-category__latest-summary {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.25rem 0 0.7rem;
}

.trendshelf-category__latest-summary h2 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.trendshelf-category__latest-summary p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__snapshot {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 0.25rem 0 0.55rem;
}

.trendshelf-category__snapshot-header {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.trendshelf-category__snapshot-eyebrow {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__snapshot-header h2 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.trendshelf-category__snapshot-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.7rem;
}

.trendshelf-category__snapshot-quiet {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 8px;
	background: var(--ts-category-color-surface);
}

.trendshelf-category__snapshot-quiet-metric,
.trendshelf-category__snapshot-quiet-note {
	margin: 0;
}

.trendshelf-category__snapshot-quiet-metric {
	display: inline-flex;
	align-items: baseline;
	gap: 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__snapshot-quiet-metric strong {
	font-size: 1.2rem;
	line-height: 1;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__snapshot-quiet-note {
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__snapshot-card {
	min-width: 0;
	padding: 0.8rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 8px;
	background: var(--ts-category-color-surface-soft);
}

.trendshelf-category__snapshot-card--popularity,
.trendshelf-category__snapshot-card--momentum {
	background: var(--ts-category-color-surface);
}

.trendshelf-category__snapshot-link {
	display: flex;
	height: 100%;
	flex-direction: column;
	gap: 0.65rem;
	border-radius: 5px;
	color: inherit;
	text-decoration: none;
}

.trendshelf-category__snapshot-link:hover h3,
.trendshelf-category__snapshot-link:focus-visible h3 {
	text-decoration: underline;
}

.trendshelf-category__snapshot-link:focus-visible {
	outline: var(--ts-focus-width) solid var(--ts-color-focus);
	outline-offset: var(--ts-focus-offset);
}

.trendshelf-category__snapshot-label {
	margin: 0 0 0.65rem;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__snapshot-link > .trendshelf-category__snapshot-label {
	margin-bottom: 0;
}

.trendshelf-category__snapshot-product {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 0.65rem;
	align-items: center;
	min-width: 0;
}

.trendshelf-category__snapshot-media {
	display: flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 6px;
	background: var(--ts-category-color-surface);
	color: var(--ts-category-color-muted);
	font-size: 0.68rem;
	text-align: center;
}

.trendshelf-category__snapshot-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.trendshelf-category__snapshot-product-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.25rem;
}

.trendshelf-category__snapshot-product-copy h3 {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.trendshelf-category__snapshot-rank,
.trendshelf-category__snapshot-rise,
.trendshelf-category__snapshot-score,
.trendshelf-category__snapshot-metric,
.trendshelf-category__snapshot-note,
.trendshelf-category__snapshot-signal-title {
	margin: 0;
}

.trendshelf-category__snapshot-rank {
	font-size: 0.75rem;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__snapshot-rank--primary,
.trendshelf-category__snapshot-rise {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__snapshot-rise {
	font-size: 1.25rem;
	line-height: 1;
}

.trendshelf-category__snapshot-card--metric {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.trendshelf-category__snapshot-metric {
	display: flex;
	align-items: baseline;
	gap: 0.2rem;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__snapshot-metric strong {
	font-size: 1.75rem;
	line-height: 1;
}

.trendshelf-category__snapshot-metric span {
	font-size: 0.8rem;
	font-weight: 700;
}

.trendshelf-category__snapshot-note {
	margin-top: 0.45rem;
	font-size: 0.7rem;
	line-height: 1.4;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__snapshot-signal-title {
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.trendshelf-category__snapshot-score {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__trending {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding: 1rem 0;
	border-top: 1px solid var(--ts-category-color-border);
	border-bottom: 1px solid var(--ts-category-color-border);
}

.trendshelf-category__trending-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.trendshelf-category__trending-eyebrow,
.trendshelf-category__trending-supporting,
.trendshelf-category__trending-empty {
	margin: 0;
}

.trendshelf-category__trending-eyebrow {
	margin-bottom: 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__trending-header h2 {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

.trendshelf-category__trending-supporting {
	font-size: 0.75rem;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__trending-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.7rem;
}

.trendshelf-category__trending-card {
	min-width: 0;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 8px;
	background: var(--ts-category-color-surface);
	box-shadow: var(--ts-category-shadow-soft);
}

.trendshelf-category__trending-card > a {
	display: flex;
	height: 100%;
	min-width: 0;
	flex-direction: column;
	gap: 0.7rem;
	padding: 0.7rem;
	border-radius: 7px;
	color: inherit;
	text-decoration: none;
}

.trendshelf-category__trending-card > a:hover .trendshelf-category__trending-name,
.trendshelf-category__trending-card > a:focus-visible .trendshelf-category__trending-name {
	text-decoration: underline;
}

.trendshelf-category__trending-card > a:focus-visible {
	outline: var(--ts-focus-width) solid var(--ts-color-focus);
	outline-offset: var(--ts-focus-offset);
}

.trendshelf-category__trending-media {
	display: flex;
	width: 100%;
	aspect-ratio: 1 / 1;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 6px;
	background: var(--ts-category-color-surface-soft);
	color: var(--ts-category-color-muted);
	font-size: 0.75rem;
}

.trendshelf-category__trending-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.trendshelf-category__trending-body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.35rem;
}

.trendshelf-category__trending-movement {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1;
	color: var(--ts-category-color-accent);
}

.trendshelf-category__trending-name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.trendshelf-category__trending-ranks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.55rem;
	font-size: 0.7rem;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__trending-ranks strong {
	color: var(--ts-category-color-text);
}

.trendshelf-category__trending-label {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--ts-category-color-success);
}

.trendshelf-category__trending-empty {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 8px;
	background: var(--ts-category-color-surface-soft);
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__list {
	display: grid;
	gap: 0.8rem;
}

.trendshelf-category__item {
	display: grid;
	grid-template-columns: 98px minmax(0, 1fr);
	gap: 0.9rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(249,250,251,0.96) 100%);
	align-items: center;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.trendshelf-category__media {
	position: relative;
	width: 98px;
	height: 98px;
	aspect-ratio: 1 / 1;
	border-radius: 0.85rem;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--ts-category-color-surface);
	border: 1px solid var(--ts-category-color-border);
}

.trendshelf-category__media img,
.trendshelf-category__media--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0.8rem;
	background: var(--ts-category-color-surface);
}

.trendshelf-category__media-fallback {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0.45rem;
	border-radius: 0.8rem;
	background: var(--ts-category-color-surface-soft);
	color: var(--ts-category-color-muted);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	box-sizing: border-box;
}

.trendshelf-category__media-fallback--empty {
	display: flex;
}

.trendshelf-category__media--fallback .trendshelf-category__media-fallback {
	display: flex;
}

.trendshelf-category__media--fallback .trendshelf-category__image {
	display: none;
}

.trendshelf-category__media--placeholder {
	display: grid;
	place-items: center;
	color: var(--ts-category-color-muted);
	font-size: 0.85rem;
}

.trendshelf-category__body {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	min-width: 0;
}

.trendshelf-category__rank,
.trendshelf-category__trend {
	margin: 0;
	line-height: 1.4;
}

.trendshelf-category__rank {
	width: fit-content;
}

.trendshelf-category__trend {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ts-category-color-success);
}

.trendshelf-category__item-title {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.trendshelf-category__item-title a {
	color: var(--ts-category-color-text);
	text-decoration: none;
}

.trendshelf-category__cta {
	margin: 0.08rem 0 0;
	font-size: 0.8rem;
}

.trendshelf-category__cta a {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	color: var(--ts-category-color-accent);
	font-weight: 700;
	text-decoration: none;
}

.trendshelf-category__cta a:hover,
.trendshelf-category__cta a:focus-visible,
.trendshelf-category__item-title a:hover,
.trendshelf-category__item-title a:focus-visible {
	text-decoration: underline;
}

.trendshelf-category__media a {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.trendshelf-category__media a:hover,
.trendshelf-category__media a:focus-visible {
	outline: var(--ts-focus-width) solid var(--ts-color-focus);
	outline-offset: var(--ts-focus-offset);
}

.trendshelf-category__list {
	gap: 0.45rem;
}

.trendshelf-category__ranking-columns,
.trendshelf-category__ranking-row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 88px 96px 108px 20px;
	gap: 0.75rem;
	align-items: center;
}

.trendshelf-category__ranking-columns {
	padding: 0 0.8rem;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__item {
	display: block;
	min-width: 0;
	padding: 0;
	border-radius: 8px;
	background: var(--ts-category-color-surface);
	box-shadow: none;
}

.trendshelf-category__ranking-row {
	min-width: 0;
	padding: 0.55rem 0.8rem;
	border-radius: 7px;
	color: inherit;
	text-decoration: none;
}

.trendshelf-category__ranking-row:not(.trendshelf-category__ranking-row--static):hover {
	background: var(--ts-category-color-surface-soft);
}

.trendshelf-category__ranking-row:focus-visible {
	outline: var(--ts-focus-width) solid var(--ts-color-focus);
	outline-offset: var(--ts-focus-offset);
}

.trendshelf-category__ranking-rank {
	display: flex;
	align-items: baseline;
	color: var(--ts-category-color-text);
}

.trendshelf-category__ranking-rank strong {
	font-size: 1.25rem;
	line-height: 1;
}

.trendshelf-category__ranking-rank--top strong {
	font-size: 1.45rem;
}

.trendshelf-category__ranking-rank > span:last-child {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__ranking-product {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 0.7rem;
	align-items: center;
	min-width: 0;
}

.trendshelf-category__ranking-media {
	display: flex;
	width: 56px;
	height: 56px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--ts-category-color-border);
	border-radius: 6px;
	background: var(--ts-category-color-surface-soft);
	color: var(--ts-category-color-muted);
	font-size: 0.65rem;
	text-align: center;
}

.trendshelf-category__ranking-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.trendshelf-category__ranking-identity {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.2rem;
}

.trendshelf-category__ranking-row .trendshelf-category__item-title {
	display: block;
	width: 100%;
	min-width: 0;
	max-height: 2.7em;
	margin: 0;
	overflow: hidden;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ts-category-color-text);
	overflow-wrap: anywhere;
}

.trendshelf-category__ranking-row:hover .trendshelf-category__item-title,
.trendshelf-category__ranking-row:focus-visible .trendshelf-category__item-title {
	text-decoration: underline;
}

.trendshelf-category__ranking-row .trendshelf-category__trend {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ts-category-color-success);
}

.trendshelf-category__ranking-fact,
.trendshelf-category__ranking-price,
.trendshelf-category__ranking-movement {
	font-size: 0.78rem;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__ranking-movement strong {
	font-size: 0.92rem;
	color: var(--ts-category-color-text);
}

.trendshelf-category__ranking-movement--up strong {
	color: #EF4444;
}

.trendshelf-category__ranking-movement--down strong {
	color: #2563EB;
}

.trendshelf-category__ranking-movement--neutral strong {
	color: #64748B;
}

.trendshelf-category__ranking-movement--new strong {
	font-size: 0.72rem;
	color: var(--ts-category-color-success);
}

.trendshelf-category__ranking-price {
	color: var(--ts-category-color-text);
}

.trendshelf-category__ranking-chevron {
	font-size: 1.3rem;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__ranking-mobile-label {
	display: none;
}

@media (max-width: 768px) {
	.trendshelf-category__shell {
		padding: 1rem;
	}

	.trendshelf-category__snapshot-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trendshelf-category__trending-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trendshelf-category__ranking-columns {
		display: none;
	}

	.trendshelf-category__ranking-row {
		grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 18px;
		grid-template-areas:
			"rank product product product chevron"
			"rank previous movement price chevron";
		gap: 0.4rem 0.65rem;
		padding: 0.6rem 0.7rem;
	}

	.trendshelf-category__ranking-rank {
		grid-area: rank;
	}

	.trendshelf-category__ranking-product {
		grid-area: product;
	}

	.trendshelf-category__ranking-fact {
		grid-area: previous;
		justify-self: start;
	}

	.trendshelf-category__ranking-movement {
		grid-area: movement;
		justify-self: center;
	}

	.trendshelf-category__ranking-price {
		grid-area: price;
		justify-self: end;
	}

	.trendshelf-category__ranking-chevron {
		grid-area: chevron;
	}

	.trendshelf-category__ranking-mobile-label {
		display: block;
		margin-bottom: 0.08rem;
		font-size: 0.58rem;
		font-weight: 700;
		line-height: 1.2;
		text-transform: uppercase;
		color: var(--ts-category-color-muted);
	}

	.trendshelf-category__title {
		font-size: clamp(1.4rem, 5vw, 1.8rem);
	}
}

@media (max-width: 520px) {
	.trendshelf-category__meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.trendshelf-category__snapshot-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.2rem;
	}

	.trendshelf-category__snapshot-grid {
		grid-template-columns: 1fr;
	}

	.trendshelf-category__trending-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
	}

	.trendshelf-category__trending-grid {
		grid-template-columns: 1fr;
	}

	.trendshelf-category__snapshot-quiet {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
	}

	.trendshelf-category__snapshot-card {
		padding: 0.75rem;
	}

	.trendshelf-category__ranking-row {
		grid-template-columns: 46px repeat(3, minmax(0, 1fr)) 16px;
		gap: 0.4rem 0.5rem;
		padding: 0.55rem 0.6rem;
	}

	.trendshelf-category__ranking-product {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 0.55rem;
	}

	.trendshelf-category__ranking-media {
		width: 48px;
		height: 48px;
	}

	.trendshelf-category__ranking-rank strong,
	.trendshelf-category__ranking-rank--top strong {
		font-size: 1.2rem;
	}

	.trendshelf-category__ranking-fact,
	.trendshelf-category__ranking-price,
	.trendshelf-category__ranking-movement {
		font-size: 0.7rem;
	}
}

/* CATEGORY Visual Alignment v2 */
.trendshelf-category {
	--ts-category-color-text: #0f1f4b;
	--ts-category-color-muted: #64748b;
	--ts-category-color-surface-soft: #f8fafc;
	--ts-category-color-border: #dbe5f3;
	--ts-category-color-accent: #2563eb;
	--ts-category-color-accent-soft: #eff6ff;
	--ts-category-color-up: #ef4444;
	max-width: var(--ts-width-wide);
	padding-block: 1.5rem 4rem;
}

.trendshelf-category__shell {
	gap: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.trendshelf-category__header {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	gap: 2rem;
	align-items: end;
	padding: clamp(2rem, 5vw, 4.5rem);
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #eff6ff;
}

.trendshelf-category__hero-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.75rem;
}

.trendshelf-category__eyebrow,
.trendshelf-category__snapshot-eyebrow,
.trendshelf-category__trending-eyebrow,
.trendshelf-category__section-eyebrow {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2563eb;
}

.trendshelf-category__title {
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 800;
	line-height: 1;
	color: #0f1f4b;
}

.trendshelf-category__description {
	max-width: 42rem;
	font-size: 1rem;
	line-height: 1.75;
	color: #334155;
}

.trendshelf-category__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	padding: 0;
}

.trendshelf-category__meta > :last-child:nth-child(3) {
	grid-column: 1 / -1;
}

.trendshelf-category__source,
.trendshelf-category__observed {
	display: flex;
	min-height: 72px;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 1rem;
	border-color: #bfdbfe;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.82);
}

.trendshelf-category__source span,
.trendshelf-category__observed span {
	font-size: 0.68rem;
	letter-spacing: 0.04em;
}

.trendshelf-category__source strong,
.trendshelf-category__observed time {
	font-size: 0.9rem;
	color: #0f1f4b;
}

.trendshelf-category__snapshot,
.trendshelf-category__trending,
.trendshelf-category__ranking,
.trendshelf-category__guide {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(0rem, 2vw, 1.5rem);
}

.trendshelf-category__snapshot,
.trendshelf-category__ranking {
	background: #ffffff;
}

.trendshelf-category__trending,
.trendshelf-category__guide {
	margin-inline: calc(clamp(0rem, 2vw, 1.5rem) * -1);
	padding-inline: clamp(1rem, 4vw, 3rem);
	border: 0;
	background: #eff6ff;
}

.trendshelf-category__snapshot-header,
.trendshelf-category__section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.trendshelf-category__snapshot-header {
	align-items: flex-start;
	justify-content: flex-start;
	flex-direction: column;
	gap: 0.35rem;
}

.trendshelf-category__snapshot-header h2,
.trendshelf-category__trending-header h2,
.trendshelf-category__section-header h2 {
	margin: 0;
	font-size: clamp(1.55rem, 3vw, 2.25rem);
	line-height: 1.2;
	color: #0f1f4b;
}

.trendshelf-category__section-header p,
.trendshelf-category__section-eyebrow {
	margin: 0;
}

.trendshelf-category__section-header > p {
	font-size: 0.85rem;
	color: #64748b;
}

.trendshelf-category__snapshot-grid {
	gap: 1rem;
}

.trendshelf-category__snapshot-card {
	min-height: 150px;
	padding: 1.15rem;
	border-color: #dbe5f3;
	background: #ffffff;
}

.trendshelf-category__snapshot-card--momentum {
	border-color: #fecaca;
	background: #fffafa;
}

.trendshelf-category__snapshot-label {
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.trendshelf-category__snapshot-rise {
	font-size: 1.75rem;
	color: #ef4444;
}

.trendshelf-category__snapshot-rank--primary,
.trendshelf-category__snapshot-metric {
	color: #2563eb;
}

.trendshelf-category__snapshot-empty-value {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 800;
	color: #94a3b8;
}

.trendshelf-category__trending {
	gap: 1.5rem;
}

.trendshelf-category__trending-header {
	align-items: end;
}

.trendshelf-category__trending-supporting {
	max-width: 24rem;
	font-size: 0.82rem;
	line-height: 1.5;
	text-align: right;
}

.trendshelf-category__trending-grid {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.15rem 0 0.85rem;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.trendshelf-category__trending-card {
	flex: 0 0 clamp(220px, 22vw, 250px);
	scroll-snap-align: start;
	border-radius: 8px;
}

.trendshelf-category__trending-card > a {
	gap: 0.75rem;
	padding: 0.9rem;
	border-radius: 7px;
}

.trendshelf-category__trending-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.trendshelf-category__trending-current {
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1;
	color: #0f1f4b;
}

.trendshelf-category__trending-current small {
	margin-left: 0.1rem;
	font-size: 0.68rem;
	color: #64748b;
}

.trendshelf-category__trending-movement {
	font-size: 1.35rem;
	color: #ef4444;
}

.trendshelf-category__trending-price {
	font-size: 0.78rem;
	font-weight: 700;
	color: #334155;
}

.trendshelf-category__ranking {
	display: flex;
	flex-direction: column;
}

.trendshelf-category__ranking-columns {
	padding: 0 1rem 0.55rem;
}

.trendshelf-category__list {
	gap: 0.6rem;
}

.trendshelf-category__item {
	border-color: #dbe5f3;
}

.trendshelf-category__ranking-row {
	min-height: 84px;
	padding: 0.75rem 1rem;
}

.trendshelf-category__ranking-rank strong {
	color: #0f1f4b;
}

.trendshelf-category__ranking-rank--top strong {
	color: #2563eb;
}

.trendshelf-category__ranking-row .trendshelf-category__trend {
	display: none;
}

.trendshelf-category__guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid #bfdbfe;
	border-bottom: 1px solid #bfdbfe;
}

.trendshelf-category__guide-grid article {
	min-width: 0;
	padding: 1.5rem;
}

.trendshelf-category__guide-grid article + article {
	border-left: 1px solid #bfdbfe;
}

.trendshelf-category__guide-grid strong,
.trendshelf-category__guide-grid h3,
.trendshelf-category__guide-grid p {
	margin: 0;
}

.trendshelf-category__guide-grid strong {
	font-size: 0.72rem;
	color: #2563eb;
}

.trendshelf-category__guide-grid h3 {
	margin-top: 0.45rem;
	font-size: 1rem;
	color: #0f1f4b;
}

.trendshelf-category__guide-grid p {
	margin-top: 0.45rem;
	font-size: 0.82rem;
	line-height: 1.6;
	color: #64748b;
}

@media (max-width: 768px) {
	.trendshelf-category__header {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2.25rem;
	}

	.trendshelf-category__title {
		font-size: clamp(2.5rem, 10vw, 4rem);
	}

	.trendshelf-category__trending-grid {
		display: flex;
	}

	.trendshelf-category__trending-card {
		flex-basis: min(42vw, 240px);
	}

	.trendshelf-category__guide-grid {
		grid-template-columns: 1fr;
	}

	.trendshelf-category__guide-grid article + article {
		border-top: 1px solid #bfdbfe;
		border-left: 0;
	}
}

@media (max-width: 520px) {
	.trendshelf-category {
		padding-inline: 0.75rem;
	}

	.trendshelf-category__header {
		padding: 1.75rem 1.25rem;
	}

	.trendshelf-category__meta {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.trendshelf-category__source,
	.trendshelf-category__observed {
		width: auto;
		min-height: 66px;
	}

	.trendshelf-category__observed {
		grid-column: auto;
	}

	.trendshelf-category__meta > :last-child:nth-child(3) {
		grid-column: 1 / -1;
	}

	.trendshelf-category__snapshot,
	.trendshelf-category__trending,
	.trendshelf-category__ranking,
	.trendshelf-category__guide {
		padding-block: 2.75rem;
	}

	.trendshelf-category__snapshot-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trendshelf-category__snapshot-card {
		min-height: 142px;
		padding: 0.85rem;
	}

	.trendshelf-category__snapshot-product {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.trendshelf-category__snapshot-media {
		width: 48px;
		height: 48px;
	}

	.trendshelf-category__trending-header {
		align-items: flex-start;
	}

	.trendshelf-category__trending-supporting {
		text-align: left;
	}

	.trendshelf-category__trending-card {
		flex-basis: min(78vw, 280px);
	}

	.trendshelf-category__ranking-row {
		grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 16px;
		column-gap: 0.65rem;
		min-height: 108px;
	}

	.trendshelf-category__ranking-rank {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		align-content: center;
		align-items: baseline;
		justify-content: start;
		column-gap: 0.1rem;
		row-gap: 0.3rem;
	}

	.trendshelf-category__ranking-rank .trendshelf-category__ranking-mobile-label {
		grid-column: 1 / -1;
		margin-bottom: 0;
	}

	.trendshelf-category__ranking-rank strong,
	.trendshelf-category__ranking-rank--top strong {
		font-size: 1.4rem;
	}
}

/* CATEGORY North Star: compact identity, movement-first discovery, dense comparison. */
.trendshelf-category__header {
	padding: clamp(2rem, 4vw, 3rem);
	background: linear-gradient(135deg, #f4f8ff 0%, #eaf2ff 100%);
}

.trendshelf-category__hero-copy {
	gap: var(--ts-space-2);
}

.trendshelf-category__title {
	font-size: clamp(2.75rem, 5vw, 4.25rem);
}

.trendshelf-category__meta {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ts-space-2);
}

.trendshelf-category__meta > :last-child:nth-child(3) {
	grid-column: auto;
}

.trendshelf-category__source,
.trendshelf-category__observed,
.trendshelf-category__meta > .trendshelf-category__context {
	display: flex;
	min-width: 0;
	min-height: 60px;
	box-sizing: border-box;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	gap: var(--ts-space-1);
	margin: 0;
	padding: var(--ts-space-3) var(--ts-space-4);
	border: 1px solid #bfdbfe;
	border-radius: var(--ts-radius-sm);
	background: rgba(255, 255, 255, 0.82);
}

.trendshelf-category__meta > .trendshelf-category__context span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__meta > .trendshelf-category__context strong {
	max-width: 100%;
	overflow: hidden;
	color: var(--ts-category-color-text);
	font-size: 0.9rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.trendshelf-category__context-switcher {
	display: flex;
	align-items: center;
	gap: var(--ts-space-3);
	margin-top: var(--ts-space-4);
	padding: var(--ts-space-3) var(--ts-space-4);
	border: 1px solid #cbd8e5;
	border-radius: var(--ts-radius-sm);
	background: var(--ts-category-color-surface);
}

.trendshelf-category__context-label {
	color: var(--ts-category-color-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

.trendshelf-category__context-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ts-space-2);
}

.trendshelf-category__context-option {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	padding: var(--ts-space-1) var(--ts-space-3);
	border: 1px solid #9fb8cf;
	border-radius: var(--ts-radius-sm);
	color: var(--ts-category-color-text);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.trendshelf-category__context-option.is-selected {
	border-color: var(--ts-category-color-accent);
	background: var(--ts-category-color-accent);
	color: #fff;
}

.trendshelf-category__snapshot,
.trendshelf-category__trending,
.trendshelf-category__ranking,
.trendshelf-category__guide {
	padding-block: clamp(2.25rem, 4vw, 3rem);
}

.trendshelf-category__snapshot-header,
.trendshelf-category__section-header {
	margin-bottom: var(--ts-space-5);
}

.trendshelf-category__snapshot-card {
	min-height: 128px;
	box-sizing: border-box;
	padding: var(--ts-space-4);
	border-radius: var(--ts-radius-md);
}

.trendshelf-category__snapshot-card--popularity {
	border-top: 4px solid var(--ts-category-color-accent);
}

.trendshelf-category__snapshot-card--momentum {
	border-top: 4px solid var(--ts-category-color-up);
}

.trendshelf-category__snapshot-card--metric {
	border-top: 4px solid #8aa4bf;
}

.trendshelf-category__trending {
	gap: var(--ts-space-5);
}

.trendshelf-category__trending-grid {
	gap: var(--ts-space-3);
	scroll-padding-inline: var(--ts-space-1);
}

.trendshelf-category__trending-card {
	flex-basis: clamp(210px, 19vw, 224px);
	border-top: 4px solid var(--ts-category-color-up);
	box-shadow: 0 8px 20px rgba(15, 31, 75, 0.06);
}

.trendshelf-category__trending-media {
	aspect-ratio: 4 / 3;
}

.trendshelf-category__trending-movement,
.trendshelf-category__trending-current {
	display: flex;
	flex-direction: column;
	gap: var(--ts-space-1);
}

.trendshelf-category__trending-movement small,
.trendshelf-category__trending-current > small {
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.2;
}

.trendshelf-category__trending-movement small {
	color: #9f2f28;
}

.trendshelf-category__trending-movement strong {
	font-size: 1.55rem;
	line-height: 1;
}

.trendshelf-category__trending-current {
	align-items: flex-end;
}

.trendshelf-category__trending-current > small {
	margin: 0;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__trending-current strong {
	font-size: 1.45rem;
	line-height: 1;
}

.trendshelf-category__trending-current strong span {
	margin-left: 0.1rem;
	font-size: 0.5em;
	color: var(--ts-category-color-muted);
}

.trendshelf-category__ranking-columns,
.trendshelf-category__ranking-row {
	grid-template-columns: 72px minmax(0, 1fr) 88px 88px 108px 20px;
}

.trendshelf-category__ranking-columns {
	padding-right: var(--ts-space-4);
	padding-left: var(--ts-space-4);
}

.trendshelf-category__list {
	gap: 0;
	border-top: var(--ts-border-default);
	border-bottom: var(--ts-border-default);
}

.trendshelf-category__item {
	border: 0;
	border-bottom: var(--ts-border-default);
	border-radius: 0;
}

.trendshelf-category__item:last-child {
	border-bottom: 0;
}

.trendshelf-category__ranking-row {
	min-height: 72px;
	padding: var(--ts-space-2) var(--ts-space-4);
	border-radius: 0;
}

.trendshelf-category__ranking-rank {
	justify-content: center;
}

.trendshelf-category__ranking-rank strong {
	font-variant-numeric: tabular-nums;
}

.trendshelf-category__guide-grid article {
	padding: var(--ts-space-5);
}

@media (max-width: 768px) {
	.trendshelf-category__header {
		gap: var(--ts-space-5);
		padding: var(--ts-space-6);
	}

	.trendshelf-category__title {
		font-size: clamp(2.25rem, 10vw, 3rem);
	}

	.trendshelf-category__ranking-row {
		grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 18px;
		border-radius: 0;
	}
}

@media (max-width: 520px) {
	.trendshelf-category__header {
		padding: var(--ts-space-5) var(--ts-space-4);
	}

	.trendshelf-category__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trendshelf-category__context-switcher {
		align-items: flex-start;
		flex-direction: column;
	}

	.trendshelf-category__source,
	.trendshelf-category__observed,
	.trendshelf-category__meta > .trendshelf-category__context {
		min-height: 58px;
		padding: var(--ts-space-2) var(--ts-space-3);
	}

	.trendshelf-category__snapshot,
	.trendshelf-category__trending,
	.trendshelf-category__ranking,
	.trendshelf-category__guide {
		padding-block: var(--ts-space-8);
	}

	.trendshelf-category__snapshot-card {
		min-height: 124px;
	}

	.trendshelf-category__trending-card {
		flex-basis: min(78vw, 276px);
	}

	.trendshelf-category__ranking-row {
		min-height: 96px;
		padding: var(--ts-space-2) var(--ts-space-3);
	}

	.trendshelf-category__guide-grid article {
		padding: var(--ts-space-4);
	}
}
