/* 产品筛选器美化 */
.custom-product-filter {
  color: #393939;
  font-family: inherit;
}
.cpf-section {
  margin-bottom: 40px;
}
.cpf-section strong {
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 18px;
}

/* 分类列表优化 */
.cpf-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cpf-cat-list li {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 400;
  position: relative;
}
.cpf-cat-list .cpf-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cpf-cat-list li > a {
  flex: 1 1 auto;
  color: #393939;
  text-decoration: none;
  border-bottom: none;
  font-weight: 400;
  padding-right: 8px;
}
.cpf-cat-list a.active {
  font-weight: bold;
  color: #222;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cpf-cat-list .cpf-cat-toggle {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #393939;
  background: #f3f3f3;
  border-radius: 50%;
  margin-left: 8px;
  margin-right: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.cpf-cat-toggle.open {
  background: #393939;
  color: #fff;
}
.cpf-cat-toggle:focus {
  outline: 2px solid #393939;
}
.cpf-cat-list ul {
  margin-left: 24px;
  border: none;
  padding-left: 0;
}

/* 价格滑轨美化 */
.cpf-price-slider {
  margin: 16px;
  height: 36px;
}
.ui-slider-horizontal {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  border: none;
}
.ui-slider-range {
  background: #393939;
  border-radius: 3px;
}
.ui-slider-handle {
  width: 32px;
  height: 32px;
  top: -13px;
  background: #393939;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
}
.ui-slider-handle:hover, .ui-slider-handle:focus {
  background: #222;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.ui-slider-horizontal .ui-slider-handle {
  margin-left: -16px;
  top: -6px;
}
.ui-slider {
  outline: none;
}
.cpf-price-inputs { display: none; }
.cpf-price-label {
  font-size: 16px;
  margin-top: 12px;
  color: #393939;
}

/* 状态筛选 */
.cpf-status label {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin-bottom: 18px;
  cursor: pointer;
}
.cpf-status input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  margin-right: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.cpf-status input[type="checkbox"]:checked {
  border: 7px solid #393939;
}

.cpf-actions {
  margin-top: 10px;
}
.cpf-clear {
  margin-left: 18px;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
}

/* 排序下拉菜单美化 */
.tooto-sort-form {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}
.tooto-sort-form label {
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 16px;
}
.tooto-sort-form select#tooto-sort-select[name="orderby"] {
    flex: 1;
  font-size: 1.1rem;
  padding: 6px 32px 6px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff url('data:image/svg+xml;utf8,<svg fill="%23393939" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/18px 18px;
  appearance: none;
  min-width: 180px;
  transition: border-color 0.2s;
  line-height: 1;
}
.tooto-sort-form select:focus,
.tooto-sort-form select:hover {
  border-color: #222;
  outline: none;
}
.tooto-sort-form option {
  font-weight: normal;
}
.tooto-sort-form option:checked {
  font-weight: bold;
}

/* 去除多余线条和缩进（已废弃，避免覆盖层级缩进） */
/* .cpf-cat-list ul, .cpf-cat-list li.cpf-cat-open > ul {
  border: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
} */ 

/* 移动端筛选按钮和弹窗 */
.tooto-filter-mobile-trigger {
  display: none;
  position: static;
  left: auto;
  bottom: auto;
  z-index: 1002;
  background: #393939;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px 10px 16px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.tooto-filter-icon {
  font-size: 1.3rem;
  margin-right: 6px;
}
.tooto-filter-mobile-sidebar {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 85vw; max-width: 340px;
  background: #fff;
  z-index: 1003;
  box-shadow: 2px 0 16px rgba(0,0,0,0.12);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 0 0 32px 0;
}
.tooto-filter-mobile-sidebar.open {
  display: block;
  transform: translateX(0);
}
.tooto-filter-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px 18px;
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
  font-weight: bold;
}
.tooto-filter-mobile-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #393939;
  cursor: pointer;
  margin-left: 12px;
}
.tooto-filter-mobile-mask {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1001;
  transition: opacity 0.2s;
}
.tooto-filter-mobile-mask.open {
  display: block;
}
body.tooto-filter-mobile-open {
  overflow: hidden;
  touch-action: none;
}
.tooto-filter-mobile-sidebar .custom-product-filter__form{
    padding: 20px;
}
/* 响应式：移动端显示按钮和弹窗，隐藏PC筛选器 */
@media (max-width: 900px) {
  .tooto-filter-desktop { display: none !important; }
  .tooto-filter-mobile-trigger { display: flex; }
  .tooto-filter-mobile-sidebar { display: block; }
}
@media (min-width: 901px) {
  .tooto-filter-mobile-trigger,
  .tooto-filter-mobile-sidebar,
  .tooto-filter-mobile-mask { display: none !important; }
  .tooto-filter-desktop { display: block !important; }
} 