/* ad-sok – sökrutan i art'n'designs palett (samma variabler som pk-menu). */
.ad-sok {
	--s-green: var(--pk-green, #2F4A3C);
	--s-ink: var(--pk-ink, #1C1B17);
	--s-w1: var(--pk-warm-1, #FBFAF5);
	--s-w2: var(--pk-warm-2, #F4F3ED);
	--s-w3: var(--pk-warm-3, #DBD8CD);
	--s-muted: var(--pk-warm-muted, #6E6B60);
	--s-brass: var(--pk-brass, #A2803A);
	position: relative;
	padding: 12px 16px 14px;
	box-sizing: border-box;
	font-family: 'Work Sans', sans-serif;
}
.ad-sok *, .ad-sok *::before, .ad-sok *::after { box-sizing: border-box; }
.ad-sok-form {
	display: flex;
	align-items: stretch;
	height: 46px;
	margin: 0;
	border: 1px solid var(--s-w3);
	border-radius: var(--pk-radius, 3px);
	background: var(--s-w1);
	overflow: hidden;
}
.ad-sok-form:focus-within { border-color: var(--s-brass); }
.ad-sok-etikett {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ad-sok-falt {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 14px !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 16px; /* under 16 px zoomar iPhone in */
	color: var(--s-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.ad-sok-falt::-webkit-search-cancel-button { display: none; }
.ad-sok-falt::placeholder { color: var(--s-muted); opacity: 1; }
.ad-sok-rensa, .ad-sok-knapp {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none !important;
	background: transparent !important;
	color: var(--s-green) !important;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}
.ad-sok-rensa { color: var(--s-muted) !important; width: 34px; }
.ad-sok .ad-sok-knapp svg {
	display: block;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	max-width: none;
	fill: currentColor !important;
}
.ad-sok .ad-sok-falt:focus, .ad-sok .ad-sok-falt:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}
.ad-sok.laddar .ad-sok-knapp { opacity: .45; }

.ad-sok-lista {
	position: absolute;
	left: 16px;
	right: 16px;
	top: calc(100% - 10px);
	z-index: 100000;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid var(--s-w3);
	border-radius: var(--pk-radius, 3px);
	box-shadow: 0 12px 32px rgba(28, 27, 23, .16);
	text-align: left;
}
.ad-sok-rubrik {
	display: block;
	padding: 10px 14px 4px;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--s-muted);
}
.ad-sok-kat { border-bottom: 1px solid var(--s-w2); padding-bottom: 4px; }
.ad-sok-rad {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	color: var(--s-ink) !important;
	text-decoration: none !important;
	line-height: 1.3;
}
.ad-sok-rad:hover, .ad-sok-rad.ar-aktiv { background: var(--s-w2); }
.ad-sok-katlank { justify-content: space-between; font-weight: 500; color: var(--s-green) !important; }
.ad-sok-katlank small { color: var(--s-muted); font-weight: 400; }
.ad-sok-bild {
	flex: 0 0 48px;
	width: 48px;
	height: 64px;
	background: var(--s-w2);
	overflow: hidden;
}
.ad-sok-bild img { width: 48px; height: 64px; object-fit: cover; display: block; }
.ad-sok-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-sok-titel { font-size: 14px; overflow-wrap: anywhere; }
.ad-sok-pris { font-size: 13px; color: var(--s-green); font-weight: 600; }
.ad-sok-pris em { font-style: normal; font-weight: 400; color: var(--s-muted); }
.ad-sok-alla {
	justify-content: center;
	border-top: 1px solid var(--s-w2);
	padding: 12px 14px;
	font-weight: 600;
	color: var(--s-green) !important;
}
.ad-sok-tom { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; font-size: 14px; }
.ad-sok-tom span { color: var(--s-muted); }

/* Kategoriträffar överst på resultatsidan */
.ad-sok-kategorier {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-family: 'Work Sans', sans-serif;
	font-size: 14px;
}
.ad-sok-kategorier span { color: var(--pk-warm-muted, #6E6B60); }
.ad-sok-kategorier a {
	padding: 6px 12px;
	border: 1px solid var(--pk-warm-3, #DBD8CD);
	border-radius: 999px;
	background: var(--pk-warm-1, #FBFAF5);
	color: var(--pk-green, #2F4A3C);
	text-decoration: none;
}
.ad-sok-kategorier a:hover { border-color: var(--pk-brass, #A2803A); }
.ad-sok-kategorier small { color: var(--pk-warm-muted, #6E6B60); }
