/* Product Search — live results in header panel */
.pi-search-panel__results {
	margin-top: 20px;
	max-height: min(52vh, 480px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-top: 1px solid var(--pi-line, #e8dfcb);
	padding-top: 16px;
}

.pi-search-panel__results.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.pi-ps-section + .pi-ps-section {
	margin-top: 20px;
}

.pi-ps-section__title {
	margin: 0 0 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pi-gold-deep, #a8842f);
}

.pi-ps-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pi-ps-item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	text-decoration: none;
	color: var(--pi-ink, #0e0e0f);
	border-radius: 2px;
	transition: background 0.2s var(--pi-ease, ease), color 0.2s ease;
}

.pi-ps-item--cat {
	grid-template-columns: 1fr auto;
}

.pi-ps-item:hover,
.pi-ps-item.is-active,
.pi-ps-item:focus-visible {
	background: var(--pi-bg-warm, #f5f0e6);
	color: var(--pi-ink, #0e0e0f);
	outline: none;
}

.pi-ps-item__img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 2px;
	background: var(--pi-line, #e8dfcb);
}

.pi-ps-item__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pi-ps-item__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pi-ps-item__cat {
	font-size: 11px;
	color: var(--pi-muted, #6b6560);
}

.pi-ps-item__price {
	font-size: 13px;
	font-weight: 600;
	color: var(--pi-gold-deep, #a8842f);
	white-space: nowrap;
}

.pi-ps-item__price .woocommerce-Price-amount {
	color: inherit;
}

.pi-ps-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pi-ps-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pi-ink, #0e0e0f);
	text-decoration: none;
	border: 1px solid var(--pi-line, #e8dfcb);
	background: var(--pi-paper, #fff);
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pi-ps-chip:hover,
.pi-ps-chip.is-active,
.pi-ps-chip:focus-visible {
	border-color: var(--pi-gold, #c9a24a);
	color: var(--pi-gold-deep, #a8842f);
	background: var(--pi-bg-warm, #f5f0e6);
	outline: none;
}

.pi-ps-view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 12px 16px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pi-ink, #0e0e0f);
	border: 1px solid var(--pi-ink, #0e0e0f);
	transition: background 0.2s ease, color 0.2s ease;
}

.pi-ps-view-all:hover,
.pi-ps-view-all:focus-visible {
	background: var(--pi-ink, #0e0e0f);
	color: var(--pi-bg, #faf6ee);
	outline: none;
}

.pi-ps-status {
	margin: 0;
	padding: 12px 0;
	font-size: 13px;
	color: var(--pi-muted, #6b6560);
	text-align: center;
}

.pi-ps-status--error {
	color: #9a3b3b;
}

@media (max-width: 600px) {
	.pi-search-panel__results {
		max-height: min(45vh, 360px);
	}

	.pi-ps-item {
		grid-template-columns: 48px 1fr;
		grid-template-rows: auto auto;
	}

	.pi-ps-item__price {
		grid-column: 2;
		justify-self: start;
	}
}
