:root {
  --sf-plum:       #4A1060;
  --sf-plum-light: #6B1F8A;
  --sf-plum-alpha: rgba(74,16,96,.08);
  --sf-accent:     #3bb78f;
  --sf-border:     #e5e5e5;
  --sf-text:       #333;
  --sf-muted:      #888;
  --sf-white:      #fff;
  --sf-bar-h:      52px;
  --sf-radius:     10px;
  --sf-shadow:     0 4px 24px rgba(0,0,0,.08);
  --sf-shadow-lg:  0 8px 40px rgba(0,0,0,.13);
}

.sf-filter-wrap {
  position: relative;
  margin-bottom: 0;
}

.sf-quick-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 14px;
  flex-wrap: wrap;
}

.sf-qc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sf-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sf-qc-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.sf-qc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--sf-white);
  border: 1.5px solid var(--sf-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-text);
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}

.sf-qc-chip:hover {
  border-color: var(--sf-plum);
  color: var(--sf-plum);
  box-shadow: 0 2px 8px rgba(74,16,96,.12);
  transform: translateY(-1px);
}

.sf-qc-chip.active {
  background: var(--sf-plum);
  border-color: var(--sf-plum);
  color: var(--sf-white);
  box-shadow: 0 4px 14px rgba(74,16,96,.3);
  transform: translateY(-1px);
}

.sf-sticky-sentinel {
  height: 0;
  pointer-events: none;
}

.sf-filter-bar {
  display: flex;
  align-items: stretch;
  background: var(--sf-white);
  border: 1.5px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  overflow: visible;
  min-height: var(--sf-bar-h);
  transition: box-shadow .2s;
}

.sf-filter-bar:focus-within {
  box-shadow: var(--sf-shadow-lg);
}

.sf-filter-bar.is-sticky {
  position: fixed;
  top: var(--sf-nav-h, 52px);
  left: 0;
  right: 0;
  z-index: 500;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
  animation: sfSlideDown .2s ease;
}

@keyframes sfSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

.sf-fb-cell {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  border-right: 1.5px solid var(--sf-border);
}

.sf-fb-cell:last-child { border-right: none; }

.sf-fb-search {
  display: flex;
  align-items: center;
  flex: 1.5 1 0;
  position: relative;
}

.sf-fb-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #bbb;
  pointer-events: none;
  transition: color .2s;
}

.sf-fb-search:focus-within .sf-fb-search-icon {
  color: var(--sf-plum);
}

.sf-filter-search-input {
  width: 100%;
  height: 100%;
  padding: 13px 40px 13px 44px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: var(--sf-text);
  font-family: inherit;
  outline: none;
}

.sf-filter-search-input::placeholder {
  color: #bbb;
}

.sf-fb-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: #eee;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s;
}

.sf-fb-search-clear:hover { background: #ddd; }
.sf-fb-search-clear svg { width: 10px; height: 10px; color: #666; }

.sf-fb-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 7px;
  transition: color .2s, background .15s;
}

.sf-fb-select:hover {
  color: var(--sf-text);
  background: rgba(0,0,0,.02);
}

.sf-filter-dropdown.open .sf-fb-select {
  color: var(--sf-plum);
  background: var(--sf-plum-alpha);
}

.sf-fb-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sf-fb-icon {
  width: 14px;
  height: 14px;
  color: #bbb;
  flex-shrink: 0;
}

.sf-fb-chev {
  width: 10px;
  height: 6px;
  color: #bbb;
  flex-shrink: 0;
  transition: transform .2s;
}

.sf-filter-dropdown.open .sf-fb-chev {
  transform: rotate(180deg);
  color: var(--sf-plum);
}

.sf-fb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--sf-plum);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  line-height: 1;
  flex-shrink: 0;
}

.sf-fb-select.has-selection {
  color: var(--sf-plum);
  font-weight: 600;
}

.sf-fb-accent { border-left: 3px solid var(--sf-accent); }

.sf-filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  min-width: 240px;
  background: var(--sf-white);
  border: 1.5px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow-lg);
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: sfDropIn .18s ease;
}

@keyframes sfDropIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sf-filter-dropdown.open .sf-filter-dropdown-panel {
  display: flex;
}

.sf-dd-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 6px;
  border-bottom: 1px solid #f0f0f0;
}

.sf-filter-dropdown-search {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid var(--sf-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--sf-text);
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}

.sf-filter-dropdown-search:focus {
  border-color: var(--sf-plum);
}

.sf-dd-select-all {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--sf-plum);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
  white-space: nowrap;
}

.sf-dd-select-all:hover { text-decoration: underline; }

.sf-fb-scroll {
  max-height: 250px;
  overflow-y: auto;
  padding: 5px 0;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.sf-fb-scroll::-webkit-scrollbar { width: 4px; }
.sf-fb-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.sf-filter-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 400;
  color: #444;
  cursor: pointer;
  font-family: inherit;
  transition: background .1s;
  gap: 10px;
  user-select: none;
}

.sf-filter-dropdown-item:hover { background: #f7f5fa; }
.sf-filter-dropdown-item.active,
.sf-filter-dropdown-item:has(.sf-dd-cb:checked) {
  background: #f0ebf6;
  color: var(--sf-plum);
  font-weight: 600;
}

.sf-dd-cb { display: none; }

.sf-dd-checkmark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s;
}

.sf-dd-cb:checked ~ .sf-dd-checkmark {
  background: var(--sf-plum);
  border-color: var(--sf-plum);
}

.sf-dd-cb:checked ~ .sf-dd-checkmark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.sf-dd-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-dd-count {
  font-size: 11px;
  color: #ccc;
  font-weight: 400;
  flex-shrink: 0;
}

.sf-dd-check {
  width: 12px;
  height: 10px;
  color: var(--sf-plum);
  flex-shrink: 0;
  margin-left: auto;
}

.sf-dd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid #f0f0f0;
  gap: 8px;
}

.sf-filter-dropdown-reset {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  padding: 6px 8px;
  font-family: inherit;
  transition: color .15s;
  border-radius: 6px;
}

.sf-filter-dropdown-reset:hover { color: var(--sf-plum); }

.sf-dd-apply {
  background: var(--sf-plum);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s;
}

.sf-dd-apply:hover {
  background: var(--sf-plum-light);
  transform: translateY(-1px);
}

.sf-fb-mobile-toggle {
  display: none;
  flex: 0 0 auto;
  min-width: 0;
}

.sf-mobile-filters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sf-plum);
  cursor: pointer;
  font-family: inherit;
}

.sf-mobile-filters-btn svg { width: 18px; height: 14px; }

.sf-mobile-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--sf-plum);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
}

.sf-filter-bar-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 0;
  flex-wrap: wrap;
}

.sf-filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.sf-filter-toggle input { display: none; }

.sf-filter-toggle-switch {
  width: 36px;
  height: 20px;
  background: #d8d8d8;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  transition: background .25s;
}

.sf-filter-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .25s;
}

.sf-filter-toggle input:checked ~ .sf-filter-toggle-switch { background: var(--sf-plum); }
.sf-filter-toggle input:checked ~ .sf-filter-toggle-switch::after { transform: translateX(16px); }

.sf-filter-toggle-label { font-size: 13px; font-weight: 500; color: #666; white-space: nowrap; }

.sf-filter-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.sf-filter-count {
  font-size: 12.5px;
  font-weight: 500;
  color: #aaa;
  white-space: nowrap;
}

.sf-filter-view { display: flex; gap: 4px; }

.sf-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 1.5px solid var(--sf-border);
  border-radius: 7px;
  color: #bbb;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.sf-view-btn:hover { border-color: #ccc; color: #666; }

.sf-view-btn.active {
  background: var(--sf-plum);
  border-color: var(--sf-plum);
  color: #fff;
}

.sf-view-btn svg { width: 15px; height: 15px; }

.sf-filter-active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.sf-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--sf-plum-alpha);
  border: 1px solid rgba(74,16,96,.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-plum);
  white-space: nowrap;
}

.sf-filter-tag button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: rgba(74,16,96,.4);
  padding: 0;
  line-height: 1;
  transition: color .15s;
}

.sf-filter-tag button:hover { color: var(--sf-plum); }

.sf-filter-clear {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--sf-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  white-space: nowrap;
  transition: color .15s;
}

.sf-filter-clear:hover { color: var(--sf-plum); }

.sf-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.sf-mobile-drawer.open {
  pointer-events: all;
  visibility: visible;
}

.sf-mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .28s;
  backdrop-filter: blur(2px);
}

.sf-mobile-drawer.open .sf-mobile-drawer-overlay {
  opacity: 1;
}

.sf-mobile-drawer-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.82,.35,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
}

.sf-mobile-drawer.open .sf-mobile-drawer-panel {
  transform: translateY(0);
}

.sf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.sf-drawer-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--sf-text);
  margin: 0;
}

.sf-drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-drawer-close svg { width: 12px; height: 12px; color: #666; }

.sf-drawer-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 0 8px;
  scrollbar-width: none;
}

.sf-drawer-body::-webkit-scrollbar { display: none; }

.sf-drawer-section {
  border-bottom: 1px solid #f5f5f5;
}

.sf-drawer-section-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  gap: 8px;
}

.sf-drawer-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--sf-plum);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
}

.sf-drawer-chev {
  width: 10px;
  height: 6px;
  margin-left: auto;
  color: #bbb;
  transition: transform .2s;
  flex-shrink: 0;
}

.sf-chev-open { transform: rotate(180deg); }

.sf-drawer-section-body {
  display: none;
  padding: 0 20px 14px;
}

.sf-drawer-section-body-open { display: block; }

.sf-drawer-search {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--sf-border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s;
}

.sf-drawer-search:focus { border-color: var(--sf-plum); }

.sf-drawer-items {
  max-height: 220px;
  overflow-y: auto;
  margin: 0 -4px;
}

.sf-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
  font-size: 13.5px;
  color: #444;
  border-bottom: 1px solid #fafafa;
  user-select: none;
  transition: color .15s;
}

.sf-drawer-item:last-child { border-bottom: none; }
.sf-drawer-item:has(.sf-drawer-cb:checked) { color: var(--sf-plum); font-weight: 600; }

.sf-drawer-cb { display: none; }

.sf-drawer-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s, background .15s;
}

.sf-drawer-cb:checked ~ .sf-drawer-checkmark {
  background: var(--sf-plum);
  border-color: var(--sf-plum);
}

.sf-drawer-cb:checked ~ .sf-drawer-checkmark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.sf-drawer-sort-options { display: flex; gap: 8px; flex-wrap: wrap; }

.sf-drawer-sort-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--sf-border);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, background .15s, color .15s;
}

.sf-drawer-sort-btn.active,
.sf-drawer-sort-btn:hover {
  border-color: var(--sf-plum);
  color: var(--sf-plum);
  background: var(--sf-plum-alpha);
}

.sf-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.sf-drawer-reset {
  flex: 1;
  padding: 13px;
  border: 1.5px solid var(--sf-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}

.sf-drawer-reset:hover { border-color: var(--sf-plum); color: var(--sf-plum); }

.sf-drawer-apply {
  flex: 2;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--sf-plum);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s;
}

.sf-drawer-apply:hover { background: var(--sf-plum-light); }

.sf-filter-loading {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.sf-filter-loading.visible { display: block; }

.sf-filter-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ede5f5;
  border-top-color: var(--sf-plum);
  border-radius: 50%;
  animation: sf-spin .75s linear infinite;
  margin: 0 auto 12px;
}

@keyframes sf-spin { to { transform: rotate(360deg); } }

.sf-filter-loading-text { font-size: 13px; color: #aaa; }

.sf-filter-empty {
  text-align: center;
  padding: 64px 20px;
  color: #aaa;
}

.sf-filter-empty-icon { font-size: 48px; margin-bottom: 14px; }
.sf-filter-empty h3 { font-size: 19px; font-weight: 800; color: #333; margin-bottom: 6px; }
.sf-filter-empty p { font-size: 14px; margin-bottom: 16px; }

.sf-filter-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 28px 0;
}

.sf-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--sf-white);
  border: 1.5px solid var(--sf-border);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}

.sf-page-btn:hover {
  background: var(--sf-plum-alpha);
  border-color: var(--sf-plum);
  color: var(--sf-plum);
}

.sf-page-current {
  background: var(--sf-plum);
  border-color: var(--sf-plum);
  color: #fff;
  cursor: default;
}

.sf-page-ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: #bbb; }

.sf-slots-grid.sf-view-list { grid-template-columns: 1fr; }

.sf-view-list .sf-slot-card {
  flex-direction: row;
  align-items: stretch;
}

.sf-view-list .sf-slot-thumb {
  width: 110px;
  min-height: 90px;
  height: auto;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
}

.sf-view-list .sf-slot-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.sf-view-list .sf-slot-name { min-width: 140px; }
.sf-view-list .sf-slot-provider { margin-bottom: 0; min-width: 100px; }
.sf-view-list .sf-slot-pills { margin-top: 0; margin-bottom: 0; }
.sf-view-list .sf-slot-btns { margin-top: 0; margin-left: auto; flex-shrink: 0; }
.sf-view-list .sf-slot-thumb-badge { top: 6px; left: 6px; }

@media (max-width: 900px) {
  
  .sf-fb-cell.sf-filter-dropdown[data-taxonomy],
  .sf-fb-cell.sf-filter-sort-dropdown {
    display: none;
  }

  .sf-fb-mobile-toggle { display: flex; }

  .sf-filter-bar {
    border-radius: 8px;
  }

  .sf-fb-search { flex: 1; }
}

@media (max-width: 640px) {
  .sf-quick-chips { gap: 8px; }

  .sf-filter-bar-sub { gap: 8px; }

  .sf-filter-count {
    font-size: 12px;
    color: var(--muted, #888);
  }

  .sf-view-list .sf-slot-card { flex-direction: column; }
  .sf-view-list .sf-slot-thumb { width: 100%; border-radius: 10px 10px 0 0; }
  .sf-view-list .sf-slot-body { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sf-view-list .sf-slot-btns { margin-left: 0; }
}

@keyframes sf-card-fadein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sf-ajax-card {
  animation: sf-card-fadein 0.4s ease both;
}

.sf-ajax-card:nth-child(1)  { animation-delay: 0.03s; }
.sf-ajax-card:nth-child(2)  { animation-delay: 0.06s; }
.sf-ajax-card:nth-child(3)  { animation-delay: 0.09s; }
.sf-ajax-card:nth-child(4)  { animation-delay: 0.12s; }
.sf-ajax-card:nth-child(5)  { animation-delay: 0.15s; }
.sf-ajax-card:nth-child(6)  { animation-delay: 0.18s; }
.sf-ajax-card:nth-child(7)  { animation-delay: 0.21s; }
.sf-ajax-card:nth-child(8)  { animation-delay: 0.24s; }
.sf-ajax-card:nth-child(9)  { animation-delay: 0.27s; }
.sf-ajax-card:nth-child(10) { animation-delay: 0.30s; }
.sf-ajax-card:nth-child(n/**/+11) { animation-delay: 0.32s; }

@media (max-width: 640px) {
  .sf-filter-search-input {
    font-size: 16px; /* prevent iOS auto-zoom on focus */
  }
}

@media (max-width: 480px) {
  .sf-filter-bar {
    flex-direction: column;
    border-radius: 8px;
  }
  .sf-fb-cell {
    border-right: none;
    border-bottom: 1.5px solid var(--sf-border);
  }
  .sf-fb-cell:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .sf-quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .sf-quick-chips::-webkit-scrollbar { display: none; }
  .sf-qc-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .sf-filter-dropdown-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: unset;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    z-index: 1000;
    animation: sfSlideUp .25s ease;
  }
  @keyframes sfSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .sf-fb-scroll {
    max-height: 50vh;
  }
}

.sf-filter-dropdown-item {
  min-height: 44px;
}
.sf-dd-apply {
  min-height: 44px;
}
.sf-mobile-filters-btn {
  min-height: 44px;
}

.sf-qc-chip.active {
  font-weight: 700;
}
