/* Wrapper */
.wc-cat-filter {
  min-width: 300px;
  max-width: 100%;
  color: #1b1b1b;
}

/* Search (separate form that posts to /?s=&post_type=product) */
.filters-row .wc-cat-filter__search {
  margin-bottom: 10px;

}
.filters-row .wc-cat-filter__search input[type="search"] {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
}

/* Primary category button */
.wc-cat-filter__primary {
  position: relative;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  background: #EDEDED;
  padding: 12px 20px;
  margin: 6px 0;
  cursor: pointer;
  font-weight: 500;
}

/* Caret */
.wc-cat-filter__primary.sub_cat_true::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 20px;
  line-height: 1;
  opacity: 0.6;
}

.wc-cat-filter__primary:hover{
    background:#15aba9 !important;
     color: #fff;
}

.wc-cat-filter__group.is-open > .wc-cat-filter__primary {
  background: #15ABA8;
  color: #fff;
}
.wc-cat-filter__group.is-open > .wc-cat-filter__primary::after {
  opacity: 1;
  transform: translateY(-50%) rotate(90deg);
}

/* Subcategory list */
.wc-cat-filter__subs {
  padding: 8px 6px 4px 6px;
}

.wc-cat-filter__checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 14px;
}

.wc-cat-filter__checkbox:hover {
  background: #f5f5f5;
}

.wc-cat-filter__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #15ABA8;
    background: #15ABA8 !important;
    color: white !important;
    line-height: 20px;
    font-size: 11px;
    font-weight: 300;
    border-radius: 4px;
}

/* Apply */
.wc-cat-filter__apply {
  width: 100%;
}
.wc-cat-filter__apply:hover { opacity: 0.94; }





/* Mobile toggle hidden on desktop */
.wc-cat-filter__panel-head{
    display: none;;
}
.wc-cat-filter__toggle { display: none !important; width: 100%; margin: 0 0 12px; }

/* Drawer base */
.wc-cat-filter-drawer { position: relative; }           /* desktop fallback */
.wc-cat-filter__overlay { display: none; }
.wc-cat-filter--panel { max-height: none; }

/* Mobile drawer */
@media (max-width: 991px) {
    .filters-row .g-cols.cols_1-3{
            grid-template-columns: 1fr;
    }
  .wc-cat-filter__toggle { display: inline-block !important; }

  .wc-cat-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
  }
  .wc-cat-filter-drawer .wc-cat-filter__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity .25s ease;
  }
  .wc-cat-filter--panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(92vw, 360px);
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 18px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: auto;
  }
  .wc-cat-filter-drawer.is-active { pointer-events: auto; }
  .wc-cat-filter-drawer.is-active .wc-cat-filter__overlay { opacity: 1; }
  .wc-cat-filter-drawer.is-active .wc-cat-filter--panel { transform: translateX(0); }

  body.wc-filter-lock { overflow: hidden; touch-action: none; }

  /* Optional header bits for the panel */
  .wc-cat-filter__panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .wc-cat-filter__title { margin: 0; font-size: 16px; font-weight: 600; }
  .wc-cat-filter__close { border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
}
