/* VasiLab – live header search results (extras/ajax-search.css, loaded after vl-main) */

.o-search__results[hidden] { display: none !important; }

/* ---- Panel ---- */
.o-search__results {
	background: var(--c-warm-white, #faf7f0);
	color: var(--c-ink, #2b2e22);
	border: 1px solid var(--c-grey-100, #e9e0d3);
	border-radius: var(--r-24, 24px);
	box-shadow: var(--shadow-2, 0 8px 30px rgba(43,46,34,.14));
	padding: 14px 10px 10px;
	text-align: left;
	font-family: var(--f-body, 'Lato', system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.35;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	animation: vl-live-in .18s var(--ease, ease-out) both;
}
@keyframes vl-live-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o-search__results { animation: none; } }

/* Desktop header form: float the panel under the pill input */
@media (min-width: 992px) {
	.o-search { position: relative; }
	.o-search > .o-search__results {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		z-index: 120;
		width: 100%;
	}
	.o-search.is-open { border-color: var(--c-ink, #2b2e22); }
}

/* Mobile search panel (.o-searchbox is fixed at the top; results stack under the input row) */
.o-searchbox > .o-search__results {
	margin: 0 var(--gutter, 16px) 14px;
	max-height: calc(100vh - 92px);
	max-height: calc(100dvh - 92px);
}
.o-searchbox__form.is-live { position: relative; }

/* ---- Loading ---- */
.o-search.is-loading .o-search__go,
.o-searchbox__form.is-loading .o-iconbtn { position: relative; }
.o-search.is-loading .o-search__go::after,
.o-searchbox__form.is-loading .o-iconbtn::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: var(--r-full, 999px);
	border: 2px solid transparent;
	border-top-color: var(--c-olive, #656d55);
	animation: vl-live-spin .8s linear infinite;
}
.o-live__loading {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 18px 10px; color: var(--c-grey-500, #7c7666); font-size: 13px; letter-spacing: .04em;
}
.o-live__spinner {
	width: 18px; height: 18px; flex: 0 0 18px;
	border-radius: var(--r-full, 999px);
	border: 2px solid var(--c-beige-200, #d9ccb6);
	border-top-color: var(--c-olive, #656d55);
	animation: vl-live-spin .8s linear infinite;
}
@keyframes vl-live-spin { to { transform: rotate(360deg); } }

/* ---- Groups ---- */
.o-live__group + .o-live__group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-grey-100, #e9e0d3); }
.o-live__label {
	margin: 0 8px 8px;
	font: 700 11px/1 var(--f-body, 'Lato', sans-serif);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-grey-500, #7c7666);
}

/* Category chips */
.o-live__chips { list-style: none; margin: 0; padding: 0 6px 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.o-live__chip { min-height: 32px; padding: 0 14px; font-size: 12px; background: var(--c-beige-bg, #efe5d7); border-color: transparent; color: var(--c-ink, #2b2e22); }
.o-live__chip em { font-style: normal; font-weight: 400; color: var(--c-grey-500, #7c7666); font-size: 11px; }
.o-live__chip:hover, .o-live__chip:focus-visible { background: var(--c-olive, #656d55); color: var(--c-warm-white, #faf7f0); }
.o-live__chip:hover em, .o-live__chip:focus-visible em { color: inherit; opacity: .8; }

/* Product rows */
.o-live__list { list-style: none; margin: 0; padding: 0; }
.o-live__item {
	display: flex; align-items: center; gap: 12px;
	padding: 6px 8px;
	border-radius: var(--r-16, 16px);
	color: inherit; text-decoration: none;
	transition: background .15s var(--ease, ease);
}
.o-live__item:hover, .o-live__item:focus-visible { background: var(--c-beige-bg, #efe5d7); outline: none; }
.o-live__thumb {
	flex: 0 0 56px; width: 56px; height: 56px;
	border-radius: var(--r-12, 12px);
	background: var(--c-beige-bg, #efe5d7);
	overflow: hidden;
}
.o-live__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.o-live__meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.o-live__name {
	font-family: var(--f-display, 'Lora', Georgia, serif);
	font-weight: 600; font-size: 15px; line-height: 1.25;
	color: var(--c-ink, #2b2e22);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.o-live__price { font-size: 13px; font-weight: 700; color: var(--c-ink, #2b2e22); }
.o-live__price del { color: var(--c-grey-500, #7c7666); font-weight: 400; margin-right: 4px; }
.o-live__price ins { text-decoration: none; color: var(--c-accent, #656d55); }
.o-live__price .woocommerce-Price-currencySymbol { font-weight: 400; }
.o-live__oos { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-promo, #8a5a44); margin-left: 6px; }

/* Empty / error */
.o-live__empty { padding: 18px 12px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.o-live__empty strong { font-family: var(--f-display, 'Lora', Georgia, serif); font-weight: 600; font-size: 16px; color: var(--c-ink, #2b2e22); }
.o-live__empty span { font-size: 13px; color: var(--c-grey-500, #7c7666); }

/* "See all results" pill */
.o-live__all {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin: 12px 4px 2px;
	min-height: 42px; padding: 0 18px;
	border-radius: var(--r-full, 999px);
	background: var(--c-olive, #656d55);
	color: var(--c-warm-white, #faf7f0);
	font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none;
	transition: background .2s var(--ease, ease), transform .15s var(--ease, ease);
}
.o-live__all:hover, .o-live__all:focus-visible { background: var(--c-olive-600, #4b513e); color: var(--c-warm-white, #faf7f0); outline: none; }
.o-live__all:active { transform: scale(.985); }
.o-live__arrow { font-family: var(--f-body, 'Lato', sans-serif); transition: transform .2s var(--ease, ease); }
.o-live__all:hover .o-live__arrow { transform: translateX(3px); }

/* Scrollbar (WebKit) */
.o-search__results::-webkit-scrollbar { width: 8px; }
.o-search__results::-webkit-scrollbar-thumb { background: var(--c-beige-200, #d9ccb6); border-radius: var(--r-full, 999px); border: 2px solid var(--c-warm-white, #faf7f0); }
