/* ==========================================================================
   Kardano — Design System & Theme Styles
   --------------------------------------------------------------------------
   1. Tokens
   2. Base
   3. Layout
   4. Components
   5. Header
   6. Home
   7. Content (blog, pages, widgets)
   8. Footer & bottom nav
   9. WordPress core helpers
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
	/* Brand (overridden from the Customizer) */
	--r-accent: #c94f0a;
	--r-accent-hover: #a9420a;
	--r-accent-soft: #fff3eb;
	--r-accent-vivid: #f26a1b;
	--r-on-accent: #ffffff;
	--r-link: #b04a0a;

	/* Neutral action colour (most buttons); accent is reserved for key conversions */
	--r-btn: #1d2025;
	--r-btn-hover: #000000;

	/* Brand surfaces */
	--r-ink: #0f0f13;
	--r-ink-2: #1b1b22;
	--r-express: #ffd60a;
	--r-express-ink: #1a1500;

	/* Neutrals */
	--r-bg: #ffffff;
	--r-surface: #f5f5f7;
	--r-surface-2: #ebebef;
	--r-elevated: #ffffff;
	--r-text: #1d1d1f;
	--r-text-2: #515154;
	--r-text-3: #6e6e73;
	--r-border: #e5e5ea;
	--r-border-strong: #d2d2d7;

	/* Status */
	--r-success: #1d8a3a;
	--r-success-soft: #e8f6ec;
	--r-danger: #d70015;
	--r-danger-soft: #fdecee;
	--r-warning: #b25000;
	--r-warning-soft: #fff4e5;

	/* Typography */
	/* Body: IRANSans; headings: Morabba; Latin letters: Satoshi.
	   Codes and English data use --r-font-latin so their digits stay Latin. */
	--r-font: "Satoshi Letters", "IRANSans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
	--r-font-heading: "Satoshi Letters", "Morabba", "IRANSans", Tahoma, sans-serif;
	--r-font-latin: "Satoshi", "IRANSans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--r-fs-xs: 0.75rem;
	--r-fs-sm: 0.8125rem;
	--r-fs-base: 0.9375rem;
	--r-fs-md: 1.0625rem;
	--r-fs-lg: 1.25rem;
	--r-fs-xl: 1.5rem;
	--r-fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--r-fs-3xl: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
	--r-fs-display: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem);
	--r-lh: 1.8;
	--r-lh-tight: 1.35;

	/* Spacing (4px scale) */
	--r-space-1: 4px;
	--r-space-2: 8px;
	--r-space-3: 12px;
	--r-space-4: 16px;
	--r-space-5: 20px;
	--r-space-6: 24px;
	--r-space-8: 32px;
	--r-space-10: 40px;
	--r-space-12: 48px;
	--r-space-16: 64px;
	--r-space-20: 80px;
	--r-section: clamp(24px, 2vw + 16px, 40px);

	/* Radius */
	--r-radius-sm: 6px;
	--r-radius: 8px;
	--r-radius-lg: 12px;
	--r-radius-xl: 16px;
	--r-radius-pill: 8px;

	/* Elevation */
	--r-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
	--r-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	--r-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);

	/* Motion — short and subtle */
	--r-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	--r-dur: 0.2s;
	--r-dur-slow: 0.32s;

	/* Layout */
	--r-container: 1856px; /* Wireframe canvas 1920px minus 32px gutters. */
	--r-header-row: 42px;
	--r-sidebar: 364px;
	--r-gutter: 16px;
	--r-header-h: 60px;
	--r-control-h: 44px;
	--r-focus: 0 0 0 3px color-mix(in srgb, var(--r-accent) 35%, transparent);
}

@media (min-width: 768px) {
	:root {
		--r-gutter: 24px;
		--r-fs-base: 1rem;
	}
}

@media (min-width: 1280px) {
	:root {
		--r-gutter: 32px;
	}
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--r-header-h) + 56px);
}

body {
	margin: 0;
	background: var(--r-bg);
	color: var(--r-text);
	font-family: var(--r-font);
	font-size: var(--r-fs-base);
	line-height: var(--r-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--r-space-4);
	color: var(--r-text);
	font-family: var(--r-font-heading);
	font-weight: 700; /* Morabba tops out at 700. */
	line-height: var(--r-lh-tight);
	letter-spacing: 0; /* Persian letters must never be tracked. */
}

/* Codes and English data: Satoshi with Latin digits. */
[dir="ltr"],
[lang^="en"],
.ltr,
.font-latin,
.sku,
.product-card__sku,
input[type="email"],
input[type="url"],
input[type="tel"] {
	font-family: var(--r-font-latin);
	font-variant-numeric: tabular-nums;
}

h1 { font-size: var(--r-fs-3xl); }
h2 { font-size: var(--r-fs-2xl); }
h3 { font-size: var(--r-fs-xl); }
h4 { font-size: var(--r-fs-lg); }
h5 { font-size: var(--r-fs-md); }
h6 { font-size: var(--r-fs-base); }

p {
	margin: 0 0 var(--r-space-4);
}

a {
	color: var(--r-link);
	text-decoration: none;
	transition: color var(--r-dur) var(--r-ease);
}

a:hover {
	color: var(--r-accent-hover);
}

:focus-visible {
	outline: 2px solid var(--r-accent);
	outline-offset: 2px;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

svg.icon {
	flex-shrink: 0;
}

hr {
	height: 1px;
	margin: var(--r-space-8) 0;
	border: 0;
	background: var(--r-border);
}

ul,
ol {
	margin: 0 0 var(--r-space-4);
	padding-inline-start: 1.4em;
}

blockquote {
	margin: var(--r-space-6) 0;
	padding: var(--r-space-4) var(--r-space-6);
	border-inline-start: 3px solid var(--r-accent);
	border-radius: var(--r-radius-sm);
	background: var(--r-surface);
	color: var(--r-text-2);
}

code,
kbd,
pre,
samp {
	font-family: var(--r-font-mono);
	font-size: 0.9em;
}

pre {
	overflow: auto;
	padding: var(--r-space-4);
	border-radius: var(--r-radius);
	background: var(--r-surface);
	direction: ltr;
	text-align: left;
}

table {
	width: 100%;
	margin: 0 0 var(--r-space-6);
	border-collapse: collapse;
}

th,
td {
	padding: var(--r-space-3);
	border-bottom: 1px solid var(--r-border);
	text-align: start;
}

th {
	font-weight: 700;
}

::selection {
	background: var(--r-accent-soft);
	color: var(--r-text);
}

/* Forms */
input,
button,
select,
textarea {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
textarea,
select,
.input-text {
	width: 100%;
	min-height: var(--r-control-h);
	padding: 10px 14px;
	border: 1px solid var(--r-border-strong);
	border-radius: var(--r-radius);
	background: var(--r-elevated);
	color: var(--r-text);
	font-size: var(--r-fs-base);
	line-height: 1.5;
	transition: border-color var(--r-dur) var(--r-ease), box-shadow var(--r-dur) var(--r-ease);
	-webkit-appearance: none;
	appearance: none;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.input-text:focus {
	border-color: var(--r-accent);
	outline: 0;
	box-shadow: var(--r-focus);
}

input::placeholder,
textarea::placeholder {
	color: var(--r-text-3);
	opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--r-accent);
	vertical-align: middle;
}

select {
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	cursor: pointer;
}

[dir="ltr"] select,
html:not([dir="rtl"]) select {
	background-position: right 14px center;
}

html[dir="rtl"] select {
	background-position: left 14px center;
}

label {
	display: inline-block;
	margin-bottom: var(--r-space-1);
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

fieldset {
	margin: 0 0 var(--r-space-6);
	padding: var(--r-space-4);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius);
}

/* 3. Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--r-container) + var(--r-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--r-gutter);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.site-content {
	flex: 1 0 auto;
}

.section {
	padding-block: calc(var(--r-section) / 2);
}

.section--tight {
	padding-block: var(--r-space-4);
}

.page-shell {
	padding-block: var(--r-space-6) var(--r-section);
}

.content-layout {
	display: grid;
	gap: var(--r-space-10);
}

.has-sidebar .content-layout {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
	.has-sidebar .content-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.site-main--narrow {
	max-width: 820px;
	margin-inline: auto;
}

/* Section head (wireframe «Title-Section» + «More»):
   title and optional subtitle at the start, the "more" button at the end. */
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-4);
}

.section-head__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.section-title {
	margin: 0;
	font-size: var(--r-fs-lg);
	line-height: var(--r-lh-tight);
}

.section-subtitle {
	margin: 0;
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
	line-height: 1.6;
}

.section-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--r-space-1);
	flex-shrink: 0;
	min-height: 34px;
	padding: 5px 14px;
	border: 1px solid var(--r-border);
	border-radius: 999px;
	color: var(--r-text-2);
	font-size: var(--r-fs-xs);
	font-weight: 600;
	white-space: nowrap;
	transition: border-color var(--r-dur) var(--r-ease), color var(--r-dur) var(--r-ease), background-color var(--r-dur) var(--r-ease);
}

.section-link:hover {
	border-color: var(--r-accent);
	background: var(--r-accent-soft);
	color: var(--r-accent);
}

@media (min-width: 1024px) {
	.section-head {
		margin-bottom: var(--r-space-5);
	}

	.section-title {
		font-size: var(--r-fs-xl);
	}

	.section-subtitle {
		font-size: var(--r-fs-sm);
	}
}

@media (max-width: 599px) {
	.section-title {
		font-size: var(--r-fs-md);
	}

	.section-subtitle {
		font-size: var(--r-fs-xs);
	}

	.section-link {
		min-height: 36px;
		padding-inline: var(--r-space-3);
		font-size: var(--r-fs-xs);
	}
}

/* Block system
   --------------------------------------------------------------------------
   Every repeated set of items on a page (categories, models, products,
   brands, posts, features) is a .blocks grid of .tile items. Columns are set
   per section with --cols (desktop), --cols-md (tablet) and --cols-sm (mobile).
   .blocks--rail turns the grid into a horizontal, snapping row on mobile,
   showing --rail items (e.g. 2.5) so the next item peeks in. */
.blocks {
	--cols: 4;
	--cols-md: 3;
	--cols-sm: 2;
	--gap: var(--r-space-2);
	display: grid;
	grid-template-columns: repeat(var(--cols-sm), minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.blocks > li {
	display: flex;
	min-width: 0;
}

.blocks > li > * {
	flex: 1;
	min-width: 0;
}

@media (min-width: 768px) {
	.blocks {
		--gap: 10px;
		grid-template-columns: repeat(var(--cols-md), minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.blocks {
		--gap: var(--r-space-3);
		grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.blocks--rail {
		--rail: 2.5;
		display: flex;
		margin-inline: calc(var(--r-gutter) * -1);
		padding: 2px var(--r-gutter) var(--r-space-2);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--r-gutter);
		scrollbar-width: none;
	}

	.blocks--rail::-webkit-scrollbar {
		display: none;
	}

	.blocks--rail > li {
		flex: 0 0 calc((100% - var(--gap) * (var(--rail) - 0.5)) / var(--rail));
		scroll-snap-align: start;
	}

	/* Two-row rail (categories). */
	.blocks--rail-2 {
		display: grid;
		grid-auto-flow: column;
		grid-template-rows: repeat(2, auto);
		grid-auto-columns: calc((100% - var(--gap) * (var(--rail) - 0.5)) / var(--rail));
		grid-template-columns: none;
	}
}

/* Tile: the one card frame used by every block. */
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
	color: var(--r-text);
	transition: border-color var(--r-dur) var(--r-ease), box-shadow var(--r-dur) var(--r-ease);
}

a.tile:hover,
.tile:focus-within {
	border-color: var(--r-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	color: var(--r-text);
}

/* Fixed media ratio (width / height), e.g. --ratio: 4 / 3. */
.tile__media {
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
	aspect-ratio: var(--ratio, 1);
	background: var(--r-surface);
}

.tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tile__media--contain img {
	object-fit: contain;
	padding: var(--r-space-4);
	mix-blend-mode: multiply;
}

.tile__body {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-1);
	padding: var(--r-space-3) var(--r-space-4);
}

.tile__title {
	margin: 0;
	overflow: hidden;
	color: var(--r-text);
	font-family: var(--r-font);
	font-size: var(--r-fs-sm);
	font-weight: 700;
	line-height: 1.6;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tile__meta {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

/* Caption box that sits over the bottom of a cover (categories, posts). */
.tile--cover .tile__media {
	aspect-ratio: auto;
	flex: 1;
	min-height: 0;
}

.tile--cover {
	aspect-ratio: var(--ratio, 1);
}

.tile__caption {
	position: absolute;
	inset-inline: var(--r-space-2);
	inset-block-end: var(--r-space-2);
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px var(--r-space-3);
	border-radius: var(--r-radius);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	text-align: center;
}

.tile__caption .tile__title {
	white-space: normal;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tile__icon {
	color: var(--r-text-3);
}

/* Box: same frame as a tile, for content blocks (text, FAQ, video details).
   Not named .panel, which WooCommerce uses for its tab panels. */
.box {
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
	padding: var(--r-space-4);
}

@media (min-width: 1024px) {
	.box {
		padding: var(--r-space-5) var(--r-space-6);
	}
}

.box--muted {
	background: var(--r-surface);
}

.box__title {
	margin: 0 0 var(--r-space-4);
	font-size: var(--r-fs-lg);
}

.page-header {
	margin-bottom: var(--r-space-8);
}

.page-title {
	margin: 0;
	font-size: var(--r-fs-3xl);
}

.archive-description {
	max-width: 70ch;
	margin-top: var(--r-space-3);
	color: var(--r-text-2);
}

/* 4. Components
   ========================================================================== */

/* Buttons */
.button,
button.button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: var(--r-radius-pill);
	background: var(--r-btn);
	color: #fff;
	font-family: var(--r-font);
	font-size: var(--r-fs-sm);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--r-dur) var(--r-ease), color var(--r-dur) var(--r-ease), border-color var(--r-dur) var(--r-ease), opacity var(--r-dur) var(--r-ease);
	-webkit-appearance: none;
	appearance: none;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	background: var(--r-btn-hover);
	color: #fff;
}

.button--accent,
a.button--accent,
button.button--accent {
	background: var(--r-accent);
	color: var(--r-on-accent);
}

.button--accent:hover,
a.button--accent:hover,
button.button--accent:hover {
	background: var(--r-accent-hover);
	color: var(--r-on-accent);
}

.button:focus-visible,
input[type="submit"]:focus-visible {
	outline: 0;
	box-shadow: var(--r-focus);
}

.button:disabled,
.button.disabled,
.button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.button--secondary,
button.button--secondary {
	border-color: transparent;
	background: var(--r-surface);
	color: var(--r-text);
}

.button--secondary:hover,
button.button--secondary:hover {
	background: var(--r-surface-2);
	color: var(--r-text);
}

.button--outline {
	border-color: var(--r-border-strong);
	background: transparent;
	color: var(--r-text);
}

.button--outline:hover {
	border-color: var(--r-border-strong);
	background: var(--r-surface);
	background: transparent;
	color: var(--r-text);
}

.button--link,
a.button--link {
	padding-inline: var(--r-space-2);
	background: transparent;
	color: var(--r-accent);
}

.button--link:hover,
a.button--link:hover {
	background: transparent;
	color: var(--r-accent-hover);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.button--sm {
	min-height: 32px;
	padding: 5px 12px;
	font-size: var(--r-fs-xs);
}

.button--lg {
	min-height: 42px;
	padding: 9px 20px;
	font-size: var(--r-fs-base);
}

.button--block {
	width: 100%;
}

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-radius-pill);
	background: transparent;
	color: var(--r-text);
	cursor: pointer;
	transition: background-color var(--r-dur) var(--r-ease);
}

.icon-button:hover {
	background: var(--r-surface);
}

/* Eyebrow */
.eyebrow {
	display: inline-block;
	margin-bottom: var(--r-space-2);
	color: var(--r-accent);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

/* Badges & chips */
.badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 10px;
	border-radius: var(--r-radius-pill);
	background: var(--r-surface);
	color: var(--r-text);
	font-size: var(--r-fs-xs);
	font-weight: 700;
	line-height: 1.6;
}

.badge--sale {
	background: var(--r-danger);
	color: #fff;
}

.badge--accent {
	background: var(--r-accent-soft);
	color: var(--r-accent);
}

.badge--muted {
	background: rgba(29, 29, 31, 0.72);
	color: #fff;
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
}

.chip,
.chip-list a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 14px;
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-pill);
	background: var(--r-bg);
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 500;
	transition: border-color var(--r-dur) var(--r-ease), background-color var(--r-dur) var(--r-ease);
}

.chip:hover,
.chip-list a:hover {
	border-color: var(--r-border-strong);
	background: var(--r-surface);
	color: var(--r-text);
}

.chip--ghost {
	border-style: dashed;
	color: var(--r-text-2);
}

.chip-list--muted a {
	background: var(--r-surface);
	border-color: transparent;
	color: var(--r-text-2);
}

/* Select wrapper used in the finder */
.select-wrap {
	position: relative;
}

/* Search field */
.search-field {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.search-field__icon {
	position: absolute;
	inset-inline-start: 14px;
	display: flex;
	color: var(--r-text-3);
	pointer-events: none;
}

.search-field__input,
input.search-field__input {
	min-height: 44px;
	padding-inline: 42px 92px;
	border-color: transparent;
	border-radius: var(--r-radius-pill);
	background: var(--r-surface);
}

.search-field__input:focus {
	border-color: var(--r-accent);
	background: var(--r-bg);
}

.search-field__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-field__submit {
	position: absolute;
	inset-inline-end: 4px;
	min-height: 36px;
	padding: 4px 16px;
	border: 0;
	border-radius: var(--r-radius-pill);
	background: var(--r-text);
	color: #fff;
	font-size: var(--r-fs-sm);
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--r-dur) var(--r-ease);
}

.search-field__submit:hover {
	background: #000;
}

/* Breadcrumbs */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: var(--r-space-6);
	color: var(--r-text-3);
	font-size: var(--r-fs-sm);
}

.breadcrumbs a {
	color: var(--r-text-2);
}

.breadcrumbs a:hover {
	color: var(--r-accent);
}

.breadcrumbs__sep {
	color: var(--r-border-strong);
}

/* Pagination */
.pagination,
.woocommerce-pagination {
	margin-top: var(--r-space-10);
}

.nav-links,
.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.woocommerce-pagination ul.page-numbers {
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-pagination ul.page-numbers li {
	margin: 0;
	border: 0;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 10px;
	border-radius: var(--r-radius-pill);
	color: var(--r-text);
	font-weight: 600;
}

a.page-numbers:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

.page-numbers.current {
	background: var(--r-text);
	color: #fff;
}

/* Drawers */
.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(0, 0, 0, 0.32);
	opacity: 0;
	transition: opacity var(--r-dur-slow) var(--r-ease);
}

.drawer-overlay.is-visible {
	opacity: 1;
}

.drawer {
	position: fixed;
	inset-block: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: min(400px, 88vw);
	background: var(--r-bg);
	box-shadow: var(--r-shadow-lg);
	transition: transform var(--r-dur-slow) var(--r-ease), visibility 0s linear var(--r-dur-slow);
	visibility: hidden;
}

.drawer[hidden] {
	display: none;
}

.drawer--start {
	inset-inline-start: 0;
	transform: translateX(100%);
}

.drawer--end {
	inset-inline-end: 0;
	transform: translateX(-100%);
}

html:not([dir="rtl"]) .drawer--start {
	transform: translateX(-100%);
}

html:not([dir="rtl"]) .drawer--end {
	transform: translateX(100%);
}

.drawer.is-open {
	transform: none;
	visibility: visible;
	transition: transform var(--r-dur-slow) var(--r-ease), visibility 0s;
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-4);
	min-height: var(--r-header-h);
	padding: var(--r-space-2) var(--r-space-4);
	padding-inline-end: var(--r-space-2);
	border-bottom: 1px solid var(--r-border);
}

.drawer__title {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0;
	font-size: var(--r-fs-lg);
}

.drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--r-space-4);
	padding-bottom: calc(var(--r-space-6) + env(safe-area-inset-bottom));
}

.drawer__search {
	margin-bottom: var(--r-space-4);
}

.drawer__section {
	margin-top: var(--r-space-6);
}

.drawer__label {
	margin: 0 0 var(--r-space-2);
	color: var(--r-text-3);
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

.drawer-cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding-inline: 6px;
	border-radius: var(--r-radius-pill);
	background: var(--r-surface);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.mobile-menu,
.mobile-cats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu > li {
	border-bottom: 1px solid var(--r-border);
}

.mobile-menu a {
	display: flex;
	align-items: center;
	min-height: 52px;
	color: var(--r-text);
	font-size: var(--r-fs-md);
	font-weight: 600;
}

.mobile-menu li {
	position: relative;
}

.mobile-menu .menu-chevron {
	display: none;
}

.mobile-menu .sub-menu {
	display: none;
	margin: 0 0 var(--r-space-3);
	padding: 0;
	padding-inline-start: var(--r-space-4);
	list-style: none;
}

.mobile-menu li.is-open > .sub-menu {
	display: block;
}

.mobile-menu .sub-menu a {
	min-height: 42px;
	color: var(--r-text-2);
	font-size: var(--r-fs-base);
	font-weight: 500;
}

.submenu-toggle {
	position: absolute;
	inset-block-start: 4px;
	inset-inline-end: -8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--r-text-2);
	cursor: pointer;
}

.submenu-toggle svg {
	transition: transform var(--r-dur) var(--r-ease);
}

li.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}

.mobile-cats {
	display: grid;
	gap: 2px;
}

.mobile-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
	padding-inline: var(--r-space-3);
	border-radius: var(--r-radius-sm);
	color: var(--r-text);
}

.mobile-cats a:hover {
	background: var(--r-surface);
}

.mobile-cats svg {
	color: var(--r-text-3);
}

.help-line {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	margin-top: var(--r-space-6);
	padding: var(--r-space-3) var(--r-space-4);
	border-radius: var(--r-radius);
	background: var(--r-surface);
	color: var(--r-text);
	font-size: var(--r-fs-sm);
}

.help-line:hover {
	color: var(--r-text);
	background: var(--r-surface-2);
}

.help-line svg {
	color: var(--r-accent);
}

.help-line strong {
	display: inline-block;
	margin-inline-start: 4px;
}

/* Empty state */
.empty-state {
	max-width: 560px;
	margin: 0 auto;
	padding: var(--r-space-12) var(--r-space-4);
	text-align: center;
	color: var(--r-text-2);
}

.empty-state__icon {
	display: inline-grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin-bottom: var(--r-space-4);
	border-radius: 50%;
	background: var(--r-surface);
	color: var(--r-text-3);
}

.empty-state__code {
	margin: 0;
	color: var(--r-surface-2);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 800;
	line-height: 1;
}

.empty-state__title {
	font-size: var(--r-fs-2xl);
}

.empty-state__search {
	max-width: 440px;
	margin: var(--r-space-6) auto;
}

.empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--r-space-3);
}

/* 5. Header
   ========================================================================== */
.topbar {
	background: var(--r-ink);
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-4);
	min-height: 30px;
}

.topbar__text {
	overflow: hidden;
	margin: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.topbar__end {
	display: none;
	align-items: center;
	gap: var(--r-space-6);
}

.topbar__menu {
	display: flex;
	gap: var(--r-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar a {
	color: rgba(255, 255, 255, 0.82);
}

.topbar a:hover {
	color: #fff;
}

.topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

@media (min-width: 768px) {
	.topbar__end {
		display: flex;
	}
}

.site-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}

.admin-bar.has-sticky-header .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar.has-sticky-header .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Header row 1 (wireframe): logo | vehicle select + search | account, cart, wallet.
   Mobile: menu · logo · actions, then vehicle select + search on a second row. */
.header-main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"toggle brand actions"
		"find find find";
	align-items: center;
	column-gap: var(--r-space-2);
	row-gap: var(--r-space-2);
	padding-block: var(--r-space-2) var(--r-space-3);
}

.header-menu-toggle {
	grid-area: toggle;
	margin-inline-start: -10px;
}

.site-branding {
	grid-area: brand;
	min-width: 0;
}

.header-find {
	grid-area: find;
	display: flex;
	align-items: stretch;
	gap: var(--r-space-2);
	min-width: 0;
}

.header-search {
	flex: 1;
	min-width: 0;
}

.header-actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--r-space-1);
}

.site-title {
	margin: 0;
	font-family: var(--r-font-heading);
	font-size: var(--r-fs-lg);
	font-weight: 700;
	line-height: 1.2;
}

.site-title a {
	display: inline-flex;
	align-items: center;
	gap: var(--r-space-2);
	color: var(--r-text);
}

.site-title__mark {
	display: inline-flex;
	align-items: center;
	color: var(--r-text);
}

.site-title__mark-svg {
	display: block;
	width: auto;
	height: 20px;
}

.site-title__brandtype {
	display: block;
	width: auto;
	height: 20px;
	color: var(--r-text);
}

.custom-logo-link {
	display: inline-flex;
}

.custom-logo {
	width: auto;
	max-height: 44px;
}

.header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--r-space-2);
	min-width: var(--r-control-h);
	height: var(--r-control-h);
	padding-inline: 10px;
	border-radius: var(--r-radius);
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 600;
	white-space: nowrap;
	transition: background-color var(--r-dur) var(--r-ease), border-color var(--r-dur) var(--r-ease);
}

.header-action:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

.header-action__icon {
	position: relative;
	display: inline-flex;
}

.header-action__label {
	display: none;
	overflow: hidden;
	max-width: 9em;
	text-overflow: ellipsis;
}

.cart-count {
	position: absolute;
	inset-block-start: -8px;
	inset-inline-end: -10px;
	display: grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding-inline: 4px;
	border: 2px solid var(--r-bg);
	border-radius: var(--r-radius-pill);
	background: var(--r-accent);
	color: var(--r-on-accent);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	box-sizing: content-box;
}

.cart-count.is-empty {
	display: none;
}

/* Vehicle select (header) */
.vehicle-select {
	position: relative;
	flex-shrink: 0;
}

.vehicle-select__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--r-space-2);
	height: 100%;
	min-height: var(--r-control-h);
	padding-inline: var(--r-space-3);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius);
	background: var(--r-elevated);
	color: var(--r-text);
	font: inherit;
	font-size: var(--r-fs-sm);
	font-weight: 700;
	cursor: pointer;
	transition: border-color var(--r-dur) var(--r-ease);
}

.vehicle-select__toggle:hover,
.vehicle-select.is-open .vehicle-select__toggle {
	border-color: var(--r-accent);
}

.vehicle-select__toggle > svg:first-child {
	color: var(--r-accent);
}

.vehicle-select__label {
	display: none;
	overflow: hidden;
	max-width: 11em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vehicle-select .icon-chevron-down {
	transition: transform var(--r-dur) var(--r-ease);
}

.vehicle-select.is-open .icon-chevron-down {
	transform: rotate(180deg);
}

.vehicle-select__panel {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 40;
	width: min(360px, calc(100vw - 2 * var(--r-gutter)));
	padding: var(--r-space-4);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
	box-shadow: var(--r-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity var(--r-dur) var(--r-ease), transform var(--r-dur) var(--r-ease), visibility 0s linear var(--r-dur);
}

.vehicle-select.is-open .vehicle-select__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.vehicle-select__title {
	margin: 0 0 var(--r-space-3);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.vehicle-select .mycar-pill {
	margin-bottom: var(--r-space-3);
}

.header-nav {
	display: none;
}

@media (min-width: 600px) {
	.vehicle-select__label {
		display: inline;
	}
}

@media (min-width: 1024px) {
	.header-main {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "brand find actions";
		column-gap: var(--r-space-5);
		min-height: calc(var(--r-header-row) + 18px);
		padding-block: 9px;
	}

	.header-menu-toggle {
		display: none;
	}

	.site-branding {
		min-width: 150px;
	}

	.header-find {
		justify-self: center;
		width: 100%;
		max-width: 780px;
		height: var(--r-header-row);
	}

	.vehicle-select__toggle {
		min-width: 168px;
		min-height: var(--r-header-row);
		justify-content: space-between;
		border-color: rgba(0, 0, 0, 0.08);
		background: var(--r-surface);
		font-size: 13px;
	}

	.header-action {
		height: var(--r-header-row);
		padding-inline: 10px;
		border: 0;
		font-size: 13px;
	}

	.header-action__label {
		display: inline;
	}

	.header-nav {
		display: block;
		border-top: 1px solid rgba(0, 0, 0, 0.05);
	}
}

.header-nav__inner {
	display: flex;
	align-items: center;
	gap: var(--r-space-4);
	min-height: 42px;
}

/* Primary menu */
.main-navigation .menu {
	display: flex;
	align-items: center;
	gap: var(--r-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
}

.main-navigation .menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 48px;
	padding-inline: var(--r-space-3);
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

.main-navigation .menu > li > a:hover,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-ancestor > a {
	color: var(--r-text);
}

.main-navigation .menu-chevron {
	opacity: 0.6;
}

.main-navigation .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	z-index: 20;
	min-width: 220px;
	margin: 0;
	padding: var(--r-space-2);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius);
	background: var(--r-elevated);
	box-shadow: var(--r-shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity var(--r-dur) var(--r-ease), transform var(--r-dur) var(--r-ease), visibility 0s linear var(--r-dur);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.main-navigation .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--r-radius-sm);
	color: var(--r-text);
	font-size: var(--r-fs-sm);
}

.main-navigation .sub-menu a:hover {
	background: var(--r-surface);
}

/* Categories dropdown */
.cat-menu {
	position: relative;
}

.cat-menu__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--r-space-2);
	min-height: 36px;
	padding: 4px 14px;
	border: 0;
	border-radius: var(--r-radius-pill);
	background: var(--r-btn);
	color: #fff;
	font-size: var(--r-fs-sm);
	font-weight: 600;
	cursor: pointer;
}

.cat-menu__toggle .icon-chevron-down {
	transition: transform var(--r-dur) var(--r-ease);
}

.cat-menu.is-open .cat-menu__toggle .icon-chevron-down {
	transform: rotate(180deg);
}

.cat-menu__panel {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 30;
	width: min(860px, calc(100vw - 2 * var(--r-gutter)));
	padding: var(--r-space-6);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
	box-shadow: var(--r-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity var(--r-dur) var(--r-ease), transform var(--r-dur) var(--r-ease), visibility 0s linear var(--r-dur);
}

.cat-menu.is-open .cat-menu__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.cat-menu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--r-space-6) var(--r-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-menu__parent {
	display: block;
	margin-bottom: 6px;
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.cat-menu__children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-menu__children a {
	display: block;
	padding-block: 3px;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

.cat-menu__children a:hover,
.cat-menu__parent:hover {
	color: var(--r-accent);
}

.cat-menu__all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: var(--r-space-6);
	padding-top: var(--r-space-4);
	border-top: 1px solid var(--r-border);
	width: 100%;
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

/* 6. Home
   ========================================================================== */
.hero {
	padding-top: var(--r-space-3);
}

.hero__grid {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-3);
}

/* Finder bar */
.hero-finder {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-2);
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 768px) {
	.hero-finder {
		padding: 14px 18px;
	}
}

.hero-finder__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
}

.hero-finder__title {
	margin: 0;
	font-size: var(--r-fs-sm);
	font-weight: 700;
	line-height: 1.5;
}

.icon-button--sm {
	width: 30px;
	height: 30px;
	margin-top: 0;
	color: var(--r-text-2);
}

.icon-button--sm:hover {
	background: var(--r-bg);
	color: var(--r-text);
}

.finder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.finder__step {
	position: relative;
}

.finder__num {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--r-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
	transition: background-color var(--r-dur) var(--r-ease);
}

.finder__step.is-disabled .finder__num {
	background: var(--r-border-strong);
}

.finder__step.is-done .finder__num {
	background: var(--r-btn);
}

.finder select {
	min-height: 40px;
	padding-inline-start: 38px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--r-radius);
	background-color: var(--r-bg);
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 500;
}

.finder select:hover:not(:disabled) {
	border-color: var(--r-border-strong);
}

.finder select:disabled {
	border-color: rgba(0, 0, 0, 0.05);
	background-color: #fbfbfc;
	color: var(--r-text-3);
	opacity: 1;
	cursor: not-allowed;
}

.finder__submit {
	grid-column: 1 / -1;
	width: 100%;
	min-height: 40px;
	margin-top: 0;
	border-radius: var(--r-radius);
}

@media (min-width: 1024px) {
	.finder {
		grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
		align-items: center;
	}

	.finder__submit {
		grid-column: auto;
		width: auto;
		padding-inline: 20px;
	}
}

.finder__hint {
	margin: 0;
	padding: var(--r-space-3) var(--r-space-4);
	border-radius: var(--r-radius-sm);
	background: var(--r-warning-soft);
	color: var(--r-warning);
	font-size: var(--r-fs-sm);
}

.hero-finder__divider {
	height: 1px;
	margin-block: var(--r-space-1);
	background: var(--r-border);
}

.pn-search__label {
	display: block;
	margin-bottom: var(--r-space-2);
	font-size: var(--r-fs-base);
	font-weight: 700;
}

.pn-search__row {
	display: flex;
	gap: var(--r-space-2);
}

.pn-search input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 50px;
	border-color: var(--r-border-strong);
	background: var(--r-bg);
}

.pn-search .button {
	min-height: 50px;
	padding-inline: 22px;
	border-radius: var(--r-radius);
}

.pn-search__help {
	margin: 6px 0 0;
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.hero-finder__help {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: auto;
	color: var(--r-link);
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

.hero-finder__help:hover {
	color: var(--r-text);
}

/* Slider */
.slider {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.slider__viewport {
	position: relative;
	flex: 1;
	overflow: hidden;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.5s var(--r-ease);
}

.slide {
	position: relative;
	display: grid;
	flex: 0 0 100%;
	align-items: center;
	min-height: 200px;
	overflow: hidden;
	aspect-ratio: 16 / 7;
}

@media (min-width: 1024px) {
	.slide {
		aspect-ratio: auto;
		height: 100%;
		min-height: 310px;
		max-height: 350px;
	}
}

.slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.slide__content {
	position: relative;
	z-index: 2;
	max-width: 30em;
	padding: var(--r-space-6);
}

/* Keep text clear of the illustration on default (image-less) slides. */
.slide:not(.slide--image) .slide__content {
	max-width: min(30em, 58%);
}

@media (min-width: 768px) {
	.slide__content {
		padding: var(--r-space-10) var(--r-space-12);
	}
}

.slide__title {
	margin: 0 0 var(--r-space-2);
	color: var(--r-text);
	font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.1rem);
	font-weight: 800;
	line-height: 1.4;
}

.slide__text {
	margin: 0 0 var(--r-space-5);
	color: var(--r-text-2);
	font-size: var(--r-fs-base);
}

.slide__btn {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 10px 22px;
	border-radius: var(--r-radius);
	background: var(--r-btn);
	color: #fff;
	font-weight: 700;
	font-size: var(--r-fs-sm);
	transition: background-color var(--r-dur) var(--r-ease);
}

.slide__btn:hover {
	background: #000;
	color: #fff;
}

.slide__art {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45%;
	pointer-events: none;
}

.slide-art--disc {
	width: min(300px, 90%);
	filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
}

/* Default slide 1: dark, engineered grid */
.slide--1:not(.slide--image) {
	background:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
		radial-gradient(60% 90% at 15% 50%, rgba(242, 106, 27, 0.18), transparent 70%),
		linear-gradient(135deg, #22252b, #121418);
}

.slide--1:not(.slide--image) .slide__title {
	color: #fff;
}

.slide--1:not(.slide--image) .slide__text {
	color: rgba(255, 255, 255, 0.7);
}

.slide--1:not(.slide--image) .slide__btn {
	background: var(--r-accent);
}

.slide--1:not(.slide--image) .slide__btn:hover {
	background: var(--r-accent-hover);
}

/* Default slide 2: light with accent band */
.slide--2:not(.slide--image) {
	background:
		linear-gradient(to top, var(--r-accent-vivid) 0, var(--r-accent-vivid) 6px, transparent 6px),
		linear-gradient(135deg, #ffffff, #f1f2f4);
}

.slide-badge {
	position: relative;
	display: grid;
	place-items: center;
	width: min(220px, 80%);
	aspect-ratio: 1;
	border: 1px solid var(--r-border);
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--r-shadow);
	color: var(--r-text);
}

.slide-badge .icon {
	position: absolute;
	inset-block-start: 16%;
	width: 22%;
	height: auto;
	color: var(--r-accent-vivid);
	fill: var(--r-accent-vivid);
}

.slide-badge__num {
	font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
	font-weight: 800;
	line-height: 1;
}

.slide-badge__unit {
	position: absolute;
	inset-block-end: 20%;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

/* Default slide 3: neutral with part-number tag */
.slide--3:not(.slide--image) {
	background:
		linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
		linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 24px 24px,
		#f4f5f7;
}

.slide-code {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 22px 26px 16px;
	border: 1px solid var(--r-border-strong);
	border-radius: var(--r-radius);
	background: #fff;
	box-shadow: var(--r-shadow);
	transform: rotate(-4deg);
}

.slide-code__bars {
	width: 170px;
	height: 64px;
	background: repeating-linear-gradient(90deg, #1d2025 0 2px, transparent 2px 5px, #1d2025 5px 6px, transparent 6px 9px, #1d2025 9px 12px, transparent 12px 14px);
}

.slide-code__num {
	font-family: var(--r-font-mono);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

@media (max-width: 639px) {
	.slide__art {
		width: 40%;
		opacity: 0.9;
	}

	.slide__content {
		max-width: 64%;
		padding: var(--r-space-5);
	}

	.slide__text {
		display: none;
	}

	.slide-code__bars {
		width: 96px;
		height: 40px;
	}

	.slide-code {
		padding: 12px 14px 10px;
	}

	.slide-code__num {
		font-size: 11px;
	}
}

.slider__controls {
	position: absolute;
	inset-block-end: 12px;
	inset-inline: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.slider__arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	color: var(--r-text);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color var(--r-dur) var(--r-ease);
}

.slider__arrow:hover {
	background: #fff;
}

.slider__dots {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 30px;
	padding-inline: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	pointer-events: auto;
}

.slider__dot {
	position: relative;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.slider__dot::before {
	position: absolute;
	inset: 9px;
	border: 1.5px solid var(--r-text-3);
	border-radius: 50%;
	content: "";
	transition: background-color var(--r-dur) var(--r-ease), border-color var(--r-dur) var(--r-ease);
}

.slider__dot.is-active::before {
	border-color: var(--r-btn);
	background: var(--r-btn);
}

@media (max-width: 1023px) {
	.slider__arrow {
		display: none;
	}
}

/* Vehicle side panel */
.vehicle-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--r-space-5);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-xl);
	background: var(--r-elevated);
}

.vehicle-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-4);
}

.vehicle-panel__title {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0;
	font-size: var(--r-fs-md);
}

.vehicle-panel__title svg {
	color: var(--r-accent);
}

.vehicle-panel__all {
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

.vehicle-panel__brands {
	display: flex;
	gap: var(--r-space-2);
	margin: 0 calc(var(--r-space-5) * -1) var(--r-space-3);
	padding: 2px var(--r-space-5) var(--r-space-2);
	overflow-x: auto;
	scrollbar-width: none;
}

.vehicle-panel__brands::-webkit-scrollbar {
	display: none;
}

.vehicle-panel__brand {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: var(--r-space-2);
	min-height: 40px;
	padding: 4px 12px 4px 6px;
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-pill);
	background: var(--r-bg);
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--r-dur) var(--r-ease), background-color var(--r-dur) var(--r-ease), color var(--r-dur) var(--r-ease);
}

html[dir="rtl"] .vehicle-panel__brand {
	padding: 4px 6px 4px 12px;
}

.vehicle-panel__brand:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

.vehicle-panel__brand.is-active {
	border-color: var(--r-ink);
	background: var(--r-ink);
	color: #fff;
}

.vehicle-panel__models {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vehicle-panel__models[hidden] {
	display: none;
}

.vehicle-panel__models ul {
	display: grid;
	gap: 2px;
	margin: 0 0 var(--r-space-3);
	padding: 0;
	list-style: none;
}

.vehicle-panel__models li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
	padding-inline: var(--r-space-3);
	border-radius: var(--r-radius);
	color: var(--r-text);
	font-weight: 600;
	transition: background-color var(--r-dur) var(--r-ease);
}

.vehicle-panel__models li a:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

.vehicle-panel__models li a svg {
	color: var(--r-text-3);
	transition: transform var(--r-dur) var(--r-ease), color var(--r-dur) var(--r-ease);
}

.vehicle-panel__models li a:hover svg {
	color: var(--r-accent);
	transform: translateX(-3px);
}

.vehicle-panel__brand-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: auto;
	min-height: 44px;
	border-radius: var(--r-radius);
	background: var(--r-accent-soft);
	color: var(--r-accent);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.vehicle-panel__brand-link:hover {
	background: var(--r-accent);
	color: #fff;
}

@media (max-width: 1023px) {
	.vehicle-panel__models ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vehicle-panel__models li a {
		background: var(--r-surface);
	}
}

/* Vehicle logos & tiles */
.vehicle-logo {
	display: inline-grid;
	flex-shrink: 0;
	place-items: center;
	overflow: hidden;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--r-surface);
}

.vehicle-logo--sm {
	width: 30px;
	height: 30px;
}

.vehicle-logo--lg {
	width: 112px;
	height: 112px;
	background: var(--r-bg);
	box-shadow: var(--r-shadow);
}

.vehicle-logo__img {
	width: 72%;
	height: 72%;
	object-fit: contain;
}

.vehicle-logo__mono {
	color: var(--r-ink);
	font-size: 1.6em;
	font-weight: 800;
	line-height: 1;
}

.vehicle-logo--sm .vehicle-logo__mono {
	font-size: 14px;
}

.vehicle-logo--lg .vehicle-logo__mono {
	font-size: 44px;
}

.vehicle-panel__brand.is-active .vehicle-logo {
	background: #fff;
}

.vehicle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--r-space-3);
	margin: 0 0 var(--r-space-8);
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.vehicle-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.vehicle-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: var(--r-space-4);
	}
}

.vehicle-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: var(--r-space-6) var(--r-space-3) var(--r-space-5);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
	color: var(--r-text);
	text-align: center;
	transition: border-color var(--r-dur) var(--r-ease), box-shadow var(--r-dur) var(--r-ease);
}

.vehicle-tile:hover {
	border-color: var(--r-border-strong);
	box-shadow: var(--r-shadow);
	color: var(--r-text);
}

.vehicle-tile .vehicle-logo {
	width: 76px;
	height: 76px;
	margin-bottom: var(--r-space-2);
}

.vehicle-tile__name {
	font-size: var(--r-fs-md);
	font-weight: 800;
}

.vehicle-tile__meta {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.vehicle-directory {
	display: grid;
	gap: var(--r-space-3);
}

.vehicle-directory__group {
	padding: var(--r-space-5);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.vehicle-directory__title {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	margin-bottom: var(--r-space-3);
	font-size: var(--r-fs-lg);
}

.vehicle-directory__title h2 {
	margin: 0;
	font-size: inherit;
}

.vehicle-directory__title a {
	color: var(--r-text);
}

.vehicle-directory__title .vehicle-logo {
	width: 40px;
	height: 40px;
	background: var(--r-bg);
}

.vehicle-directory .chip-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Archive hero (shop, categories, vehicles, brands) */
.archive-hero {
	position: relative;
	display: grid;
	gap: var(--r-space-4);
	align-items: center;
	margin-bottom: var(--r-space-5);
	padding: var(--r-space-4);
	overflow: hidden;
	border-radius: var(--r-radius-lg);
	background:
		radial-gradient(80% 120% at 0% 0%, var(--r-accent-soft), transparent 60%),
		var(--r-surface);
}

@media (min-width: 768px) {
	.archive-hero {
		padding: var(--r-space-6) var(--r-space-8);
	}

	.archive-hero--media {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

.archive-hero__title {
	margin: 0 0 var(--r-space-1);
	font-size: var(--r-fs-2xl);
}

.archive-hero__text {
	max-width: 60ch;
	margin: 0;
	color: var(--r-text-2);
}

.archive-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-2);
	margin: 0 0 var(--r-space-4);
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

.archive-hero__sep {
	color: var(--r-border-strong);
}

.archive-hero__express {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--r-text);
	font-weight: 700;
}

.archive-hero__express svg {
	color: #c99a00;
	fill: var(--r-express);
}

.archive-hero__chips {
	margin-bottom: var(--r-space-4);
}

.archive-hero__chips ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.archive-hero__media {
	display: none;
	justify-self: end;
}

@media (min-width: 768px) {
	.archive-hero__media {
		display: block;
	}
}

.archive-hero__img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.archive-hero__mycar.is-saved {
	background: var(--r-ink);
	color: #fff;
}

.chip.is-active {
	border-color: var(--r-ink);
	background: var(--r-ink);
	color: #fff;
}

.vehicle-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--r-space-2) var(--r-space-3);
}

.vehicle-filter__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.vehicle-filter__label svg {
	color: var(--r-accent);
}

.vehicle-filter select {
	min-width: 220px;
	min-height: 42px;
	border-color: var(--r-border);
	border-radius: var(--r-radius-pill);
	font-size: var(--r-fs-sm);
	font-weight: 600;
}

/* My car pill */
.mycar-pill {
	display: inline-flex;
	align-items: center;
	margin-inline-start: auto;
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius-pill);
	background: var(--r-bg);
	font-size: var(--r-fs-sm);
}

.mycar-pill[hidden] {
	display: none;
}

.mycar-pill a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	color: var(--r-text-2);
}

.mycar-pill a svg {
	color: var(--r-accent);
}

.mycar-pill strong {
	color: var(--r-text);
}

.mycar-pill button {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-inline-end: 4px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--r-text-3);
	cursor: pointer;
}

.mycar-pill button:hover {
	background: var(--r-surface);
	color: var(--r-text);
}

.drawer .mycar-pill {
	display: flex;
	justify-content: space-between;
	margin: 0 0 var(--r-space-4);
}

.drawer .mycar-pill[hidden] {
	display: none;
}

/* SEO text block */
.seo-content {
	position: relative;
	margin-top: var(--r-space-12);
	padding: var(--r-space-6);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.seo-content__body {
	color: var(--r-text-2);
	font-size: var(--r-fs-base);
	line-height: 2;
}

.seo-content__body > :first-child {
	margin-top: 0;
}

.seo-content.is-collapsed .seo-content__body {
	max-height: 200px;
	overflow: hidden;
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.seo-content__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: var(--r-space-3);
	padding: 0;
	border: 0;
	background: none;
	color: var(--r-accent);
	font-weight: 700;
	cursor: pointer;
}

.seo-content__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Post cards */
.post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-6);
}

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

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

	.has-sidebar .post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--r-surface-2);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--r-dur-slow) var(--r-ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.02);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--r-text-3);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--r-space-5);
}

.post-card__title {
	margin: var(--r-space-2) 0;
	font-size: var(--r-fs-md);
	line-height: 1.6;
}

.post-card__title a {
	color: var(--r-text);
}

.post-card__title a:hover {
	color: var(--r-accent);
}

.post-card__excerpt {
	margin: 0;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

/* Home blocks (wireframe .ref/home.html)
   ========================================================================== */

/* Header details sized to the refined 42px row. */
@media (min-width: 1024px) {
	.header-search .search-field,
	.header-search .search-field__input {
		height: 100%;
	}

	.header-search .search-field__input {
		min-height: var(--r-header-row);
		border: 1px solid transparent;
		border-radius: var(--r-radius);
		background: var(--r-surface);
		font-size: 13px;
	}

	.header-search .search-field__submit {
		min-height: 32px;
		padding-inline: 14px;
		border-radius: var(--r-radius-sm);
		font-size: 12px;
	}

	.cat-menu__toggle {
		min-width: 0;
		min-height: 32px;
		padding: 5px 14px;
		justify-content: space-between;
		border-radius: var(--r-radius);
		font-size: 12.5px;
	}

	.main-navigation .menu > li > a {
		min-height: 42px;
		font-size: 13px;
	}
}

/* Hero: wide slider + horizontal finder bar. */

/* Category cover tiles (1:1.3). */
.cat-tile .tile__media {
	padding-block-end: 64px; /* Keep the image clear of the caption box. */
}

.cat-tile .tile__media img {
	object-fit: contain;
	padding: var(--r-space-4);
	mix-blend-mode: multiply;
}

@media (max-width: 767px) {
	.cat-tile .tile__media {
		padding-block-end: 44px;
	}

	.cat-tile .tile__caption {
		inset-inline: var(--r-space-2);
		inset-block-end: var(--r-space-2);
		padding: 6px var(--r-space-2);
	}

	.cat-tile .tile__title {
		font-size: var(--r-fs-xs);
	}
}

/* Car model cards (4:3). */
.model-tile .tile__media {
	background: var(--r-surface);
}

.model-tile .tile__body {
	padding-block: var(--r-space-4);
}

.model-tile .tile__title {
	font-size: var(--r-fs-base);
}

/* Car brand tiles (1:1.53): logo in a circle, name, model count. */
.brand-tile {
	align-items: center;
	justify-content: center;
	gap: var(--r-space-2);
	padding: var(--r-space-4) var(--r-space-2);
	aspect-ratio: var(--ratio, 1);
	background: var(--r-surface);
	border-color: transparent;
	text-align: center;
}

.brand-tile__logo.vehicle-logo {
	width: 60px;
	height: 60px;
	margin-bottom: var(--r-space-1);
	border: 0;
	border-radius: 50%;
	background: var(--r-bg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1200px) {
	.brand-tile__logo.vehicle-logo {
		width: 80px;
		height: 80px;
	}
}

.brand-tile .tile__title {
	max-width: 100%;
}

@media (max-width: 767px) {
	.brand-tile {
		aspect-ratio: auto;
		min-height: 150px;
	}
}

/* Features strip (wireframe 10): four equal cells, edge to edge. */
.features-strip {
	margin-block: var(--r-space-4);
	margin-inline: calc(50% - 50vw);
	border-block: 1px solid rgba(0, 0, 0, 0.05);
	background: var(--r-surface);
}

.features-strip__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.features-strip__list {
		grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	}
}

.feature {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
	min-height: 72px;
	padding: 12px;
	border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
	border-block-end: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
	.feature {
		justify-content: center;
		min-height: 88px;
		padding: 14px 16px;
		border-block-end: 0;
	}

	.feature:last-child {
		border-inline-end: 0;
	}
}

@media (max-width: 1023px) {
	.feature:nth-child(2n) {
		border-inline-end: 0;
	}

	.feature:nth-last-child(-n + 2) {
		border-block-end: 0;
	}
}

.feature__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--r-radius);
	background: var(--r-bg);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	color: var(--r-accent);
}

.feature__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.feature__title {
	color: var(--r-text);
	font-size: var(--r-fs-sm);
	font-weight: 700;
}

.feature__text {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
	line-height: 1.7;
}

/* Video guide (wireframe 11): 16:9 player + details box. */
.guide {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-4);
}

@media (min-width: 1024px) {
	.guide {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: var(--r-space-6);
		align-items: stretch;
	}
}

.guide__player {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-radius-lg);
	background: var(--r-ink);
}

.guide__player video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.guide__info {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-3);
}

.guide__text {
	color: var(--r-text-2);
	line-height: 1.9;
}

.guide__cta {
	align-self: flex-start;
	margin-top: auto;
}

/* Blog cover tiles (1:1.52). */
.post-tile .tile__media img {
	object-fit: cover;
}

.post-tile .tile__caption {
	text-align: start;
}

/* App download banner (wireframe 13). */
.app-banner {
	display: flex;
	flex-direction: column;
	gap: var(--r-space-3);
	padding: var(--r-space-4);
	border: 0;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 1024px) {
	.app-banner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: var(--r-space-5) var(--r-space-6);
	}
}

.app-banner__title {
	margin: 0 0 4px;
	font-size: var(--r-fs-lg);
}

.app-banner__desc {
	max-width: 52ch;
	margin: 0;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

.app-banner__stores {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--r-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.app-banner__stores {
		display: flex;
		flex-wrap: wrap;
		gap: var(--r-space-2);
	}
}

.app-store {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 38px;
	padding-inline: 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--r-radius);
	font-size: var(--r-fs-sm);
	background: var(--r-elevated);
	color: var(--r-text);
	font-weight: 700;
	white-space: nowrap;
}

.app-store:hover {
	border-color: var(--r-text);
	color: var(--r-text);
}

/* Boxed text blocks below archives (wireframe 7–8). */
.archive-after {
	display: grid;
	gap: var(--r-space-6);
	margin-top: var(--r-section);
}

.archive-after .seo-content {
	margin-top: 0;
}

.faq__list {
	display: grid;
	gap: var(--r-space-2);
}

.faq__item {
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: var(--r-radius);
	background: var(--r-elevated);
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-3);
	min-height: 40px;
	padding: 10px 14px;
	font-size: var(--r-fs-sm);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q svg {
	flex-shrink: 0;
	transition: transform var(--r-dur) var(--r-ease);
}

.faq__item[open] .faq__q svg {
	transform: rotate(180deg);
}

.faq__a {
	padding: 0 14px 12px;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
	line-height: 1.8;
}

.faq__a > :last-child {
	margin-bottom: 0;
}

/* 7. Content
   ========================================================================== */
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-4);
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.entry-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.entry-meta a {
	color: inherit;
}

.entry-header {
	margin-bottom: var(--r-space-8);
}

.entry-header--compact {
	margin-bottom: var(--r-space-6);
}

.entry-title {
	font-size: var(--r-fs-3xl);
	line-height: 1.3;
}

.entry-thumbnail {
	margin: 0 0 var(--r-space-8);
	overflow: hidden;
	border-radius: var(--r-radius-lg);
}

.entry-thumbnail img {
	width: 100%;
}

.entry-content {
	font-size: var(--r-fs-md);
	line-height: 2;
}

.entry-content > * {
	max-width: 100%;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
	font-size: var(--r-fs-base);
	line-height: var(--r-lh);
}

.woocommerce-cart .entry-content :is(h2, h3),
.woocommerce-checkout .entry-content :is(h2, h3),
.woocommerce-account .entry-content :is(h2, h3) {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--r-space-10);
}

.entry-content img {
	border-radius: var(--r-radius);
}

.entry-content :where(p, li, dd) > a:not([class]) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.entry-content--canvas > .alignfull {
	width: 100%;
}

.entry-content--canvas > *:not(.alignfull):not(.alignwide) {
	max-width: var(--r-container);
	margin-inline: auto;
	padding-inline: var(--r-gutter);
}

.entry-footer {
	margin-top: var(--r-space-10);
	padding-top: var(--r-space-6);
	border-top: 1px solid var(--r-border);
}

.entry-terms {
	display: grid;
	gap: var(--r-space-3);
}

.edit-link a {
	font-size: var(--r-fs-sm);
}

.post-navigation {
	margin-top: var(--r-space-10);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--r-space-4);
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--r-space-4);
	border-radius: var(--r-radius);
	background: var(--r-surface);
	color: var(--r-text);
}

.post-navigation .nav-next {
	text-align: end;
}

.nav-subtitle {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.nav-title {
	font-weight: 700;
	line-height: 1.6;
}

/* Comments */
.comments-area {
	margin-top: var(--r-space-12);
}

.comment-list {
	margin: 0 0 var(--r-space-8);
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-inline-start: var(--r-space-8);
	list-style: none;
}

.comment-body {
	margin-bottom: var(--r-space-4);
	padding: var(--r-space-5);
	border-radius: var(--r-radius);
	background: var(--r-surface);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-2);
	margin-bottom: var(--r-space-2);
	font-size: var(--r-fs-sm);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: var(--r-space-3);
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata a {
	color: var(--r-text-3);
	font-size: var(--r-fs-xs);
}

.says {
	display: none;
}

.comment-form {
	display: grid;
	gap: var(--r-space-4);
}

.comment-form p {
	margin: 0;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: var(--r-space-2);
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

/* Widgets */
.widget {
	margin-bottom: var(--r-space-8);
	font-size: var(--r-fs-sm);
}

.widget-title,
.widget h2,
.widget h3,
.widget .wp-block-heading {
	margin: 0 0 var(--r-space-3);
	font-size: var(--r-fs-base);
	font-weight: 700;
	line-height: 1.5;
}

.widget .wp-block-search__label {
	margin-bottom: var(--r-space-2);
	font-size: var(--r-fs-base);
	font-weight: 700;
}

.widget .wp-block-search__inside-wrapper {
	gap: var(--r-space-2);
}

.widget .wp-block-search__button {
	margin: 0;
	min-height: var(--r-control-h);
	padding-inline: 18px;
	font-size: var(--r-fs-sm);
}

.widget .wp-block-latest-comments {
	padding: 0;
}

.widget .wp-block-latest-comments__comment {
	margin-bottom: var(--r-space-2);
	line-height: 1.7;
}

.widget .wp-block-latest-comments article {
	margin: 0;
}

.widget .wp-block-group__inner-container > * + * {
	margin-top: var(--r-space-2);
}

/* Admin-only setup hint on the home page */
.setup-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--r-space-4);
	padding: var(--r-space-6);
	border: 2px dashed var(--r-border-strong);
	border-radius: var(--r-radius-lg);
	background: var(--r-bg);
}

.setup-hint__title {
	margin: 0 0 4px;
	font-size: var(--r-fs-lg);
}

.setup-hint p {
	margin: 0;
	color: var(--r-text-2);
	font-size: var(--r-fs-sm);
}

.setup-hint__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-2);
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding-block: 6px;
}

.widget li a {
	color: var(--r-text-2);
}

.widget li a:hover {
	color: var(--r-accent);
}

.widget li .children,
.widget li .sub-menu {
	padding-inline-start: var(--r-space-4);
}

.wp-block-tag-cloud a,
.tagcloud a {
	display: inline-block;
	margin: 0 0 6px;
	padding: 4px 12px;
	border-radius: var(--r-radius-pill);
	background: var(--r-surface);
	color: var(--r-text-2);
}

.blog-sidebar .widget {
	padding: var(--r-space-5);
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

/* 8. Footer
   ========================================================================== */
/* Footer (wireframe 14–16): a panel with four columns, then the brand box
   and the copyright bar, all inside the container. */
.site-footer {
	padding-block: var(--r-space-6) var(--r-space-4);
	color: var(--r-text-2);
	font-size: 13px;
}

.footer-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-5);
	padding: var(--r-space-5);
	border: 0;
	border-radius: var(--r-radius-lg);
	background: var(--r-surface);
}

@media (min-width: 640px) {
	.footer-panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.footer-panel {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--r-space-5);
		padding: var(--r-space-6);
	}
}

.footer-col {
	min-width: 0;
}

.footer-about {
	max-width: 40ch;
	margin: var(--r-space-3) 0;
	line-height: 1.8;
}

.footer-title {
	margin-bottom: var(--r-space-3);
	color: var(--r-text);
	font-size: 13px;
	font-weight: 700;
}

.footer-menu,
.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	padding-block: 3px;
	font-size: 12.5px;
}

.footer-menu a,
.contact-list a {
	color: var(--r-text-2);
}

.footer-menu a:hover,
.contact-list a:hover {
	color: var(--r-text);
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--r-space-2);
	padding-block: 4px;
	font-size: 12.5px;
	line-height: 1.65;
}

.contact-list svg {
	margin-top: 3px;
	color: var(--r-text-3);
}

.social-links {
	display: flex;
	gap: var(--r-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--r-bg);
	color: var(--r-text-2);
	transition: color var(--r-dur) var(--r-ease), background-color var(--r-dur) var(--r-ease);
}

.social-links a:hover {
	background: var(--r-text);
	color: #fff;
}

.footer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--r-space-3);
}

.badge-widget {
	display: grid;
	place-items: center;
	min-width: 96px;
	min-height: 96px;
	padding: var(--r-space-2);
	border: 1px solid var(--r-border);
	border-radius: var(--r-radius);
	background: var(--r-bg);
}

.badge-widget img {
	max-height: 90px;
	width: auto;
}

.footer-col--contact .social-links {
	margin-top: var(--r-space-4);
}

/* Brand box (wireframe 15): text box with a "see more" button beside it. */
.brand-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--r-space-3);
	margin-top: var(--r-space-3);
}

@media (min-width: 768px) {
	.brand-about {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: var(--r-space-4);
	}
}

.brand-about__box {
	padding: 14px 18px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: var(--r-radius-lg);
	background: var(--r-elevated);
}

.brand-about__title {
	margin: 0 0 4px;
	font-size: var(--r-fs-sm);
}

.brand-about__text {
	color: var(--r-text-2);
	font-size: 12.5px;
	line-height: 1.8;
}

.brand-about__text > :last-child {
	margin-bottom: 0;
}

.brand-about.is-collapsed .brand-about__text {
	max-height: 3.6em;
	overflow: hidden;
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}

.brand-about__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--r-space-1);
	min-height: 34px;
	padding: 6px 14px;
	border: 1px solid var(--r-border);
	border-radius: 999px;
	background: var(--r-surface);
	color: var(--r-text-2);
	font: inherit;
	font-size: var(--r-fs-xs);
	font-weight: 600;
	cursor: pointer;
}

@media (min-width: 768px) {
	.brand-about__toggle {
		align-self: center;
	}
}

.brand-about__toggle:hover {
	border-color: var(--r-accent);
	color: var(--r-accent);
}

.brand-about__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Copyright bar (wireframe 16). */
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin-top: var(--r-space-3);
	padding: var(--r-space-2) 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--r-text-3);
	font-size: 11.5px;
	text-align: center;
}

.footer-bottom p {
	margin: 0;
}

/* Bottom navigation (mobile) */
.bottom-nav {
	display: none;
}

@media (max-width: 1023px) {
	.has-bottom-nav .bottom-nav {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 60;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		padding-bottom: env(safe-area-inset-bottom);
		border-top: 1px solid var(--r-border);
		background: rgba(255, 255, 255, 0.92);
		-webkit-backdrop-filter: saturate(180%) blur(20px);
		backdrop-filter: saturate(180%) blur(20px);
	}

	.has-bottom-nav .site-footer {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.bottom-nav a {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 60px;
		color: var(--r-text-3);
		font-size: 11px;
		font-weight: 600;
	}

	.bottom-nav a.is-active {
		color: var(--r-text);
	}

	.bottom-nav .cart-count {
		inset-block-start: 6px;
		inset-inline-end: calc(50% - 22px);
	}
}

/* 9. WordPress core helpers
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	inset-inline-start: 8px;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto !important;
	clip-path: none;
	border-radius: var(--r-radius-sm);
	background: var(--r-bg);
	box-shadow: var(--r-shadow-lg);
	color: var(--r-text);
	font-weight: 700;
}

.skip-link:focus {
	position: fixed !important;
}

.alignleft {
	float: left;
	margin-inline-end: var(--r-space-6);
	margin-bottom: var(--r-space-4);
}

.alignright {
	float: right;
	margin-inline-start: var(--r-space-6);
	margin-bottom: var(--r-space-4);
}

.aligncenter {
	display: block;
	clear: both;
	margin-inline: auto;
}

.wp-caption,
.wp-block-image figcaption,
figcaption {
	color: var(--r-text-3);
	font-size: var(--r-fs-sm);
	text-align: center;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: var(--r-space-4);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
	gap: var(--r-space-3);
}

.sticky .post-card__title::before {
	content: "★ ";
	color: var(--r-accent);
}

.bypostauthor {
	display: block;
}

.page-links {
	clear: both;
	margin-top: var(--r-space-6);
}

.wp-block-search__input {
	border-radius: var(--r-radius-pill);
}

.wp-block-search__button {
	border-radius: var(--r-radius-pill);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--r-border);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.topbar,
	.site-header,
	.site-footer,
	.bottom-nav,
	.drawer,
	.drawer-overlay {
		display: none !important;
	}
}
