/* CSF Mobile Bottom Bar — fixed, mobile-only, iOS safe-area aware. */
.csf-bbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: #ffffff;
  border-top: 1px solid #ececec;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.csf-bbar__i {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  color: #1d1d1f;
  position: relative;
  /* the Filters item is a <button> (JS-triggered, not a link) — reset native button chrome
     so it matches the anchor siblings; keeps the toolbar visually uniform. */
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.csf-bbar__i:hover { color: #000; }
.csf-ic {
  font-size: 20px;
  height: 20px;
  line-height: 1;
  width: 20px;
}
.csf-badge {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: #e8513a;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
/* Reserve space so the bar never covers content on mobile; hide entirely on desktop. */
body { padding-bottom: 64px; }
.csf-filter-scrim { display: none; }
@media (max-width: 1024px) {
  .csf-bbar__i--assistant { display: none; }
  body.csf-filter-panel-open { overflow: hidden; }
  body.csf-filter-panel-open .ct-sidebar.csf-filter-panel,
  body.csf-filter-panel-open aside[data-sidebar].csf-filter-panel,
  body.csf-filter-panel-open .woocommerce-sidebar.csf-filter-panel,
  body.csf-filter-panel-open .csf-filter-fallback.csf-filter-panel {
    background: #fff;
    display: block !important;
    inset: 0 auto 0 0;
    max-width: 390px;
    overflow-y: auto;
    padding: 28px 22px 90px;
    position: fixed;
    width: min(88vw, 390px);
    z-index: 10001;
  }
  .csf-filter-fallback h2 { margin: 0 0 20px; }
  .csf-filter-fallback__close {
    border: 0;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    min-height: 44px;
    min-width: 44px;
    position: absolute;
    right: 14px;
    top: 14px;
  }
  .csf-filter-fallback nav { display: grid; gap: 10px; }
  .csf-filter-fallback a { min-height: 44px; display: flex; align-items: center; }
  .csf-filter-scrim:not([hidden]) {
    background: rgba(0, 0, 0, 0.52);
    border: 0;
    display: block;
    inset: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    z-index: 10000;
  }
}
@media (max-width: 720px) {
  .csf-bbar__i--assistant { display: flex; }
}
@media (min-width: 1025px) {
  .csf-bbar { display: none; }
  body { padding-bottom: 0; }
}
