/* anchor target: after auto-applying the filter the page lands here (not the hero) */
#instock-top { scroll-margin-top: 24px; }

/* man.eu-style filter: labels above, borderless underlined selects, red reset link */
.instock-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-end;
	margin: 32px 0 8px;
}

.instock-filter__group {
	display: flex;
	flex-direction: column;
	flex: 1 1 260px;
	min-width: 220px;
}

.instock-filter__label {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 400;
	color: #6a7178;
	text-transform: none;
}

.instock-filter__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 100%;
	height: 40px;
	padding: 6px 28px 6px 0;
	border: 0;
	border-bottom: 1px solid #b5bcc2;
	border-radius: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20fill='%23e40045'%20d='M8%2011L3%205h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 2px center;
	background-size: 14px;
	font-size: 17px;
	color: #303c49;
	cursor: pointer;
	transition: border-color .2s ease;
}

.instock-filter__select:focus {
	outline: none;
	border-bottom-color: #e40045;
}

.instock-filter__actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex: 0 0 auto;
	padding-bottom: 4px;
}

.instock-filter__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 22px;
	border: 0;
	background: #e40045;
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	font-weight: 600;
	transition: background-color .2s ease;
}

.instock-filter__submit:hover { background: #303c49; }

/* When JS is active the filter applies on change, so the manual button is hidden */
.instock-filter--man.is-js .instock-filter__submit { display: none; }

.instock-filter__reset {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #e40045;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: color .2s ease;
}

.instock-filter__reset:hover { color: #303c49; }
.instock-filter__reset-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.instock-filter__reset.is-disabled { opacity: .4; pointer-events: none; }

.instock-filter__summary,
.instock-filter__empty {
	margin-bottom: 24px;
}

.instock-filter__empty {
	padding: 20px;
	border: 1px solid #d9d9d9;
	background: #fafafa;
}

.ag-vehicle-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 28px;
	width: 100%;
	margin-top: 40px;
	margin-bottom: 48px;
	align-items: stretch;
}

.ag-vehicle-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	margin: 0;
	border: 0;
	background: #ffffff;
	box-shadow: none;
	overflow: visible;
	height: 100%;
}

.ag-vehicle-card__media {
	display: block;
	position: relative;
	aspect-ratio: 1.34 / 1;
	background: #eef2f5;
	overflow: hidden;
}

.ag-vehicle-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.ag-vehicle-card:hover .ag-vehicle-card__media img {
	transform: scale(1.03);
}

.ag-vehicle-card__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 14px;
	width: 100%;
	min-width: 0;
	padding: 18px 0 0;
}

.ag-vehicle-card__topline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
	justify-content: space-between;
}

.ag-vehicle-card__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #66717d;
	max-width: calc(100% - 120px);
}

.ag-vehicle-card__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ag-vehicle-card__status.product__status--instock {
	background: #edf8ef;
	color: #157347;
}

.ag-vehicle-card__status.product__status--intransit {
	background: #e8f1ff;
	color: #0d5bd7;
}

.ag-vehicle-card__status.product__status--neutral {
	background: #eceff2;
	color: #5f6b76;
}

.ag-vehicle-card__title {
	margin: 0;
	height: auto;
	padding-top: 0;
	margin-bottom: 0;
	font-size: 28px !important;
	text-transform: none;
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.02em;
}

.ag-vehicle-card__title a {
	color: #182330;
	text-decoration: none;
}

.ag-vehicle-card__title a:hover {
	color: #e40045;
}

.ag-vehicle-card__price {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	margin: 0;
	padding-bottom: 2px;
	border-bottom: 0;
	color: #182330;
}

.ag-vehicle-card__price-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #66717d;
}

.ag-vehicle-card__price-value {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.1;
}

.ag-vehicle-card__features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ag-vehicle-card__feature {
	position: relative;
	display: flex;
	align-items: center;
	padding-left: 16px;
	border: 0;
	background: transparent;
}

.ag-vehicle-card__feature::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 6px;
	height: 25px;
	background: #e40045;
	transform: translateY(-50%);
}

.ag-vehicle-card__feature-value {
	display: block;
	font-size: 18px;
	font-family: 'MAN', sans-serif;
	font-weight: 300;
	line-height: 1.3;
	color: #182330;
}

.ag-vehicle-card__actions {
	margin-top: auto;
	padding-top: 14px;
	width: 100%;
}

.ag-vehicle-card__button {
	width: 100%;
	border-top: 0;
	background: transparent;
	text-align: left;
}

.ag-vehicle-card__button a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 62px;
	padding: 0 24px;
	border: 1px solid #182330;
	background: #ffffff;
	color: #182330;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ag-vehicle-card__button a:hover {
	border-color: #e40045;
	background: #e40045;
	color: #ffffff;
}

.ag-vehicle-grid .loadmore {
	grid-column: 1 / -1;
	margin-top: 8px;
}

@media (max-width: 767px) {
	.ag-vehicle-card {
		height: auto;
	}

	.container .ag-vehicle-grid {
		padding-left: 8px;
		padding-right: 8px;
		box-sizing: border-box;
	}

	.instock-filter {
		gap: 22px;
	}

	.instock-filter__group {
		flex: 1 1 100%;
		min-width: 100%;
	}

	.instock-filter__actions {
		flex: 1 1 100%;
		min-width: 100%;
		padding-bottom: 0;
	}

	.ag-vehicle-grid {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-top: 28px;
	}

	.ag-vehicle-card__media {
		aspect-ratio: 1.2 / 1;
	}

	.ag-vehicle-card__content {
		flex: none;
		gap: 10px;
		padding: 12px 0 0;
	}

	.ag-vehicle-card__title {
		font-size: 21px !important;
		line-height: 1.04;
		letter-spacing: -0.01em;
	}

	.ag-vehicle-card__topline {
		gap: 8px;
	}

	.ag-vehicle-card__eyebrow {
		font-size: 10px;
		max-width: calc(100% - 108px);
	}

	.ag-vehicle-card__status {
		min-height: 36px;
		padding: 6px 14px;
		font-size: 10px;
	}

	.ag-vehicle-card__price {
		gap: 6px;
		padding-bottom: 4px;
	}

	.ag-vehicle-card__price-label {
		font-size: 10px;
	}

	.ag-vehicle-card__price-value {
		font-size: 18px;
	}

	.ag-vehicle-card__features {
		gap: 6px;
		margin-bottom: 8px;
	}

	.ag-vehicle-card__feature {
		display: block;
		position: relative;
		padding-left: 18px;
		padding-bottom: 2px;
		overflow: visible;
	}

	.ag-vehicle-card__feature::before {
		display: block;
		content: "";
		position: absolute;
		left: 0;
		top: 1px;
		width: 5px;
		height: 25px;
		background: #e40045;
		transform: none;
		z-index: 1;
	}

	.ag-vehicle-card__feature-value {
		position: relative;
		z-index: 2;
		display: block;
		font-size: 15px;
		line-height: 1.28;
		word-break: break-word;
	}

	.ag-vehicle-card__actions {
		margin-top: 12px;
		padding-top: 0;
		position: relative;
		z-index: 3;
		background: #ffffff;
	}

	.ag-vehicle-card__button a {
		width: 100%;
		min-height: 52px;
		font-size: 13px;
		background: #ffffff;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.ag-vehicle-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.instock-page__title {
	margin: 24px 0 16px;
}

/* Popular categories: indexable filter links */
.instock-categories {
	margin: 40px 0;
}

.instock-categories__heading {
	font-size: 28px !important;
	margin: 0 0 20px;
}

.instock-categories__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.instock-categories__item a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #d6d8db;
	color: #303c49;
	font-size: 15px;
	line-height: 1.3;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.instock-categories__item a:hover {
	border-color: #e40045;
	color: #e40045;
}

/* FAQ block on listing */
.faq-block {
	margin: 40px 0;
	padding: 40px 30px;
	background-color: #f7f7f7;
}

.faq-block h2 {
	font-size: 28px !important;
	margin: 0 0 24px;
}

.faq-block [itemprop="mainEntity"] {
	margin-bottom: 20px;
	background: #fff;
	border-left: 3px solid #e40045;
	padding: 16px 20px;
}

.faq-block h3 {
	margin: 0 0 8px;
	font-size: 17px !important;
	font-weight: 600;
	text-transform: none;
}

.faq-block [itemprop="text"] {
	font-size: 15px;
	color: #555;
}

/* Mobile: page-like scrolling through vehicle cards (scroll snap).
   proximity — snaps card-by-card inside the grid, free scrolling
   elsewhere on the page; snap-stop prevents skipping cards on a fling */
@media (max-width: 767px) {
	html {
		scroll-snap-type: y proximity;
	}

	.ag-vehicle-grid .ag-vehicle-card {
		scroll-snap-align: start;
		scroll-snap-stop: always;
		scroll-margin-top: 10px;
	}
}

/* Landing pages (model landing + products archive) */
.landing-intro {
	max-width: 900px;
	margin: 12px 0 8px;
	font-size: 17px;
	line-height: 1.55;
	color: #303c49;
}

.landing-intro p {
	margin: 0 0 12px;
}

.landing-cta {
	margin: 8px 0 40px;
}

.landing-cta__btn {
	display: inline-block;
	padding: 15px 32px;
	background: #303c49;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: background-color 0.2s ease;
}

.landing-cta__btn:hover {
	background: #e40045;
	color: #fff !important;
}

.landing-seo-text {
	max-width: 980px;
	margin: 40px 0;
	line-height: 1.6;
	color: #303c49;
}

.landing-seo-text h2 {
	font-size: 28px !important;
	margin: 28px 0 14px;
}

.landing-seo-text h3 {
	font-size: 20px !important;
	margin: 22px 0 10px;
}

.landing-seo-text ul,
.landing-intro ul {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.landing-seo-text ul li,
.landing-intro ul li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 12px;
	line-height: 1.5;
}

.landing-seo-text ul li::before,
.landing-intro ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 6px;
	height: 25px;
	background: #e40045;
}

.landing-seo-text a {
	color: #e40045;
	text-decoration: underline;
}

.ag-archive-pagination {
	margin: 24px 0 40px;
}

.ag-archive-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	margin: 0 4px 4px 0;
	border: 1px solid #d6d8db;
	text-align: center;
	color: #303c49;
}

.ag-archive-pagination .page-numbers.current {
	background: #303c49;
	color: #fff;
	border-color: #303c49;
}

.ag-archive-pagination a.page-numbers:hover {
	border-color: #e40045;
	color: #e40045;
}
