/**
 * Wheel archive — Level-1 series tiles + Level-2 design grid (wheels-remodel).
 *
 * Loaded by Cool_Bear_Wheel_Archive::enqueue_styles() on the /wheels/ archive
 * and the /wheels/series/{slug}/ Level-2 route.
 */

/* 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);
	}
}

/* ── Level 1: series tiles ─────────────────────────────────────────── */
.cb-wheel-series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0 2.5rem;
}

.cb-wheel-series-tile {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--wp--preset--color--surface, #fff);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cb-wheel-series-tile:hover,
.cb-wheel-series-tile:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.cb-wheel-series-tile__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #0d0d0f;
	overflow: hidden;
}

.cb-wheel-series-tile__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-wheel-series-tile__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.55);
}

.cb-wheel-series-tile__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.9rem 1rem 1.1rem;
}

.cb-wheel-series-tile__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--accent, #b8860b);
}

.cb-wheel-series-tile__headline {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
}

.cb-wheel-series-tile__meta {
	font-size: 0.8rem;
	color: rgba(0, 0, 0, 0.6);
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: baseline;
}

.cb-wheel-series-tile__band {
	font-variant-numeric: tabular-nums;
	color: rgba(0, 0, 0, 0.45);
}

/* ── Level 2: design grid ──────────────────────────────────────────── */
.cb-wheel-design-grid__intro {
	margin: 1rem 0 1.75rem;
	max-width: 60ch;
}

.cb-wheel-design-grid__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--accent, #b8860b);
	margin: 0 0 0.25rem;
}

.cb-wheel-design-grid__headline {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.cb-wheel-design-grid__body {
	color: rgba(0, 0, 0, 0.7);
	font-size: 0.95rem;
	line-height: 1.55;
}

.cb-wheel-design-grid__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
}

.cb-wheel-design-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	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);
}

/* ── Stacked series sections (xyz-racing.com/Wheels layout) ──────────── */
.cb-wheel-series-list {
	margin: 1.5rem 0 2.5rem;
}

.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);
}

.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;
}
