/* Polignac Ricerca – usa le variabili del tema quando ci sono. */
.pgr-host { position: relative; }
.ct-search-results { display: none !important; }

.pgr-suggest {
	position: absolute; z-index: 9999; top: calc(100% + 6px); left: 0; right: 0;
	background: var(--pgs-white, #fff); border: 1px solid var(--pgs-line, #e4e0da); border-radius: 2px;
	max-height: min(70vh, 560px); overflow-y: auto; padding: 6px 0; text-align: left;
	font: 400 14px/1.4 var(--pgs-sans, system-ui, sans-serif); color: var(--pgs-text, #333);
}
.pgr-suggest[hidden] { display: none; }
.pgr-suggest.is-loading { opacity: .7; }
.pgr-s-sec { padding: 8px 14px; border-bottom: 1px solid var(--pgs-line, #e4e0da); }
.pgr-s-sec:last-of-type { border-bottom: 0; }
.pgr-s-h { margin: 0 0 6px !important; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pgs-muted, #777); }
.pgr-s-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pgr-s-tag { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--pgs-line, #e4e0da); border-radius: 2px; color: var(--pgs-ink, #111) !important; text-decoration: none !important; background: var(--pgs-paper, #fbfaf8); }
.pgr-s-tag span { color: var(--pgs-muted, #777); font-size: 12px; }
.pgr-s-tag:hover, .pgr-s-tag.is-active { border-color: var(--pgs-ink, #111); }
.pgr-s-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.pgr-s-prod { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 6px 4px; color: var(--pgs-ink, #111) !important; text-decoration: none !important; border-radius: 2px; }
.pgr-s-prod img, .pgr-s-ph { width: 48px; height: 48px; object-fit: cover; background: var(--pgs-stone, #f5f3ef); display: block; }
.pgr-s-prod:hover, .pgr-s-prod.is-active { background: var(--pgs-stone, #f5f3ef); }
.pgr-s-name { font-size: 14px; line-height: 1.35; }
.pgr-s-name mark { background: none; color: inherit; font-weight: 600; padding: 0; }
.pgr-s-name em { font-style: normal; font-size: 12px; color: var(--pgs-alert, #8a3b2e); }
.pgr-s-price { font-weight: 600; white-space: nowrap; }
.pgr-s-all { display: block; margin: 6px 14px 4px; padding: 11px 14px; text-align: center; background: var(--pgs-ink, #111); color: #fff !important; text-decoration: none !important; border-radius: 2px; font-weight: 500; }
.pgr-s-all:hover, .pgr-s-all.is-active { background: var(--pgs-ink-2, #333); }
.pgr-s-note { margin: 4px 14px 8px !important; color: var(--pgs-muted, #777); }
.pgr-s-note a { color: var(--pgs-ink, #111); }

/* Barra filtri */
.pgr-bar { margin: 0 0 24px; display: grid; gap: 14px; width: 100%; }
.pgr-note { margin: 0 !important; padding: 12px 16px; border: 1px solid var(--pgs-line, #e4e0da); background: var(--pgs-paper, #fbfaf8); border-radius: 2px; }
.pgr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pgr-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--pgs-line, #e4e0da); border-radius: 2px; background: var(--pgs-white, #fff); color: var(--pgs-ink, #111) !important; text-decoration: none !important; font-size: 14px; }
.pgr-chip span { color: var(--pgs-muted, #777); font-size: 12px; }
.pgr-chip:hover { border-color: var(--pgs-ink, #111); }
.pgr-chip.is-on { background: var(--pgs-ink, #111); border-color: var(--pgs-ink, #111); color: #fff !important; }
.pgr-chip.is-on span { color: rgba(255,255,255,.7); }
.pgr-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 14px 16px; border: 1px solid var(--pgs-line, #e4e0da); background: var(--pgs-paper, #fbfaf8); border-radius: 2px; margin: 0; }
.pgr-f { display: grid; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pgs-muted, #777); }
.pgr-f select, .pgr-f input[type="number"] { height: 40px !important; min-height: 40px !important; padding: 0 10px !important; font: 400 14px var(--pgs-sans, system-ui, sans-serif) !important; text-transform: none; letter-spacing: 0; color: var(--pgs-ink, #111); border: 1px solid var(--pgs-line, #e4e0da) !important; border-radius: 2px !important; background: #fff; }
.pgr-f select { min-width: 150px; max-width: 220px; }
.pgr-f--price { grid-template-columns: 76px 76px; }
.pgr-f--price span { grid-column: 1 / -1; }
.pgr-f--check { display: flex; align-items: center; gap: 8px; height: 40px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--pgs-ink, #111); }
.pgr-f--check input { width: 18px; height: 18px; margin: 0; }
.pgr-go { height: 40px; min-height: 40px !important; padding: 0 20px !important; background: var(--pgs-ink, #111); color: #fff; border: 0; border-radius: 2px; cursor: pointer; font: 500 14px var(--pgs-sans, system-ui, sans-serif); }
.pgr-reset { align-self: center; font-size: 14px; color: var(--pgs-ink, #111); }
.pgr-empty { padding: 20px; border: 1px solid var(--pgs-line, #e4e0da); border-radius: 2px; }
.pgr-empty p { margin: 0 0 12px !important; }

@media (max-width: 689px) {
	.pgr-filters { padding: 12px; }
	.pgr-f { flex: 1 1 calc(50% - 8px); }
	.pgr-f select { min-width: 0; max-width: none; width: 100%; }
	.pgr-f--price { grid-template-columns: 1fr 1fr; }
	.pgr-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.pgr-chip { flex: 0 0 auto; }
	.pgr-s-prod { grid-template-columns: 40px 1fr; }
	.pgr-s-prod img, .pgr-s-ph { width: 40px; height: 40px; }
	.pgr-s-price { grid-column: 2; font-size: 13px; }
}
