/**
 * Custom home page — image-free editorial storefront.
 */

:root {
	--ym-ink: #10151b;
	--ym-muted: #687481;
	--ym-line: #dbe3e9;
	--ym-soft: #f4f7f9;
	--ym-white: #ffffff;
	--ym-shell: 1320px;
}

.xtra-child-template-page-home {
	background: var(--ym-white);
}

.xtra-child-page--home,
.xtra-child-page--home * {
	box-sizing: border-box;
}

.xtra-child-page--home {
	width: 100%;
	color: var(--ym-ink);
	background: var(--ym-white);
	font-variant-numeric: tabular-nums;
}

.xtra-child-page--home a {
	text-decoration: none;
}

.xtra-child-page--home svg {
	display: block;
	width: 18px;
	height: 18px;
}

.ym-home-shell {
	width: min(calc(100% - 48px), var(--ym-shell));
	margin-inline: auto;
}

.ym-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 680px;
	border-bottom: 1px solid var(--ym-line);
	background:
		linear-gradient(90deg, transparent 0 24.9%, rgba(16, 21, 27, 0.055) 25%, transparent 25.1% 49.9%, rgba(16, 21, 27, 0.055) 50%, transparent 50.1% 74.9%, rgba(16, 21, 27, 0.055) 75%, transparent 75.1%),
		linear-gradient(180deg, #fbfcfd 0%, #f4f7f9 100%);
}

.ym-home-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 36%;
	background: var(--ym-ink);
	clip-path: polygon(20% 0, 100% 0, 76% 100%, 0 100%, 0 0);
	z-index: -1;
}

.ym-home-hero::after {
	content: "YADAK MATIN";
	position: absolute;
	left: 5.2%;
	bottom: 24px;
	color: rgba(255, 255, 255, 0.08);
	font-size: clamp(54px, 8vw, 126px);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1;
	white-space: nowrap;
	transform: rotate(-90deg) translateY(100%);
	transform-origin: left bottom;
	z-index: -1;
}

.ym-home-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	align-items: center;
	gap: 80px;
	min-height: 680px;
	padding-block: 100px;
}

.ym-home-hero__content {
	width: min(100%, 850px);
	margin-right: auto;
}

.ym-home-eyebrow,
.ym-home-section-kicker {
	margin: 0 0 24px;
	color: var(--ym-primary-deep);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.7;
}

.ym-home-hero__title {
	margin: 0;
	color: var(--ym-ink);
	font-size: clamp(52px, 6vw, 94px);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1.05;
}

.ym-home-hero__title span {
	display: block;
	margin-top: 14px;
	color: var(--ym-primary-deep);
	font-size: 0.58em;
	letter-spacing: -0.04em;
	line-height: 1.35;
}

.ym-home-hero__lead {
	max-width: 650px;
	margin: 32px 0 0;
	color: var(--ym-muted);
	font-size: 17px;
	font-weight: 400;
	line-height: 2;
}

.ym-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 38px;
}

.ym-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 52px;
	padding: 0 24px;
	border: 1px solid var(--ym-ink);
	color: var(--ym-ink);
	font-size: 13px;
	font-weight: 800;
	transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ym-home-button:hover {
	transform: translateY(-2px);
}

.ym-home-button--primary {
	border-color: var(--ym-ink);
	background: var(--ym-ink);
	color: var(--ym-white);
}

.ym-home-button--primary:hover {
	border-color: var(--ym-primary-deep);
	background: var(--ym-primary-deep);
	color: var(--ym-white);
}

.ym-home-button--ghost:hover {
	border-color: var(--ym-primary-deep);
	color: var(--ym-primary-deep);
}

.ym-home-hero__index {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 18px;
	padding-left: 8px;
	text-align: left;
}

.ym-home-hero__index-number {
	color: var(--ym-primary-deep);
	font-size: 76px;
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.8;
}

.ym-home-hero__index-line {
	display: block;
	width: 100%;
	height: 1px;
	background: var(--ym-ink);
}

.ym-home-hero__index-label {
	color: var(--ym-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.ym-home-section {
	padding-block: 110px;
}

.ym-home-section--brands {
	background: var(--ym-white);
}

.ym-home-section--categories {
	border-block: 1px solid var(--ym-line);
	background: var(--ym-soft);
}

.ym-home-section--vehicles {
	background: var(--ym-ink);
	color: var(--ym-white);
}

.ym-home-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 44px;
	margin-bottom: 54px;
}

.ym-home-section-head--line {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ym-line);
}

.ym-home-section-head > div {
	min-width: 0;
}

.ym-home-section-head .ym-home-section-kicker {
	margin-bottom: 10px;
}

.ym-home-section-head h2 {
	margin: 0;
	color: inherit;
	font-size: clamp(32px, 4vw, 54px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.25;
}

.ym-home-section-head > p {
	max-width: 470px;
	margin: 0;
	color: var(--ym-muted);
	font-size: 14px;
	line-height: 1.9;
}

.ym-home-section--vehicles .ym-home-section-head > p {
	color: #9ca7b2;
}

.ym-home-section-head > a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ym-ink);
	font-size: 13px;
	font-weight: 800;
}

.ym-home-brands {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--ym-line);
	border-right: 1px solid var(--ym-line);
}

.ym-home-brand-card {
	position: relative;
	display: flex;
	min-height: 430px;
	flex-direction: column;
	align-items: flex-start;
	padding: 34px;
	border-bottom: 1px solid var(--ym-line);
	border-left: 1px solid var(--ym-line);
	background: var(--ym-white);
	color: var(--ym-ink);
	overflow: hidden;
	transition: color 220ms ease, background 220ms ease;
}

.ym-home-brand-card::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 5px;
	background: var(--ym-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 240ms ease;
}

.ym-home-brand-card:hover {
	background: var(--ym-ink);
	color: var(--ym-white);
}

.ym-home-brand-card:hover::before {
	transform: scaleX(1);
}

.ym-home-brand-card__index {
	color: var(--ym-primary-deep);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.ym-home-brand-card:hover .ym-home-brand-card__index {
	color: #8cc4ef;
}

.ym-home-brand-card__latin {
	width: 100%;
	margin-top: 64px;
	font-size: clamp(27px, 3.2vw, 47px);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1;
	white-space: nowrap;
}

.ym-home-brand-card__line {
	display: block;
	width: 100%;
	height: 1px;
	margin: 28px 0 24px;
	background: var(--ym-line);
	transition: background 220ms ease;
}

.ym-home-brand-card:hover .ym-home-brand-card__line {
	background: rgba(255, 255, 255, 0.18);
}

.ym-home-brand-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ym-home-brand-card__body strong {
	font-size: 20px;
	font-weight: 900;
}

.ym-home-brand-card__body small {
	color: var(--ym-muted);
	font-size: 12px;
	line-height: 1.7;
	transition: color 220ms ease;
}

.ym-home-brand-card:hover .ym-home-brand-card__body small {
	color: #aeb7bf;
}

.ym-home-brand-card__action {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 36px;
	font-size: 12px;
	font-weight: 800;
}

.ym-home-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--ym-line);
	border-right: 1px solid var(--ym-line);
}

.ym-home-category-card {
	display: flex;
	min-height: 180px;
	flex-direction: column;
	padding: 24px;
	border-bottom: 1px solid var(--ym-line);
	border-left: 1px solid var(--ym-line);
	background: var(--ym-soft);
	color: var(--ym-ink);
	transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ym-home-category-card:hover {
	z-index: 2;
	background: var(--ym-white);
	color: var(--ym-primary-deep);
	transform: translateY(-3px);
}

.ym-home-category-card__number {
	color: #98a4ae;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.13em;
}

.ym-home-category-card strong {
	margin-top: 30px;
	color: inherit;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.5;
}

.ym-home-category-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 24px;
	color: var(--ym-muted);
	font-size: 11px;
	font-weight: 700;
}

.ym-home-category-card:hover .ym-home-category-card__meta {
	color: var(--ym-primary-deep);
}

.ym-home-vehicle-browser {
	border: 1px solid #313a43;
}

.ym-home-vehicle-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 1px solid #313a43;
}

.ym-home-vehicle-tab {
	display: flex;
	min-height: 112px;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 7px;
	padding: 22px 30px;
	border: 0;
	border-left: 1px solid #313a43;
	background: transparent;
	color: #8f9aa4;
	font: inherit;
	text-align: right;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease;
}

.ym-home-vehicle-tab:last-child {
	border-left: 0;
}

.ym-home-vehicle-tab span {
	font-size: clamp(18px, 2.4vw, 30px);
	font-weight: 900;
	letter-spacing: -0.035em;
}

.ym-home-vehicle-tab small {
	font-size: 11px;
	font-weight: 700;
}

.ym-home-vehicle-tab:hover,
.ym-home-vehicle-tab.is-active {
	background: var(--ym-primary);
	color: var(--ym-white);
}

.ym-home-vehicle-tab:focus-visible {
	outline: 2px solid var(--ym-white);
	outline-offset: -5px;
}

.ym-home-vehicle-panel {
	padding: 44px;
}

.ym-home-vehicle-panel[hidden] {
	display: none !important;
}

.ym-home-vehicle-panel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	padding-bottom: 28px;
	border-bottom: 1px solid #313a43;
}

.ym-home-vehicle-panel__head span {
	color: #7f8a94;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.ym-home-vehicle-panel__head h3 {
	margin: 8px 0 0;
	color: var(--ym-white);
	font-size: 30px;
	font-weight: 900;
}

.ym-home-vehicle-panel__head > a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #c5cdd4;
	font-size: 12px;
	font-weight: 800;
}

.ym-home-vehicle-groups {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.ym-home-vehicle-group {
	min-height: 220px;
	padding: 30px;
	border-bottom: 1px solid #313a43;
	border-left: 1px solid #313a43;
}

.ym-home-vehicle-group:nth-child(3n) {
	border-left: 0;
}

.ym-home-vehicle-group__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 22px;
}

.ym-home-vehicle-group__title strong {
	color: var(--ym-white);
	font-size: 17px;
	font-weight: 900;
}

.ym-home-vehicle-group__title a {
	color: #7f8a94;
	font-size: 10px;
	font-weight: 700;
}

.ym-home-vehicle-models {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ym-home-vehicle-models a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid #3b4650;
	color: #c7ced5;
	font-size: 12px;
	font-weight: 700;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.ym-home-vehicle-models a:hover {
	border-color: var(--ym-primary);
	background: var(--ym-primary);
	color: var(--ym-white);
}

.ym-home-empty {
	padding: 34px;
	border: 1px dashed var(--ym-line);
	color: var(--ym-muted);
	font-size: 13px;
	line-height: 1.9;
	text-align: center;
}

.ym-home-section--vehicles .ym-home-empty {
	border-color: #3b4650;
	color: #9ca7b2;
}

.ym-home-footer-cta {
	padding-block: 72px;
	border-bottom: 1px solid var(--ym-line);
	background: var(--ym-primary);
	color: var(--ym-white);
}

.ym-home-footer-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
	align-items: center;
	gap: 70px;
}

.ym-home-footer-cta p {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
}

.ym-home-footer-cta h2 {
	margin: 0;
	color: var(--ym-white);
	font-size: clamp(26px, 3vw, 42px);
	font-weight: 900;
	letter-spacing: -0.04em;
}

.ym-home-product-search form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0;
	margin: 0;
}

.ym-home-product-search input[type="search"] {
	width: 100%;
	height: 58px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-left: 0;
	border-radius: 0;
	background: var(--ym-white);
	color: var(--ym-ink);
	font: inherit;
	font-size: 13px;
	box-shadow: none;
}

.ym-home-product-search button {
	min-width: 120px;
	height: 58px;
	padding: 0 20px;
	border: 1px solid var(--ym-ink);
	border-radius: 0;
	background: var(--ym-ink);
	color: var(--ym-white);
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.ym-home-editor-content {
	padding-block: 80px;
}

.ym-home-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 500ms ease, transform 500ms ease;
}

.ym-home-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 1100px) {
	.ym-home-hero::before {
		width: 28%;
	}

	.ym-home-hero__inner {
		grid-template-columns: minmax(0, 1fr) 180px;
		gap: 40px;
	}

	.ym-home-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ym-home-vehicle-groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ym-home-vehicle-group:nth-child(3n) {
		border-left: 1px solid #313a43;
	}

	.ym-home-vehicle-group:nth-child(2n) {
		border-left: 0;
	}
}

@media (max-width: 820px) {
	.ym-home-shell {
		width: min(calc(100% - 32px), var(--ym-shell));
	}

	.ym-home-hero,
	.ym-home-hero__inner {
		min-height: auto;
	}

	.ym-home-hero::before,
	.ym-home-hero::after {
		display: none;
	}

	.ym-home-hero__inner {
		grid-template-columns: 1fr;
		padding-block: 84px;
	}

	.ym-home-hero__index {
		display: none;
	}

	.ym-home-hero__title {
		font-size: clamp(45px, 12vw, 72px);
	}

	.ym-home-section {
		padding-block: 80px;
	}

	.ym-home-section-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		margin-bottom: 38px;
	}

	.ym-home-brands {
		grid-template-columns: 1fr;
	}

	.ym-home-brand-card {
		min-height: 300px;
	}

	.ym-home-brand-card__latin {
		margin-top: 38px;
	}

	.ym-home-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ym-home-vehicle-tabs {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.ym-home-vehicle-tab {
		min-width: 210px;
		flex: 1 0 210px;
		scroll-snap-align: start;
	}

	.ym-home-vehicle-panel {
		padding: 28px;
	}

	.ym-home-vehicle-panel__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ym-home-footer-cta__inner {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

@media (max-width: 560px) {
	.ym-home-shell {
		width: min(calc(100% - 24px), var(--ym-shell));
	}

	.ym-home-hero__inner {
		padding-block: 64px;
	}

	.ym-home-eyebrow {
		font-size: 10px;
		letter-spacing: 0.1em;
	}

	.ym-home-hero__title {
		font-size: 42px;
		line-height: 1.15;
	}

	.ym-home-hero__title span {
		font-size: 0.56em;
		line-height: 1.45;
	}

	.ym-home-hero__lead {
		font-size: 14px;
	}

	.ym-home-hero__actions,
	.ym-home-button {
		width: 100%;
	}

	.ym-home-section {
		padding-block: 62px;
	}

	.ym-home-section-head h2 {
		font-size: 31px;
	}

	.ym-home-brand-card {
		min-height: 260px;
		padding: 26px;
	}

	.ym-home-brand-card__latin {
		font-size: 29px;
	}

	.ym-home-category-grid {
		grid-template-columns: 1fr;
	}

	.ym-home-category-card {
		min-height: 145px;
	}

	.ym-home-vehicle-panel {
		padding: 20px;
	}

	.ym-home-vehicle-groups {
		grid-template-columns: 1fr;
	}

	.ym-home-vehicle-group,
	.ym-home-vehicle-group:nth-child(2n),
	.ym-home-vehicle-group:nth-child(3n) {
		min-height: 0;
		padding: 24px 4px;
		border-left: 0;
	}

	.ym-home-footer-cta {
		padding-block: 52px;
	}

	.ym-home-product-search form {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ym-home-product-search input[type="search"] {
		border: 1px solid rgba(255, 255, 255, 0.65);
	}

	.ym-home-product-search button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ym-home-brand-card,
	.ym-home-category-card,
	.ym-home-button,
	.ym-home-reveal {
		transition: none;
	}

	.ym-home-reveal {
		opacity: 1;
		transform: none;
	}
}

/* Parent-theme SVG rules must never enlarge navigation arrows. */
.xtra-child-page--home svg.ym-home-arrow {
	display: inline-block !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	flex: 0 0 18px !important;
	vertical-align: middle;
}

/* Editable media slots and rounded interactive controls — v2.2.0. */
.ym-home-button {
	border-radius: 10px;
}

.ym-home-vehicle-browser {
	border-radius: 14px;
	overflow: hidden;
}

.ym-home-vehicle-models a {
	border-radius: 8px;
}

.ym-home-product-search input[type="search"] {
	border-radius: 0 10px 10px 0;
}

.ym-home-product-search button {
	border-radius: 10px 0 0 10px;
}

.ym-home-hero.has-image .ym-home-hero__inner {
	grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
	gap: 54px;
}

.ym-home-hero__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 460px;
}

.ym-home-hero__visual::before {
	content: "";
	position: absolute;
	inset: 10% 3% 5%;
	border: 1px solid rgba(89, 151, 201, 0.25);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(89, 151, 201, 0.16), transparent 67%);
}

.ym-home-hero__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	max-height: 540px;
	object-fit: contain;
	filter: drop-shadow(0 28px 38px rgba(16, 21, 27, 0.22));
}

.ym-home-hero__visual-badge {
	position: absolute;
	right: 0;
	bottom: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid rgba(16, 21, 27, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
}

.ym-home-hero__visual-badge span {
	color: var(--ym-primary-deep);
	font-size: 24px;
	font-weight: 900;
}

.ym-home-hero__visual-badge small {
	color: var(--ym-muted);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.ym-home-brand-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 145px;
	margin: 28px 0 6px;
	pointer-events: none;
}

.ym-home-brand-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1);
	filter: drop-shadow(0 18px 22px rgba(16, 21, 27, 0.14));
	transition: transform 260ms ease, filter 260ms ease;
}

.ym-home-brand-card.has-image .ym-home-brand-card__latin {
	margin-top: 34px;
}

.ym-home-brand-card.has-image {
	min-height: 530px;
}

.ym-home-brand-card.has-image:hover .ym-home-brand-card__image {
	transform: scale(1.045) translateY(-3px);
	filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.32));
}

.ym-home-section-head.has-media {
	position: relative;
	min-height: 150px;
}

.ym-home-section-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(25vw, 260px);
	height: 140px;
	margin-inline: auto;
	pointer-events: none;
}

.ym-home-section-media__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 15px 22px rgba(16, 21, 27, 0.13));
}

.ym-home-section-media--dark .ym-home-section-media__image {
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.ym-home-footer-cta.has-image .ym-home-footer-cta__inner {
	grid-template-columns: minmax(150px, 220px) minmax(0, 0.8fr) minmax(380px, 1.2fr);
	gap: 42px;
}

.ym-home-footer-cta__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
}

.ym-home-footer-cta__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.2));
}

@media (max-width: 1100px) {
	.ym-home-hero.has-image .ym-home-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	}

	.ym-home-footer-cta.has-image .ym-home-footer-cta__inner {
		grid-template-columns: 160px minmax(0, 1fr);
	}

	.ym-home-footer-cta.has-image .ym-home-product-search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 820px) {
	.ym-home-hero.has-image .ym-home-hero__inner {
		grid-template-columns: 1fr;
	}

	.ym-home-hero__visual {
		min-height: 320px;
		order: -1;
	}

	.ym-home-hero__image {
		max-height: 390px;
	}

	.ym-home-section-head.has-media {
		min-height: 0;
	}

	.ym-home-section-media {
		width: min(100%, 320px);
		margin-inline: 0;
	}

	.ym-home-footer-cta.has-image .ym-home-footer-cta__inner {
		grid-template-columns: 1fr;
	}

	.ym-home-footer-cta.has-image .ym-home-product-search {
		grid-column: auto;
	}

	.ym-home-footer-cta__media {
		height: 170px;
	}
}

@media (max-width: 560px) {
	.ym-home-brand-card.has-image {
		min-height: 420px;
	}

	.ym-home-brand-card__media {
		height: 120px;
		margin-top: 20px;
	}

	.ym-home-product-search input[type="search"],
	.ym-home-product-search button {
		border-radius: 10px;
	}
}

/*
 * Media-first home layout — v2.3.0
 * Images with their own background are displayed as intentional editorial panels,
 * never as small transparent cut-outs.
 */
.ym-home-button {
	border-radius: 14px;
}

.ym-home-hero.has-image {
	min-height: 720px;
	background:
		linear-gradient(90deg, transparent 0 33.2%, rgba(16, 21, 27, 0.045) 33.3%, transparent 33.4% 66.5%, rgba(16, 21, 27, 0.045) 66.6%, transparent 66.7%),
		linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
}

.ym-home-hero.has-image::before,
.ym-home-hero.has-image::after {
	display: none;
}

.ym-home-hero.has-image .ym-home-hero__inner {
	grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
	gap: clamp(42px, 5vw, 86px);
	min-height: 720px;
	padding-block: 74px;
}

.ym-home-hero.has-image .ym-home-hero__content {
	position: relative;
	z-index: 2;
	width: min(100%, 760px);
}

.ym-home-hero__visual {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1.34 / 1;
	overflow: hidden;
	border: 1px solid rgba(16, 21, 27, 0.1);
	border-radius: 26px;
	background: #eaf1f6;
	box-shadow: 0 28px 70px rgba(16, 21, 27, 0.16);
}

.ym-home-hero__visual::before {
	display: none;
}

.ym-home-hero__image {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center center;
	filter: none;
	transform: scale(1.015);
}

.ym-home-hero__visual::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 52%, rgba(8, 17, 25, 0.14) 100%);
}

.ym-home-hero__visual-badge {
	right: 22px;
	bottom: 22px;
	z-index: 3;
	padding: 12px 16px;
	border-color: rgba(255, 255, 255, 0.42);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 12px 30px rgba(16, 21, 27, 0.13);
}

.ym-home-brands {
	gap: 24px;
	border: 0;
}

.ym-home-brand-card {
	border: 1px solid var(--ym-line);
	border-radius: 20px;
	box-shadow: 0 14px 38px rgba(16, 21, 27, 0.055);
}

.ym-home-brand-card.has-image {
	min-height: 570px;
	padding: 0;
	border: 1px solid var(--ym-line);
	border-radius: 20px;
	background: var(--ym-white);
	color: var(--ym-ink);
}

.ym-home-brand-card.has-image::before {
	height: 6px;
	z-index: 4;
}

.ym-home-brand-card.has-image .ym-home-brand-card__index {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 36px;
	padding-inline: 10px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 8px 20px rgba(16, 21, 27, 0.1);
	backdrop-filter: blur(8px);
}

.ym-home-brand-card.has-image .ym-home-brand-card__media {
	order: 1;
	position: relative;
	display: block;
	width: 100%;
	height: 270px;
	margin: 0;
	overflow: hidden;
	border-radius: 19px 19px 0 0;
	background: #eaf1f6;
}

.ym-home-brand-card.has-image .ym-home-brand-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(16, 21, 27, 0.1));
	pointer-events: none;
}

.ym-home-brand-card.has-image .ym-home-brand-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 58%;
	filter: none;
	transform: scale(1.01);
}

.ym-home-brand-card.has-image .ym-home-brand-card__latin {
	order: 2;
	width: auto;
	margin: 28px 30px 0;
	font-size: clamp(26px, 2.7vw, 42px);
}

.ym-home-brand-card.has-image .ym-home-brand-card__line {
	order: 3;
	width: auto;
	margin: 22px 30px 20px;
}

.ym-home-brand-card.has-image .ym-home-brand-card__body {
	order: 4;
	margin-inline: 30px;
}

.ym-home-brand-card.has-image .ym-home-brand-card__action {
	order: 5;
	margin: 0 30px 30px;
	padding-top: 28px;
}

.ym-home-brand-card.has-image:hover {
	background: var(--ym-white);
	color: var(--ym-ink);
	transform: translateY(-6px);
	box-shadow: 0 26px 60px rgba(16, 21, 27, 0.13);
}

.ym-home-brand-card.has-image:hover .ym-home-brand-card__index {
	color: var(--ym-primary-deep);
}

.ym-home-brand-card.has-image:hover .ym-home-brand-card__line {
	background: var(--ym-line);
}

.ym-home-brand-card.has-image:hover .ym-home-brand-card__body small {
	color: var(--ym-muted);
}

.ym-home-brand-card.has-image:hover .ym-home-brand-card__image {
	transform: scale(1.055);
	filter: none;
}

.ym-home-category-card,
.ym-home-vehicle-models a {
	border-radius: 12px;
}

.ym-home-product-search input[type="search"] {
	border-radius: 0 14px 14px 0;
}

.ym-home-product-search button {
	border-radius: 14px 0 0 14px;
}

@media (max-width: 1100px) {
	.ym-home-hero.has-image .ym-home-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
		gap: 40px;
	}

	.ym-home-brand-card.has-image .ym-home-brand-card__media {
		height: 235px;
	}
}

@media (max-width: 820px) {
	.ym-home-hero.has-image {
		min-height: auto;
	}

	.ym-home-hero.has-image .ym-home-hero__inner {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-block: 42px 76px;
	}

	.ym-home-hero__visual {
		order: -1;
		width: 100%;
		aspect-ratio: 16 / 10;
	}

	.ym-home-brand-card.has-image {
		min-height: 0;
	}

	.ym-home-brand-card.has-image .ym-home-brand-card__media {
		height: clamp(230px, 58vw, 340px);
	}
}

@media (max-width: 560px) {
	.ym-home-hero__visual {
		border-radius: 18px;
	}

	.ym-home-hero__visual-badge {
		right: 12px;
		bottom: 12px;
	}

	.ym-home-brand-card.has-image,
	.ym-home-brand-card.has-image .ym-home-brand-card__media {
		border-radius: 16px;
	}

	.ym-home-brand-card.has-image .ym-home-brand-card__media {
		border-radius: 15px 15px 0 0;
	}

	.ym-home-product-search input[type="search"],
	.ym-home-product-search button {
		border-radius: 12px;
	}
}


/* =========================================================
   HERO V3 — original split composition + Woo brand slider
   ========================================================= */

.ym3-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 700px;
	border-bottom: 1px solid var(--ym-line);
	background:
		linear-gradient(90deg, transparent 0 33.2%, rgba(16, 21, 27, 0.045) 33.3%, transparent 33.4% 66.5%, rgba(16, 21, 27, 0.045) 66.6%, transparent 66.7%),
		linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%);
}

.ym3-home-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: -2;
	width: 43%;
	background: #10151b;
	clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}

.ym3-home-hero::after {
	content: "YADAK MATIN";
	position: absolute;
	left: 4.2%;
	bottom: 26px;
	z-index: -1;
	color: rgba(255, 255, 255, 0.065);
	font-size: clamp(58px, 8vw, 126px);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1;
	white-space: nowrap;
	transform: rotate(-90deg) translateY(100%);
	transform-origin: left bottom;
}

.ym3-home-hero__inner {
	direction: ltr;
	display: grid;
	grid-template-columns: minmax(390px, 0.9fr) minmax(560px, 1.1fr);
	align-items: center;
	gap: clamp(54px, 6vw, 100px);
	min-height: 700px;
	padding-block: 70px;
}

.ym3-home-hero__content {
	direction: rtl;
	position: relative;
	z-index: 3;
	width: min(100%, 760px);
}

.ym3-home-hero__content .ym-home-eyebrow {
	margin-bottom: 18px;
}

.ym3-home-hero__title {
	margin: 0;
	color: var(--ym-ink);
	font-size: clamp(52px, 5.8vw, 88px);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1.05;
}

.ym3-home-hero__title-main,
.ym3-home-hero__title-accent {
	display: block;
}

.ym3-home-hero__title-accent {
	margin-top: 14px;
	color: var(--ym-primary-deep);
	font-size: 0.58em;
	letter-spacing: -0.04em;
	line-height: 1.35;
}

.ym3-home-hero__lead {
	max-width: 650px;
	margin: 30px 0 0;
	color: var(--ym-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
}

.ym3-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.ym3-home-hero .ym-home-button {
	border-radius: 14px;
}

/* Circular brand stage */
.ym3-home-hero__visual {
	direction: ltr;
	position: relative;
	z-index: 2;
	display: flex;
	min-width: 0;
	min-height: 520px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ym3-home-hero__orbital {
	position: absolute;
	inset: 50% auto auto 50%;
	width: min(44vw, 520px);
	max-width: 520px;
	aspect-ratio: 1;
	transform: translate(-50%, -54%);
	pointer-events: none;
}

.ym3-home-hero__orbit {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(89, 151, 201, 0.28);
	border-radius: 50%;
}

.ym3-home-hero__orbit--one::before,
.ym3-home-hero__orbit--two::before {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ym-primary);
	box-shadow: 0 0 0 6px rgba(89, 151, 201, 0.13);
}

.ym3-home-hero__orbit--one::before {
	top: 10%;
	right: 18%;
}

.ym3-home-hero__orbit--two {
	inset: 9%;
	border-color: rgba(255, 255, 255, 0.16);
}

.ym3-home-hero__orbit--two::before {
	bottom: 8%;
	left: 18%;
	background: #ffffff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.ym3-home-hero__stage {
	position: relative;
	z-index: 2;
	width: clamp(320px, 32vw, 455px);
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.52);
	border-radius: 50%;
	background:
		radial-gradient(circle at 58% 36%, rgba(255, 255, 255, 0.98), rgba(245, 248, 250, 0.96) 58%, rgba(224, 233, 240, 0.94) 100%);
	box-shadow:
		0 34px 80px rgba(0, 0, 0, 0.28),
		inset 0 0 0 9px rgba(255, 255, 255, 0.34);
	overflow: hidden;
}

.ym3-home-hero__stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 4;
	border-radius: inherit;
	box-shadow: inset -34px -34px 70px rgba(89, 151, 201, 0.08);
	pointer-events: none;
}

.ym3-home-hero__slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ym-ink);
	opacity: 0;
	visibility: hidden;
	transform: scale(0.94) rotate(-2deg);
	transition: opacity 520ms ease, transform 650ms cubic-bezier(.2,.7,.2,1), visibility 520ms ease;
	pointer-events: none;
}

.ym3-home-hero__slide.is-active {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	transform: scale(1) rotate(0deg);
	pointer-events: auto;
}

.ym3-home-hero__slide-media {
	display: flex;
	width: 78%;
	height: 78%;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.ym3-home-hero__brand-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	padding: 16px;
	object-fit: contain !important;
	object-position: center !important;
	filter: drop-shadow(0 20px 22px rgba(16, 21, 27, 0.18));
}

.ym3-home-hero__brand-fallback {
	direction: ltr;
	max-width: 80%;
	color: var(--ym-ink);
	font-size: clamp(34px, 5vw, 62px);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 1;
	text-align: center;
}

.ym3-home-hero__slide-caption {
	position: absolute;
	right: 28px;
	bottom: 34px;
	z-index: 6;
	display: grid;
	min-width: 142px;
	gap: 2px;
	padding: 12px 15px;
	border: 1px solid rgba(16, 21, 27, 0.08);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 30px rgba(16, 21, 27, 0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.ym3-home-hero__slide-caption small {
	color: var(--ym-primary-deep);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.ym3-home-hero__slide-caption strong {
	direction: ltr;
	color: var(--ym-ink);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.05em;
}

.ym3-home-hero__slide-caption > span {
	direction: rtl;
	color: var(--ym-muted);
	font-size: 10px;
	font-weight: 700;
}

.ym3-home-hero__controls {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 30px;
}

.ym3-home-hero__dot {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	outline: 0;
	background: rgba(255, 255, 255, 0.22);
	cursor: pointer;
	transition: width 220ms ease, min-width 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.ym3-home-hero__dot span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ym3-home-hero__dot.is-active {
	min-width: 68px;
	background: var(--ym-primary);
	box-shadow: 0 0 0 4px rgba(89, 151, 201, 0.12);
}

.ym3-home-hero__dot:focus-visible {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.34);
}

/* WooCommerce brand images are usually logos: never crop them. */
.ym-home-brand-card.has-image .ym-home-brand-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #f8fafc, #edf3f7);
}

.ym-home-brand-card.has-image .ym-home-brand-card__image,
.ym-home-brand-card.has-image:hover .ym-home-brand-card__image {
	width: 100%;
	height: 100%;
	padding: 34px;
	object-fit: contain;
	object-position: center;
	filter: none;
	transform: none;
}

@media (max-width: 1180px) {
	.ym3-home-hero__inner {
		grid-template-columns: minmax(350px, 0.85fr) minmax(500px, 1.15fr);
		gap: 44px;
	}

	.ym3-home-hero__stage {
		width: clamp(310px, 34vw, 410px);
	}
}

@media (max-width: 920px) {
	.ym3-home-hero {
		min-height: auto;
	}

	.ym3-home-hero::before {
		width: 100%;
		height: 43%;
		clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
	}

	.ym3-home-hero::after {
		display: none;
	}

	.ym3-home-hero__inner {
		grid-template-columns: 1fr;
		gap: 46px;
		min-height: auto;
		padding-block: 56px 78px;
	}

	.ym3-home-hero__content {
		order: 1;
		width: 100%;
	}

	.ym3-home-hero__visual {
		order: 2;
		min-height: 470px;
	}

	.ym3-home-hero__stage {
		width: min(76vw, 430px);
	}

	.ym3-home-hero__orbital {
		width: min(88vw, 510px);
	}

	.ym3-home-hero__controls {
		margin-top: 24px;
	}
}

@media (max-width: 560px) {
	.ym3-home-hero__inner {
		padding-block: 42px 62px;
	}

	.ym3-home-hero__title {
		font-size: 42px;
		line-height: 1.15;
	}

	.ym3-home-hero__title-accent {
		font-size: 0.56em;
		line-height: 1.45;
	}

	.ym3-home-hero__lead {
		font-size: 14px;
		line-height: 1.9;
	}

	.ym3-home-hero__actions,
	.ym3-home-hero__actions .ym-home-button {
		width: 100%;
	}

	.ym3-home-hero__visual {
		min-height: 390px;
	}

	.ym3-home-hero__stage {
		width: min(82vw, 330px);
	}

	.ym3-home-hero__orbital {
		width: min(94vw, 390px);
	}

	.ym3-home-hero__slide-caption {
		right: 18px;
		bottom: 22px;
		min-width: 120px;
		padding: 9px 11px;
		border-radius: 10px;
	}

	.ym3-home-hero__brand-image {
		padding: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ym3-home-hero__slide,
	.ym3-home-hero__dot {
		transition: none;
	}
}

/* =========================================================
 * Homepage refinement — v2.6.0
 * Brand-aware category filters, taxonomy imagery and calmer motion.
 * ========================================================= */

.xtra-child-page--home {
	--ym-text-xs: 12px;
	--ym-text-sm: 14px;
	--ym-text-md: 16px;
	--ym-text-lg: 18px;
	--ym-radius: 18px;
}

/* Keep the template naturally below the XTRA header and above its footer. */
.xtra-child-page--home {
	min-height: 0;
}

.ym3-home-hero,
.ym3-home-hero__inner {
	min-height: clamp(610px, 72vh, 760px);
}

.ym3-home-hero__inner {
	padding-block: clamp(54px, 6vw, 82px);
}

.ym3-home-hero__title {
	font-size: clamp(44px, 5vw, 72px);
	line-height: 1.12;
}

.ym3-home-hero__title-accent {
	font-size: clamp(24px, 2.8vw, 38px);
	line-height: 1.45;
}

.ym3-home-hero__lead {
	font-size: var(--ym-text-md);
	line-height: 1.95;
}

.ym-home-section-head h2 {
	font-size: clamp(30px, 3.6vw, 46px);
	line-height: 1.35;
}

.ym-home-section-head > p,
.ym-home-brand-card__body small,
.ym-home-category-card__meta,
.ym-home-vehicle-model-card__copy small {
	font-size: var(--ym-text-sm);
}

/* Hero image caption: high contrast and intentionally readable. */
.ym3-home-hero__slide-caption {
	right: 24px;
	bottom: 26px;
	min-width: 180px;
	gap: 4px;
	padding: 14px 16px 15px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 15px;
	background: rgba(16, 21, 27, 0.88);
	box-shadow: 0 14px 34px rgba(16, 21, 27, 0.22);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ym3-home-hero__slide-caption small {
	color: #8dc5ef;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.ym3-home-hero__slide-caption strong {
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0.035em;
	line-height: 1.35;
}

.ym3-home-hero__slide-caption > span {
	color: rgba(255, 255, 255, 0.76);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

/* Dedicated lower brand artwork uploaded from the page metabox. */
.ym-home-brands {
	gap: 18px;
	border: 0;
}

.ym-home-brand-card,
.ym-home-brand-card.has-image {
	min-height: 440px;
	padding: 0;
	border: 1px solid var(--ym-line);
	border-radius: var(--ym-radius);
	background: #111820;
	box-shadow: 0 12px 34px rgba(16, 21, 27, 0.06);
	overflow: hidden;
}

.ym-home-brand-card.has-image .ym-home-brand-card__media,
.ym-home-brand-card__media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: #111820;
}

.ym-home-brand-card.has-image .ym-home-brand-card__image,
.ym-home-brand-card.has-image:hover .ym-home-brand-card__image,
.ym-home-brand-card__image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	filter: none !important;
	transform: scale(1.001);
	transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 350ms ease;
}

.ym-home-brand-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 15, 20, 0.06) 18%, rgba(10, 15, 20, 0.25) 55%, rgba(10, 15, 20, 0.92) 100%);
}

.ym-home-brand-card__index {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 30px;
	padding-inline: 9px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background: rgba(16, 21, 27, 0.48);
	color: #fff;
	font-size: 11px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ym-home-brand-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	height: 100%;
	min-height: 440px;
	flex-direction: column;
	justify-content: flex-end;
	padding: 30px;
	color: #fff;
}

.ym-home-brand-card__latin {
	width: auto;
	margin: 0 0 13px;
	color: #fff;
	font-size: clamp(25px, 2.7vw, 38px);
	letter-spacing: -0.035em;
	white-space: normal;
}

.ym-home-brand-card__body {
	gap: 4px;
}

.ym-home-brand-card__body strong {
	color: #fff;
	font-size: 18px;
}

.ym-home-brand-card__body small,
.ym-home-brand-card:hover .ym-home-brand-card__body small {
	max-width: 90%;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.8;
}

.ym-home-brand-card__action {
	margin-top: 20px;
	padding-top: 0;
	color: #fff;
	font-size: 13px;
}

.ym-home-brand-card:hover {
	background: #111820;
	color: #fff;
}

.ym-home-brand-card:hover .ym-home-brand-card__image {
	transform: scale(1.035);
	filter: saturate(1.04) contrast(1.02) !important;
}

/* Brand filters shared by part categories. */
.ym-home-part-browser {
	min-width: 0;
}

.ym-home-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.ym-home-filter-tab {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--ym-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ym-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ym-home-filter-tab small {
	color: var(--ym-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.ym-home-filter-tab:hover {
	border-color: var(--ym-primary);
	transform: translateY(-1px);
}

.ym-home-filter-tab.is-active {
	border-color: var(--ym-ink);
	background: var(--ym-ink);
	color: #fff;
}

.ym-home-filter-tab.is-active small {
	color: #9ecdf0;
}

.ym-home-part-panel[hidden] {
	display: none !important;
}

/* Part categories use the actual WooCommerce category thumbnail. */
.ym-home-category-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	border: 0;
}

.ym-home-category-card {
	position: relative;
	display: grid;
	min-height: 270px;
	grid-template-rows: 150px 1fr;
	padding: 0;
	border: 1px solid var(--ym-line);
	border-radius: 16px;
	background: #fff;
	color: var(--ym-ink);
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(16, 21, 27, 0.035);
}

.ym-home-category-card:hover {
	background: #fff;
	color: var(--ym-ink);
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(16, 21, 27, 0.08);
}

.ym-home-category-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 150px;
	background: linear-gradient(145deg, #f7f9fb, #edf2f6);
	overflow: hidden;
}

.ym-home-category-card__image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 150px;
	padding: 16px;
	object-fit: contain;
	transition: transform 380ms ease;
}

.ym-home-category-card:hover .ym-home-category-card__image {
	transform: scale(1.045);
}

.ym-home-category-card__fallback {
	display: flex;
	width: 72px;
	height: 72px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(89, 151, 201, 0.28);
	border-radius: 50%;
	color: var(--ym-primary-deep);
	font-size: 28px;
	font-weight: 900;
}

.ym-home-category-card__number {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 26px;
	padding-inline: 7px;
	border-radius: 999px;
	background: rgba(16, 21, 27, 0.78);
	color: #fff;
	font-size: 9px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.ym-home-category-card__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 18px;
}

.ym-home-category-card strong {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
}

.ym-home-category-card__meta,
.ym-home-category-card:hover .ym-home-category-card__meta {
	margin-top: auto;
	padding-top: 14px;
	color: var(--ym-muted);
	font-size: 12px;
}

/* Vehicle categories stay brand-filtered and use category thumbnails. */
.ym-home-vehicle-panel {
	padding: 34px;
}

.ym-home-vehicle-groups {
	grid-template-columns: 1fr;
	gap: 24px;
	padding-top: 28px;
}

.ym-home-vehicle-group,
.ym-home-vehicle-group:nth-child(2n),
.ym-home-vehicle-group:nth-child(3n) {
	min-height: 0;
	padding: 0;
	border: 0;
}

.ym-home-vehicle-group__title {
	margin-bottom: 14px;
}

.ym-home-vehicle-models {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ym-home-vehicle-models a.ym-home-vehicle-model-card {
	display: grid;
	min-height: 190px;
	grid-template-rows: 125px auto;
	padding: 0;
	border: 1px solid #33404b;
	border-radius: 14px;
	background: #151d25;
	color: #fff;
	overflow: hidden;
	transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.ym-home-vehicle-models a.ym-home-vehicle-model-card:hover {
	border-color: rgba(89, 151, 201, 0.9);
	background: #19232c;
	color: #fff;
	transform: translateY(-2px);
}

.ym-home-vehicle-model-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 125px;
	background: linear-gradient(145deg, #202b35, #151d25);
	overflow: hidden;
}

.ym-home-vehicle-model-card__media > span {
	display: flex;
	width: 58px;
	height: 58px;
	align-items: center;
	justify-content: center;
	border: 1px solid #40505d;
	border-radius: 50%;
	color: #8fc5ed;
	font-size: 24px;
	font-weight: 900;
}

.ym-home-vehicle-model-card__image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 125px;
	padding: 13px;
	object-fit: contain;
	transition: transform 380ms ease;
}

.ym-home-vehicle-model-card:hover .ym-home-vehicle-model-card__image {
	transform: scale(1.045);
}

.ym-home-vehicle-model-card__copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
	padding: 14px 15px 16px;
}

.ym-home-vehicle-model-card__copy strong {
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.55;
}

.ym-home-vehicle-model-card__copy small {
	color: #8997a3;
	font-size: 11px;
}

/* Minimal continuous motion: decorative only, never on content layout. */
@keyframes ym-home-orbit-loop {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes ym-home-logo-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.ym3-home-hero__orbit--one {
	animation: ym-home-orbit-loop 26s linear infinite;
}

.ym3-home-hero__orbit--two {
	animation: ym-home-orbit-loop 34s linear infinite reverse;
}

.ym3-home-hero__slide.is-active .ym3-home-hero__brand-image {
	animation: ym-home-logo-float 6.5s ease-in-out infinite;
}

@media (max-width: 1180px) {
	.ym-home-category-grid,
	.ym-home-vehicle-models {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 920px) {
	.ym3-home-hero,
	.ym3-home-hero__inner {
		min-height: auto;
	}

	.ym-home-section {
		padding-block: 76px;
	}

	.ym-home-brands {
		grid-template-columns: 1fr;
	}

	.ym-home-brand-card,
	.ym-home-brand-card.has-image,
	.ym-home-brand-card__content {
		min-height: 360px;
	}

	.ym-home-category-grid,
	.ym-home-vehicle-models {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ym-home-filter-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.ym-home-filter-tab {
		flex: 0 0 auto;
	}
}

@media (max-width: 620px) {
	.ym-home-shell {
		width: min(calc(100% - 24px), var(--ym-shell));
	}

	.ym3-home-hero__inner {
		padding-block: 36px 58px;
	}

	.ym3-home-hero__title {
		font-size: 38px;
	}

	.ym3-home-hero__title-accent {
		font-size: 23px;
	}

	.ym3-home-hero__lead {
		font-size: 14px;
	}

	.ym3-home-hero__slide-caption {
		right: 14px;
		bottom: 16px;
		min-width: 155px;
		padding: 11px 12px;
	}

	.ym3-home-hero__slide-caption strong {
		font-size: 13px;
	}

	.ym3-home-hero__slide-caption > span {
		font-size: 11px;
	}

	.ym-home-section {
		padding-block: 56px;
	}

	.ym-home-section-head h2 {
		font-size: 28px;
	}

	.ym-home-brand-card,
	.ym-home-brand-card.has-image,
	.ym-home-brand-card__content {
		min-height: 310px;
	}

	.ym-home-brand-card__content {
		padding: 24px;
	}

	.ym-home-category-grid,
	.ym-home-vehicle-models {
		grid-template-columns: 1fr;
	}

	.ym-home-category-card {
		min-height: 0;
		grid-template-columns: 116px 1fr;
		grid-template-rows: minmax(116px, auto);
	}

	.ym-home-category-card__media,
	.ym-home-category-card__image {
		min-height: 116px;
	}

	.ym-home-category-card__content {
		padding: 16px;
	}

	.ym-home-vehicle-panel {
		padding: 20px;
	}

	.ym-home-vehicle-models a.ym-home-vehicle-model-card {
		min-height: 0;
		grid-template-columns: 105px 1fr;
		grid-template-rows: 105px;
	}

	.ym-home-vehicle-model-card__media,
	.ym-home-vehicle-model-card__image {
		min-height: 105px;
	}

	.ym-home-vehicle-model-card__copy {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ym3-home-hero__orbit--one,
	.ym3-home-hero__orbit--two,
	.ym3-home-hero__slide.is-active .ym3-home-hero__brand-image {
		animation: none !important;
	}

	.ym-home-brand-card__image,
	.ym-home-category-card__image,
	.ym-home-vehicle-model-card__image,
	.ym-home-filter-tab {
		transition: none !important;
	}
}

/* =========================================================
 * 2.6.1 — clearer brand artwork, unclipped hero caption,
 * denser desktop taxonomy grids.
 * ======================================================= */

/* Let the hero information card sit outside the circular artwork safely. */
.ym3-home-hero__stage {
	overflow: visible;
}

.ym3-home-hero__slide-media {
	overflow: hidden;
	border-radius: 50%;
}

.ym3-home-hero__slide-caption {
	right: -34px;
	bottom: 22px;
	width: max-content;
	min-width: 188px;
	max-width: 230px;
	padding: 14px 17px 15px;
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(11, 17, 23, 0.94);
	box-shadow: 0 16px 38px rgba(4, 10, 15, 0.26);
	overflow: visible;
}

.ym3-home-hero__slide-caption strong,
.ym3-home-hero__slide-caption > span {
	overflow: visible;
	white-space: normal;
	text-overflow: clip;
}

.ym3-home-hero__slide-caption strong {
	font-size: 15px;
	line-height: 1.3;
}

.ym3-home-hero__slide-caption > span {
	font-size: 12px;
	line-height: 1.65;
}

/* Brand cards: keep the artwork visually dominant instead of covering it. */
.ym-home-brand-card,
.ym-home-brand-card.has-image {
	min-height: 460px;
	background: #10171e;
}

.ym-home-brand-card.has-image .ym-home-brand-card__media,
.ym-home-brand-card__media {
	inset: 0 0 auto;
	height: 72%;
	background: #eef3f7;
}

.ym-home-brand-card.has-image .ym-home-brand-card__image,
.ym-home-brand-card.has-image:hover .ym-home-brand-card__image,
.ym-home-brand-card__image {
	object-fit: cover !important;
	object-position: center 52% !important;
}

.ym-home-brand-card--porsche .ym-home-brand-card__image {
	object-position: center 55% !important;
}

.ym-home-brand-card__shade {
	background: linear-gradient(
		180deg,
		rgba(8, 13, 18, 0) 0%,
		rgba(8, 13, 18, 0) 49%,
		rgba(8, 13, 18, 0.18) 62%,
		rgba(8, 13, 18, 0.84) 75%,
		#10171e 88%,
		#10171e 100%
	);
}

.ym-home-brand-card__content {
	min-height: 460px;
	padding: 300px 28px 27px;
}

.ym-home-brand-card__latin {
	margin-bottom: 8px;
	font-size: clamp(24px, 2.25vw, 34px);
	line-height: 1.05;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.ym-home-brand-card__body strong {
	font-size: 16px;
}

.ym-home-brand-card__body small,
.ym-home-brand-card:hover .ym-home-brand-card__body small {
	max-width: 100%;
	font-size: 12px;
	line-height: 1.65;
}

.ym-home-brand-card__action {
	margin-top: 13px;
	font-size: 12px;
}

/* Six-column desktop part taxonomy. */
.ym-home-category-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.ym-home-category-card {
	min-height: 224px;
	grid-template-rows: 118px 1fr;
	border-radius: 14px;
}

.ym-home-category-card__media,
.ym-home-category-card__image {
	min-height: 118px;
}

.ym-home-category-card__image {
	padding: 11px;
}

.ym-home-category-card__content {
	padding: 13px 14px 14px;
}

.ym-home-category-card strong {
	font-size: 13px;
	line-height: 1.55;
}

.ym-home-category-card__meta,
.ym-home-category-card:hover .ym-home-category-card__meta {
	padding-top: 8px;
	font-size: 10px;
}

/* Vehicle/model taxonomy: six columns on wide desktop as well. */
.ym-home-vehicle-models {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.ym-home-vehicle-models a.ym-home-vehicle-model-card {
	min-height: 170px;
	grid-template-rows: 104px auto;
	border-radius: 12px;
}

.ym-home-vehicle-model-card__media,
.ym-home-vehicle-model-card__image {
	min-height: 104px;
}

.ym-home-vehicle-model-card__image {
	padding: 9px;
}

.ym-home-vehicle-model-card__copy {
	padding: 11px 12px 13px;
}

.ym-home-vehicle-model-card__copy strong {
	font-size: 12px;
	line-height: 1.5;
}

.ym-home-vehicle-model-card__copy small {
	font-size: 10px;
}

@media (max-width: 1180px) {
	.ym-home-category-grid,
	.ym-home-vehicle-models {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ym3-home-hero__slide-caption {
		right: -18px;
	}
}

@media (max-width: 920px) {
	.ym-home-category-grid,
	.ym-home-vehicle-models {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ym-home-brand-card,
	.ym-home-brand-card.has-image,
	.ym-home-brand-card__content {
		min-height: 400px;
	}

	.ym-home-brand-card__content {
		padding-top: 255px;
	}

	.ym3-home-hero__slide-caption {
		right: 8px;
		bottom: 12px;
	}
}

@media (max-width: 620px) {
	.ym3-home-hero__stage {
		overflow: visible;
	}

	.ym3-home-hero__slide-caption {
		right: 8px;
		bottom: 8px;
		width: auto;
		min-width: 150px;
		max-width: min(210px, 62vw);
		padding: 10px 12px 11px;
	}

	.ym3-home-hero__slide-caption strong {
		font-size: 12px;
	}

	.ym3-home-hero__slide-caption > span {
		font-size: 10px;
	}

	.ym-home-brand-card,
	.ym-home-brand-card.has-image,
	.ym-home-brand-card__content {
		min-height: 350px;
	}

	.ym-home-brand-card.has-image .ym-home-brand-card__media,
	.ym-home-brand-card__media {
		height: 67%;
	}

	.ym-home-brand-card__content {
		padding: 220px 22px 22px;
	}

	.ym-home-category-grid,
	.ym-home-vehicle-models {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ym-home-category-card,
	.ym-home-vehicle-models a.ym-home-vehicle-model-card {
		display: grid;
		min-height: 0;
		grid-template-columns: 1fr;
		grid-template-rows: 104px auto;
	}

	.ym-home-category-card__media,
	.ym-home-category-card__image,
	.ym-home-vehicle-model-card__media,
	.ym-home-vehicle-model-card__image {
		min-height: 104px;
	}
}

/* ================================================================
 * 2.6.2 — Clean editorial brand cards + nested vehicle taxonomy tabs
 * ================================================================ */

/* Brand cards: image first, copy below, brand logo on the artwork. */
.ym-home-brand-card,
.ym-home-brand-card.has-image {
	display: flex !important;
	flex-direction: column;
	min-height: 0 !important;
	overflow: hidden;
	border: 1px solid #e3e8ed;
	border-radius: 18px;
	background: #fff !important;
	color: #10171e;
	box-shadow: 0 10px 28px rgba(14, 24, 33, 0.06);
	transform: translateZ(0);
}

.ym-home-brand-card::before,
.ym-home-brand-card.has-image::before,
.ym-home-brand-card__shade,
.ym-home-brand-card__index {
	display: none !important;
}

.ym-home-brand-card.has-image .ym-home-brand-card__media,
.ym-home-brand-card__media {
	position: relative !important;
	inset: auto !important;
	display: block;
	width: 100%;
	height: auto !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eef2f5;
}

.ym-home-brand-card__media-placeholder {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 72% 26%, rgba(89, 151, 201, 0.16), transparent 34%),
		linear-gradient(145deg, #eef3f7 0%, #dde5eb 100%);
}

.ym-home-brand-card.has-image .ym-home-brand-card__image,
.ym-home-brand-card.has-image:hover .ym-home-brand-card__image,
.ym-home-brand-card__image {
	position: absolute !important;
	inset: 0 !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	filter: none !important;
	opacity: 1 !important;
	transform: scale(1) !important;
	transition: transform 420ms cubic-bezier(.2,.7,.2,1) !important;
}

.ym-home-brand-card--porsche .ym-home-brand-card__image {
	object-position: center 54% !important;
}

.ym-home-brand-card__logo {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.88);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 10px 24px rgba(7, 16, 24, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ym-home-brand-card__logo-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.ym-home-brand-card__logo > span {
	color: #111a22;
	font-size: 16px;
	font-weight: 900;
}

.ym-home-brand-card__content,
.ym-home-brand-card.has-image .ym-home-brand-card__content {
	position: static !important;
	display: grid;
	min-height: 0 !important;
	padding: 20px 22px 22px !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"heading action"
		"description action";
	gap: 8px 18px;
	align-items: center;
	background: #fff;
	color: #10171e;
}

.ym-home-brand-card__heading {
	grid-area: heading;
	display: flex;
	align-items: baseline;
	gap: 11px;
	min-width: 0;
}

.ym-home-brand-card__latin,
.ym-home-brand-card.has-image .ym-home-brand-card__latin {
	position: static !important;
	margin: 0 !important;
	color: #10171e !important;
	font-size: clamp(20px, 1.75vw, 28px) !important;
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-shadow: none !important;
}

.ym-home-brand-card__heading > strong {
	color: #202b34;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.ym-home-brand-card__description,
.ym-home-brand-card:hover .ym-home-brand-card__description {
	grid-area: description;
	display: block;
	max-width: 100%;
	margin: 0;
	color: #7a858e !important;
	font-size: 11px !important;
	font-weight: 600;
	line-height: 1.7;
}

.ym-home-brand-card__body {
	display: contents;
}

.ym-home-brand-card__action,
.ym-home-brand-card.has-image .ym-home-brand-card__action {
	grid-area: action;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 9px 0;
	color: #111a22 !important;
	font-size: 11px;
	font-weight: 900;
	white-space: nowrap;
}

.ym-home-brand-card:hover {
	border-color: #cbd5dc;
	box-shadow: 0 16px 34px rgba(14, 24, 33, 0.09);
	transform: translateY(-3px);
}

.ym-home-brand-card:hover .ym-home-brand-card__image {
	transform: scale(1.025) !important;
}

/* Vehicle brand selector: logo + label. */
.ym-home-vehicle-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: #313a43;
}

.ym-home-vehicle-tab {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 13px;
	min-height: 78px;
	padding: 12px 18px !important;
	text-align: right !important;
}

.ym-home-vehicle-tab__logo {
	display: grid !important;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	padding: 6px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.ym-home-vehicle-tab__logo-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.ym-home-vehicle-tab__logo > span {
	color: #111a22 !important;
	font-size: 15px !important;
	font-weight: 900;
}

.ym-home-vehicle-tab__copy {
	display: grid !important;
	gap: 3px;
	min-width: 0;
}

.ym-home-vehicle-tab__copy strong {
	color: #f7f9fb;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
}

.ym-home-vehicle-tab__copy small {
	color: #8996a1 !important;
	font-size: 10px !important;
	font-weight: 700;
	line-height: 1.4;
}

.ym-home-vehicle-tab.is-active .ym-home-vehicle-tab__copy small {
	color: #cdd7df !important;
}

/* Second level: each class / series is a tab instead of a separate row. */
.ym-home-vehicle-category-browser {
	padding-top: 24px;
}

.ym-home-vehicle-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 0 20px;
	border-bottom: 1px solid #313a43;
}

.ym-home-vehicle-category-tab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 39px;
	padding: 0 14px;
	border: 1px solid #3b4650;
	border-radius: 10px;
	background: transparent;
	color: #b9c3cb;
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ym-home-vehicle-category-tab small {
	display: inline-grid;
	min-width: 21px;
	height: 21px;
	place-items: center;
	padding: 0 5px;
	border-radius: 7px;
	background: #263039;
	color: #82909b;
	font-size: 9px;
}

.ym-home-vehicle-category-tab:hover,
.ym-home-vehicle-category-tab.is-active {
	border-color: var(--ym-primary);
	background: var(--ym-primary);
	color: #fff;
	transform: translateY(-1px);
}

.ym-home-vehicle-category-tab.is-active small {
	background: rgba(255,255,255,.16);
	color: #fff;
}

.ym-home-vehicle-category-panel[hidden] {
	display: none !important;
}

.ym-home-vehicle-category-panel {
	padding-top: 22px;
}

.ym-home-vehicle-category-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.ym-home-vehicle-category-panel__head strong {
	color: #fff;
	font-size: 16px;
	font-weight: 900;
}

.ym-home-vehicle-category-panel__head a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #8f9ca6;
	font-size: 10px;
	font-weight: 800;
}

.ym-home-vehicle-groups {
	display: block !important;
}

.ym-home-vehicle-models {
	align-items: stretch;
}

@media (max-width: 920px) {
	.ym-home-brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ym-home-brand-card__content,
	.ym-home-brand-card.has-image .ym-home-brand-card__content {
		grid-template-columns: 1fr;
		grid-template-areas:
			"heading"
			"description"
			"action";
	}

	.ym-home-brand-card__action,
	.ym-home-brand-card.has-image .ym-home-brand-card__action {
		justify-self: start;
	}

	.ym-home-vehicle-tab {
		min-height: 70px;
		padding-inline: 12px !important;
	}

	.ym-home-vehicle-tab__logo {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}
}

@media (max-width: 620px) {
	.ym-home-brands {
		grid-template-columns: 1fr;
	}

	.ym-home-brand-card,
	.ym-home-brand-card.has-image,
	.ym-home-brand-card__content {
		min-height: 0 !important;
	}

	.ym-home-brand-card.has-image .ym-home-brand-card__media,
	.ym-home-brand-card__media {
		height: auto !important;
		aspect-ratio: 4 / 3;
	}

	.ym-home-brand-card__content,
	.ym-home-brand-card.has-image .ym-home-brand-card__content {
		padding: 17px 18px 19px !important;
	}

	.ym-home-brand-card__logo {
		top: 12px;
		right: 12px;
		width: 50px;
		height: 50px;
		border-radius: 12px;
	}

	.ym-home-vehicle-tabs {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ym-home-vehicle-tabs::-webkit-scrollbar,
	.ym-home-vehicle-category-tabs::-webkit-scrollbar {
		display: none;
	}

	.ym-home-vehicle-tab {
		min-width: 205px;
		flex: 0 0 205px;
	}

	.ym-home-vehicle-category-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 16px;
		scroll-snap-type: x proximity;
	}

	.ym-home-vehicle-category-tab {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.ym-home-vehicle-category-panel__head {
		align-items: flex-start;
		flex-direction: column;
	}
}

/* ================================================================
 * 2.6.3 — Brand card final compact layout
 * Image first, clean logo overlay, compact copy below.
 * ================================================================ */
.ym-home-brands .ym-home-brand-card,
.ym-home-brands .ym-home-brand-card.has-image {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 1px solid #e2e8ed !important;
	border-radius: 18px !important;
	background: #fff !important;
	box-shadow: 0 8px 24px rgba(15, 25, 34, 0.055) !important;
}

/* Kill all legacy stacking/order rules so media is always first. */
.ym-home-brands .ym-home-brand-card__media,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__media {
	order: 0 !important;
	position: relative !important;
	inset: auto !important;
	flex: 0 0 auto !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 10 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border-radius: 17px 17px 0 0 !important;
	background: #eef2f5 !important;
}

.ym-home-brands .ym-home-brand-card__media::after,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__media::after {
	display: none !important;
	content: none !important;
}

.ym-home-brands .ym-home-brand-card__image,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__image,
.ym-home-brands .ym-home-brand-card.has-image:hover .ym-home-brand-card__image {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	filter: none !important;
	opacity: 1 !important;
	transform: scale(1) !important;
	transition: transform 420ms cubic-bezier(.2,.7,.2,1) !important;
}

.ym-home-brands .ym-home-brand-card--porsche .ym-home-brand-card__image {
	object-position: center 54% !important;
}

.ym-home-brands .ym-home-brand-card__logo {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	z-index: 5 !important;
	display: grid !important;
	width: 54px !important;
	height: 54px !important;
	place-items: center !important;
	padding: 7px !important;
	border: 1px solid rgba(255,255,255,.92) !important;
	border-radius: 14px !important;
	background: rgba(255,255,255,.96) !important;
	box-shadow: 0 8px 22px rgba(10,20,30,.14) !important;
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.ym-home-brands .ym-home-brand-card__logo-image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.ym-home-brands .ym-home-brand-card__content,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__content {
	order: 1 !important;
	position: static !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	width: 100% !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 16px 18px 17px !important;
	background: #fff !important;
	color: #111a22 !important;
}

.ym-home-brands .ym-home-brand-card__heading {
	order: 0 !important;
	display: flex !important;
	align-items: baseline !important;
	justify-content: space-between !important;
	gap: 12px !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.ym-home-brands .ym-home-brand-card__latin,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__latin {
	order: 0 !important;
	position: static !important;
	width: auto !important;
	margin: 0 !important;
	color: #10171e !important;
	font-size: clamp(20px, 1.55vw, 25px) !important;
	font-weight: 900 !important;
	line-height: 1.1 !important;
	letter-spacing: -.035em !important;
	text-shadow: none !important;
}

.ym-home-brands .ym-home-brand-card__heading > strong {
	order: 1 !important;
	margin: 0 !important;
	color: #5f6b74 !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
}

.ym-home-brands .ym-home-brand-card__description,
.ym-home-brands .ym-home-brand-card:hover .ym-home-brand-card__description {
	order: 1 !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	color: #89939b !important;
	font-size: 10.5px !important;
	font-weight: 600 !important;
	line-height: 1.65 !important;
}

.ym-home-brands .ym-home-brand-card__action,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__action {
	order: 2 !important;
	align-self: stretch !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	width: 100% !important;
	margin: 3px 0 0 !important;
	padding: 10px 0 0 !important;
	border-top: 1px solid #edf0f2 !important;
	color: #18222a !important;
	font-size: 10.5px !important;
	font-weight: 900 !important;
	line-height: 1.4 !important;
	white-space: nowrap !important;
}

.ym-home-brands .ym-home-brand-card__action svg {
	width: 15px !important;
	height: 15px !important;
	transition: transform 180ms ease !important;
}

.ym-home-brands .ym-home-brand-card:hover {
	border-color: #ccd6dd !important;
	box-shadow: 0 14px 32px rgba(15, 25, 34, 0.085) !important;
	transform: translateY(-2px) !important;
}

.ym-home-brands .ym-home-brand-card:hover .ym-home-brand-card__image {
	transform: scale(1.018) !important;
}

.ym-home-brands .ym-home-brand-card:hover .ym-home-brand-card__action svg {
	transform: translateX(-2px) !important;
}

@media (max-width: 920px) {
	.ym-home-brands .ym-home-brand-card__media,
	.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__media {
		aspect-ratio: 16 / 10 !important;
	}

	.ym-home-brands .ym-home-brand-card__content,
	.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__content {
		display: flex !important;
		padding: 15px 16px 16px !important;
	}
}

@media (max-width: 620px) {
	.ym-home-brands .ym-home-brand-card__media,
	.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__media {
		order: 0 !important;
		aspect-ratio: 16 / 10 !important;
	}

	.ym-home-brands .ym-home-brand-card__content,
	.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__content {
		order: 1 !important;
		gap: 7px !important;
		padding: 14px 15px 15px !important;
	}

	.ym-home-brands .ym-home-brand-card__latin,
	.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__latin {
		font-size: 21px !important;
	}

	.ym-home-brands .ym-home-brand-card__logo {
		top: 11px !important;
		right: 11px !important;
		width: 48px !important;
		height: 48px !important;
		border-radius: 12px !important;
	}
}


/* =========================================================
 * 2.7.0 — repeatable automatic brand image carousel
 * ======================================================= */
.ym-home-brand-slider-section {
	padding: 70px 0 82px;
	border-top: 1px solid var(--ym-line);
	background: #fff;
	overflow: hidden;
}

.ym-home-brand-slider-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 30px;
}

.ym-home-brand-slider-section__head .ym-home-section-kicker {
	margin: 0;
}

.ym-home-brand-slider-section__head h2 {
	margin: 0;
	color: var(--ym-ink);
	font-size: clamp(27px, 3.4vw, 44px);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.25;
}

.ym-home-brand-slider {
	position: relative;
	width: 100%;
}

.ym-home-brand-slider__viewport {
	overflow: hidden;
	direction: ltr;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.ym-home-brand-slider__track {
	display: flex;
	align-items: stretch;
	gap: 14px;
	width: max-content;
	will-change: transform;
}

.ym-home-brand-slider__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 calc((min(1320px, 100vw - 48px) - 70px) / 6);
	min-width: 170px;
	height: 126px;
	padding: 22px 24px;
	border: 1px solid #e2e8ec;
	background: #fff;
}

.ym-home-brand-slider__image {
	display: block;
	width: 100%;
	height: 78px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .72;
	transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.ym-home-brand-slider__item:hover .ym-home-brand-slider__image {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.04);
}

@media (max-width: 1050px) {
	.ym-home-brand-slider__item {
		flex-basis: calc((100vw - 48px - 42px) / 4);
		min-width: 160px;
	}
}

@media (max-width: 720px) {
	.ym-home-brand-slider-section {
		padding: 54px 0 62px;
	}

	.ym-home-brand-slider-section__head {
		display: block;
		margin-bottom: 22px;
	}

	.ym-home-brand-slider-section__head .ym-home-section-kicker {
		margin-bottom: 7px;
	}

	.ym-home-brand-slider__viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.ym-home-brand-slider__item {
		flex-basis: calc((100vw - 48px - 14px) / 2);
		min-width: 140px;
		height: 112px;
		padding: 18px;
	}

	.ym-home-brand-slider__image {
		height: 68px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ym-home-brand-slider__track,
	.ym-home-brand-slider__image {
		transition: none !important;
	}
}


/* =========================================================
 * 2.7.3 — continuous, gapless brand marquee
 * ======================================================= */
.ym-home-brand-slider__track {
	transition: none !important;
}


/* 0.5.0 — redesigned pre-footer product finder */
.ym-home-footer-cta {
    padding: 26px 0 34px;
    border: 0;
    background: #fff;
    color: #fff;
}
.ym-home-footer-cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(380px, 1.22fr);
    align-items: center;
    gap: 42px;
    overflow: hidden;
    padding: 34px 38px;
    border-radius: var(--ym-radius-xl);
    background-color: var(--ym-secondary);
    background-image:
        radial-gradient(circle at 8% 12%, rgba(var(--ym-primary-rgb), .34), transparent 31%),
        linear-gradient(135deg, rgba(255,255,255,.02), rgba(0,0,0,.18));
    box-shadow: 0 20px 48px rgba(var(--ym-secondary-rgb), .12);
}
.ym-home-footer-cta__inner::after { content: ""; position: absolute; left: -70px; bottom: -110px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; pointer-events: none; }
.ym-home-footer-cta.has-image .ym-home-footer-cta__inner { grid-template-columns: 135px minmax(0, .65fr) minmax(360px, 1fr); gap: 30px; }
.ym-home-footer-cta__media { position: relative; z-index: 1; width: 135px; height: 112px; display: grid; place-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.08); }
.ym-home-footer-cta__image { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.12)); }
.ym-home-footer-cta__copy,
.ym-home-product-search { position: relative; z-index: 1; }
.ym-home-footer-cta p { margin: 0 0 7px; color: rgba(255,255,255,.62); font-size: 10.5px; font-weight: 750; }
.ym-home-footer-cta h2 { margin: 0; color: #fff; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.55; font-weight: 900; letter-spacing: -.02em; }
.ym-home-product-search form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.98); box-shadow: 0 10px 30px rgba(0,0,0,.11); }
.ym-home-product-search input[type="search"] { width: 100%; height: 46px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: var(--ym-ink); font-size: 12px; outline: none; }
.ym-home-product-search button { min-width: 98px; height: 46px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ym-primary); color: #fff; font-size: 11px; font-weight: 850; }
.ym-home-product-search button:hover { filter: brightness(.95); }
@media (max-width: 1024px) {
    .ym-home-footer-cta.has-image .ym-home-footer-cta__inner,
    .ym-home-footer-cta__inner { grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 28px; }
    .ym-home-footer-cta.has-image .ym-home-footer-cta__media { display: none; }
}
@media (max-width: 720px) {
    .ym-home-footer-cta { padding: 18px 0 24px; }
    .ym-home-footer-cta.has-image .ym-home-footer-cta__inner,
    .ym-home-footer-cta__inner { grid-template-columns: 1fr; gap: 20px; padding: 26px 20px; border-radius: 18px; }
    .ym-home-footer-cta__copy { text-align: center; }
    .ym-home-product-search form { grid-template-columns: 1fr; }
    .ym-home-product-search button { width: 100%; }
}

/* =========================================================
 * 1.0.0 — homepage compact redesign + mobile hero refinement
 * ======================================================= */
.xtra-child-page--home {
	--ym-home-surface-radius: 22px;
}

/* Smaller, more consistent typography across the homepage. */
.ym3-home-hero__title {
	font-size: clamp(38px, 4.2vw, 58px);
	line-height: 1.12;
}
.ym3-home-hero__title-accent {
	font-size: clamp(21px, 2.2vw, 30px);
	line-height: 1.5;
}
.ym3-home-hero__lead {
	max-width: 610px;
	margin-top: 22px;
	font-size: 14px;
	line-height: 1.95;
}
.ym3-home-hero__actions { margin-top: 28px; }
.ym-home-section { padding-block: 76px; }
.ym-home-section-head { gap: 30px; margin-bottom: 34px; }
.ym-home-section-head h2,
.ym-home-brand-slider-section__head h2 {
	font-size: clamp(25px, 2.8vw, 36px);
	line-height: 1.4;
	letter-spacing: -.03em;
}
.ym-home-section-head > p { max-width: 430px; font-size: 13px; }
.ym-home-section-kicker { font-size: 10px; }
.ym-home-vehicle-panel__head h3 { font-size: 24px; }

/* Give the main browsing surfaces the same compact rounded design language. */
.ym-home-part-browser {
	padding: 20px;
	border: 1px solid var(--ym-line);
	border-radius: var(--ym-home-surface-radius);
	background: rgba(255,255,255,.86);
	box-shadow: 0 12px 34px rgba(16,21,27,.045);
}
.ym-home-filter-tabs { margin-bottom: 20px; }
.ym-home-vehicle-browser {
	overflow: hidden;
	border-radius: var(--ym-home-surface-radius);
	box-shadow: 0 20px 48px rgba(0,0,0,.12);
}
.ym-home-brand-card,
.ym-home-brand-card.has-image {
	border-radius: 20px !important;
}
.ym-home-brands .ym-home-brand-card__media,
.ym-home-brands .ym-home-brand-card.has-image .ym-home-brand-card__media {
	border-radius: 19px 19px 0 0 !important;
}

/* Brand marquee/logo boxes should not look sharp. */
.ym-home-brand-slider__item {
	border-radius: 15px;
	box-shadow: 0 8px 22px rgba(16,21,27,.035);
}

/* Category cards now show the matching brand logo(s), not decorative 01/02 labels. */
.ym-home-category-card__number { display: none !important; }
.ym-home-category-card__media { position: relative; }
.ym-home-category-card__brands {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	direction: ltr;
}
.ym-home-category-card__brand {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	padding: 5px;
	border: 1px solid rgba(255,255,255,.95);
	border-radius: 10px;
	background: rgba(255,255,255,.96);
	box-shadow: 0 6px 16px rgba(16,21,27,.12);
}
.ym-home-category-card__brand + .ym-home-category-card__brand { margin-left: -6px; }
.ym-home-category-card__brand-logo {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}
.ym-home-category-card__brand > span {
	color: var(--ym-secondary);
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

/* Mobile hero: keep the dark diagonal behind the visual, never behind dark text. */
@media (max-width: 920px) {
	.ym3-home-hero::before {
		inset: auto 0 0;
		width: 100%;
		height: 40%;
		background: linear-gradient(145deg, #10171e 0%, var(--ym-secondary) 100%);
		clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
	}
	.ym3-home-hero__inner {
		gap: 30px;
		padding-block: 42px 54px;
	}
	.ym3-home-hero__visual { min-height: 420px; }
	.ym-home-section { padding-block: 60px; }
	.ym-home-section-head { margin-bottom: 28px; }
	.ym-home-part-browser { padding: 16px; border-radius: 18px; }
	.ym-home-vehicle-browser { border-radius: 18px; }
}

@media (max-width: 620px) {
	.ym3-home-hero::before {
		height: 35%;
		clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
	}
	.ym3-home-hero__inner {
		gap: 22px;
		padding-block: 30px 44px;
	}
	.ym3-home-hero__content .ym-home-eyebrow { margin-bottom: 10px; }
	.ym3-home-hero__title { font-size: 30px; line-height: 1.25; }
	.ym3-home-hero__title-accent { margin-top: 8px; font-size: 18px; line-height: 1.65; }
	.ym3-home-hero__lead { margin-top: 15px; font-size: 12.5px; line-height: 1.9; }
	.ym3-home-hero__actions { gap: 8px; margin-top: 20px; }
	.ym3-home-hero .ym-home-button { min-height: 46px; border-radius: 12px; font-size: 12px; }
	.ym3-home-hero__visual { min-height: 340px; }
	.ym3-home-hero__stage { width: min(78vw, 310px); }
	.ym3-home-hero__orbital { width: min(90vw, 355px); }

	.ym-home-section { padding-block: 44px; }
	.ym-home-section-head { display: block; margin-bottom: 22px; }
	.ym-home-section-head h2,
	.ym-home-brand-slider-section__head h2 { font-size: 22px; line-height: 1.55; }
	.ym-home-section-head > p { margin-top: 9px; font-size: 12px; line-height: 1.85; }
	.ym-home-part-browser { padding: 12px; border-radius: 16px; }
	.ym-home-filter-tabs { margin-bottom: 14px; }
	.ym-home-filter-tab { min-height: 38px; padding-inline: 12px; font-size: 11px; }
	.ym-home-brand-slider-section { padding: 44px 0 50px; }
	.ym-home-brand-slider__item { border-radius: 12px; }

	.ym-home-category-card__brand {
		width: 30px;
		height: 30px;
		padding: 4px;
		border-radius: 9px;
	}
	.ym-home-category-card__brands { top: 7px; left: 7px; }
	.ym-home-category-card__brand + .ym-home-category-card__brand { margin-left: -5px; }
}
