/* Product search bar — separate namespace (.ppl-search-*) so nothing here
   can affect the Product Loop, Shop Card, or Compare widgets. */

.ppl-search-wrap {
	position: relative;
	width: 100%;
	max-width: 420px;
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.ppl-search-wrap * {
	box-sizing: border-box;
}

.ppl-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #d8dce3;
	border-radius: 30px;
	padding: 10px 18px;
	transition: border-color 0.15s ease;
}
.ppl-search-box:focus-within {
	border-color: #0b2e59;
}

.ppl-search-icon {
	flex-shrink: 0;
	color: #5a7ba6;
}

.ppl-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: #0b1220;
}
.ppl-search-input::placeholder {
	color: #7c8698;
}

/* ---------- Dropdown results ---------- */
.ppl-search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #d8dce3;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(11, 18, 32, 0.12);
	max-height: 360px;
	overflow-y: auto;
	z-index: 40;
}
.ppl-search-results[hidden] {
	display: none;
}

.ppl-search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.ppl-search-item:hover,
.ppl-search-item.is-active {
	background: #f2f3f5;
}
.ppl-search-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: #f2f3f5;
	border-radius: 8px;
	flex-shrink: 0;
}
.ppl-search-item-name {
	font-size: 14px;
	font-weight: 500;
	color: #0b1220;
}
.ppl-search-item-price {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: #0b2e59;
	white-space: nowrap;
}
.ppl-search-item-price * {
	color: inherit !important;
}

.ppl-search-empty {
	padding: 14px;
	font-size: 13px;
	color: #7c8698;
	text-align: center;
}
