/**
 * Wheel archive — Level-1 series landing + Level-2 paginated design grid.
 *
 * Loaded by Cool_Bear_Wheel_Archive::enqueue_styles() on the /wheels/ archive
 * and the /wheels/series/{slug}/[page/N/] Level-2 route.
 *
 * 2026-09-07 (audit 260905 D #P1): /wheels/ is now series cards + a featured
 * row (~2.5k px) instead of every design stacked (34.5k px); series pages are
 * 24 designs a page, 4-up desktop / 2-up mobile, 1:1 renders.
 */

/* Page container — this route loads wheel-archive.css but NOT the theme's
   archive.css, so the .cb-plp__container width + side padding never applied and
   the content (breadcrumb, grid) sat flush to the viewport edge (operator
   2026-06-29). Mirror the theme archive container here. */
.cb-plp__container {
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--40, 24px);
	padding-right: var(--wp--preset--spacing--40, 24px);
}
@media (min-width: 1024px) {
	.cb-plp__container {
		padding-left: var(--wp--preset--spacing--60, 40px);
		padding-right: var(--wp--preset--spacing--60, 40px);
	}
}

/* The WebP output filter wraps every <img> in <picture>; keep it layout-inert
   inside our tiles even where product-grid.css is not loaded. */
.cb-wheel-landing picture,
.cb-wheel-section picture {
	display: contents;
}

/* ── Level 1: landing (series cards + featured row) ────────────────── */
.cb-wheel-landing {
	margin: 1.5rem 0 3rem;
}

.cb-wheel-landing__head {
	margin: 0 0 1.25rem;
}

.cb-wheel-landing__title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
}

.cb-wheel-landing__lede {
	margin: 0;
	max-width: 70ch;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--wp--preset--color--text-muted, #b6b6c2);
}

.cb-wheel-series-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	margin: 0 0 3rem;
}

@media (min-width: 640px) {
	.cb-wheel-series-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.cb-wheel-series-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.cb-wheel-series-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Compact horizontal card (render beside the copy — the Studio step-01 chip
   with a picture): ~170px tall, so 14 series fit in four rows on desktop
   and the landing stays ~2.5k px instead of a 1:1 render per card. */
.cb-wheel-series-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
	padding: 0.75rem;
	text-decoration: none;
	color: var(--wp--preset--color--text, #f0f0f2);
	background: var(--wp--preset--color--surface, #18181c);
	border: 1px solid var(--wp--preset--color--border, #2e2e38);
	border-radius: 10px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (min-width: 1280px) {
	.cb-wheel-series-card {
		grid-template-columns: 128px minmax(0, 1fr);
	}
}

.cb-wheel-series-card:hover,
.cb-wheel-series-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
	border-color: var(--wp--preset--color--border-strong, #42424e);
}

.cb-wheel-series-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: var(--wp--preset--color--surface-sunken, #101014);
}

.cb-wheel-series-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cb-wheel-series-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.cb-wheel-series-card__title {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
}

.cb-wheel-series-card__tagline {
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--wp--preset--color--text-muted, #b6b6c2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cb-wheel-series-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.6rem;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--text-subtle, #9898a8);
}

.cb-wheel-series-card__from {
	font-size: 0.85rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cb-wheel-series-card__cta {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent, #e8ff00);
}

.cb-wheel-series-card:hover .cb-wheel-series-card__cta,
.cb-wheel-series-card:focus-visible .cb-wheel-series-card__cta {
	text-decoration: underline;
}

/* Featured designs — one scroll-snap row, arrows page it by a track width. */
.cb-wheel-featured__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

.cb-wheel-featured__nav {
	display: flex;
	gap: 0.4rem;
	flex: none;
}

.cb-wheel-featured__arrow {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border, #2e2e38);
	background: var(--wp--preset--color--surface, #18181c);
	color: var(--wp--preset--color--text, #f0f0f2);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease;
}

.cb-wheel-featured__arrow:hover,
.cb-wheel-featured__arrow:focus-visible {
	border-color: var(--wp--preset--color--accent, #e8ff00);
}

.cb-wheel-featured__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 0.75rem) / 2);
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	padding-bottom: 0.5rem;
	-webkit-overflow-scrolling: touch;
}

.cb-wheel-featured__track > .cb-wheel-design-tile {
	scroll-snap-align: start;
}

@media (min-width: 640px) {
	.cb-wheel-featured__track {
		grid-auto-columns: calc((100% - 2rem) / 3);
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.cb-wheel-featured__track {
		grid-auto-columns: calc((100% - 5rem) / 6);
	}
}

/* ── Level 2: design grid (4-up desktop / 3-up tablet / 2-up mobile) ── */
.cb-wheel-design-grid__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.cb-wheel-design-grid__tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.cb-wheel-design-grid__tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.cb-wheel-design-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	text-decoration: none;
	color: var(--wp--preset--color--text, #f0f0f2);
	padding: 0.75rem;
	border: 1px solid var(--wp--preset--color--border, #2e2e38);
	border-radius: 10px;
	background: var(--wp--preset--color--surface, #18181c);
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cb-wheel-design-tile:hover,
.cb-wheel-design-tile:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
	border-color: var(--wp--preset--color--border-strong, #42424e);
}

.cb-wheel-design-tile__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--surface-sunken, #101014);
	border-radius: 8px;
}

.cb-wheel-design-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cb-wheel-design-tile__code {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--text, #f0f0f2);
}

/* ── Series section chrome (banner, head, intro) ─────────────────────── */
.cb-wheel-section {
	margin: 0 0 3.5rem;
}

.cb-wheel-banner {
	width: 100%;
	aspect-ratio: 1498 / 336;
	background: #0d0d0f;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
}

.cb-wheel-banner__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cb-wheel-banner--placeholder {
	aspect-ratio: 1498 / 336;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.cb-wheel-banner--placeholder span {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.cb-wheel-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 1rem;
	margin: 1rem 0 1.25rem;
}

.cb-wheel-section__title {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
	margin: 0;
}

.cb-wheel-section__title a {
	color: inherit;
	text-decoration: none;
}

.cb-wheel-section__tagline {
	flex-basis: 100%;
	margin: 0;
	font-size: 1rem;
	font-style: italic;
	color: var(--wp--preset--color--text-muted, #b6b6c2);
}

.cb-wheel-section__sizes {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--text-subtle, #9898a8);
	font-variant-numeric: tabular-nums;
}

/* Fuller series description under the header, above the design grid. */
.cb-wheel-section__intro {
	max-width: 70ch;
	margin: -0.25rem 0 1.5rem;
}

.cb-wheel-section__intro p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted, #b6b6c2);
}

.cb-wheel-section__sizes-label {
	margin-right: 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-subtle, #9898a8);
}

/* "Showing a–b of N designs" */
.cb-wheel-section__count {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--text-subtle, #9898a8);
}

.cb-wheel-design-tile__price {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--text, #f0f0f2);
	font-variant-numeric: tabular-nums;
}

/* "Select options" CTA on each design tile */
.cb-wheel-design-tile__cta {
	margin-top: 0.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent, #e8ff00);
}

.cb-wheel-design-tile:hover .cb-wheel-design-tile__cta,
.cb-wheel-design-tile:focus-visible .cb-wheel-design-tile__cta {
	text-decoration: underline;
}

/* ── Pager (show more + prev/next + numbers) ──────────────────────────── */
.cb-wheel-pager {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin: 1.75rem 0 0;
}

.cb-wheel-pager__more {
	min-height: 48px;
	padding: 0 1.75rem;
	border: 1px solid var(--wp--preset--color--accent, #e8ff00);
	border-radius: 999px;
	background: var(--wp--preset--color--accent, #e8ff00);
	color: #0d0d0f;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.16s ease;
}

.cb-wheel-pager__more:hover,
.cb-wheel-pager__more:focus-visible {
	filter: brightness(1.08);
}

.cb-wheel-pager__more[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.cb-wheel-pager__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 0.75rem;
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.cb-wheel-pager__step,
.cb-wheel-pager__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.6rem;
	border-radius: 8px;
	border: 1px solid var(--wp--preset--color--border, #2e2e38);
	color: var(--wp--preset--color--text, #f0f0f2);
	text-decoration: none;
	background: var(--wp--preset--color--surface, #18181c);
}

a.cb-wheel-pager__step:hover,
a.cb-wheel-pager__num:hover,
a.cb-wheel-pager__step:focus-visible,
a.cb-wheel-pager__num:focus-visible {
	border-color: var(--wp--preset--color--accent, #e8ff00);
}

.cb-wheel-pager__step.is-disabled {
	opacity: 0.35;
}

.cb-wheel-pager__num.is-current {
	border-color: var(--wp--preset--color--accent, #e8ff00);
	background: var(--wp--preset--color--accent, #e8ff00);
	color: #0d0d0f;
	font-weight: 800;
}

.cb-wheel-pager__nums {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

.cb-wheel-pager__gap {
	align-self: center;
	color: var(--wp--preset--color--text-subtle, #9898a8);
}

.cb-wheel-featured__arrow:focus-visible,
.cb-wheel-pager__more:focus-visible,
.cb-wheel-series-card:focus-visible,
.cb-wheel-design-tile:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #e8ff00);
	outline-offset: 2px;
}
