/**
 * Modale de recherche Meilisearch
 * @author Web Stratégies
 */
.searchws {
    --wsm-accent: #416f2e;
    --wsm-accent-light: #7dbe30;
    --wsm-text: #222;
    --wsm-muted: #6b6b6b;
    --wsm-border: #e4e4e4;
    --wsm-bg: #fff;
    --wsm-bg-soft: #f6f7f5;
    --wsm-radius: 8px;

    position: fixed;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 100000;
    display: none;
    color: var(--wsm-text);
    font-size: 14px;
    line-height: 1.4;
}
.searchws.is-open { display: block; }
html.searchws-open, html.searchws-open body { overflow: hidden; }

.searchws [hidden] { display: none !important; }
.searchws *, .searchws *::before, .searchws *::after { box-sizing: border-box; }
.searchws ul { list-style: none; margin: 0; padding: 0; }
.searchws button { font: inherit; cursor: pointer; }

.searchws__backdrop {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, .45);
}

.searchws__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(100% - 32px);
    max-width: 1200px;
    max-height: calc(100vh - 48px);
    margin: 24px auto 0;
    background: var(--wsm-bg);
    border-radius: var(--wsm-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

/* ---------- En-tête / champ ---------- */
.searchws__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--wsm-border);
}
.searchws__form {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0;
}
.searchws__icon {
    position: absolute;
    left: 14px;
    color: var(--wsm-muted);
    pointer-events: none;
}
.searchws__input,
.searchws__input[type="search"] {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border: 2px solid var(--wsm-border);
    border-radius: var(--wsm-radius);
    background: var(--wsm-bg);
    color: var(--wsm-text);
    font-size: 16px; /* évite le zoom iOS */
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s;
}
.searchws__input:focus { border-color: var(--wsm-accent); }
.searchws__input::-webkit-search-cancel-button { display: none; }
.searchws__clear {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--wsm-muted);
    font-size: 22px;
    line-height: 1;
}
.searchws__clear:hover { background: var(--wsm-bg-soft); }
.searchws__close {
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: var(--wsm-muted);
    text-decoration: underline;
    padding: 8px 4px;
}
.searchws__close:hover { color: var(--wsm-text); }

/* ---------- Corps ---------- */
.searchws__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}
.searchws.is-loading .searchws__results { opacity: .6; transition: opacity .15s .1s; }

.searchws__title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--wsm-muted);
}

/* ---------- Recherches populaires ---------- */
.searchws__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.searchws__chip {
    padding: 8px 14px;
    border: 1px solid var(--wsm-border);
    border-radius: 999px;
    background: var(--wsm-bg);
    color: var(--wsm-text);
    transition: border-color .15s, color .15s;
}
.searchws__chip:hover, .searchws__chip:focus { border-color: var(--wsm-accent); color: var(--wsm-accent); outline: none; }
.searchws__trending-group + .searchws__trending-group { margin-top: 22px; }
/* Recherches épinglées : mises en avant */
.searchws__chip--pinned { border-color: var(--wsm-accent); color: var(--wsm-accent); font-weight: 600; }
.searchws__chip--pinned:hover, .searchws__chip--pinned:focus { background: var(--wsm-accent); color: #fff; }

/* ---------- Layout résultats ---------- */
.searchws__results {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---------- Filtres ---------- */
/* Filtres : colonne fixe avec sa propre barre de défilement.
   Hauteur dispo = dialogue (100vh - 48px) - en-tête (~81px) - marges du corps (2 x 20px) */
.searchws__filters {
    position: sticky;
    top: 0;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--wsm-accent) var(--wsm-bg-soft);
}
/* Même barre de défilement pour les filtres et la zone produits (corps de la modale) */
.searchws__body {
    scrollbar-width: thin;
    scrollbar-color: var(--wsm-accent) var(--wsm-bg-soft);
}
.searchws__filters::-webkit-scrollbar,
.searchws__body::-webkit-scrollbar { width: 6px; }
.searchws__filters::-webkit-scrollbar-track,
.searchws__body::-webkit-scrollbar-track { background: var(--wsm-bg-soft); border-radius: 3px; }
.searchws__filters::-webkit-scrollbar-thumb,
.searchws__body::-webkit-scrollbar-thumb { background: var(--wsm-accent); border-radius: 3px; }
.searchws__filters::-webkit-scrollbar-thumb:hover,
.searchws__body::-webkit-scrollbar-thumb:hover { background: var(--wsm-accent-light); }
.searchws__filters-toggle { display: none; }
.searchws__facet { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--wsm-border); }
.searchws__facet-title { margin: 0 0 10px; font-weight: 700; }
.searchws__facet-list li + li { margin-top: 4px; }
.searchws__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 3px 0;
    font-weight: normal;
    cursor: pointer;
}
.searchws__check input { margin: 0; accent-color: var(--wsm-accent); }
.searchws__check-label { flex: 1; }
.searchws__check-count {
    min-width: 28px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--wsm-bg-soft);
    color: var(--wsm-muted);
    font-size: 12px;
    text-align: center;
}
.searchws__more, .searchws__reset {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wsm-accent);
    text-decoration: underline;
}

/* Double curseur de prix */
.searchws__range { position: relative; height: 28px; }
.searchws__range-track {
    position: absolute;
    top: 12px; left: 0; right: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--wsm-border);
}
.searchws__range-fill {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    border-radius: 2px;
    background: var(--wsm-accent);
}
.searchws__range-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.searchws__range-input:focus { outline: none; }
.searchws__range-input::-webkit-slider-runnable-track { background: none; border: 0; }
.searchws__range-input::-moz-range-track { background: none; border: 0; }
.searchws__range-input::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    margin-top: 0;
    border: 2px solid var(--wsm-accent);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.searchws__range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 16px; height: 16px;
    border: 2px solid var(--wsm-accent);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.searchws__range-input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(65, 111, 46, .3); }
.searchws__range-values { display: flex; justify-content: space-between; margin-top: 6px; font-weight: 600; }

/* ---------- Catégories ---------- */
.searchws__section + .searchws__section { margin-top: 24px; }
/* Toutes les cartes catégorie à la même hauteur (lignes de grille égales + carte étirée) */
.searchws__cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
}
.searchws__cats > li { display: flex; min-width: 0; }
.searchws__cat {
    flex: 1 1 auto;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--wsm-border);
    border-radius: var(--wsm-radius);
    color: var(--wsm-text);
    text-decoration: none;
    transition: border-color .15s;
}
.searchws__cat:hover, .searchws__cat:focus { border-color: var(--wsm-accent); color: var(--wsm-text); text-decoration: none; }
.searchws__cat img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.searchws__cat-text { flex: 1; min-width: 0; }
.searchws__cat-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}
.searchws__cat-path { display: block; color: var(--wsm-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchws__cat-count { color: var(--wsm-muted); font-size: 12px; }

/* ---------- Produits ---------- */
.searchws__products-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.searchws__count { font-weight: normal; }
.searchws__all { color: var(--wsm-accent); font-weight: 600; text-decoration: underline; }
.searchws__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}
.searchws__product {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--wsm-border);
    border-radius: var(--wsm-radius);
    transition: border-color .15s, box-shadow .15s;
}
.searchws__product:hover, .searchws__product:focus-within {
    border-color: var(--wsm-accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.searchws__product-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: var(--wsm-text);
    text-decoration: none;
}
.searchws__product-link:hover, .searchws__product-link:focus {
    color: var(--wsm-text);
    text-decoration: none;
    outline: none;
}

/* Bouton « Voir le produit » / « Ajouter au panier » */
.searchws a.searchws__btn,
.searchws button.searchws__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 38px;
    margin-top: 10px;
    padding: 8px 10px;
    border: 2px solid var(--wsm-accent);
    border-radius: 999px;
    background: var(--wsm-bg);
    color: var(--wsm-accent);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}
.searchws a.searchws__btn:hover, .searchws a.searchws__btn:focus,
.searchws button.searchws__btn:hover, .searchws button.searchws__btn:focus {
    background: var(--wsm-accent);
    color: #fff;
    text-decoration: none;
    outline: none;
}
.searchws button.searchws__btn--cart { background: var(--wsm-accent); color: #fff; }
.searchws button.searchws__btn--cart:hover, .searchws button.searchws__btn--cart:focus { background: var(--wsm-accent-light); border-color: var(--wsm-accent-light); }
.searchws button.searchws__btn--cart[disabled] { opacity: .7; cursor: wait; }
.searchws button.searchws__btn--cart.is-added { background: var(--wsm-accent-light); border-color: var(--wsm-accent-light); cursor: default; }
.searchws__cart-msg { margin: 6px 0 0; font-size: 12px; text-align: center; }
.searchws__cart-msg.is-error { color: #c0392b; }
.searchws__cart-msg a { color: var(--wsm-accent); text-decoration: underline; }
.searchws__product-img {
    display: block;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    background: var(--wsm-bg-soft);
    border-radius: 4px;
    overflow: hidden;
}
.searchws__product-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.searchws__product-img { position: relative; }

/* Pastille promo « -40% » (style du thème, en vert) */
.searchws__badge-promo {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wsm-accent-light);
    color: #fff;
    font-family: 'Open Sans Condensed', Tahoma, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1;
    pointer-events: none;
}
.searchws__product-cat {
    display: block;
    margin-bottom: 3px;
    color: var(--wsm-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.searchws__product-name {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.searchws__product.is-oos .searchws__product-img { opacity: .6; }
.searchws mark { background: rgba(125, 190, 48, .3); color: inherit; padding: 0; }

.searchws__price { display: block; }
.searchws__price-prefix, .searchws__price-suffix { color: var(--wsm-muted); font-size: 12px; }
.searchws__price-value { color: var(--wsm-accent); font-size: 17px; }
.searchws__price-old { color: var(--wsm-muted); font-size: 12px; }

/* ---------- États ---------- */
.searchws__empty, .searchws__error { padding: 32px 0; text-align: center; }
.searchws__empty-hint { color: var(--wsm-muted); }
/* Recherches sans résultat personnalisées (Pertinence) */
.searchws__nr-block { margin-top: 24px; text-align: left; }
.searchws__nr-block .searchws__chips { justify-content: center; }
.searchws__nr-block .searchws__title { text-align: center; }
.searchws__broadened { margin: 0 0 14px; padding: 10px 14px; background: var(--wsm-bg-soft); border-left: 3px solid var(--wsm-accent-light); border-radius: 4px; }
.searchws__error a { color: var(--wsm-accent); text-decoration: underline; }

/* ---------- Mobile / tablette ---------- */
@media (max-width: 991px) {
    .searchws__results { grid-template-columns: 1fr; gap: 16px; }
    .searchws__filters { position: static; max-height: none; overflow: visible; padding-right: 0; }
    /* Filtres dépliés : zone limitée avec son propre défilement */
    .searchws__filters.is-expanded .searchws__filters-inner {
        max-height: 55vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 10px;
        scrollbar-width: thin;
        scrollbar-color: var(--wsm-accent) var(--wsm-bg-soft);
    }
    .searchws__filters-inner::-webkit-scrollbar { width: 6px; }
    .searchws__filters-inner::-webkit-scrollbar-track { background: var(--wsm-bg-soft); border-radius: 3px; }
    .searchws__filters-inner::-webkit-scrollbar-thumb { background: var(--wsm-accent); border-radius: 3px; }
    .searchws__filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border: 1px solid var(--wsm-border);
        border-radius: 999px;
        background: var(--wsm-bg);
        color: var(--wsm-text);
    }
    .searchws__filters-inner { display: none; margin-top: 12px; }
    .searchws__filters.is-expanded .searchws__filters-inner { display: block; }
}

@media (max-width: 767px) {
    .searchws__dialog {
        width: 100%;
        max-height: none;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }
    .searchws__head { padding: 12px 16px; }
    .searchws__body { padding: 16px; }
    .searchws__products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .searchws__cats { grid-template-columns: 1fr; }
    .searchws__price-value { font-size: 15px; }
}

/* ---------- Assistant conversationnel ---------- */
.searchws__mode {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 2px solid var(--wsm-accent);
    border-radius: 999px;
    background: var(--wsm-bg);
    color: var(--wsm-accent);
    font-weight: 700;
    white-space: nowrap;
}
.searchws__mode:hover, .searchws__mode:focus { background: var(--wsm-accent); color: #fff; outline: none; }
.searchws__mode-search { display: none; }
.searchws.is-chat .searchws__mode-chat { display: none; }
.searchws.is-chat .searchws__mode-search { display: inline; }
.searchws__chat-title { display: none; flex: 1; margin: 0; font-size: 18px; font-weight: 700; }

/* Bascule recherche / assistant */
.searchws__chat { display: none; }
.searchws.is-chat .searchws__chat { display: block; max-width: 860px; margin: 0 auto; }
.searchws.is-chat .searchws__form,
.searchws.is-chat .searchws__trending,
.searchws.is-chat .searchws__results,
.searchws.is-chat .searchws__error { display: none !important; }
.searchws.is-chat .searchws__chat-title { display: block; }

.searchws__msg { display: flex; flex-direction: column; margin: 0 0 14px; }
.searchws__msg-text { max-width: 85%; padding: 12px 16px; border-radius: 14px; line-height: 1.6; }
.searchws__msg-text p { margin: 0 0 12px; }
.searchws__msg-text p:last-child { margin-bottom: 0; }
.searchws__msg-text strong { font-weight: 700; }
.searchws .searchws__msg-text a.searchws__msg-link {
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    color: var(--wsm-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.searchws .searchws__msg-text a.searchws__msg-link:hover { text-decoration: none; }
.searchws .searchws__msg-text ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.searchws .searchws__msg-text ul:last-child { margin-bottom: 0; }
.searchws .searchws__msg-text li { margin: 0 0 4px; }
.searchws__msg--user { align-items: flex-end; }
.searchws__msg--user .searchws__msg-text { background: var(--wsm-accent); color: #fff; border-bottom-right-radius: 4px; }
.searchws__msg--bot .searchws__msg-text { background: var(--wsm-bg-soft); border-bottom-left-radius: 4px; }
.searchws__msg-status { margin: 0 0 6px; color: var(--wsm-muted); font-size: 12px; }
.searchws__msg-error { margin: 6px 0 0; color: #c0392b; }
/* Sélecteur renforcé : « .searchws ul { margin: 0 } » est plus spécifique qu'une classe seule */
.searchws .searchws__msg ul.searchws__msg-products {
    width: 100%;
    margin: 22px 0 10px;
    padding: 0;
    list-style: none;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.searchws .searchws__msg ul.searchws__msg-suggest { margin-top: 16px; }
.searchws__msg--bot { margin-bottom: 26px; }
.searchws__typing { display: inline-flex; gap: 4px; }
.searchws__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wsm-muted); animation: searchws-dot 1.2s infinite ease-in-out; }
.searchws__typing i:nth-child(2) { animation-delay: .15s; }
.searchws__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes searchws-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.searchws__chat-examples { margin: 4px 0 14px; }
/* Propositions de relance, sous les fiches produits de la dernière réponse */
.searchws__msg-suggest { margin-top: 12px; }
.searchws__msg-suggest .searchws__chip { border-color: var(--wsm-accent); color: var(--wsm-accent); font-weight: 600; }
.searchws__msg-suggest .searchws__chip:hover, .searchws__msg-suggest .searchws__chip:focus { background: var(--wsm-accent); color: #fff; }
/* Pas de marge basse dans la zone de défilement : sinon le contenu reste visible sous le champ collé en bas */
.searchws.is-chat .searchws__body { padding-bottom: 0; }
.searchws__chat-form {
    position: sticky;
    bottom: 0;
    z-index: 5; /* au-dessus des fiches (badges, images positionnées) */
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin: 0 -20px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--wsm-border);
    background: var(--wsm-bg);
}
.searchws__chat-input {
    flex: 1;
    min-height: 48px;
    max-height: 140px;
    padding: 12px 14px;
    border: 2px solid var(--wsm-border);
    border-radius: var(--wsm-radius);
    font: inherit;
    font-size: 16px;
    resize: vertical;
    outline: none;
}
.searchws__chat-input:focus { border-color: var(--wsm-accent); }
.searchws__chat-send {
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--wsm-radius);
    background: var(--wsm-accent);
    color: #fff;
    font-weight: 700;
}
.searchws__chat-send[disabled] { opacity: .6; cursor: wait; }
.searchws__chat-note { margin: 6px 0 0; padding-bottom: 14px; color: var(--wsm-muted); font-size: 12px; }
.searchws__chat-reset { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--wsm-accent); text-decoration: underline; }

@media (max-width: 767px) {
    .searchws__mode { padding: 7px 10px; font-size: 13px; }
    .searchws__mode-chat, .searchws__mode-search { font-size: 0; }
    .searchws__mode-chat i, .searchws__mode-search i { font-size: 16px; }
    .searchws__msg-text { max-width: 100%; }
    .searchws__chat-form { margin: 0 -16px; padding: 10px 16px 12px; }
    .searchws .searchws__msg ul.searchws__msg-products { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
}

/* =====================================================================
 * Page de recherche Meilisearch (search.tpl)
 * ===================================================================== */
.searchws-page {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}
.searchws-page--nofilters { grid-template-columns: minmax(0, 1fr); }
.searchws-page__filters { font-size: 14px; }
.searchws-page__summary {
    display: none;
    font-weight: 700;
    cursor: pointer;
}
.searchws-page__facet {
    margin: 0 0 20px;
    padding: 0 0 20px;
    border-bottom: 1px solid #e4e4e4;
}
.searchws-page__facet-title { margin: 0 0 10px; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.searchws-page__facet-list { list-style: none; margin: 0; padding: 0; }
.searchws-page__facet-list li.searchws-page__facet-more { display: none; }
.searchws-page__check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #222;
    text-decoration: none;
}
.searchws-page__check:hover, .searchws-page__check:focus { color: #416f2e; text-decoration: none; }
.searchws-page__box {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 2px solid #b5b5b5;
    border-radius: 3px;
    background: #fff;
}
.searchws-page__check.is-checked .searchws-page__box {
    border-color: #416f2e;
    background: #416f2e;
    box-shadow: inset 0 0 0 2px #fff;
}
.searchws-page__check.is-checked .searchws-page__check-label { font-weight: 700; }
.searchws-page__check-label { flex: 1; }
.searchws-page__check-count {
    min-width: 28px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #f6f7f5;
    color: #6b6b6b;
    font-size: 12px;
    text-align: center;
}
.searchws-page__more, .searchws-page__reset a, .searchws-page__reset-price {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #416f2e;
    text-decoration: underline;
}
.searchws-page__reset { margin: 0 0 16px; }
.searchws-page__price-inputs { display: flex; gap: 10px; margin-bottom: 8px; }
.searchws-page__price-inputs label { flex: 1; margin: 0; font-weight: normal; }
.searchws-page__price-inputs span { display: block; font-size: 12px; color: #6b6b6b; }
.searchws-page__price-inputs input {
    width: 100%;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
}
.searchws-page__price-note { margin: 0 0 10px; font-size: 12px; color: #6b6b6b; }
.searchws-page__reset-price { display: inline-block; margin-left: 10px; }

.searchws-page__cats { margin: 0 0 20px; }
.searchws-page__cats-title { margin: 0 0 8px; font-weight: 700; }
.searchws-page__cats ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.searchws-page__cats a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    color: #222;
    text-decoration: none;
}
.searchws-page__cats a:hover, .searchws-page__cats a:focus { border-color: #416f2e; color: #416f2e; text-decoration: none; }
.searchws-page__cats small { color: #6b6b6b; }

/* Recherches sans résultat / recherche élargie (page) */
.searchws-noresult { margin: 10px 0 30px; }
.searchws-noresult__message { color: #6b6b6b; }
.searchws-noresult__label { margin: 16px 0 8px; font-weight: 700; }
.searchws-noresult__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.searchws-noresult__chips a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    color: #222;
    text-decoration: none;
}
.searchws-noresult__chips a:hover, .searchws-noresult__chips a:focus { border-color: #416f2e; color: #416f2e; text-decoration: none; }
.searchws-noresult__title { margin: 20px 0 12px; font-weight: 700; }
.searchws-broadened { margin: 0 0 12px; padding: 10px 14px; background: #f6f7f5; border-left: 3px solid #7dbe30; }

@media (max-width: 991px) {
    .searchws-page { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .searchws-page__details { padding: 10px 14px; border: 1px solid #e4e4e4; border-radius: 6px; }
    .searchws-page__summary { display: list-item; }
    .searchws-page__details[open] .searchws-page__summary { margin-bottom: 12px; }
}

/* ---------- Scroll infini ---------- */
.searchws__sentinel {
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding: 16px 0;
}
.searchws__sentinel[hidden] { display: none; }
.searchws__spinner {
    display: none;
    width: 26px;
    height: 26px;
    border: 3px solid var(--wsm-border);
    border-top-color: var(--wsm-accent);
    border-radius: 50%;
    animation: searchws-spin .7s linear infinite;
}
.searchws__sentinel.is-loading .searchws__spinner { display: block; }
@keyframes searchws-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .searchws__spinner { animation-duration: 2s; }
}
