/*
 * STIHL parts catalogue: archive-stihl-deo.php, taxonomy-kategorija.php,
 * single-stihl-deo.php (markup helpers in inc/stihl-catalog.php).
 */

.stihl-archive,
.stihl-single {
	--stihl-dark: #18202e;
	--stihl-orange: #f37a1f;
	--stihl-orange-dark: #d9650f;
	--stihl-text: #18202e;
	--stihl-muted: #6b7280;
	--stihl-line: #e5e7eb;
	--stihl-bg: #fff;
	--stihl-soft: #f6f7f9;
	--stihl-radius: 14px;
	--stihl-shadow: 0 1px 2px rgba(24, 32, 46, 0.06), 0 4px 16px rgba(24, 32, 46, 0.06);
	--stihl-shadow-hover: 0 8px 28px rgba(24, 32, 46, 0.14);
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	color: var(--stihl-text);
}

.stihl-archive *,
.stihl-single * {
	box-sizing: border-box;
}

.stihl-archive {
	padding: 40px 0 80px;
}

.stihl-single {
	padding: 28px 0 80px;
}

/* ---------------------------------------------------------------- Hero */

.stihl-hero {
	position: relative;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 72px 24px;
	background: #18202e url('/wp-content/uploads/2024/10/msjoker-slider-hero.webp') center / cover no-repeat;
	color: #fff;
}

.stihl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(24, 32, 46, 0.92) 0%, rgba(24, 32, 46, 0.7) 45%, rgba(24, 32, 46, 0.15) 100%);
}

.stihl-hero-inner {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
}

.stihl-hero-eyebrow {
	margin: 0 0 8px;
	color: #f37a1f;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stihl-hero-title {
	margin: 0 0 22px;
	color: #fff;
	font-size: 44px;
	font-weight: 500;
	line-height: 1.15;
}

.stihl-hero .stihl-search-container {
	max-width: 460px;
	margin: 0;
}

.stihl-hero .stihl-search-container .stihl-search-input {
	padding: 15px 22px;
	font-size: 15px;
	border: 0;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.stihl-hero .stihl-search-results {
	z-index: 20;
	color: #18202e;
}

/* ---------------------------------------------------------------- Nav */

.stihl-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-bottom: 22px;
}

.stihl-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--stihl-line);
	border-radius: 999px;
	background: #fff;
	color: var(--stihl-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

.stihl-back:hover,
.stihl-back:focus-visible {
	border-color: var(--stihl-orange);
	color: var(--stihl-orange);
}

.stihl-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.stihl-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	color: var(--stihl-muted);
}

.stihl-breadcrumbs li + li::before {
	content: '\203a';
	margin: 0 8px;
	color: #b0b5bd;
}

.stihl-breadcrumbs a {
	color: var(--stihl-text);
	text-decoration: none;
}

.stihl-breadcrumbs a:hover {
	color: var(--stihl-orange);
	text-decoration: underline;
}

.stihl-breadcrumbs [aria-current] {
	color: var(--stihl-muted);
}

/* ---------------------------------------------------------------- Archive header */

.stihl-archive-header {
	margin-bottom: 26px;
}

.stihl-archive-title,
.stihl-single-title {
	margin: 0;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--stihl-text);
}

.stihl-archive-intro,
.stihl-archive-count,
.stihl-single-meta {
	margin: 8px 0 0;
	color: var(--stihl-muted);
	font-size: 15px;
}

.stihl-archive-count {
	margin: -12px 0 18px;
}

.stihl-empty {
	padding: 40px;
	border-radius: var(--stihl-radius);
	background: #fff;
	color: var(--stihl-muted);
	text-align: center;
}

/* ---------------------------------------------------------------- Card grid */

.stihl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stihl-grid--schemes {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.stihl-card {
	margin: 0;
}

.stihl-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: var(--stihl-radius);
	background: var(--stihl-bg);
	box-shadow: var(--stihl-shadow);
	color: var(--stihl-text);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stihl-card a:hover,
.stihl-card a:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(243, 122, 31, 0.5);
	box-shadow: var(--stihl-shadow-hover);
}

.stihl-card a:focus-visible {
	outline: 2px solid var(--stihl-orange);
	outline-offset: 2px;
}

.stihl-card-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
}

.stihl-card--scheme .stihl-card-media {
	aspect-ratio: 4 / 3;
	border-bottom: 1px solid var(--stihl-line);
}

/* Absolutely placed so every card's image box has exactly the same size. */
.stihl-card-media img {
	position: absolute;
	top: var(--stihl-card-pad, 18px);
	left: var(--stihl-card-pad, 18px);
	width: calc(100% - 2 * var(--stihl-card-pad, 18px));
	height: calc(100% - 2 * var(--stihl-card-pad, 18px));
	max-width: none;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.stihl-card a:hover .stihl-card-media img {
	transform: scale(1.04);
}

.stihl-card-placeholder {
	color: #d1d5db;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.stihl-card-title {
	display: block;
	padding: 14px 16px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	transition: color 0.2s;
}

.stihl-card--scheme .stihl-card-title {
	flex: 1;
	padding-bottom: 4px;
	text-align: left;
}

.stihl-card a:hover .stihl-card-title {
	color: var(--stihl-orange);
}

.stihl-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 16px 16px;
	color: var(--stihl-orange);
	font-size: 13px;
	font-weight: 600;
}

.stihl-card-cta::after {
	content: '\2192';
	transition: transform 0.2s;
}

.stihl-card a:hover .stihl-card-cta::after {
	transform: translateX(3px);
}

/* ---------------------------------------------------------------- Pagination */

.stihl-pagination {
	margin-top: 36px;
}

.stihl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.stihl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--stihl-shadow);
	color: var(--stihl-text);
	font-weight: 600;
	text-decoration: none;
}

.stihl-pagination .page-numbers.current,
.stihl-pagination a.page-numbers:hover {
	background: var(--stihl-orange);
	color: #fff;
}

.stihl-pagination .page-numbers.dots {
	background: none;
	box-shadow: none;
}

/* ---------------------------------------------------------------- Single: header */

.stihl-single-header {
	margin-bottom: 22px;
}

.stihl-section-title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 600;
	color: var(--stihl-text);
}

/* ---------------------------------------------------------------- Single: scheme + positions */

.stihl-scheme {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 20px;
	align-items: start;
	margin-bottom: 40px;
}

.stihl-scheme--no-positions {
	grid-template-columns: minmax(0, 1fr);
}

.stihl-scheme-figure {
	margin: 0;
}

.stihl-scheme-open {
	position: relative;
	display: block;
	width: 100%;
	padding: 20px;
	border: 1px solid var(--stihl-line);
	border-radius: var(--stihl-radius);
	background: #fff;
	box-shadow: var(--stihl-shadow);
	cursor: zoom-in;
}

.stihl-scheme-open:hover,
.stihl-scheme-open:focus-visible {
	background: #fff;
	border-color: rgba(243, 122, 31, 0.5);
}

.stihl-scheme-open:focus-visible {
	outline: 2px solid var(--stihl-orange);
	outline-offset: 2px;
}

.stihl-scheme-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	margin: 0 auto;
	object-fit: contain;
}

.stihl-scheme-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(24, 32, 46, 0.85);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s;
}

.stihl-scheme-open:hover .stihl-scheme-zoom {
	background: var(--stihl-orange);
}

.stihl-positions {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 120px);
	padding: 18px;
	border-radius: var(--stihl-radius);
	background: #fff;
	box-shadow: var(--stihl-shadow);
}

.stihl-positions-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.stihl-positions-hint {
	margin: 4px 0 14px;
	color: var(--stihl-muted);
	font-size: 13px;
	line-height: 1.4;
}

.stihl-positions-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
	gap: 6px;
	overflow-y: auto;
	padding: 2px;
}

.stihl-pos-btn {
	min-height: 40px;
	padding: 4px;
	border: 1px solid var(--stihl-line);
	border-radius: 8px;
	background: var(--stihl-soft);
	color: var(--stihl-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.stihl-pos-btn:hover,
.stihl-pos-btn:focus-visible,
.stihl-pos-btn.is-current {
	border-color: var(--stihl-orange);
	background: var(--stihl-orange);
	color: #fff;
}

.stihl-pos-btn.is-spare {
	border-style: dashed;
}

/* ---------------------------------------------------------------- Single: parts */

.stihl-parts {
	margin-bottom: 48px;
}

.stihl-parts-head,
.stihl-part {
	display: grid;
	grid-template-columns: 52px 72px minmax(0, 1fr) 150px 120px 190px;
	align-items: center;
	gap: 18px;
}

.stihl-parts-head {
	padding: 0 20px 10px;
	color: var(--stihl-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.stihl-parts-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.stihl-part {
	padding: 14px 20px;
	border: 1px solid transparent;
	border-radius: var(--stihl-radius);
	background: #fff;
	box-shadow: var(--stihl-shadow);
	scroll-margin-top: 120px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.stihl-part:hover {
	border-color: var(--stihl-line);
}

.stihl-part.is-highlight {
	animation: stihl-highlight 2.2s ease;
}

@keyframes stihl-highlight {
	0%,
	60% {
		border-color: var(--stihl-orange);
		box-shadow: 0 0 0 4px rgba(243, 122, 31, 0.25), var(--stihl-shadow);
	}

	100% {
		border-color: transparent;
		box-shadow: var(--stihl-shadow);
	}
}

.stihl-part-pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--stihl-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.stihl-part-img {
	width: 72px;
	height: 72px;
	padding: 4px;
	border: 1px solid var(--stihl-line);
	border-radius: 10px;
	background: #fff;
	object-fit: contain;
}

.stihl-part-info {
	min-width: 0;
}

.stihl-part-badge {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.stihl-part-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.stihl-part-title a {
	color: var(--stihl-text);
	font-weight: inherit;
	text-decoration: none;
}

.stihl-part-title a:hover {
	color: var(--stihl-orange);
}

.stihl-part-sku,
.stihl-part-contains {
	margin: 0;
	color: var(--stihl-muted);
	font-size: 13px;
}

.stihl-part-sku span {
	color: var(--stihl-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12.5px;
}

.stihl-part-contains {
	margin-top: 2px;
	font-style: italic;
}

/* The buy block sits in the row's grid on desktop and wraps on mobile. */
.stihl-part-buy {
	display: contents;
}

.stihl-part-price {
	margin: 0;
	color: var(--stihl-orange);
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
}

.stihl-part-price del {
	display: block;
	color: var(--stihl-muted);
	font-size: 13px;
	font-weight: 500;
}

.stihl-part-price ins {
	text-decoration: none;
}

.stihl-part-note {
	grid-column: 4 / -1;
	margin: 0;
	color: var(--stihl-muted);
	font-size: 14px;
	font-style: italic;
}

.stihl-qty {
	display: inline-flex;
	align-items: center;
	width: max-content;
	border: 1px solid var(--stihl-line);
	border-radius: 999px;
	background: #fff;
}

.stihl-qty-btn {
	width: 34px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--stihl-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.stihl-qty-btn:hover,
.stihl-qty-btn:focus-visible {
	background: var(--stihl-soft);
	color: var(--stihl-orange);
}

.stihl-qty-input,
.stihl-part .stihl-qty-input {
	width: 40px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--stihl-text);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.stihl-qty-input::-webkit-outer-spin-button,
.stihl-qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.stihl-part-add {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.stihl-part-add .stihl-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--stihl-orange);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
}

.stihl-part-add .stihl-add:hover,
.stihl-part-add .stihl-add:focus-visible {
	background: var(--stihl-orange-dark);
	color: #fff;
}

.stihl-part-add .stihl-add:active {
	transform: scale(0.98);
}

/* WooCommerce adds .loading while the request runs and .added when done. */
.stihl-part-add .stihl-add.loading {
	opacity: 0.75;
	pointer-events: none;
}

.stihl-part-add .stihl-add.loading svg {
	display: none;
}

.stihl-part-add .stihl-add.loading::before {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: stihl-spin 0.7s linear infinite;
}

/* Storefront / WooCommerce draw their own icon after .added — ours is enough. */
.stihl-part-add .stihl-add.added::after,
.stihl-part-add .stihl-add.loading::after {
	display: none;
}

.stihl-part-add .stihl-add.added {
	background: #16a34a;
}

.stihl-part-add .stihl-add.added:hover {
	background: #15803d;
}

@keyframes stihl-spin {
	to {
		transform: rotate(360deg);
	}
}

/* "Pregled korpe" link WooCommerce inserts after the button. */
.stihl-part-add .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 8px 14px;
	border: 1px solid var(--stihl-dark);
	border-radius: 999px;
	background: #fff;
	color: var(--stihl-dark);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	animation: stihl-fade-in 0.25s ease;
}

.stihl-part-add .added_to_cart::after {
	content: '\2192';
	transition: transform 0.2s;
}

.stihl-part-add .added_to_cart:hover,
.stihl-part-add .added_to_cart:focus-visible {
	background: var(--stihl-dark);
	color: #fff;
}

.stihl-part-add .added_to_cart:hover::after {
	transform: translateX(3px);
}

@keyframes stihl-fade-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------------------------------------------------------------- Single: content + related */

.stihl-single-content {
	margin-bottom: 48px;
}

.stihl-related {
	padding-top: 32px;
	border-top: 1px solid var(--stihl-line);
}

/* ---------------------------------------------------------------- Lightbox */

html.stihl-lightbox-open {
	overflow: hidden;
}

.stihl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(12, 16, 24, 0.94);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.stihl-lightbox[hidden] {
	display: none;
}

.stihl-lightbox.is-open {
	opacity: 1;
}

.stihl-lightbox-stage {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 60px 20px 20px;
	cursor: zoom-in;
	touch-action: none;
}

.stihl-lightbox.is-zoomed .stihl-lightbox-stage {
	cursor: grab;
}

.stihl-lightbox.is-zoomed .stihl-lightbox-stage:active {
	cursor: grabbing;
}

.stihl-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
	background: #fff;
	transform-origin: center;
	user-select: none;
	-webkit-user-drag: none;
	will-change: transform;
}

.stihl-lightbox-toolbar {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 14px 16px 4px;
}

.stihl-lb-btn,
.stihl-lb-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
}

.stihl-lb-reset {
	font-size: 14px;
}

.stihl-lb-btn:hover,
.stihl-lb-btn:focus-visible,
.stihl-lb-close:hover,
.stihl-lb-close:focus-visible {
	background: #f37a1f;
	border-color: #f37a1f;
	color: #fff;
}

.stihl-lb-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	font-size: 28px;
}

.stihl-lightbox-hint {
	margin: 0;
	padding: 4px 16px 16px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	text-align: center;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1330px) {
	.stihl-archive,
	.stihl-single {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 1100px) {
	.stihl-parts-head,
	.stihl-part {
		grid-template-columns: 44px 64px minmax(0, 1fr) 130px 116px 170px;
		gap: 14px;
	}
}

@media (max-width: 960px) {
	.stihl-scheme {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Positions become one scrollable row under the scheme. */
	.stihl-positions {
		position: static;
		max-height: none;
		padding: 14px;
	}

	.stihl-positions-hint {
		margin-bottom: 10px;
	}

	.stihl-positions-list {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: 6px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.stihl-pos-btn {
		flex: 0 0 auto;
		min-width: 44px;
		min-height: 44px;
		scroll-snap-align: start;
	}

	.stihl-parts-head {
		display: none;
	}

	/* Part card: position + image + info on top, price / qty / button below. */
	.stihl-part {
		grid-template-columns: 40px 64px minmax(0, 1fr);
		grid-template-areas:
			'pos img info'
			'buy buy buy';
		align-items: start;
		gap: 12px 14px;
		padding: 16px;
	}

	.stihl-part-pos {
		grid-area: pos;
		width: 36px;
		height: 36px;
		font-size: 13px;
	}

	.stihl-part-img {
		grid-area: img;
		width: 64px;
		height: 64px;
	}

	.stihl-part-info {
		grid-area: info;
	}

	.stihl-part-buy {
		grid-area: buy;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 12px;
		padding-top: 12px;
		border-top: 1px solid var(--stihl-line);
	}

	.stihl-part-add {
		grid-column: 1 / -1;
	}

	.stihl-part-note {
		grid-column: 1 / -1;
	}

	.stihl-part-add .stihl-add {
		padding: 13px 16px;
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.stihl-archive {
		padding: 24px 16px 56px;
	}

	.stihl-single {
		padding: 18px 16px 56px;
	}

	.stihl-hero {
		padding: 44px 16px 40px;
	}

	.stihl-hero::before {
		background: linear-gradient(180deg, rgba(24, 32, 46, 0.85) 0%, rgba(24, 32, 46, 0.75) 100%);
	}

	.stihl-hero-title {
		margin-bottom: 18px;
		font-size: 30px;
	}

	.stihl-hero .stihl-search-container {
		max-width: none;
	}

	.stihl-archive-title,
	.stihl-single-title {
		font-size: 26px;
	}

	.stihl-nav {
		gap: 10px 14px;
		margin-bottom: 16px;
	}

	.stihl-breadcrumbs ol {
		font-size: 13px;
	}

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

	/* Schemes: one per row, so the drawing is big enough to recognise. */
	.stihl-grid--schemes {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.stihl-card-media {
		--stihl-card-pad: 12px;
	}

	.stihl-card-title {
		padding: 10px 12px 12px;
		font-size: 14px;
	}

	.stihl-card--scheme .stihl-card-title {
		padding: 12px 14px 2px;
		font-size: 16px;
	}

	.stihl-card-cta {
		padding: 0 12px 12px;
		font-size: 12px;
	}

	.stihl-card--scheme .stihl-card-cta {
		padding: 0 14px 14px;
		font-size: 14px;
	}

	.stihl-scheme {
		margin-bottom: 28px;
	}

	.stihl-scheme-open {
		padding: 10px;
	}

	.stihl-scheme-zoom {
		right: 10px;
		bottom: 10px;
		padding: 7px 12px;
		font-size: 12px;
	}

	.stihl-section-title {
		font-size: 20px;
	}

	.stihl-lightbox-stage {
		padding: 64px 8px 8px;
	}
}

@media (max-width: 380px) {
	.stihl-card-title {
		font-size: 13px;
	}

	.stihl-part {
		grid-template-columns: 36px 56px minmax(0, 1fr);
		gap: 10px;
		padding: 14px;
	}

	.stihl-part-img {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stihl-card a,
	.stihl-card-media img,
	.stihl-part,
	.stihl-lightbox,
	.stihl-part-add .added_to_cart {
		transition: none;
		animation: none;
	}
}
