/* Annuaire boutiques : recherche et cartes premium. Mobile uniquement.
   Feuille chargée après les styles globaux pour préserver le moteur Offres. */
@media (max-width:640px) {
  body.page-shell .boutiques-page {
    min-width:0!important;
    overflow-x:clip!important;
  }
  body.page-shell .boutiques-page > .boutique-searchbar {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin:0 0 19px!important;
    padding:0!important;
  }
  body.page-shell .boutiques-page > .boutique-searchbar > form {
    display:block!important;
    grid-template-columns:none!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  /* Three full-width rows; never push the category to a side column. */
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell,
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell:has(.explore-search-query:focus-within),
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell:has(.explore-search-query.has-value) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:repeat(3,minmax(54px,auto))!important;
    align-items:stretch!important;
    gap:0!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    box-sizing:border-box!important;
    border:1px solid var(--line)!important;
    border-radius:17px!important;
    padding:5px 12px!important;
    background:var(--surface)!important;
    box-shadow:0 7px 22px color-mix(in srgb,var(--text) 6%,transparent)!important;
    overflow:visible!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell > :is(.explore-search-query,.explore-search-category,.explore-search-location) {
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    position:relative!important;
    grid-column:1/-1!important;
    justify-self:stretch!important;
    align-self:stretch!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    min-height:54px!important;
    margin:0!important;
    box-sizing:border-box!important;
    border:0!important;
    border-radius:0!important;
    padding:0 10px!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--text)!important;
    text-align:left!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-query {
    grid-row:1!important;
    border-bottom:1px solid var(--line)!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-category {
    grid-row:2!important;
    border-bottom:1px solid var(--line)!important;
    cursor:pointer!important;
    appearance:none!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-location {
    grid-row:3!important;
    overflow:visible!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell > :is(label,button) > svg {
    display:block!important;
    flex:0 0 20px!important;
    width:20px!important;
    height:20px!important;
    color:var(--accent-text)!important;
    stroke:currentColor!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-query input,
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-location input {
    display:block!important;
    flex:1 1 auto!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:49px!important;
    min-height:49px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    outline:none!important;
    opacity:1!important;
    pointer-events:auto!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:550!important;
    color:var(--text)!important;
    letter-spacing:normal!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell input::placeholder {
    color:var(--muted)!important;
    opacity:1!important;
    font-size:13px!important;
    font-weight:450!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-category > span {
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:var(--text)!important;
    font-size:13px!important;
    font-weight:650!important;
    letter-spacing:normal!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-category > i {
    display:block!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
    color:var(--muted)!important;
    font-size:21px!important;
    font-style:normal!important;
  }
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell :is(.explore-search-query,.explore-search-location):focus-within {
    background:color-mix(in srgb,var(--accent) 5%,transparent)!important;
  }
  /* Sort + result count remain legible without cramping the filter fields. */
  body.page-shell .boutiques-page > .explore-results-row {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:wrap!important;
    min-height:42px!important;
    gap:8px 12px!important;
    margin:0 0 13px!important;
  }
  body.page-shell .boutiques-page .explore-results-meta {
    font-size:12px!important;
    color:var(--muted)!important;
  }
  body.page-shell .boutiques-page .explore-results-actions { gap:7px!important; }
  /* Empty results: compact, explanatory, without the oversized decoration. */
  body.page-shell .boutiques-page > .explore-empty-state.illustrated-empty-state {
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    justify-items:center!important;
    gap:12px!important;
    padding:25px 19px!important;
    min-height:0!important;
    border-radius:19px!important;
    background:var(--surface)!important;
    border:1px solid var(--line)!important;
  }
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-visual {
    width:76px!important;height:68px!important;min-height:0!important;
  }
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-card:not(.illustrated-empty-card-main),
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-visual>i {
    display:none!important;
  }
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-copy {
    text-align:center!important;justify-items:center!important;gap:9px!important;
  }
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-copy h2 {
    font-size:19px!important;line-height:1.2!important;
  }
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-copy p {
    font-size:12.5px!important;line-height:1.5!important;
  }
  body.page-shell .boutiques-page .explore-empty-state .illustrated-empty-copy a {
    min-height:40px!important;margin-top:5px!important;
    padding:0 17px!important;font-size:12px!important;
  }
  /* Cards: large cover, properly separated profile and content, one decisive CTA. */
  body.page-shell .boutiques-page > .boutiques-grid {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    max-width:none!important;
    width:100%!important;
    min-width:0!important;
    gap:18px!important;
    padding:0!important;
    margin:0!important;
  }
  body.page-shell .boutiques-page .boutique-card {
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    box-sizing:border-box!important;
    background:var(--surface)!important;
    border:1px solid var(--line)!important;
    border-radius:21px!important;
    overflow:hidden!important;
    box-shadow:0 9px 27px color-mix(in srgb,var(--text) 6%,transparent)!important;
    transform:none!important;
  }
  body.page-shell .boutiques-page .boutique-card-cover {
    display:block!important;
    height:161px!important;
    min-height:161px!important;
    margin:0!important;
    position:relative!important;
    background:color-mix(in srgb,var(--accent) 10%,var(--surface))!important;
    overflow:hidden!important;
  }
  body.page-shell .boutiques-page .boutique-card-cover > img {
    display:block!important;
    width:100%!important;height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  body.page-shell .boutiques-page .boutique-card-cover::after {
    display:block!important;
    background:linear-gradient(180deg,transparent 64%,rgba(0,0,0,.22))!important;
  }
  body.page-shell .boutiques-page .boutique-card-head {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:10px!important;
    position:relative!important;
    box-sizing:border-box!important;
    min-height:0!important;
    margin:-36px 0 0!important;
    padding:0 17px!important;
    z-index:2!important;
  }
  body.page-shell .boutiques-page .boutique-card-avatar {
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 70px!important;
    width:70px!important;height:70px!important;
    box-sizing:border-box!important;
    border:4px solid var(--surface)!important;
    border-radius:50%!important;
    overflow:hidden!important;
    background:var(--surface)!important;
    margin:0!important;
    box-shadow:0 5px 14px rgba(0,0,0,.15)!important;
    color:var(--text)!important;
    font-size:24px!important;
  }
  body.page-shell .boutiques-page .boutique-card-avatar img {
    display:block!important;
    width:100%!important;height:100%!important;
    object-fit:cover!important;border-radius:50%!important;
  }
  body.page-shell .boutiques-page .boutique-card-copy {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:4px!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  body.page-shell .boutiques-page .boutique-card-name {
    display:block!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:100%!important;
    color:var(--text)!important;
    font-size:19px!important;
    font-weight:850!important;
    line-height:1.18!important;
    letter-spacing:-.025em!important;
  }
  body.page-shell .boutiques-page .boutique-card-copy small {
    font-size:12px!important;
    color:var(--muted)!important;
    margin:0!important;
    display:flex!important;align-items:center!important;gap:5px!important;
  }
  body.page-shell .boutiques-page .boutique-card-copy small svg {
    width:14px!important;height:14px!important;
    color:var(--accent)!important;
    stroke:currentColor!important;
  }
  body.page-shell .boutiques-page .boutique-card-activity {
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    align-self:flex-start!important;
    box-sizing:border-box!important;
    min-height:29px!important;
    max-width:calc(100% - 34px)!important;
    margin:13px 17px 0!important;
    padding:5px 10px!important;
    border-radius:999px!important;
    border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line))!important;
    background:color-mix(in srgb,var(--accent) 9%,var(--surface))!important;
    color:var(--text)!important;
    font-size:11px!important;
    font-weight:750!important;
  }
  body.page-shell .boutiques-page .boutique-card-desc {
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:0!important;
    margin:12px 17px 0!important;
    padding:0!important;
    color:var(--muted)!important;
    font-size:12.5px!important;
    line-height:1.55!important;
    overflow-wrap:anywhere!important;
  }
  body.page-shell .boutiques-page .boutique-card-meta {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    box-sizing:border-box!important;
    width:calc(100% - 34px)!important;
    margin:16px 17px 0!important;
    padding:11px 0!important;
    border-top:1px solid var(--line)!important;
    color:var(--muted)!important;
  }
  body.page-shell .boutiques-page .boutique-card-rating small,
  body.page-shell .boutiques-page .boutique-card-offers{
    font-size:11px!important;
    font-weight:550!important;
    color:var(--muted)!important;
  }
  body.page-shell .boutiques-page .boutique-card-action {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    box-sizing:border-box!important;
    min-height:45px!important;
    margin:2px 17px 17px!important;
    border:1px solid var(--accent)!important;
    border-radius:13px!important;
    background:var(--accent)!important;
    color:var(--accent-contrast)!important;
    box-shadow:none!important;
    font-size:13px!important;
    font-weight:850!important;
    text-decoration:none!important;
    transition:filter .18s ease!important;
  }
  body.page-shell .boutiques-page .boutique-card-action::after {
    content:"→";display:inline-block;font-size:18px;line-height:1;
  }
  body.page-shell .boutiques-page .boutique-card-action:is(:hover,:focus-visible) {
    background:var(--accent)!important;
    color:var(--accent-contrast)!important;
    filter:brightness(.96)!important;
  }
  body.page-shell .boutiques-page .boutique-card-action:focus-visible,
  body.page-shell .boutiques-page .explore-search-category:focus-visible {
    outline:3px solid color-mix(in srgb,var(--accent) 44%,transparent)!important;
    outline-offset:3px!important;
  }
}
@media (max-width:359px) {
  body.page-shell .boutiques-page .boutique-searchbar .explore-search-shell{padding-left:6px!important;padding-right:6px!important}
  body.page-shell .boutiques-page .boutique-card-cover{height:145px!important;min-height:145px!important}
}
