/* EK Autoteile / EK Reifen — shop-specific styles */

/* ---------- Search bar ---------- */
.ek-search-box {
	position: relative;
	background: var(--ek-surface);
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius-lg);
	padding: clamp(1.6rem, 3vw, 2.4rem);
	box-shadow: 0 2px 8px rgba(15,23,42,.04), 0 24px 60px -28px rgba(15,23,42,.18);
	overflow: hidden;
}
.ek-search-box::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 80% at 0% 0%, var(--ek-accent-soft), transparent 60%);
	pointer-events: none;
}
.ek-search-box__inner { position: relative; }
.ek-search-box h3 {
	margin-bottom: .4rem;
	font-size: 1.2rem;
}
.ek-search-box p {
	margin-bottom: 1.4rem;
	color: var(--ek-text-dim);
	font-size: .92rem;
}
.ek-search-tabs {
	display: flex;
	gap: .4rem;
	margin-bottom: 1.4rem;
	padding: .3rem;
	background: var(--ek-bg);
	border-radius: 12px;
	border: 1px solid var(--ek-border);
	width: fit-content;
}
.ek-search-tab {
	padding: .55rem 1.1rem;
	border-radius: 8px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--ek-text-dim);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all .2s;
}
.ek-search-tab.is-active {
	background: var(--ek-accent);
	color: #fff;
}
.ek-search-form {
	display: grid;
	gap: .8rem;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.ek-search-form__field input,
.ek-search-form__field select { width: 100%; }
.ek-search-form__actions {
	grid-column: 1 / -1;
	display: flex;
	gap: .8rem;
	margin-top: .4rem;
}
.ek-search-form__actions .ek-btn { flex: 1; justify-content: center; }
@media (min-width: 640px) {
	.ek-search-form__actions { justify-content: flex-start; }
	.ek-search-form__actions .ek-btn { flex: 0 0 auto; }
}

/* ---------- Search-Umschalter (Reifensuche / Teilesuche) ---------- */
.ek-search-switch {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .4rem;
	margin-bottom: 1.4rem;
	padding: .3rem;
	background: var(--ek-bg);
	border: 1px solid var(--ek-border);
	border-radius: 12px;
}
.ek-search-switch__btn {
	padding: .8rem 1rem;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: var(--ek-text-dim);
	font-family: inherit;
	font-weight: 600;
	font-size: .92rem;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ek-search-switch__btn:hover { color: var(--ek-white); }
.ek-search-switch__btn.is-active {
	background: var(--ek-accent);
	color: #fff;
}
.ek-search-pane { position: relative; }
.ek-search-pane[hidden] { display: none; }

/* ---------- Teilesuche "in Arbeit" overlay ---------- */
/* Nur der Inhalt der Teilesuche ist verschwommen + deaktiviert; der Hinweis bleibt scharf. */
.ek-search-pane--wip .ek-search-box__inner {
	filter: blur(3px);
	opacity: .55;
	pointer-events: none;
	user-select: none;
}
.ek-search-box__notice {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: .4rem;
	padding: clamp(1.4rem, 4vw, 2.4rem);
	background: rgba(255, 255, 255, .55);
	border-radius: inherit;
}
.ek-search-box__notice-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--ek-accent-soft);
	color: var(--ek-accent);
	display: grid;
	place-items: center;
	font-size: 1.5rem;
	margin-bottom: .6rem;
}
.ek-search-box__notice h3 {
	margin: 0 0 .2rem;
	font-size: 1.2rem;
	color: var(--ek-white);
}
.ek-search-box__notice p {
	margin: 0;
	max-width: 34ch;
	font-size: .9rem;
	color: var(--ek-text-dim);
}

/* ---------- Category grid ---------- */
/* 8 Karten = 4 + 4 auf Desktop (gleichmäßig), 2 Spalten auf Tablet/Smartphone, 1 Spalte sehr klein. */
.ek-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}
@media (max-width: 900px) {
	.ek-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
	.ek-cat-grid { grid-template-columns: 1fr; }
}
/* Platzhalter-Bildfläche für spätere, freigegebene Kategorie-Fotos. */
.ek-cat__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: .9rem;
	background: var(--ek-bg-elev);
}
.ek-cat {
	display: block;
	padding: 1.6rem 1.4rem;
	background: var(--ek-surface);
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius);
	text-align: left;
	box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 18px -12px rgba(15,23,42,.08);
	transition: all .25s;
}
.ek-cat:hover {
	border-color: var(--ek-accent);
	transform: translateY(-3px);
	background: var(--ek-bg-elev);
	box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 18px 34px -18px rgba(15,23,42,.16);
}
.ek-cat__icon {
	font-size: 2rem;
	margin-bottom: .8rem;
	display: block;
}
.ek-cat__title {
	font-weight: 700;
	color: var(--ek-white);
	font-size: 1rem;
	margin-bottom: .2rem;
}
.ek-cat__count {
	font-size: .8rem;
	color: var(--ek-muted);
}

/* ---------- Product card ---------- */
.ek-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.2rem;
}
.ek-product {
	background: var(--ek-surface);
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 20px -12px rgba(15,23,42,.08);
	transition: all .25s;
	display: flex;
	flex-direction: column;
}
.ek-product:hover {
	border-color: var(--ek-accent);
	transform: translateY(-3px);
}
.ek-product__img {
	aspect-ratio: 4/3;
	background: var(--ek-bg-elev);
	border-bottom: 1px solid var(--ek-border);
	display: grid;
	place-items: center;
	font-size: 3rem;
	color: var(--ek-muted);
}
.ek-product__body {
	padding: 1.2rem 1.2rem 1.4rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.ek-product__brand {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--ek-accent);
	margin-bottom: .4rem;
}
.ek-product__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ek-white);
	margin-bottom: .4rem;
	line-height: 1.35;
}
.ek-product__meta {
	font-size: .82rem;
	color: var(--ek-muted);
	margin-bottom: 1rem;
	flex: 1;
}
.ek-product__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.ek-product__price {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--ek-white);
}
.ek-product__price .suffix {
	font-size: .7rem;
	color: var(--ek-muted);
	font-weight: 500;
}

/* ---------- Info strip ---------- */
.ek-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	padding: 1.4rem;
	background: var(--ek-surface);
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius);
	box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 20px -14px rgba(15,23,42,.08);
}
.ek-strip__item {
	display: flex;
	align-items: center;
	gap: .9rem;
}
.ek-strip__icon {
	width: 38px; height: 38px;
	border-radius: 10px;
	background: var(--ek-accent-soft);
	color: var(--ek-accent);
	display: grid; place-items: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.ek-strip__label {
	font-size: .82rem;
	color: var(--ek-text-dim);
	line-height: 1.3;
}
.ek-strip__label strong {
	display: block;
	color: var(--ek-white);
	font-size: .95rem;
	font-weight: 700;
}

/* ---------- Reifensuche: Hinweis (Plugin inaktiv / Platzhalter) ---------- */
.ek-search-notice {
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius);
	background: var(--ek-bg-elev);
	color: var(--ek-text-dim);
	font-size: .92rem;
}
.ek-search-notice--admin {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	border-color: var(--ek-accent);
}
.ek-search-notice--admin strong { color: var(--ek-white); }

/* =========================================================
   DriveLink TyreSystem Connector – Ausgabe an das Theme angeglichen.
   Gezielte, unter .dls-tyre-search-wrap gescopte Regeln (höhere Spezifität
   als die Einzelklassen des Plugins) – Plugin-Dateien bleiben unverändert.
   Rot (#d71920) → Theme-Orange, eckige Radien → Theme-Radien, Pill-Buttons.
   ========================================================= */
.dls-tyre-search-wrap { font-family: var(--ek-font); color: var(--ek-text); }

.dls-tyre-search-wrap .dls-tyre-search {
	background: var(--ek-surface);
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius-lg);
	box-shadow: var(--ek-shadow);
}

/* Bereichsauswahl (Pills) */
.dls-tyre-search-wrap .dls-tyre-area-option { border-radius: 999px; }
.dls-tyre-search-wrap .dls-tyre-area-option:hover,
.dls-tyre-search-wrap .dls-tyre-area-option:focus {
	border-color: var(--ek-accent);
	box-shadow: 0 0 0 3px var(--ek-accent-soft);
}
.dls-tyre-search-wrap .dls-tyre-area-option.is-active {
	border-color: var(--ek-accent);
	background: var(--ek-accent);
	box-shadow: 0 8px 18px -8px var(--ek-accent);
}

/* Felder */
.dls-tyre-search-wrap .dls-tyre-field select {
	border-radius: 10px;
	border-color: var(--ek-border);
	background: var(--ek-bg-elev);
	color: var(--ek-text);
}
.dls-tyre-search-wrap .dls-tyre-field select:focus {
	border-color: var(--ek-accent);
	box-shadow: 0 0 0 3px var(--ek-accent-soft);
}

/* Buttons → Theme-Pill-Stil */
.dls-tyre-search-wrap .dls-tyre-button {
	border-radius: 999px;
	font-family: var(--ek-font);
	border-color: var(--ek-border);
	color: var(--ek-text);
}
.dls-tyre-search-wrap .dls-tyre-button:hover,
.dls-tyre-search-wrap .dls-tyre-button:focus {
	border-color: var(--ek-accent);
	color: var(--ek-accent);
}
.dls-tyre-search-wrap .dls-tyre-button-primary {
	border-color: var(--ek-accent);
	background: var(--ek-accent);
	color: #fff;
}
.dls-tyre-search-wrap .dls-tyre-button-primary:hover,
.dls-tyre-search-wrap .dls-tyre-button-primary:focus {
	background: var(--ek-accent-strong);
	color: #fff;
}

/* Ergebnis-Meta, Badges, Karten */
.dls-tyre-search-wrap .dls-tyre-result-meta { background: var(--ek-white); border-radius: 999px; }
.dls-tyre-search-wrap .dls-tyre-badge { background: var(--ek-white); border-radius: 999px; }
.dls-tyre-search-wrap .dls-tyre-card {
	border: 1px solid var(--ek-border);
	border-radius: var(--ek-radius);
	box-shadow: 0 1px 3px rgba(15,23,42,.04), 0 8px 20px -12px rgba(15,23,42,.08);
}
/* Listenansicht (v0.2.9): Hover/Akzent in Theme-Orange statt Plugin-Rot. */
.dls-tyre-search-wrap .dls-tyre-card--row:hover {
	border-color: var(--ek-accent);
	box-shadow: 0 2px 6px rgba(15,23,42,.06), 0 16px 30px -18px rgba(15,23,42,.18);
}
.dls-tyre-search-wrap .dls-tyre-card h3,
.dls-tyre-search-wrap .dls-tyre-title,
.dls-tyre-search-wrap .dls-tyre-price,
.dls-tyre-search-wrap .dls-tyre-col--price .dls-tyre-price { color: var(--ek-white); }
.dls-tyre-search-wrap .dls-tyre-details a,
.dls-tyre-search-wrap .dls-tyre-pagination a { color: var(--ek-accent); }
.dls-tyre-search-wrap .dls-tyre-empty {
	border-radius: var(--ek-radius);
	border-color: var(--ek-border);
	background: var(--ek-bg-elev);
}
/* EU-Reifenlabel-Trigger/Popover im Theme-Akzent (Orange statt Plugin-Rot). */
.dls-tyre-search-wrap .dls-tyre-eu-toggle:hover,
.dls-tyre-search-wrap .dls-tyre-eu-toggle:focus,
.dls-tyre-search-wrap .dls-tyre-eu-toggle[aria-expanded="true"] {
	border-color: var(--ek-accent);
	color: var(--ek-accent);
}
.dls-tyre-search-wrap .dls-tyre-eu-popover { border-radius: var(--ek-radius); }
.dls-tyre-search-wrap .dls-tyre-eu-eprel {
	border-color: var(--ek-accent);
	background: var(--ek-accent);
	color: #fff;
}
.dls-tyre-search-wrap .dls-tyre-eu-eprel:hover,
.dls-tyre-search-wrap .dls-tyre-eu-eprel:focus {
	background: var(--ek-accent-strong);
	color: #fff;
}
