/*
 * Evo Core - product catalog front end.
 * Inherits Impreza colour variables (with fallbacks). Logical properties are used so RTL (ar) works without overrides.
 */

.evo-scope {
	--evo-primary: var(--color-content-primary, #0f4c81);
	--evo-text: var(--color-content-text, #3b4654);
	--evo-heading: var(--color-content-heading, #111c2b);
	--evo-border: var(--color-content-border, #e1e6ec);
	--evo-bg: var(--color-content-bg, #ffffff);
	--evo-bg-alt: var(--color-content-bg-alt, #f4f6f9);
	--evo-primary-soft: rgba(15, 76, 129, 0.09);
	--evo-radius: 14px;
	--evo-radius-sm: 9px;
	--evo-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 28px rgba(16, 24, 40, 0.07);
	--evo-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 18px 40px rgba(16, 24, 40, 0.12);
	--evo-gap: clamp(1.1rem, 2.6vw, 1.75rem);
	color: var(--evo-text);
	box-sizing: border-box;
	text-align: start;
}

@supports (background: color-mix(in srgb, red 10%, transparent)) {
	.evo-scope {
		--evo-primary-soft: color-mix(in srgb, var(--evo-primary) 10%, transparent);
	}
}

.evo-scope *,
.evo-scope *::before,
.evo-scope *::after {
	box-sizing: border-box;
}

.evo-scope img {
	max-width: 100%;
	height: auto;
}

.evo-scope .evo-ico {
	flex: none;
	display: block;
}

.evo-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ layout */

.evo-urun {
	width: 100%;
}

.evo-urun .evo-sec {
	margin-block: clamp(2rem, 5vw, 3.75rem);
}

.evo-urun .evo-sec:first-child {
	margin-block-start: 0;
}

.evo-urun .evo-sec__title {
	position: relative;
	margin: 0 0 1.4rem;
	padding-block-end: 0.85rem;
	color: var(--evo-heading);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.evo-urun .evo-sec__title::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: 0;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--evo-primary);
}

/* -------------------------------------------------------------------- hero */

.evo-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--evo-gap);
	align-items: start;
}

@media (min-width: 900px) {
	.evo-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 3.5rem);
	}

	.evo-hero__media {
		position: sticky;
		inset-block-start: 1.5rem;
	}
}

.evo-gallery__stage {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	aspect-ratio: 1 / 1;
	padding: clamp(0.75rem, 3vw, 2rem);
	background: radial-gradient(circle at 50% 38%, var(--evo-bg) 0%, var(--evo-bg-alt) 100%);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
	overflow: hidden;
}

.evo-gallery__main {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.18s ease;
}

.evo-gallery__main.is-swapping {
	opacity: 0;
}

.evo-gallery__stage--empty {
	color: var(--evo-border);
}

.evo-gallery__stage--empty .evo-ico {
	width: 72px;
	height: 72px;
}

.evo-gallery__thumbs {
	display: flex;
	gap: 0.6rem;
	margin: 0.85rem 0 0;
	padding: 0.2rem 0.2rem 0.4rem;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.evo-gallery__item {
	flex: none;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.evo-gallery__thumb {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 4px;
	background: var(--evo-bg);
	border: 2px solid var(--evo-border);
	border-radius: var(--evo-radius-sm);
	cursor: pointer;
	line-height: 0;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.evo-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.evo-gallery__thumb:hover {
	border-color: var(--evo-primary);
}

.evo-gallery__thumb.is-active {
	border-color: var(--evo-primary);
	box-shadow: 0 0 0 3px var(--evo-primary-soft);
}

.evo-scope button:focus-visible,
.evo-scope a:focus-visible,
.evo-scope summary:focus-visible {
	outline: 3px solid var(--evo-primary);
	outline-offset: 2px;
}

.evo-hero__body {
	min-width: 0;
}

.evo-badge {
	display: inline-block;
	margin-block-end: 0.85rem;
	padding: 0.28rem 0.8rem;
	border-radius: 999px;
	background: var(--evo-primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.evo-hero__series {
	margin: 0 0 0.35rem;
	color: var(--evo-primary);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.evo-hero__title {
	margin: 0 0 0.6rem;
	color: var(--evo-heading);
	font-size: clamp(1.8rem, 3.4vw, 2.7rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.evo-hero__lead {
	margin: 0 0 1rem;
	color: var(--evo-primary);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	font-weight: 600;
	line-height: 1.4;
}

.evo-hero__excerpt {
	max-width: 62ch;
	font-size: 1.05rem;
	line-height: 1.7;
}

.evo-hero__excerpt p {
	margin: 0 0 0.8em;
}

.evo-hero__options {
	margin-block: 1.4rem 0.4rem;
	padding-block-start: 1.2rem;
	border-block-start: 1px solid var(--evo-border);
}

.evo-hero__optlabel {
	margin: 0 0 0.7rem;
	color: var(--evo-heading);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.evo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.evo-chips li {
	margin: 0;
	padding: 0;
}

.evo-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding-block: 0.32rem;
	padding-inline: 0.35rem 0.95rem;
	background: var(--evo-bg);
	border: 1.5px solid var(--evo-border);
	border-radius: 999px;
	color: var(--evo-heading);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button.evo-chip {
	cursor: pointer;
}

button.evo-chip:hover {
	border-color: var(--evo-primary);
	background: var(--evo-bg);
	color: var(--evo-heading);
}

.evo-chip.is-active {
	border-color: var(--evo-primary);
	box-shadow: 0 0 0 3px var(--evo-primary-soft);
}

.evo-chip__swatch {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--evo-swatch, var(--evo-bg-alt));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	overflow: hidden;
	line-height: 0;
}

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

.evo-chip__swatch--letter {
	background: var(--evo-primary-soft);
	color: var(--evo-primary);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}

.evo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 1.6rem;
}

.evo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 48px;
	margin: 0;
	padding: 0.75rem 1.55rem;
	border: 2px solid var(--evo-primary);
	border-radius: 999px;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.evo-urun a.evo-btn--primary,
.evo-urun a.evo-btn--primary:visited {
	background: var(--evo-primary);
	color: #fff;
}

.evo-urun a.evo-btn--primary:hover {
	color: #fff;
	box-shadow: 0 8px 22px rgba(15, 76, 129, 0.28);
	transform: translateY(-1px);
}

.evo-urun a.evo-btn--ghost,
.evo-urun a.evo-btn--ghost:visited {
	background: transparent;
	color: var(--evo-primary);
}

.evo-urun a.evo-btn--ghost:hover {
	background: var(--evo-primary);
	color: #fff;
}

.evo-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	margin: 1.6rem 0 0;
	padding-block-start: 1.1rem;
	border-block-start: 1px solid var(--evo-border);
	font-size: 0.9rem;
}

.evo-hero__meta div {
	display: flex;
	gap: 0.5rem;
}

.evo-hero__meta dt {
	margin: 0;
	color: var(--evo-text);
	opacity: 0.75;
}

.evo-hero__meta dd {
	margin: 0;
	color: var(--evo-heading);
	font-weight: 600;
}

/* ---------------------------------------------------------------- features */

.evo-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.evo-feature {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin: 0;
	padding: 1.2rem 1.25rem;
	background: var(--evo-bg);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.evo-feature:hover {
	border-color: transparent;
	box-shadow: var(--evo-shadow);
}

.evo-feature__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--evo-primary-soft);
	color: var(--evo-primary);
}

.evo-feature__icon .evo-ico {
	width: 18px;
	height: 18px;
}

.evo-feature__title {
	margin: 0 0 0.25rem;
	color: var(--evo-heading);
	font-size: 1.05rem;
	line-height: 1.3;
}

.evo-feature__desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* ----------------------------------------------------------- prose / content */

.evo-prose {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.evo-urun__content {
	max-width: 78ch;
}

.evo-prose > :first-child {
	margin-block-start: 0;
}

.evo-prose > :last-child {
	margin-block-end: 0;
}

.evo-prose img {
	border-radius: var(--evo-radius-sm);
}

.evo-prose ul,
.evo-prose ol {
	padding-inline-start: 1.4em;
}

/* ---------------------------------------------------------------- accordion */

.evo-acc {
	display: grid;
	gap: 0.75rem;
}

.evo-acc__item {
	background: var(--evo-bg);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.evo-acc__item[open] {
	box-shadow: var(--evo-shadow);
	border-color: transparent;
}

.evo-acc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.4rem;
	color: var(--evo-heading);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.evo-acc__summary::-webkit-details-marker {
	display: none;
}

.evo-acc__summary:hover {
	color: var(--evo-primary);
}

.evo-acc__chev {
	flex: none;
	width: 10px;
	height: 10px;
	margin-inline-end: 0.3rem;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.evo-acc__item[open] > .evo-acc__summary .evo-acc__chev {
	transform: rotate(-135deg) translateY(-2px);
}

.evo-acc__item[open] > .evo-acc__summary {
	color: var(--evo-primary);
}

.evo-acc__body {
	padding: 0 1.4rem 1.4rem;
}

/* ----------------------------------------------------------------- options */

.evo-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.evo-option {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--evo-bg);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.evo-option:hover {
	box-shadow: var(--evo-shadow);
	transform: translateY(-2px);
}

.evo-option__media {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	padding: 0.75rem;
	background: var(--evo-bg-alt);
	line-height: 0;
}

.evo-option__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.evo-option__media--color {
	padding: 0;
	background: var(--evo-swatch, var(--evo-bg-alt));
}

.evo-option__body {
	padding: 1rem 1.1rem 1.2rem;
}

.evo-option__name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.3rem;
	color: var(--evo-heading);
	font-size: 1.05rem;
	line-height: 1.3;
}

.evo-option__dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--evo-swatch, transparent);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.evo-option__short {
	margin: 0 0 0.45rem;
	color: var(--evo-primary);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.evo-option__desc {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.55;
}

.evo-option__sku {
	margin: 0.7rem 0 0;
	font-size: 0.78rem;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- spec table */

.evo-spec-wrap {
	overflow-x: auto;
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
}

.evo-spec {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 1rem;
}

.evo-spec th,
.evo-spec td {
	padding: 0.85rem 1.25rem;
	border: 0;
	text-align: start;
	vertical-align: top;
	line-height: 1.5;
}

.evo-spec th {
	width: 38%;
	color: var(--evo-heading);
	font-weight: 600;
	background: transparent;
}

.evo-spec tr:nth-child(odd) {
	background: var(--evo-bg-alt);
}

.evo-spec tr:nth-child(even) {
	background: var(--evo-bg);
}

@media (max-width: 520px) {
	.evo-spec th {
		width: 46%;
	}

	.evo-spec th,
	.evo-spec td {
		padding: 0.7rem 0.9rem;
	}
}

/* -------------------------------------------------------------------- video */

.evo-video {
	position: relative;
	max-width: 960px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--evo-radius);
	overflow: hidden;
	box-shadow: var(--evo-shadow);
}

.evo-video iframe,
.evo-video video,
.evo-video embed,
.evo-video object {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}

/* -------------------------------------------------------------------- files */

.evo-files {
	display: grid;
	gap: 0.7rem;
	max-width: 760px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.evo-file {
	margin: 0;
}

.evo-urun a.evo-file__link {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	background: var(--evo-bg);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
	color: var(--evo-heading);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.evo-urun a.evo-file__link:hover {
	border-color: var(--evo-primary);
	box-shadow: var(--evo-shadow);
	color: var(--evo-heading);
}

.evo-file__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--evo-primary-soft);
	color: var(--evo-primary);
}

.evo-file__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.evo-file__name {
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.evo-file__meta {
	margin-block-start: 0.15rem;
	font-size: 0.8rem;
	opacity: 0.7;
}

.evo-file__action {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex: none;
	color: var(--evo-primary);
	font-size: 0.9rem;
	font-weight: 600;
}

@media (max-width: 480px) {
	.evo-file__action span {
		display: none;
	}
}

/* ------------------------------------------------------------- cards / grid */

.evo-grid {
	--evo-cols: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--evo-gap);
	margin: 0;
}

@media (min-width: 600px) {
	.evo-grid {
		grid-template-columns: repeat(min(var(--evo-cols), 2), minmax(0, 1fr));
	}
}

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

.evo-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--evo-bg);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.evo-card:hover,
.evo-card:focus-within {
	border-color: transparent;
	box-shadow: var(--evo-shadow-hover);
	transform: translateY(-3px);
}

.evo-card__media {
	position: relative;
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	padding: 1rem;
	background: var(--evo-bg-alt);
	color: var(--evo-border);
	line-height: 0;
	text-decoration: none;
}

.evo-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.evo-card:hover .evo-card__media img {
	transform: scale(1.04);
}

.evo-card__media .evo-ico {
	width: 48px;
	height: 48px;
}

.evo-card--cat .evo-card__media {
	padding: 0;
}

.evo-card--cat .evo-card__media img {
	object-fit: cover;
}

.evo-badge--card {
	position: absolute;
	inset-block-start: 0.8rem;
	inset-inline-start: 0.8rem;
	margin: 0;
	line-height: 1.4;
}

.evo-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.25rem 1.3rem;
}

.evo-card__cat {
	margin: 0 0 0.35rem;
	color: var(--evo-primary);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.evo-card__title {
	margin: 0 0 0.5rem;
	color: var(--evo-heading);
	font-size: 1.15rem;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.evo-card__excerpt {
	margin: 0 0 1rem;
	font-size: 0.93rem;
	line-height: 1.55;
}

.evo-card__count {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	font-weight: 600;
	opacity: 0.75;
}

.evo-urun a.evo-card__link,
a.evo-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-block-start: auto;
	color: var(--evo-primary);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

/* Stretched link: the whole card is clickable. */
.evo-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.evo-card__arrow::before {
	content: "\2192";
	display: inline-block;
	transition: transform 0.2s ease;
}

.evo-card:hover .evo-card__arrow::before {
	transform: translateX(4px);
}

[dir="rtl"] .evo-card__arrow::before {
	content: "\2190";
}

[dir="rtl"] .evo-card:hover .evo-card__arrow::before {
	transform: translateX(-4px);
}

.evo-empty {
	padding: 1.5rem;
	background: var(--evo-bg-alt);
	border-radius: var(--evo-radius);
	text-align: center;
}

/* ----------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
	.evo-scope *,
	.evo-scope *::before,
	.evo-scope *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.evo-card:hover,
	.evo-card:focus-within,
	.evo-option:hover {
		transform: none;
	}
}
