/* Filtry jako Mojee: nativní serverové filtrování v rozbalovacích skupinách. */
body.template-13 .filters-wrapper.es-filter-wrapper { display: block; position: static; padding: 0; margin: 0 0 22px; width: 100%; height: auto; max-height: none; border: 0; background: none; overflow: visible; visibility: visible; opacity: 1; }
body.template-13 #filters.es-filterbar { display: block; position: relative; z-index: 20; width: 100%; height: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
body.template-13 #category-header.es-filter-header-empty { display: none; }
.es-filter-groups { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.es-filter-group { position: relative; flex: 0 0 auto; min-width: 0; margin: 0; padding: 0; border: 0; }
.es-filter-trigger { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid #767676; border-radius: var(--es-radius); background: #fff; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--es-ink); line-height: 1.5; transition: background-color .16s,border-color .16s; }
.es-filter-trigger::-webkit-details-marker { display: none; }
.es-filter-trigger:after { content: ''; display: block; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: auto; margin-top: -4px; }
.es-filter-trigger:hover { background: #f1f6fa; border-color: #7fa8c4; }
.es-filter-group[open] { z-index: 10; }
.es-filter-group[open]>.es-filter-trigger { background: #edf5fb; color: var(--es-action); border-color: var(--es-action); }
.es-filter-group[open]>.es-filter-trigger:after { transform: rotate(225deg); margin-top: 3px; }
.es-filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 2px 5px; border-radius: 3px; background: var(--es-action); color: #fff; font-size: 12px; }
.es-filter-popover { position: absolute; top: calc(100% + 8px); left: var(--es-filter-offset,0px); z-index: 40; width: 290px; max-width: calc(100vw - 24px); max-height: min(430px,60dvh); padding: 16px; background: #fff; border: 1px solid #ccd6de; border-radius: var(--es-radius); box-shadow: 0 8px 24px #1537541f; overflow: auto; overscroll-behavior: contain; }
body.template-13 #filters .es-filter-popover .filter-section { display: block; float: none; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
body.template-13 #filters .es-filter-popover :is(fieldset,form,.param-filter-top) { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
body.template-13 #filters .es-filter-popover .advanced-filters-wrapper:empty { display: none; }
body.template-13 #filters .es-filter-popover .es-filter-option { display: flex; align-items: center; gap: 10px; float: none; clear: none; width: 100%; height: auto; min-height: 40px; margin: 0; padding: 6px 0; }
body.template-13 #filters .es-filter-option input[type=checkbox] { position: static!important; display: block!important; clip: auto!important; clip-path: none!important; opacity: 1!important; visibility: visible!important; appearance: auto!important; width: 18px!important; height: 18px!important; flex: 0 0 18px; margin: 0!important; accent-color: var(--es-action); }
body.template-13 #filters .es-filter-option label.filter-label { position: static; display: block; flex: 1 1 auto; width: auto; max-width: none; min-width: 0; padding: 0; margin: 0; line-height: 1.5; font-size: 14px; white-space: normal; cursor: pointer; }
body.template-13 #filters .es-filter-option label.filter-label:before, body.template-13 #filters .es-filter-option label.filter-label:after { display: none; }
body.template-13 #filters .es-filter-option:has(input:disabled) { opacity: .55; }
body.template-13 #filters .es-filter-option:has(input:disabled) label { cursor: not-allowed; }
body.template-13 #filters .es-filter-option:has(input:checked) label { font-weight: 700; color: var(--es-action); }
body.template-13 #filters .filter-count { float: right; margin-left: 8px; font-size: 12px; color: var(--es-muted); white-space: nowrap; }
.es-filter-search { width: 100%; height: 44px; margin-bottom: 12px; border: 1px solid #767676; border-radius: var(--es-radius); padding: 8px 10px; font-size: 16px; }
.es-filter-price-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.es-filter-price-fields label { font-size: 13px; color: var(--es-muted); }
.es-filter-price-fields input { display: block; width: 100%; height: 44px; margin-top: 6px; border: 1px solid #767676; border-radius: var(--es-radius); padding: 8px; font-size: 16px; color: var(--es-ink); }
.es-filter-apply { width: 100%; }
.es-filter-error { color: #a32d25; font-size: 13px; margin: 12px 0 0; }
.es-filter-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; padding: 10px 0 0; font-size: 13px; color: var(--es-muted); }
.es-filter-reset { min-height: 40px; padding: 6px 4px; border: 0; background: transparent; color: var(--es-action); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.es-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.es-filter-chips:empty { display: none; }
.es-filter-chips button { min-height: 40px; max-width: 100%; padding: 8px 12px; border: 1px solid #c9dce9; border-radius: var(--es-radius); background: #eaf3f9; color: #1d5f8b; font-size: 13px; text-align: left; cursor: pointer; }
.es-filter-chips button:hover,.es-filter-reset:hover { background: #ddebf5; }
body.template-13 #filters [hidden] { display: none!important; }
body.template-13 #filters .listSorting { position: relative; min-width: 0; }
body.template-13 #filters .sortingToggle { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 34px; border: 1px solid #767676; border-radius: var(--es-radius); background: #fff; color: var(--es-ink); font-size: 14px; line-height: 1.5; }
body.template-13 #filters .sortingToggle:hover { background: #f1f6fa; }
body.template-13 #filters .sortingToggle[aria-expanded=true] { background: #edf5fb; border-color: var(--es-action); color: var(--es-action); }
body.template-13 #filters .sortingToggle .icon-sort { left: 12px; }
body.template-13 #filters .sortingToggle .icon-chevron-down { right: 12px; }
body.template-13 #filters .listSorting__controls { z-index: 45; width: 100%; min-width: 240px; max-width: calc(100vw - 24px); border: 1px solid #ccd6de; border-radius: var(--es-radius); background: #fff; box-shadow: 0 8px 24px #1537541f; }
body.template-13 #filters .listSorting__control { min-height: 44px; font-size: 14px; text-align: left; }
@media(max-width:767px) {
  .es-filter-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .es-filter-trigger { justify-content: space-between; gap: 8px; padding: 10px; font-size: 13px; }
  .es-filter-popover { width: calc(100vw - 24px); }
  body.template-13 #filters .listSorting { grid-column: 1/-1; }
  body.template-13 #filters .sortingToggle { width: 100%; justify-content: flex-start; }
  .es-filter-status { align-items: flex-start; font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .es-filter-trigger, body.type-category .subcategories.with-image>li>a { transition: none; } }

