/* ec-suche: Live-Vorschläge in der Such-Einblendung (DEV-1452) */
.ec-suche {
	display: none;
	margin-top: 4px;
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1c1c1a;
	text-align: left;
}
.ec-suche.is-visible { display: block; }

.ec-suche__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;
}

.ec-suche__list {
	box-sizing: border-box;
	max-height: calc(100vh - 260px);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
@supports (height: 100dvh) {
	.ec-suche__list { max-height: calc(100dvh - 260px); }
}

.ec-suche__heading {
	margin: 18px 0 4px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(28, 28, 26, 0.5);
}
.ec-suche__heading:first-child { margin-top: 12px; }

.ec-suche__opt,
.ec-suche__opt:link,
.ec-suche__opt:visited {
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 48px;
	padding: 8px 10px;
	margin: 0;
	border: 0;
	border-bottom: 1px solid rgba(28, 28, 26, 0.08);
	border-radius: 0;
	background: transparent;
	color: #1c1c1a;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(28, 28, 26, 0.06);
}
.ec-suche__opt:hover,
.ec-suche__opt.is-active {
	background: #f3f0e8;
	color: #1c1c1a;
}
.ec-suche__opt.is-active { box-shadow: inset 2px 0 0 #1c1c1a; }
.ec-suche__opt:focus { outline: none; }

/* Kategorien */
.ec-suche__opt--cat { justify-content: space-between; font-size: 15px; }
.ec-suche__name { font-weight: 500; }
.ec-suche__count { flex: 0 0 auto; font-size: 13px; color: #6b665f; }

/* Produkte */
.ec-suche__img {
	flex: 0 0 56px;
	width: 56px;
	height: 84px;
	background: #efece4;
	overflow: hidden;
}
.ec-suche__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ec-suche__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ec-suche__title {
	font-size: 15px;
	line-height: 1.35;
	font-weight: 400;
	overflow-wrap: anywhere;
}
.ec-suche__title mark {
	background: rgba(28, 28, 26, 0.1);
	color: inherit;
	font-weight: 600;
	padding: 0;
}
.ec-suche__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	font-size: 13px;
	color: #6b665f;
}
.ec-suche__soldout {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b665f;
	border: 1px solid rgba(28, 28, 26, 0.25);
	padding: 1px 6px;
}

/* Alle Treffer */
.ec-suche__opt--all {
	justify-content: center;
	min-height: 52px;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	border: 1px solid #1c1c1a;
	background: #1c1c1a;
	color: #fff;
}
.ec-suche__opt--all:link,
.ec-suche__opt--all:visited { color: #fff; background: #1c1c1a; }
.ec-suche__opt--all:hover,
.ec-suche__opt--all.is-active { background: #000; color: #fff; }

/* Keine Treffer, Hinweise */
.ec-suche__none {
	margin: 18px 0 6px;
	font-size: 16px;
	color: #1c1c1a;
}
.ec-suche__hint {
	margin: 6px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #6b665f;
}
.ec-suche__hint a,
.ec-suche__hint a:link,
.ec-suche__hint a:visited {
	color: #1c1c1a;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	display: inline-block;
	padding: 6px 0;
}
.ec-suche__hint strong { font-weight: 600; color: #1c1c1a; }

@media (max-width: 600px) {
	.ec-suche__list { max-height: calc(100vh - 170px); }
	@supports (height: 100dvh) {
		.ec-suche__list { max-height: calc(100dvh - 170px); }
	}
	.ec-suche__opt { min-height: 56px; padding: 8px 4px; gap: 12px; }
	.ec-suche__opt--cat { font-size: 16px; }
	.ec-suche__img { flex-basis: 48px; width: 48px; height: 72px; }
	.ec-suche__title { font-size: 15px; }
	.ec-suche__opt--all { min-height: 56px; }
}

@media (prefers-reduced-motion: no-preference) {
	.ec-suche.is-visible { animation: ec-suche-in 0.15s ease-out; }
}
@keyframes ec-suche-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
