/* "Filtriraj" toolbar button on product category archives.
   Mirrors _iconvorwerk.scss / page.scss exactly (icon font + .btn base). */

@font-face {
    font-family: "vorwerk-icons";
    src: url("../fonts/vorwerk-icons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.iconvorwerk a,
.iconvorwerk span {
    position: relative;
    display: flex;
    align-items: center;
}

.iconvorwerk a:before,
.iconvorwerk span:before {
    display: block;
    color: inherit;
    font-family: "vorwerk-icons" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.iconvorwerk a.icon-filter:before,
.iconvorwerk span.icon-filter:before {
    content: "\f11a";
}

.btn {
    position: relative;
    display: inline-block;
    width: auto;
    border: 1px solid #009a3b;
    outline: none;
    border-radius: 8px;
    border-top-right-radius: 0;
    padding: 12px 25px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: #fff;
    background-color: #009a3b;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: all .2s;
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn {
        font-size: 16px;
    }
}

.toolbar-sorter {
    margin: 0 0 20px;
}

@media (min-width: 768px) {
    .toolbar-sorter {
        margin: 40px 0 20px;
    }
}

.filter_buttom_wrap {
    margin-top: 0;
    width: 100%;
    display: inline-block;
}

@media (min-width: 500px) {
    .filter_buttom_wrap {
        width: auto;
    }
}

.filter_buttom_wrap .btn {
    padding: 7px 60px;
    justify-content: center;
}

.filter_buttom_wrap .btn:hover {
    background-color: #008332;
    border-color: #008332;
    color: #fff !important;
}

.filter_buttom_wrap .btn:before {
    font-size: 28px;
    margin-right: 10px;
}

/* Right-hand filters overlay, opened by #odpri_filtre */

.filters_overlay {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

.filters_overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.filters_panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 85%;
    max-width: 360px;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
}

.filters_overlay.is-open .filters_panel {
    transform: translateX(0);
}

.filters_panel__header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #d9dada;
    background: #fff;
    z-index: 1;
}

.filters_panel__title {
    font-size: 18px;
    font-weight: 600;
    color: #4b4a4b;
}

.filters_panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 1;
    color: #4b4a4b;
    cursor: pointer;
}

.filters_panel__body {
    padding: 20px;
}

body.filters-open {
    overflow: hidden;
}
