/* Mitsoli real catalogue filters v1.3.0 */
/* Old demo filter is intentionally hidden; v1.3 reads real Renk/Beden product options. */
.sidebarFilter { display: none !important; }

#product-category .mitsoli-catalog-tools {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 14px;
}
#product-category .mitsoli-catalog-search {
  position: relative; flex: 1 1 440px; max-width: 620px;
}
#product-category .mitsoli-catalog-search > .fa-search {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #777; pointer-events: none;
}
#product-category #mitsoli-catalog-query {
  width: 100%; height: 46px; padding: 0 42px 0 40px; border: 1px solid #dedede; border-radius: 3px; background: #fff; font-size: 14px;
}
#product-category #mitsoli-catalog-query:focus { outline: 0; border-color: #b98980; box-shadow: 0 0 0 2px rgba(185,137,128,.12); }
#product-category .mitsoli-query-clear {
  position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; background: transparent; color: #777;
}
#product-category .mitsoli-filter-toggle {
  min-height: 46px; padding: 0 18px; border: 1px solid #d5d5d5; background: #fff; font-weight: 600; white-space: nowrap;
}
#product-category .mitsoli-filter-toggle .fa { margin-right: 7px; }
#product-category .mitsoli-filter-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; margin-left: 7px; padding: 0 6px; border-radius: 11px; background: #111; color: #fff; font-size: 11px;
}
#product-category .mitsoli-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -3px 0 14px; }
#product-category .mitsoli-filter-chip {
  border: 1px solid #e0d7d4; background: #faf7f6; padding: 6px 9px; border-radius: 18px; font-size: 12px; color: #333;
}
#product-category .mitsoli-filter-chip .fa { margin-left: 5px; font-size: 10px; }
#product-category .mitsoli-clear-filters { border: 0; background: transparent; text-decoration: underline; color: #555; font-size: 12px; padding: 6px 4px; }

#product-category .mitsoli-filter-panel {
  display: none; margin: 0 0 18px; border: 1px solid #e6e6e6; background: #fff;
}
#product-category .mitsoli-filter-panel.is-open { display: block; }
#product-category .mitsoli-filter-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #eee; }
#product-category .mitsoli-filter-panel-head strong { font-size: 16px; }
#product-category .mitsoli-filter-close { border: 0; background: transparent; width: 36px; height: 36px; font-size: 18px; }
#product-category .mitsoli-filter-panel-body { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 16px; }
#product-category .mitsoli-filter-section h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
#product-category .mitsoli-filter-options { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px 12px; max-height: 230px; overflow: auto; padding-right: 5px; }
#product-category .mitsoli-filter-option { display: flex; align-items: center; min-height: 31px; margin: 0; cursor: pointer; font-weight: 400; }
#product-category .mitsoli-filter-option input { position: absolute; opacity: 0; pointer-events: none; }
#product-category .mitsoli-check-ui { width: 17px; height: 17px; border: 1px solid #bbb; margin-right: 7px; flex: 0 0 17px; position: relative; }
#product-category .mitsoli-filter-option input:checked + .mitsoli-check-ui { background: #111; border-color: #111; }
#product-category .mitsoli-filter-option input:checked + .mitsoli-check-ui:after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 12px; line-height: 15px; text-align: center; }
#product-category .mitsoli-filter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#product-category .mitsoli-filter-count { margin-left: auto; padding-left: 7px; color: #999; font-size: 11px; }
#product-category .mitsoli-size-options { display: flex; flex-wrap: wrap; gap: 8px; }
#product-category .mitsoli-size-option { margin: 0; cursor: pointer; font-weight: 600; }
#product-category .mitsoli-size-option input { position: absolute; opacity: 0; pointer-events: none; }
#product-category .mitsoli-size-option span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 38px; padding: 0 10px; border: 1px solid #ccc; }
#product-category .mitsoli-size-option input:checked + span { border-color: #111; background: #111; color: #fff; }
#product-category .mitsoli-size-option small { margin-left: 4px; color: #999; font-weight: 400; }
#product-category .mitsoli-filter-panel-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 12px 16px; border-top: 1px solid #eee; }
#product-category .mitsoli-filter-reset, #product-category .mitsoli-filter-apply { min-height: 42px; padding: 9px 20px; }
#product-category .mitsoli-filter-reset { background: #fff; border: 1px solid #ccc; color: #222; }
#product-category .mitsoli-filter-apply { background: #e3b0a6; border: 1px solid #d6a096; color: #111; font-weight: 700; }
#product-category .mitsoli-filter-backdrop { display: none; }

@media (max-width: 767px) {
  #product-category .mitsoli-catalog-tools { position: sticky; top: 0; z-index: 50; margin: 8px 0 12px; padding: 7px 0; background: #fff; }
  #product-category .mitsoli-catalog-search { flex-basis: auto; }
  #product-category #mitsoli-catalog-query { height: 44px; font-size: 13px; }
  #product-category .mitsoli-filter-toggle { min-height: 44px; padding: 0 12px; }
  #product-category .mitsoli-filter-toggle .fa { margin-right: 4px; }
  #product-category .mitsoli-active-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  #product-category .mitsoli-filter-chip, #product-category .mitsoli-clear-filters { flex: 0 0 auto; }
  #product-category .mitsoli-filter-backdrop.is-open { display: block; position: fixed; z-index: 1098; inset: 0; background: rgba(0,0,0,.38); }
  #product-category .mitsoli-filter-panel {
    display: block; position: fixed; z-index: 1099; top: 0; right: 0; bottom: 0; width: min(88vw, 390px); margin: 0; border: 0; transform: translateX(102%); transition: transform .22s ease; overflow: hidden;
  }
  #product-category .mitsoli-filter-panel.is-open { transform: translateX(0); }
  #product-category .mitsoli-filter-panel-body { display: block; height: calc(100vh - 126px); overflow-y: auto; padding: 14px; }
  #product-category .mitsoli-filter-section + .mitsoli-filter-section { margin-top: 22px; }
  #product-category .mitsoli-filter-options { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: none; overflow: visible; gap: 6px 10px; }
  #product-category .mitsoli-filter-panel-foot { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; }
  #product-category .mitsoli-filter-panel-foot .btn { flex: 1 1 50%; }
  body.mitsoli-filter-open { overflow: hidden; }
}
