/* Suggestions de recherche (assets/search.js) et page de résultats (compléments à collection.css). */
:root { --bp-s-ink: #1b1b2f; --bp-s-muted: #6b6b80; --bp-s-line: rgba(27, 27, 47, .14); --bp-s-accent: var(--bp-mega-bg, #384799); --bp-s-soft: #eceefc; --bp-s-radius: 16px; }

.bp-sg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10000; box-sizing: border-box; max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; color: var(--bp-s-ink); border: 1px solid var(--bp-s-line); border-radius: var(--bp-s-radius); box-shadow: 0 12px 32px rgba(27, 27, 47, .22);
	font-family: 'Nunito', system-ui, sans-serif; text-align: left; animation: bp-sg-in .14s ease-out; }
.bp-sg[hidden] { display: none; }
@keyframes bp-sg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bp-sg::-webkit-scrollbar { width: 6px; }
.bp-sg::-webkit-scrollbar-thumb { background: rgba(27, 27, 47, .2); border-radius: 999px; }
.bp-sg__group { padding-bottom: 4px; }
.bp-sg__group + .bp-sg__group { border-top: 1px solid var(--bp-s-line); }
.bp-sg__title { margin: 0; padding: 14px 18px 6px; color: var(--bp-s-muted); font: 700 11.5px/1.2 'Nunito', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bp-sg__item { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 18px; box-sizing: border-box; color: var(--bp-s-ink) !important; text-decoration: none !important; cursor: pointer; transition: background-color .12s ease; }
.bp-sg__item.is-active, .bp-sg__item:hover { background: var(--bp-s-soft); box-shadow: inset 3px 0 0 var(--bp-s-accent); }
.bp-sg__thumb { flex: none; width: 52px; height: 52px; border-radius: 8px; background: #f6f6f8; overflow: hidden; display: block; }
.bp-sg__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-sg__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-sg__name { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-sg__item.is-active .bp-sg__name { color: var(--bp-s-accent); }
.bp-sg__mark { background: transparent; color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(56, 71, 153, .35); text-underline-offset: 2px; }
.bp-sg__price { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; }
.bp-sg__from { color: var(--bp-s-muted); font-size: 12px; }
.bp-sg__now { font-weight: 700; }
.bp-sg__now.is-sale { color: #b91c1c; }
.bp-sg__was { color: var(--bp-s-muted); font-weight: 400; }
.bp-sg__cat { justify-content: space-between; min-height: 44px; }
.bp-sg__count { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #f0f0f5; color: var(--bp-s-muted); font-size: 12px; font-weight: 700; text-align: center; }
.bp-sg__foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--bp-s-line); }
.bp-sg__all { justify-content: center; gap: 8px; color: var(--bp-s-accent) !important; font-weight: 700; font-size: 14.5px; }
.bp-sg__arrow { font-weight: 400; }
.bp-sg__empty { padding: 22px 18px 8px; text-align: center; }
.bp-sg__empty-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.bp-sg__empty-hint { margin: 0; color: var(--bp-s-muted); font-size: 13px; }
.bp-sg__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-sg-loading .bp-sg { opacity: .7; }
@media (max-width: 749px) {
	.bp-sg--sheet { position: fixed; left: 8px; right: 8px; max-height: none; border-radius: 14px; box-shadow: 0 18px 40px rgba(27, 27, 47, .3); padding-bottom: env(safe-area-inset-bottom); }
	.bp-sg__item, .bp-sg__title { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .bp-sg { animation: none; } .bp-sg__item { transition: none; } }

/* ============ Page de résultats ============ */
.bp-search-page .template-search__header { padding-top: 8px; }
.bp-search-page .template-search__header .h2 { margin: 0 0 18px; font-family: 'Poppins', system-ui, sans-serif; font-size: 26px; font-weight: 700; color: var(--bp-s-ink); text-align: center; }
.bp-search-page .template-search__search { max-width: 640px; margin: 0 auto; }
.bp-search-page .template-search__search .field { position: relative; display: block; }
.bp-search-page .template-search__search .search__input { width: 100%; height: 48px; box-sizing: border-box; padding: 0 92px 0 46px; border: 1px solid var(--bp-s-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b80' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center / 20px; box-shadow: 0 2px 6px rgba(27, 27, 47, .08); color: var(--bp-s-ink); font: 400 16px 'Nunito', sans-serif; transition: box-shadow .18s ease, border-color .18s ease; }
.bp-search-page .template-search__search .search__input:focus { outline: none; border-color: var(--bp-s-accent); box-shadow: 0 0 0 3px rgba(56, 71, 153, .2); }
.bp-search-page .template-search__search .field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bp-search-page .template-search__search .field__button { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.bp-search-page .template-search__search .search__button { right: 5px; background: var(--bp-s-accent); color: #fff; }
.bp-search-page .template-search__search .search__button svg { width: 18px; height: 18px; }
.bp-search-page .template-search__search .reset__button { right: 48px; background: none; color: var(--bp-s-muted); }
.bp-search-page .template-search__search .reset__button svg { width: 14px; height: 14px; }
.bp-search-page .template-search__search .search__input:placeholder-shown ~ .reset__button { display: none; }
.bp-search-page .pp-search-pills { display: flex; justify-content: center; margin: 14px auto 4px; padding: 0 16px; }
.bp-search-page [data-pp-animal-select] summary { list-style: none; cursor: pointer; }
.bp-search-page [data-pp-animal-select] summary::-webkit-details-marker { display: none; }
.bp-search-empty { padding: 36px 16px 48px; text-align: center; grid-column: 1 / -1; }
.bp-search-empty__title { margin: 0 0 6px; font: 700 18px/1.3 'Poppins', sans-serif; color: var(--bp-s-ink); overflow-wrap: anywhere; }
.bp-search-empty__hint { margin: 0 0 18px; color: var(--bp-s-muted); font-size: 14px; }
.bp-search-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bp-search-empty__links .pp-type-chip { display: inline-flex; padding: 8px 16px; border: 1px solid var(--bp-s-line); border-radius: 999px; background: #fff; color: var(--bp-s-ink); font-weight: 600; text-decoration: none; }
.bp-search-empty__links .pp-type-chip:hover { border-color: var(--bp-s-accent); color: var(--bp-s-accent); }
@media (max-width: 749px) { .bp-search-page .template-search__header .h2 { font-size: 21px; } }
