/* Exquisit Relaunch – eigene Produktsuche ([exq_search], class-search.php): Suchfeld (Header + Ergebnisseite), Vorschlagsliste,
   Ergebnisseite. Karten der Ergebnisseite aus category.css. WoodMart stylt jedes <button> → eigene Knöpfe mit !important. */

.exq-search { position: relative; width: 100%; font-family: var(--exq-font, Inter), Inter, Arial, sans-serif; }
/* WoodMart färbt Eingabefelder im dunklen Header (transparent, helle Schrift, eigener Innenabstand) — deshalb !important. */
.exq-search input.exq-search__input[type="search"] {
	box-sizing: border-box; width: 100%; height: 44px !important; margin: 0; padding: 10px 46px 10px 44px !important;
	border: 1px solid transparent !important; border-radius: 10px !important; background: #fff !important; color: #000 !important;
	font: inherit; font-size: 14px !important; line-height: 1.3; box-shadow: none !important; -webkit-appearance: none; appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.exq-search input.exq-search__input[type="search"]::placeholder { color: #6a7f97 !important; opacity: 1; }
.exq-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.exq-search input.exq-search__input[type="search"]:focus { outline: none; border-color: #8aa2b9 !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25) !important; }
.exq-search__ico { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: #063b6f; transform: translateY(-50%); pointer-events: none; }
.exq-search__ico svg, .exq-search__go svg { display: block; width: 100%; height: 100%; }
.exq-search.is-loading .exq-search__ico { animation: exq-search-pulse 1s ease-in-out infinite; }
@keyframes exq-search-pulse { 50% { opacity: .35; } }
.exq-search .exq-search__go {
	position: absolute; top: 50%; right: 6px; display: block; width: 32px !important; height: 32px !important; min-height: 0 !important; margin: 0 !important;
	padding: 7px !important; border: 0 !important; border-radius: 8px !important; background: #063b6f !important; color: #fff !important;
	box-shadow: none !important; line-height: 1 !important; transform: translateY(-50%); cursor: pointer; transition: opacity .15s ease;
}
.exq-search__input:placeholder-shown ~ .exq-search__go { opacity: 0; pointer-events: none; }

/* Vorschlagsliste */
.exq-search__panel {
	position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0; box-sizing: border-box; width: max(100%, 560px); max-width: calc(100vw - 32px);
	max-height: min(72vh, 660px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 12px; background: #fff;
	box-shadow: 0 18px 48px rgba(9, 31, 62, .22), 0 0 0 1px rgba(9, 31, 62, .06); color: #000; text-align: left;
}
.exq-search__panel[hidden] { display: none; }
.exq-search__panel p { margin: 0; }
.exq-sp__sec { padding: 6px 0; border-top: 1px solid #e1e8ef; }
.exq-sp__sec:first-child, .exq-sp__attrs + .exq-sp__sec { border-top: 0; }
.exq-search__panel .exq-sp__h { margin: 4px 10px 6px; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 1.6px; text-transform: uppercase; color: #000; }
.exq-sp__opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: #000 !important; text-decoration: none !important; }
.exq-sp__opt:hover, .exq-sp__opt[aria-selected="true"] { background: #f3f7fa; }
.exq-sp__opt[aria-selected="true"] { box-shadow: inset 0 0 0 2px #063b6f; }
.exq-sp__opt strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.exq-sp__opt small { display: block; font-size: 12.5px; line-height: 1.35; color: #000; }
.exq-sp__cat > span:first-child, .exq-sp__finder > span { flex: 1; min-width: 0; }
.exq-sp__count { flex: none; font-size: 12.5px; color: #000; white-space: nowrap; }
.exq-sp__img { display: grid; place-items: center; flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 8px; background: #fafafa; }
.exq-sp__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }
.exq-sp__txt { flex: 1; min-width: 0; }
.exq-sp__txt small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.exq-sp__price { flex: none; font-size: 14px; font-weight: 700; color: #000; white-space: nowrap; }
.is-sold .exq-sp__price { font-size: 12px; font-weight: 600; color: #59708d; }
.exq-sp__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px 8px; }
.exq-sp__opt.exq-sp__chip { display: inline-flex; padding: 7px 13px; border: 1px solid #e1e8ef; border-radius: 999px; font-size: 13px; font-weight: 600; }
.exq-sp__sec--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.exq-sp__link { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.exq-sp__link small { font-weight: 400; }
.exq-sp__opt.exq-sp__all { justify-content: center; gap: 6px; margin-top: 6px; background: #f3f7fa; font-size: 14px; font-weight: 600; color: #000 !important; }
.exq-sp__arrow { flex: none; width: 16px; height: 16px; }
.exq-search__panel .exq-sp__attrs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 10px 8px; font-size: 12.5px; color: #000; }
.exq-sp__attr { padding: 3px 9px; border-radius: 999px; background: #e8eff8; font-weight: 600; color: #000; }
.exq-sp__none { padding: 10px; font-size: 14px; }
.exq-sp__none p + p { margin-top: 6px; }
.exq-sp__opt.exq-sp__fix { display: inline; padding: 0; font-weight: 600; text-decoration: underline !important; }
@media (max-width: 1024px) {
	.exq-search input.exq-search__input[type="search"] { height: 42px !important; font-size: 16px !important; } /* 16 px: iOS zoomt sonst beim Antippen */
	.exq-search__panel { width: 100%; max-width: none; max-height: calc(100vh - 150px); }
	.exq-srch__hero .exq-search--big { display: none; } /* Header-Suche steht hier immer direkt darüber */
}
@media (max-width: 767px) {
	.exq-sp__sec--two { grid-template-columns: minmax(0, 1fr); }
	.exq-sp__img { width: 40px; height: 40px; }
}

/* Ergebnisseite (templates/search.php) */
.exq-srch.exq-cat-content { padding: 0; }
.exq-srch__wrap { box-sizing: border-box; width: 100%; max-width: var(--exq-content-max, 1420px); margin: 0 auto; padding-inline: 4.5%; }
.exq-srch__hero { padding: 28px 0 32px; background: var(--exq-paper, #f3f7fa); }
.exq-srch__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #000; }
.exq-srch__crumbs a { color: inherit !important; text-decoration: none !important; }
.exq-srch .exq-srch__title { margin: 14px 0 6px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-transform: none; color: #000; }
.exq-srch .exq-srch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 15px; color: #000; }
.exq-srch__chip { padding: 3px 10px; border-radius: 999px; background: #e8eff8; font-size: 13px; font-weight: 600; color: #000; }
.exq-search--big { max-width: 720px; }
.exq-search--big input.exq-search__input[type="search"] { height: 52px !important; border-color: #c6d3e0 !important; font-size: 16px !important; }
.exq-search--big input.exq-search__input[type="search"]:focus { border-color: #063b6f !important; box-shadow: 0 0 0 3px rgba(11, 35, 64, .12) !important; }
.exq-search--big .exq-search__go { right: 8px; width: 36px !important; height: 36px !important; }
.exq-srch__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: #000; }
.exq-srch__cats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #e1e8ef; border-radius: 999px; background: #fff; font-weight: 600; color: #000 !important; text-decoration: none !important; }
.exq-srch__cats small { font-weight: 400; color: #000; }
.exq-srch__body { padding-top: 32px; padding-bottom: 72px; }
.exq-srch .exq-srch__note { margin: 0 0 18px; font-size: 14px; color: #000; }
.exq-srch__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 0 !important; padding: 0 !important; list-style: none; }
.exq-srch__grid > li { display: flex; min-width: 0; margin: 0; }
.exq-srch .exq-ccard__pills .is-adv { background: #eef1f4; box-shadow: none; color: #000; }
.exq-srch__pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.exq-srch__pager a, .exq-srch__pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #e1e8ef; border-radius: 10px; font-size: 14px; font-weight: 600; color: #000 !important; text-decoration: none !important; }
.exq-srch__pager span[aria-current] { border-color: #063b6f; background: #063b6f; color: #fff !important; }
.exq-srch__empty { max-width: 640px; padding: 8px 0 24px; }
.exq-srch .exq-srch__empty h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; color: #000; text-transform: none; }
.exq-srch .exq-srch__empty p { margin: 0 0 10px; font-size: 15px; color: #000; }
.exq-srch__empty p a { font-weight: 600; color: #000 !important; }
.exq-srch__btn { display: inline-flex; align-items: center; margin-top: 6px; padding: 12px 22px; border-radius: 10px; background: #063b6f; font-size: 15px; font-weight: 600; color: #fff !important; text-decoration: none !important; }
.exq-srch__more { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid #e1e8ef; }
.exq-srch .exq-srch__more h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: #000; text-transform: none; }
.exq-srch__more ul { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.exq-srch__more li { margin: 0; }
.exq-srch__more a { display: block; padding: 12px 14px; border: 1px solid #e1e8ef; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.35; color: #000 !important; text-decoration: none !important; }
.exq-srch__more a:hover { border-color: #c6d3e0; background: #f8fafc; }
.exq-srch__more small { display: block; font-size: 12.5px; font-weight: 400; color: #000; }
@media (max-width: 767px) {
	.exq-srch__wrap { padding-inline: 20px; }
	.exq-srch__hero { padding: 18px 0 22px; }
	.exq-srch__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.exq-srch__body { padding-top: 22px; padding-bottom: 48px; }
}

/* 404-Seite (class-not-found.php, templates/404.php): Kopf wie die Ergebnisseite, darunter Geräte-Vorschläge, Bereiche (Karten aus
   shop.css), Service. Sechs Bereiche → 3 Spalten statt der 4 von /shop/; am Handy wie dort (Bild links). */
.exq-nf .exq-nf__eyebrow { margin: 18px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #000; }
.exq-nf .exq-srch__title { margin-top: 8px; }
.exq-nf .exq-srch__meta { max-width: 640px; }
.exq-nf .exq-cat-hero__cta { margin-top: 18px; }
.exq-nf__sec + .exq-nf__sec { margin-top: 48px; }
.exq-nf .exq-nf__h2 { margin: 0 0 18px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #000; text-transform: none; }
.exq-nf .exq-nf__sec.exq-shop { padding: 0; }
.exq-nf .exq-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
	.exq-nf .exq-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
	.exq-nf .exq-shop-grid { grid-template-columns: minmax(0, 1fr); }
	.exq-nf .exq-cat-hero__cta { justify-content: center; width: 100%; box-sizing: border-box; }
	.exq-nf .exq-nf__h2 { font-size: 21px; }
}
