/**
 * Phase 5.18 — Premium shop / catalog redesign.
 * Scoped to .nds-shop.nds-shop--premium and .nds-shop-* only.
 */

/* —— Design tokens —— */
.nds-shop.nds-shop--premium {
	--shop-ink: #0a1a2a;
	--shop-muted: #5c6772;
	--shop-soft: #8a939c;
	--shop-teal: #0d6570;
	--shop-teal-deep: #084850;
	--shop-teal-soft: rgba(13, 101, 112, 0.1);
	--shop-line: rgba(10, 26, 42, 0.09);
	--shop-line-strong: rgba(10, 26, 42, 0.14);
	--shop-surface: #ffffff;
	--shop-wash: #eef3f7;
	--shop-panel: #f4f8fb;
	--shop-radius-sm: 12px;
	--shop-radius: clamp(1.15rem, 1rem + 0.4vw, 1.5rem);
	--shop-radius-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--shop-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--shop-shadow-sm: 0 1px 2px rgba(10, 26, 42, 0.04);
	--shop-shadow: 0 8px 24px rgba(10, 26, 42, 0.06);
	--shop-shadow-lift: 0 16px 40px rgba(10, 26, 42, 0.1);
	--shop-gutter: var(--nds-gutter, clamp(0.875rem, 2.5vw, 1.125rem));
	--shop-gap: clamp(1.25rem, 2vw, 2rem);
	--shop-header-offset: var(--nds-header-offset, var(--nds-main-header-h, 5.25rem));
	--shop-sidebar-w: min(17.5rem, 100%);
	--shop-focus: #0d6570;
	--shop-focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--shop-teal);

	font-family: var(--nds-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	color: var(--shop-ink);
	background:
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(13, 101, 112, 0.06), transparent 55%),
		radial-gradient(ellipse 60% 40% at 0% 100%, rgba(120, 160, 190, 0.08), transparent 50%),
		linear-gradient(180deg, var(--shop-wash) 0%, #f8fafc 28%, #ffffff 100%);
	max-width: 100%;
	overflow-x: clip;
}

.nds-shop.nds-shop--premium *,
.nds-shop.nds-shop--premium *::before,
.nds-shop.nds-shop--premium *::after {
	box-sizing: border-box;
}

.nds-shop.nds-shop--premium .nds-container,
.nds-shop.nds-shop--premium .nds-page {
	width: min(calc(100% - 2 * var(--shop-gutter)), var(--nds-container-wide, 90rem));
	margin-inline: auto;
	padding-inline: 0;
}

/* —— Hero —— */
.nds-shop.nds-shop--premium .nds-shop-hero {
	position: relative;
	isolation: isolate;
	margin: 0 0 var(--shop-gap);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	min-height: clamp(22.5rem, 32vw, 27.5rem);
	border-radius: var(--shop-radius-lg);
	border: 1px solid var(--shop-line);
	background:
		radial-gradient(ellipse 55% 80% at 92% 35%, rgba(13, 101, 112, 0.14), transparent 62%),
		radial-gradient(ellipse 40% 50% at 8% 90%, rgba(180, 200, 220, 0.35), transparent 58%),
		linear-gradient(135deg, #ffffff 0%, var(--shop-panel) 42%, #e8f0f5 100%);
	box-shadow: var(--shop-shadow-sm), var(--shop-shadow);
	overflow: hidden;
}

.nds-shop.nds-shop--premium .nds-shop-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2.75rem);
	min-width: 0;
	min-height: inherit;
}

.nds-shop.nds-shop--premium .nds-shop-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
	max-width: 38rem;
}

.nds-shop.nds-shop--premium .nds-shop-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	width: fit-content;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--shop-teal) 22%, transparent);
	background: color-mix(in srgb, var(--shop-teal) 6%, #fff);
	font-size: var(--nds-fs-label, 0.72rem);
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--shop-teal-deep);
}

.nds-shop.nds-shop--premium .nds-shop-hero__eyebrow::before {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--shop-teal);
	box-shadow: 0 0 0 3px var(--shop-teal-soft);
}

.nds-shop.nds-shop--premium .nds-shop-hero__title {
	margin: 0;
	font-family: var(--nds-font-display, Georgia, "Times New Roman", serif);
	font-size: clamp(1.85rem, 2.8vw, 2.65rem);
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: var(--shop-ink);
	text-wrap: balance;
}

.nds-shop.nds-shop--premium .nds-shop-hero__lead {
	margin: 0;
	max-width: 42ch;
	font-size: var(--nds-fs-body-fluid, clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem));
	line-height: 1.55;
	color: var(--shop-muted);
}

.nds-shop.nds-shop--premium .nds-shop-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.nds-shop.nds-shop--premium .nds-shop-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--shop-ink);
}

.nds-shop.nds-shop--premium .nds-shop-hero__trust li::before {
	content: "";
	flex-shrink: 0;
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: var(--shop-teal);
	opacity: 0.85;
}

.nds-shop.nds-shop--premium .nds-shop-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.85rem;
	margin-top: 0.35rem;
}

.nds-shop.nds-shop--premium .nds-shop-hero__actions .nds-btn,
.nds-shop.nds-shop--premium .nds-shop-hero__actions a[class*="btn"] {
	min-height: 2.75rem;
	padding-inline: 1.15rem;
	border-radius: var(--shop-radius-sm);
	font-size: var(--nds-fs-button, 0.9rem);
	font-weight: 700;
}

.nds-shop.nds-shop--premium .nds-shop-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: var(--shop-radius-sm);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--shop-line);
	min-width: 5.5rem;
}

.nds-shop.nds-shop--premium .nds-shop-hero__stat strong {
	font-family: var(--nds-font-display, Georgia, serif);
	font-size: 1.35rem;
	font-weight: 650;
	line-height: 1.1;
	color: var(--shop-teal-deep);
}

.nds-shop.nds-shop--premium .nds-shop-hero__stat span {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--shop-muted);
}

.nds-shop.nds-shop--premium .nds-shop-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: clamp(14rem, 22vw, 18rem);
	padding: 1rem;
}

.nds-shop.nds-shop--premium .nds-shop-hero__stack {
	position: relative;
	width: min(16rem, 78%);
	aspect-ratio: 3 / 3.85;
}

.nds-shop.nds-shop--premium .nds-shop-hero__cover {
	display: block;
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	background: var(--shop-surface);
	box-shadow:
		0 2px 4px rgba(10, 26, 42, 0.06),
		0 18px 36px rgba(10, 26, 42, 0.12);
}

.nds-shop.nds-shop--premium .nds-shop-hero__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nds-shop.nds-shop--premium .nds-shop-hero__stack .nds-shop-hero__cover:nth-child(1) {
	position: absolute;
	left: -8%;
	top: 10%;
	width: 72%;
	transform: rotate(-8deg);
	opacity: 0.88;
	z-index: 1;
}

.nds-shop.nds-shop--premium .nds-shop-hero__stack .nds-shop-hero__cover:nth-child(2) {
	position: relative;
	z-index: 2;
	width: 100%;
}

.nds-shop.nds-shop--premium .nds-shop-hero__stack .nds-shop-hero__cover:nth-child(3) {
	position: absolute;
	right: -10%;
	top: 6%;
	width: 68%;
	transform: rotate(9deg);
	opacity: 0.82;
	z-index: 0;
}

/* —— Subject discovery —— */
.nds-shop.nds-shop--premium .nds-shop-subjects {
	margin: 0 0 var(--shop-gap);
	padding: clamp(1.35rem, 2.5vw, 1.85rem) 0;
	overflow-x: clip;
	max-width: 100%;
}

.nds-shop.nds-shop--premium .nds-shop-subjects__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.15rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--shop-line);
}

.nds-shop.nds-shop--premium .nds-shop-subjects__head h2 {
	margin: 0;
	font-family: var(--nds-font-display, Georgia, serif);
	font-size: var(--nds-fs-section, clamp(1.45rem, 1.1rem + 1.2vw, 2rem));
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--shop-ink);
}

.nds-shop.nds-shop--premium .nds-shop-subjects__head p {
	margin: 0.35rem 0 0;
	font-size: 0.92rem;
	color: var(--shop-muted);
	max-width: 40ch;
}

.nds-shop.nds-shop--premium .nds-shop-subjects__all {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 2.75rem;
	padding: 0 0.15rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--shop-teal);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.nds-shop.nds-shop--premium .nds-shop-subjects__all:hover,
.nds-shop.nds-shop--premium .nds-shop-subjects__all:focus-visible {
	color: var(--shop-teal-deep);
	border-bottom-color: currentColor;
}

.nds-shop.nds-shop--premium .nds-shop-subjects__grid {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.5vw, 1rem);
	min-width: 0;
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	padding: 0;
	border-radius: var(--shop-radius);
	border: 1px solid var(--shop-line);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow-sm);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition:
		transform 0.3s var(--shop-ease),
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(165deg, var(--shop-panel) 0%, #e2ebf2 100%);
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s var(--shop-ease);
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.75rem 0.85rem 0.85rem;
	min-width: 0;
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile__name {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--shop-ink);
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile__count {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--shop-muted);
}

.nds-shop.nds-shop--premium .nds-shop-subject-tile__arrow {
	position: absolute;
	right: 0.65rem;
	bottom: 0.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--shop-line);
	color: var(--shop-teal);
	font-size: 0.85rem;
	transition: transform 0.25s var(--shop-ease), background 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
	.nds-shop.nds-shop--premium .nds-shop-subject-tile:hover {
		transform: translateY(-3px);
		box-shadow: var(--shop-shadow);
		border-color: color-mix(in srgb, var(--shop-teal) 18%, var(--shop-line));
	}

	.nds-shop.nds-shop--premium .nds-shop-subject-tile:hover .nds-shop-subject-tile__media img {
		transform: scale(1.04);
	}

	.nds-shop.nds-shop--premium .nds-shop-subject-tile:hover .nds-shop-subject-tile__arrow {
		transform: translateX(2px);
		background: var(--shop-teal-soft);
	}
}

/* —— Catalog results (full-width, no filter sidebar) —— */
.nds-shop.nds-shop--premium .nds-shop-results {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.35rem);
	margin-bottom: var(--shop-gap);
}

.nds-shop.nds-shop--premium.nds-shop-page--simple {
	--shop-sidebar-w: 0px;
}

/* —— Toolbar —— */
.nds-shop.nds-shop--premium .nds-shop-toolbar {
	display: grid;
	grid-template-columns: minmax(10rem, 1fr) minmax(14rem, 1.4fr) auto;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--shop-radius);
	border: 1px solid var(--shop-line);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow-sm);
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__query {
	grid-column: 1 / -1;
	margin: 0;
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__sort {
	justify-self: end;
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__summary {
	flex: 1 1 12rem;
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--shop-muted);
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__search {
	flex: 1 1 14rem;
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	min-width: 0;
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__search input[type="search"],
.nds-shop.nds-shop--premium .nds-shop-toolbar__search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0 0.85rem;
	border-radius: var(--shop-radius-sm);
	border: 1px solid var(--shop-line-strong);
	background: var(--shop-panel);
	font: inherit;
	font-size: 0.9rem;
	color: var(--shop-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__search input:focus {
	outline: none;
	border-color: var(--shop-teal);
	box-shadow: var(--shop-focus-ring);
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__sort {
	flex: 0 1 auto;
	min-width: 0;
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__sort select {
	min-height: 2.75rem;
	min-width: 9rem;
	padding: 0 2rem 0 0.75rem;
	border-radius: var(--shop-radius-sm);
	border: 1px solid var(--shop-line-strong);
	background: var(--shop-panel);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--shop-ink);
	cursor: pointer;
}

.nds-shop.nds-shop--premium .nds-shop-toolbar__sort select:focus-visible {
	outline: none;
	box-shadow: var(--shop-focus-ring);
}

/* —— Product grid —— */
.nds-shop.nds-shop--premium .nds-shop-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 1.6vw, 1.35rem);
	align-items: stretch;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nds-shop.nds-shop--premium .nds-shop-grid > li,
.nds-shop.nds-shop--premium .nds-shop-grid > .product,
.nds-shop.nds-shop--premium .nds-shop-grid > .nds-shop-card {
	min-width: 0;
	max-width: 100%;
	display: flex;
}

/* —— Product cards —— */
.nds-shop.nds-shop--premium .nds-shop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: clamp(0.7rem, 1.1vw, 0.9rem);
	border-radius: var(--shop-radius);
	border: 1px solid var(--shop-line);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow-sm);
	transition:
		transform 0.28s var(--shop-ease),
		box-shadow 0.28s ease,
		border-color 0.28s ease;
}

.nds-shop.nds-shop--premium .nds-shop-card__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	/* Match typical book proportions so contain() can fill the frame. */
	aspect-ratio: 3 / 4;
	min-height: 0;
	height: auto;
	margin-bottom: 0.75rem;
	/* Minimal breathing room — covers stay fully visible, not floating in a large empty pad. */
	padding: clamp(0.12rem, 0.35vw, 0.28rem);
	border-radius: calc(var(--shop-radius) - 4px);
	background:
		linear-gradient(180deg, #f7f9fb 0%, #eef2f6 58%, #e9eef3 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(10, 26, 42, 0.04);
	overflow: hidden;
}

.nds-shop.nds-shop--premium .nds-shop-card__cover,
.nds-shop.nds-shop--premium img.nds-shop-card__cover {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
	border-radius: 5px;
	background: transparent;
	box-shadow: 0 6px 16px rgba(10, 26, 42, 0.08);
	transition: transform 0.4s var(--shop-ease);
}

.nds-shop.nds-shop--premium .nds-shop-card__stage > .nds-shop-card__cover,
.nds-shop.nds-shop--premium .nds-shop-card__stage > img.nds-shop-card__cover {
	flex: 0 1 auto;
	align-self: stretch;
	width: 100%;
	height: 100%;
}

.nds-shop.nds-shop--premium .nds-shop-card__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0.75rem;
	font-size: 0.8rem;
	font-weight: 650;
	text-align: center;
	color: var(--shop-muted);
}

/* Default stack (legacy). Collection cards override below for larger artwork. */
.nds-shop.nds-shop--premium .nds-shop-card__stack {
	position: relative;
	display: block;
	width: min(92%, 14rem);
	aspect-ratio: 3 / 3.5;
	margin: 0 auto;
	pointer-events: none;
}

.nds-shop.nds-shop--premium .nds-shop-card__stack-item {
	position: absolute;
	width: 62%;
	opacity: 0.86;
}

.nds-shop.nds-shop--premium .nds-shop-card__stack-item .nds-shop-card__cover,
.nds-shop.nds-shop--premium .nds-shop-card__stack-item img.nds-shop-card__cover {
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: center;
	box-shadow: 0 6px 16px rgba(10, 26, 42, 0.1);
}

.nds-shop.nds-shop--premium .nds-shop-card__stack-item--1 {
	left: 4%;
	top: 10%;
	transform: rotate(-7deg);
	z-index: 1;
}

.nds-shop.nds-shop--premium .nds-shop-card__stack-item--2 {
	right: 4%;
	top: 12%;
	transform: rotate(6deg);
	opacity: 0.94;
	z-index: 2;
}

.nds-shop.nds-shop--premium .nds-shop-card__stack-item--3 {
	left: 17%;
	top: 5%;
	width: 66%;
	transform: rotate(-1.5deg);
	opacity: 1;
	z-index: 3;
}

/*
 * Collection cards: shorter media frame + large fan of books.
 * Individual portrait covers keep the default 3/4 stage rules above.
 */
.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stage {
	aspect-ratio: 1 / 1;
	padding: clamp(0.14rem, 0.35vw, 0.28rem);
	margin-bottom: 0.6rem;
}

.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack {
	width: 93%;
	max-width: none;
	height: 93%;
	max-height: 93%;
	aspect-ratio: auto;
	align-self: center;
}

.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item {
	width: 72%;
	height: 88%;
}

.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item .nds-shop-card__cover,
.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item img.nds-shop-card__cover {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item--1 {
	left: 1.5%;
	top: 5%;
	transform: rotate(-4.5deg);
}

.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item--2 {
	right: 1.5%;
	top: 6%;
	transform: rotate(3.5deg);
}

.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item--3 {
	left: 13%;
	top: 3%;
	width: 76%;
	height: 92%;
	transform: rotate(-0.4deg);
}

/* Single-cover Collection fallback (no multi-book stack). */
.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stage > .nds-shop-card__cover,
.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stage > img.nds-shop-card__cover {
	position: relative;
	z-index: 2;
	width: 90%;
	height: 90%;
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	object-position: center;
	align-self: center;
}

.nds-shop.nds-shop--premium .nds-shop-card__badges {
	position: static;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	max-width: 100%;
	margin: 0 0 0.15rem;
	min-height: 1.35rem;
}

.nds-shop.nds-shop--premium .nds-shop-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--shop-teal-deep);
	background: color-mix(in srgb, var(--shop-panel) 88%, var(--shop-teal) 12%);
	border: 1px solid var(--shop-line);
}

.nds-shop.nds-shop--premium .nds-shop-card__badge--collection {
	color: #fff;
	background: var(--shop-teal);
	border-color: color-mix(in srgb, var(--shop-teal) 80%, #000);
}

.nds-shop.nds-shop--premium .nds-shop-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.4rem;
	min-width: 0;
}

.nds-shop.nds-shop--premium .nds-shop-card__title {
	margin: 0;
	min-height: calc(1.35em * 3);
	font-size: var(--nds-fs-card-title, clamp(0.9rem, 0.84rem + 0.28vw, 1.05rem));
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--shop-ink);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.nds-shop.nds-shop--premium .nds-shop-card__title a {
	color: inherit;
	text-decoration: none;
}

.nds-shop.nds-shop--premium .nds-shop-card__title a:hover,
.nds-shop.nds-shop--premium .nds-shop-card__title a:focus-visible {
	color: var(--shop-teal-deep);
}

.nds-shop.nds-shop--premium .nds-shop-card__meta {
	margin: 0;
	min-height: 1.4em;
	font-size: var(--nds-fs-meta, 0.76rem);
	font-weight: 600;
	line-height: 1.4;
	color: var(--shop-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.nds-shop.nds-shop--premium .nds-shop-card__meta--empty {
	visibility: hidden;
}

.nds-shop.nds-shop--premium .nds-shop-card__price-row {
	margin-top: auto;
	padding-top: 0.2rem;
}

.nds-shop.nds-shop--premium .nds-shop-card__price {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 750;
	color: var(--shop-teal-deep);
	line-height: 1.25;
}

.nds-shop.nds-shop--premium .nds-shop-card__price del {
	font-size: 0.85em;
	font-weight: 600;
	color: var(--shop-soft);
	margin-right: 0.35rem;
}

.nds-shop.nds-shop--premium .nds-shop-card__bundle-meta {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 650;
	color: var(--shop-teal);
}

.nds-shop.nds-shop--premium .nds-shop-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.45rem;
	margin-top: 0.45rem;
	padding-top: 0;
}

.nds-shop.nds-shop--premium .nds-shop-card__cta,
.nds-shop.nds-shop--premium .nds-shop-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	border-radius: var(--shop-radius-sm);
	font-size: var(--nds-fs-button, 0.84rem);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--shop-ease);
}

.nds-shop.nds-shop--premium .nds-shop-card__cta {
	flex: 1 1 auto;
	border: 1px solid var(--shop-teal);
	background: var(--shop-teal);
	color: #fff !important;
}

.nds-shop.nds-shop--premium .nds-shop-card__cta:hover,
.nds-shop.nds-shop--premium .nds-shop-card__cta:focus-visible {
	background: var(--shop-teal-deep);
	border-color: var(--shop-teal-deep);
}

.nds-shop.nds-shop--premium .nds-shop-card__link {
	border: 1px solid var(--shop-line-strong);
	background: transparent;
	color: var(--shop-teal-deep) !important;
	min-width: 2.75rem;
	padding-inline: 0.75rem;
}

.nds-shop.nds-shop--premium .nds-shop-card__cta:focus-visible,
.nds-shop.nds-shop--premium .nds-shop-card__link:focus-visible {
	outline: none;
	box-shadow: var(--shop-focus-ring);
}

@media (hover: hover) and (pointer: fine) {
	.nds-shop.nds-shop--premium .nds-shop-card:hover {
		transform: translateY(-3px);
		box-shadow: var(--shop-shadow-lift);
		border-color: color-mix(in srgb, var(--shop-teal) 16%, var(--shop-line));
	}

	.nds-shop.nds-shop--premium .nds-shop-card:hover .nds-shop-card__cover {
		transform: scale(1.015);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nds-shop.nds-shop--premium .nds-shop-card,
	.nds-shop.nds-shop--premium .nds-shop-subject-tile,
	.nds-shop.nds-shop--premium .nds-shop-card__cover,
	.nds-shop.nds-shop--premium .nds-shop-subject-tile__media img {
		transition: none;
	}

	@media (hover: hover) and (pointer: fine) {
		.nds-shop.nds-shop--premium .nds-shop-card:hover {
			transform: none;
		}

		.nds-shop.nds-shop--premium .nds-shop-card:hover .nds-shop-card__cover {
			transform: none;
		}
	}
}

/* —— Pagination —— */
.nds-shop.nds-shop--premium .nds-shop-pager {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding: 1rem 1.15rem;
	border-radius: var(--shop-radius);
	border: 1px solid var(--shop-line);
	background: var(--shop-surface);
	box-shadow: var(--shop-shadow-sm);
}

.nds-shop.nds-shop--premium .nds-shop-pager__context {
	order: -1;
	margin: 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--shop-muted);
}

.nds-shop.nds-shop--premium .nds-shop-pager__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nds-shop.nds-shop--premium .nds-shop-pager__item {
	margin: 0;
}

.nds-shop.nds-shop--premium .nds-shop-pager__item a,
.nds-shop.nds-shop--premium .nds-shop-pager__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.65rem;
	border-radius: var(--shop-radius-sm);
	border: 1px solid var(--shop-line);
	background: var(--shop-panel);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--shop-ink);
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nds-shop.nds-shop--premium .nds-shop-pager__item a:hover,
.nds-shop.nds-shop--premium .nds-shop-pager__item a:focus-visible {
	border-color: var(--shop-teal);
	color: var(--shop-teal-deep);
	background: var(--shop-teal-soft);
	outline: none;
	box-shadow: var(--shop-focus-ring);
}

.nds-shop.nds-shop--premium .nds-shop-pager__item span.current {
	background: var(--shop-teal);
	border-color: var(--shop-teal);
	color: #fff;
}

.nds-shop.nds-shop--premium .nds-shop-pager__item .prev,
.nds-shop.nds-shop--premium .nds-shop-pager__item .next {
	font-weight: 750;
}

/* —— Empty state —— */
.nds-shop.nds-shop--premium .nds-shop-empty {
	margin: var(--shop-gap) 0;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--shop-radius-lg);
	border: 1px dashed color-mix(in srgb, var(--shop-teal) 25%, var(--shop-line));
	background: linear-gradient(180deg, var(--shop-panel) 0%, #fff 100%);
	text-align: center;
}

.nds-shop.nds-shop--premium .nds-shop-empty h2 {
	margin: 0 0 0.65rem;
	font-family: var(--nds-font-display, Georgia, serif);
	font-size: clamp(1.35rem, 2vw, 1.75rem);
	font-weight: 650;
	color: var(--shop-ink);
}

.nds-shop.nds-shop--premium .nds-shop-empty p {
	margin: 0 auto 0.85rem;
	max-width: 42ch;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--shop-muted);
}

.nds-shop.nds-shop--premium .nds-shop-empty__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	margin-top: 1.15rem;
}

.nds-shop.nds-shop--premium .nds-shop-empty__actions .nds-btn,
.nds-shop.nds-shop--premium .nds-shop-empty__actions a {
	min-height: 2.75rem;
	padding-inline: 1.15rem;
	border-radius: var(--shop-radius-sm);
	font-weight: 700;
}

/* —— Recently viewed strip (shop context) —— */
.nds-shop.nds-shop--premium .nds-shop-rv {
	margin: 0 0 var(--shop-gap);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: var(--shop-radius-lg);
	border: 1px solid var(--shop-line);
	background:
		radial-gradient(ellipse 70% 55% at 100% 0%, rgba(13, 101, 112, 0.08), transparent 58%),
		linear-gradient(165deg, #ffffff 0%, var(--shop-panel) 100%);
	box-shadow: var(--shop-shadow-sm);
	overflow-x: clip;
}

.nds-shop.nds-shop--premium .nds-shop-rv__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.nds-shop.nds-shop--premium .nds-shop-rv__head h2 {
	margin: 0;
	font-family: var(--nds-font-display, Georgia, serif);
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
	font-weight: 650;
	color: var(--shop-ink);
}

.nds-shop.nds-shop--premium .nds-shop-rv__track {
	display: flex;
	gap: 0.85rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--shop-gutter);
	padding-bottom: 0.35rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.nds-shop.nds-shop--premium .nds-shop-rv__track > *,
.nds-shop.nds-shop--premium .nds-shop-rv__item {
	flex: 0 0 clamp(11rem, 22vw, 14rem);
	scroll-snap-align: start;
	min-width: 0;
	max-width: 14rem;
}

.nds-shop.nds-shop--premium .nds-shop-rv__item .nds-shop-card {
	height: auto;
}

.nds-shop.nds-shop--premium .nds-shop-rv__item .nds-shop-card__stage {
	min-height: 8.5rem;
}

.nds-shop.nds-shop--premium .nds-shop-rv__item .nds-shop-card__actions {
	flex-direction: column;
	align-items: stretch;
}

/* —— Global focus within shop —— */
.nds-shop.nds-shop--premium a:focus-visible,
.nds-shop.nds-shop--premium button:focus-visible {
	outline: none;
	box-shadow: var(--shop-focus-ring);
	border-radius: 4px;
}

/* —— Responsive: large desktop keeps 4 columns (default) —— */

/* —— Narrow phones: hide hero cover stack —— */
@media (max-width: 30rem) {
	.nds-shop.nds-shop--premium .nds-shop-hero__visual {
		display: none;
	}
}

/* —— Tablet: hero stack + 2-col grid (≤1023px) —— */
@media (max-width: 63.9375rem) {
	.nds-shop.nds-shop--premium .nds-shop-hero__layout {
		grid-template-columns: 1fr;
	}

	.nds-shop.nds-shop--premium .nds-shop-hero__visual {
		order: 0;
		min-height: 10rem;
		max-height: 12rem;
		padding: 0.35rem 0 0.75rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-hero__stack {
		width: min(11rem, 55%);
		aspect-ratio: 3 / 3.4;
	}

	.nds-shop.nds-shop--premium .nds-shop-hero__stack .nds-shop-hero__cover:nth-child(n+4) {
		display: none;
	}

	.nds-shop.nds-shop--premium .nds-shop-hero__copy {
		order: -1;
	}

	.nds-shop.nds-shop--premium .nds-shop-subjects__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.nds-shop.nds-shop--premium .nds-shop-toolbar {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-toolbar__summary {
		grid-column: 1 / -1;
	}

	.nds-shop.nds-shop--premium .nds-shop-toolbar__search {
		grid-column: 1 / -1;
	}

	.nds-shop.nds-shop--premium .nds-shop-toolbar__sort {
		justify-self: stretch;
		grid-column: 1 / -1;
	}

	.nds-shop.nds-shop--premium .nds-shop-toolbar__sort select {
		width: 100%;
	}

	.nds-shop.nds-shop--premium .nds-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(0.85rem, 2.2vw, 1.2rem);
	}
}

/* —— Mid desktop: 3 columns until ~1280px; 4 columns above —— */
@media (min-width: 64rem) and (max-width: 79.9375rem) {
	.nds-shop.nds-shop--premium .nds-shop-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* —— Responsive: subject rail / narrow tablet —— */
@media (max-width: 47.9375rem) {
	.nds-shop.nds-shop--premium .nds-shop-subjects__grid {
		display: flex;
		flex-wrap: nowrap;
		gap: 0.75rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--shop-gutter);
		margin-inline: calc(-1 * var(--shop-gutter));
		padding-inline: var(--shop-gutter);
		-webkit-overflow-scrolling: touch;
	}

	.nds-shop.nds-shop--premium .nds-shop-subject-tile {
		flex: 0 0 clamp(10.5rem, 58vw, 13.5rem);
		scroll-snap-align: start;
	}

	.nds-shop.nds-shop--premium .nds-shop-card__title {
		min-height: calc(1.35em * 2);
		-webkit-line-clamp: 2;
		font-size: clamp(0.84rem, 0.8rem + 0.35vw, 0.95rem);
	}

	.nds-shop.nds-shop--premium .nds-shop-card__cta,
	.nds-shop.nds-shop--premium .nds-shop-card__link {
		min-height: 2.65rem;
		font-size: 0.78rem;
		padding-inline: 0.65rem;
	}
}

/* —— Mobile: keep 2 columns when readable —— */
@media (max-width: 29.9375rem) {
	.nds-shop.nds-shop--premium .nds-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.7rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-card {
		padding: 0.55rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-card__stage {
		aspect-ratio: 3 / 4;
		padding: 0.2rem;
		margin-bottom: 0.55rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stage {
		aspect-ratio: 1 / 1;
		padding: 0.12rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack {
		width: 95%;
		height: 95%;
		max-height: 95%;
	}

	.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item {
		width: 72%;
		height: 84%;
	}

	.nds-shop.nds-shop--premium .nds-shop-card--collection .nds-shop-card__stack-item--3 {
		width: 76%;
		height: 88%;
	}

	.nds-shop.nds-shop--premium .nds-shop-card__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-card__link {
		width: 100%;
	}
}

/* —— Very narrow (~320–349px): single compact column —— */
@media (max-width: 21.875rem) {
	.nds-shop.nds-shop--premium .nds-shop-grid {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.nds-shop.nds-shop--premium .nds-shop-card__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.nds-shop.nds-shop--premium .nds-shop-card__title {
		min-height: calc(1.35em * 2);
		-webkit-line-clamp: 2;
	}
}

@media (min-width: 30rem) and (max-width: 47.9375rem) {
	.nds-shop.nds-shop--premium .nds-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* —— Pagination mobile emphasis —— */
@media (max-width: 47.9375rem) {
	.nds-shop.nds-shop--premium .nds-shop-pager__context {
		order: 0;
		font-size: 0.95rem;
		color: var(--shop-ink);
	}

	.nds-shop.nds-shop--premium .nds-shop-pager__list {
		width: 100%;
		justify-content: space-between;
	}

	.nds-shop.nds-shop--premium .nds-shop-pager__item:not(:first-child):not(:last-child) {
		display: none;
	}

	.nds-shop.nds-shop--premium .nds-shop-pager__item:first-child a,
	.nds-shop.nds-shop--premium .nds-shop-pager__item:last-child a {
		min-width: auto;
		padding-inline: 1.1rem;
		font-size: 0.92rem;
		border-color: color-mix(in srgb, var(--shop-teal) 30%, var(--shop-line));
		background: var(--shop-teal-soft);
		color: var(--shop-teal-deep);
	}
}

/* —— AJAX catalog updates —— */
html.nds-shop-ajax-busy {
	overflow-anchor: none;
	scroll-behavior: auto !important;
}

.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-loading .nds-shop-toolbar {
	pointer-events: none;
	opacity: 0.72;
}

.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-loading [data-nds-shop-results],
.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-loading .nds-shop-results {
	opacity: 0.55;
}

.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-entering {
	opacity: 0;
}

.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-entering.is-ready {
	opacity: 1;
	transition: opacity 0.2s ease;
}

.nds-shop.nds-shop--premium .nds-shop-card--skeleton {
	pointer-events: none;
	min-height: 18rem;
}

.nds-shop.nds-shop--premium .nds-shop-skel {
	display: block;
	border-radius: 10px;
	background: linear-gradient(90deg, #eef3f7 0%, #f7fafc 45%, #eef3f7 100%);
	background-size: 200% 100%;
	animation: nds-shop-skel 1.1s ease-in-out infinite;
}

.nds-shop.nds-shop--premium .nds-shop-card--skeleton .nds-shop-card__stage.nds-shop-skel {
	min-height: 11rem;
	margin-bottom: 0.85rem;
}

.nds-shop.nds-shop--premium .nds-shop-skel--line {
	height: 0.95rem;
	margin-bottom: 0.55rem;
}

.nds-shop.nds-shop--premium .nds-shop-skel--short {
	width: 42%;
}

.nds-shop.nds-shop--premium .nds-shop-skel--btn {
	height: 2.75rem;
	margin-top: 0.85rem;
}

@keyframes nds-shop-skel {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.nds-shop.nds-shop--premium .nds-shop-skel {
		animation: none;
	}
	.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-entering,
	.nds-shop.nds-shop--premium #nds-shop-ajax-root.is-entering.is-ready {
		opacity: 1;
		transition: none;
	}
}

