

/*filtry*/

#filters-wrapper #filters.visible {
	margin-top:0;    
	position: fixed;
    left: 0;
    top: 0;
    background: var(--custom-white-color);
    z-index: 10000;
    width: min(520px, calc(100vw - 60px));
    height: 100vh;
    overflow: auto;
    border-radius: 0;
    box-shadow: rgba(156, 155, 185, 0.2) 150px 0px 100vw 0px;
}

.filters-unveil-button-wrapper .unveil-button {
    padding-right: 46px !important;
    background: var(--color-primary) !important;
    color: var(--custom-white-color) !important;
    border: 1px solid var(--color-primary);
}
.filters-unveil-button-wrapper .unveil-button:hover {
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-primary);
}
#filters-wrapper .filters-wrapper .filters-unveil-button-wrapper i,
#filters-wrapper .filters-wrapper .filters-unveil-button-wrapper .icon-filter {
    color: var(--custom-white-color) !important;
}
#filters-wrapper .filters-wrapper .filters-unveil-button-wrapper:hover i,
#filters-wrapper .filters-wrapper .filters-unveil-button-wrapper .unveil-button:hover i,
#filters-wrapper .filters-wrapper .filters-unveil-button-wrapper .unveil-button:hover .icon-filter {
    color: var(--color-primary) !important;
}
.filters-wrapper .filters-unveil-button-wrapper i { left: -34px; }


:root{
--custom-text-weaker-color: #8D8C9B;
}
#filter {border-radius: 0;}
#filters .filter-count {color:rgba(156, 155, 185, 0.65); font-size: 14px; margin-top: 5px; padding:0; background:transparent;}
#filters .filter-sections {background-color:var(--custom-white-color);}
#filters label.filter-label  {    display: flex;
    align-items: flex-start; color:var(--custom-text-color);font-weight: 600;padding: 0 0 0 22px;}
#filters label.filter-label.disabled  {color:var(--custom-text-weaker-color); opacity: 1;}
#filters label.filter-label.active  {font-weight: 600; }
#filters .advanced-filters-wrapper {display:none;}
#content .filter-section fieldset {display:grid; grid-template-columns: 1fr 1fr;     gap: 4px;}
#content .filter-section fieldset div, #footer .filter-section fieldset div {width: 100%;}
#content .filter-section fieldset div label:not(.advanced-parameter), 
#footer .filter-section fieldset div label:not(.advanced-parameter) { padding: 0 0 0 22px}
:where(.ums_forms_redesign--off) #filters input[type=checkbox] + label::before,
:where(.ums_forms_redesign--off) #filters input[type=checkbox] + label::after{
  top:5px ; transform:unset !important; position:absolute; left:0;
}
:where(.ums_forms_redesign--off) input[type=checkbox]+label:before, 
:where(.ums_forms_redesign--off) input[type=radio]+label:before {border-color:var(--custom-light-primary-5-color);}

/* přebít margin-bottom z Shoptetu při redesignu formulářů */
:where(.ums_forms_redesign--on) #filters label.filter-label {
    margin-bottom: 0;
}

#content #filters {padding: 24px 24px 0 24px; }
#filters .slider-wrapper {text-align:left;}
#filters .ui-slider-horizontal {height: 6px; }
#filters .slider-content {height: 6px;}
#filters .ui-slider-handle {box-shadow:none; width: 28px;height: 28px; top: -12px;margin-left: -16px; outline: none !important;}
#filters .ui-slider-handle:before {display:none;}
#filters #slider .ui-slider-handle:before {
    background: url(https://486870.myshoptet.com/user/documents/upload/design/icons/icon-chevron-right-sm.svg);
    content: "";
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#filters #slider .ui-slider-handle:last-of-type{margin-left: -12px;}
#filters #slider .ui-slider-handle:first-of-type:before {
    background: url(https://486870.myshoptet.com/user/documents/upload/design/icons/icon-chevron-left-sm.svg);
  	content: "";
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
#filters .slider-header .from, 
#filters .slider-header .to {color:var(--custom-text-color);}

#custom-close-filters {
position: absolute;
    top: 18px;
    right: 18px;
    font-size: 40px;
    cursor:pointer;
  	width: 32px;
    height: 32px;
  	color: var(--custom-text-color);
    opacity: .5;
}
/* skrýt Shoptet pseudo-elementy v patičce filtru */
#content .filter-section.filter-section-count::before,
#content .filter-section.filter-section-count::after {
    display: none !important;
}
#filters .filter-section.filter-section-count {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--custom-white-color);
    padding: 16px 0 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-top: solid 1px hsl(var(--color-tertiary-h),var(--color-tertiary-s),calc(var(--color-tertiary-l) - 10%));
    width: 100%;
    margin-left: -1px;
    margin-right: -1px;
}
#filters #clear-filters {
    order: unset;
    margin:0 !important;
    margin-top:auto !important;
    padding:0;
    flex-shrink:0;
}
#filters #clear-filters a{    
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 8px 19px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    text-transform: none !important;
    transition: background-color .5s, color .5s, border-color .5s;
}
#filters #clear-filters a::after {
    content: "\00D7";
    font-size: 26px;
    margin-left: 10px;
    font-weight: 400;
    margin-top: -4px;
}
#filters #clear-filters a:hover {
    background-color: var(--color-primary);
    color: var(--custom-white-color);
}

/* wrapper pro pravou stranu: počet + tlačítko */
#filters .filter-count-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

#filters .filter-total-count {
    flex-grow: unset;
    order: unset;
    color: var(--custom-text-color);
    font-weight: 600;
}

/* tlačítko "Zobrazit produkty" */
#filters #custom-show-products {
    background: var(--color-primary);
    color: var(--custom-white-color);
    padding: 8px 19px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: background-color .5s, border-color .5s;
}
#filters #custom-show-products:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
}
#filters #custom-show-products::after {
    content: "\203A";
    margin-left: 8px;
    font-size: 26px;
    font-weight: 400;
    margin-top: -2px;
}

/* mobil: patička filtru pod sebou */
@media (max-width: 500px) {
    #filters .filter-section.filter-section-count {
        display: flex;
        flex-direction: column;
    }
    #filters .filter-count-wrapper {
        width: 100%;
    }
    #filters #custom-show-products {
        width: 100%;
        justify-content: center;
    }
    #clear-filters {
        width: 100%;
    }
    #filters #clear-filters a {
        width: 100%;
        justify-content: center;
    }

    #content .filter-section fieldset {
        gap: 2px;
        display: flex;
        flex-direction: column;
    }

    .filter-sections .filter-section h4 {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    #content #filters {
        padding: 16px 12px 0 12px;
    }

    #custom-close-filters {
        top: 10px;
        right: 10px;
    }
}




/* Chrome / Edge / Safari */
#filters::-webkit-scrollbar{
  width: 10px;
}
#filters::-webkit-scrollbar-track{
  background: transparent;
  border-radius: 999px;
}
#filters::-webkit-scrollbar-thumb{
  background: rgba(229,113,104,.55);        
  border-radius: 999px;
  border: 2px solid transparent;               
  background-clip: padding-box;
}
#filters::-webkit-scrollbar-thumb:hover{
  background: rgba(229,113,104,.75);
}
/* odstranění šipek (buttons) ve webkit scrollbarech */
#filters::-webkit-scrollbar-button{
  display: none;
  width: 0;
  height: 0;
}
/* volitelně: skryj “corner” (když by se objevil) */
#filters::-webkit-scrollbar-corner{
  background: transparent;
}

/*custom filter slider*/
#filters .has-pv-slider fieldset { display: none !important; }
#filters .pv-range-ui { height: 120px; padding-bottom: 0; }
#filters .pv-range-ui .pv-range-header{ 
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
#filters .pv-range-ui .pv-range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--custom-text-color);
}
#filters .pv-range-ui .pv-range-values .from,
#filters .pv-range-ui .pv-range-values .to { padding-bottom: 5px; }
#filters .pv-range-ui .ui-slider-horizontal {
    width: calc(100% - 30px);
    margin: auto;
}
#filters .pv-range-ui input {    
    border: solid 1px var(--custom-box-shadow-color);
    color: var(--custom-text-color);
    padding: 4px 8px;
    width: 80px;
}
#filters .pv-range-ui label {
    display:flex; 
    flex-direction: column;
}

/* nativní range input fallback */
#filters .pv-range-ui input[type="range"] {
    width: 100%;
    padding: 0;
    border: none;
    accent-color: var(--color-primary);
}
#filters .pv-range-ui input[type="range"][data-from],
#filters .pv-range-ui input[type="range"][data-to] {
    position: absolute;
    width: 100%;
    pointer-events: auto;
}

