/* Issue 1928 (switch shop.panels): the Sort and Filter panels, in the search panel's style (css/search-panel.css).
   Loaded only by views/category/_panels.php. Everything is scoped to .shp-root, .shp-tags, html.shp-lock or the white bar. */
html.shp-lock body { overflow: hidden !important; } /* the body carries the page's overflow: locking html instead sends the page back to the top */
.shp-root .shp, .shp-root .shp * { box-sizing: border-box; font-family: Montserrat, Arial, sans-serif; letter-spacing: normal; line-height: 1.35; text-transform: none; float: none; }
.shp-root [hidden] { display: none !important; }
.shp-scrim { position: fixed; inset: 0; z-index: 2000; background: rgba(20,23,26,.35); }
.shp-root .shp { position: fixed; z-index: 2001; overflow: auto; overscroll-behavior: contain; width: 360px; padding: 16px; background: #fff; color: #14171a; text-align: left; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,23,26,.18), 0 0 0 1px rgba(20,23,26,.08); }
.shp-root .shp--filter { width: 460px; }
.shp-root .shp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.shp-root .shp-k { margin: 0; padding: 0 0 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #5d646b; }
.shp-root .shp-head .shp-k { padding: 0; }
.shp-root .shp button { margin: 0; border: 0; background: transparent; color: #14171a; box-shadow: none; cursor: pointer; }
.shp-root .shp .shp-close { height: 32px; padding: 0 12px; border-radius: 8px; background: #efefef; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.shp-root .shp .shp-opt { display: block; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; }
.shp-root .shp .shp-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #14171a; }
.shp-root .shp-t { display: block; font-size: 14px; font-weight: 700; }
.shp-root .shp-s { display: block; font-size: 12px; color: #5d646b; }
.shp-root .shp-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.shp-root .shp-makers { max-height: 150px; overflow: auto; padding: 3px 3px 16px; }
.shp-root .shp .shp-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid rgba(26,26,26,.25); border-radius: 17px; font-size: 13px; font-weight: 700; }
.shp-root .shp .shp-pill i { font-style: normal; font-weight: 500; color: #5d646b; }
.shp-root .shp .shp-pill[aria-pressed="true"] { border-color: #14171a; background: #14171a; color: #fff; }
.shp-root .shp .shp-pill[aria-pressed="true"] i { color: #fff; }
.shp-root .shp-fields { display: flex; gap: 10px; padding-bottom: 16px; }
.shp-root .shp-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: 6px; height: 40px; margin: 0; padding: 0 12px; border: 1px solid rgba(26,26,26,.25); border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.shp-root .shp-field input { position: static; top: auto; margin: 0; padding: 0; flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: inherit; }
.shp-root .shp-field:focus-within { outline: 3px solid #1d7a3a; outline-offset: 2px; }
.shp-root .shp-name { width: 100%; height: 40px; margin-bottom: 8px; padding: 0 12px; border: 1px solid rgba(26,26,26,.25); border-radius: 8px; font-size: 16px; color: inherit; }
.shp-root .shp-foot { position: sticky; bottom: -16px; display: flex; align-items: center; gap: 12px; margin: 0 -16px -16px; padding: 12px 16px 16px; background: #fff; }
.shp-root .shp .shp-clear { font-size: 12px; font-weight: 700; text-decoration: underline; }
.shp-root .shp .shp-show { flex: 1; height: 44px; padding: 0 20px; border: 2px solid #14171a; border-radius: 8px; background: #14171a; color: #fff; font-size: 13px; font-weight: 700; }
.shp-root .shp .shp-show span { color: #fff; }
.shp-root .shp:focus { outline: 0; }
.shp-root .shp button:focus-visible, .shp-root .shp .shp-name:focus-visible { outline: 3px solid #1d7a3a; outline-offset: 2px; }

#shop-white-bar.swb-panels .swb-btns button:focus-visible { outline: 3px solid #1d7a3a; outline-offset: 2px; }
#shop-white-bar.swb-panels .swb-btns button[aria-expanded="true"] { background: #14171a; color: #fff; }

/* the chosen filters, moved under the bar */
ul.shp-tags.sfChips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 48px; list-style: none; background: #fff; }
.shp-tags li { margin: 0; padding: 8px 0; }
.shp-tags .sfChip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid rgba(26,26,26,.25); border-radius: 17px; background: #fff; color: #14171a; font: 700 13px Montserrat, Arial, sans-serif; cursor: pointer; }
.shp-tags .sfChip:focus-visible { outline: 3px solid #1d7a3a; outline-offset: 2px; }

@media (max-width: 1099px) {
    #shop-white-bar.swb-panels .swb-btns button[data-swb="sort"] { width: auto; padding: 0 10px; gap: 6px; }
    #shop-white-bar.swb-panels .swb-btns button[data-swb="sort"] span { display: inline; font-size: 11px; white-space: nowrap; }
}
@media (max-width: 767px) {
    .shp-root .shp, .shp-root .shp--filter { left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; max-height: 80dvh; border-radius: 16px 16px 0 0; }
    ul.shp-tags.sfChips { padding: 0 16px; }
}

/* the panels replace the old Price / Sort row: its 50px is not kept as an empty band */
#shopFilters .productGridWrap { padding-top: 12px; }
