.store-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  padding-block: 30px 56px;
}
.store-sidebar {
  top: 112px;
  padding: 18px 20px 20px;
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.filter-panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dark);
}
.filter-panel-head h2 { font-size: 16px; }
.filter-group {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
}
.filter-group h3 {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-dark);
}
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list.scroll { max-height: 224px; overflow-y: auto; scrollbar-width: thin; }
.filter-list li[hidden] { display: none; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.filter-option span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.filter-option input {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--primary);
}
.filter-option-count { margin-left: auto; color: var(--text-muted); font-size: 12px; }
.filter-search-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}
.filter-search-input:focus, .price-filter input:focus {
  outline: 2px solid rgba(11, 77, 158, .15);
  border-color: var(--primary);
}
.price-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.price-filter label { font-size: 12px; color: var(--text-muted); }
.price-filter input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin-top: 5px;
  padding: 0 8px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  color: var(--text);
}
.price-apply, .clear-filters {
  min-height: 36px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.price-apply { grid-column: 1 / -1; }
.clear-filters { width: 100%; margin-top: 16px; }
.price-apply:hover, .clear-filters:hover { background: var(--bg-blue); border-color: var(--primary); }
.filter-error { margin: 8px 0 0; color: #b42318; font-size: 12px; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters[hidden] { display: none; }
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid #bdd3ec;
  border-radius: 6px;
  background: var(--bg-blue);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}
.active-filter-chip i { font-size: 10px; }
.active-filter-chip:hover { border-color: var(--primary); }
.active-filters-clear { min-height: 32px; padding: 4px 6px; font-size: 12px; color: var(--text-muted); text-decoration: underline; }
.store-toolbar {
  padding: 0;
  margin-bottom: 16px;
  background: transparent;
  border-radius: 0;
}
.store-toolbar .result-count { font-weight: 600; }
.store-filter-mask { display: none; }
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}
.filter-count[hidden] { display: none; }

@media (max-width: 900px) {
  .store-layout { display: block; padding-block: 20px 48px; }
  .store-sidebar {
    display: block;
    position: fixed;
    z-index: 160;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 86vw);
    height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
    overscroll-behavior: contain;
    box-shadow: 12px 0 32px rgba(20, 24, 31, .12);
  }
  .store-sidebar.open { transform: translateX(0); }
  .store-filter-mask.show {
    display: block;
    position: fixed;
    z-index: 150;
    inset: 0;
    background: rgba(20, 24, 31, .48);
  }
  html.store-filters-open, body.store-filters-open { overflow: hidden; }
  .mobile-filter-btn { display: inline-flex; }
}
@media (max-width: 575px) {
  .store-toolbar { flex-wrap: wrap; gap: 10px; }
  .store-toolbar .sort-wrap { min-width: 0; margin-left: auto; }
  .store-toolbar .sort-select { min-width: 0; max-width: 180px; }
  .active-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .active-filter-chip { flex: none; }
}
