/*#region aside article.filter */
body.filter-mode::after {
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}

#frm_panelProducts > article > header {
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: solid 1px #888;
}

button.toggle-filter {
    width: 100%;
    display: none;
}

aside article.filter div > h3 {
    font-size: 14px;
    float: right;
    border: 1px solid #c7c7c7;
    background-color: #f7f8fa;
    padding: 8px;
    margin: 5px 0 0 5px;
    border-radius: 2px;
}

aside article.filter div > h3 > i {
    cursor: pointer;
}

aside article.filter > header {
    overflow: hidden;
}

aside article.filter > header a {
    font-size: 12px;
    float: right;
    margin: 0 5px
}

aside article.filter > header div {
    float: left;
    margin: 0 5px
}


aside article {
    border: solid 1px #c7c7c7;
    margin: 10px 0;
    box-shadow: 1px 1px 2px rgba(204, 204, 204, 0.50);
    position: relative;
}

aside article > header {
    font-size: 16px;
    font-weight: bold;
    border-bottom: solid 1px rgba(204, 204, 204, 0.5);
    margin: 10px 25px;
    cursor: pointer;
    overflow: hidden;
    padding-bottom: 10px;
}

aside article.minimize > header {
    border-bottom: none;
}

aside article > header::after {
    content: "\f027";
    position: absolute;
    left: 5px;
    top: 10px;
    font-size: 25px;
    font-family: "xfont";
    color: #ccc;
}

aside article.filter > header::after {
    content: "";
}

aside article.minimize > header::after {
    content: "\f026";
}

aside article.minimize > div {
    display: none;
}

html[dir='rtl'] aside article > header::after {
    left: auto;
    right: 5px;
}

/*#endregion */

/*#region radio & checkbox */


aside article ul {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 5px;
}
aside article ul::-webkit-scrollbar {
    width: 5px;
    background: #e9ecef;
}

aside article ul::-webkit-scrollbar-thumb {
    background: #ccc;
}

aside div.properties {
    overflow: hidden;
}


.feature {
    position: relative;
    display: block;
    min-height: 22px;
    margin: 10px 0;
    border-left: 2px solid transparent;
}

li.feature {
    margin: 0;
    list-style-type: none;
}

li.feature:hover {
    background: #f9f9f9;
}

.feature > input {
    opacity: 0;
    position: absolute;
}

.feature > label {
    color: #050634;
    cursor: pointer;
    vertical-align: middle;
    font-size: 14px;
    text-transform: none;
    padding: 3px 0 0 37px;
}

.feature > input + label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 22px;
    height: 22px;
    background: white;
    box-shadow: inset 0 1px 2px 2px rgba(0, 0, 0, .07), inset 0 0 0 1px #b7b7b7;
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    transition: all .2s linear;
    display: inline-block;
    vertical-align: middle;
}

.feature > input:hover + label:before,
.feature > input:focus + label:before {
    box-shadow: inset 0 1px 2px 2px rgba(0, 0, 0, .1), inset 0 0 0 1px #adadad;
    background: #f9f9f9;
}

.feature > input + label:after,
.feature > input + label:after {
    content: '';
    position: absolute;
    opacity: 0;
    -webkit-transition: all .3s linear;
    -moz-transition: all .3s linear;
    transition: all .3s linear;
}

.feature > input:checked + label:after,
.feature > input.checked + label:after {
    opacity: 1;
}

.feature > input:checked + label {
    color: #42ca49;
}

.feature > input[type=checkbox] + label:after,
.feature > input[type=checkbox] + label:after {
    width: 16px;
    height: 14px;
    top: 7px;
    left: 8px;
    background: url(/images/checkbox-inner.png) center center no-repeat;
    background-size: 16px;
    /*! color: red; */
}

.feature > input[type=checkbox] + label:before {
    border-radius: 4px;
}

.feature > input[type=checkbox]:checked + label:before,
.feature > input[type=checkbox].checked + label:before {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), inset 0 0 0 12px #42ca49;
}

.feature > input[type=checkbox]:checked:hover + label:before,
.feature > input[type=checkbox].checked:hover + label:before,
.feature > input[type=checkbox]:checked:focus + label:before,
.feature > input[type=checkbox].checked:focus + label:before {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), inset 0 0 0 12px #42ca49;
}

.feature > input[type=radio] + label:before {
    border-radius: 50%;
}

.feature > input[type=radio] + label:after,
.feature > input[type=radio] + label:after {
    width: 8px;
    height: 8px;
    top: 7px;
    left: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, .12);
}

.feature > input[type=radio]:checked + label:before,
.feature > input[type=radio].checked + label:before {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), inset 0 0 0 8px #42ca49;
}

.feature > input:disabled + label,
.feature > input.disabled + label {
    opacity: .6;
}

.feature > input:disabled:checked + label:before,
.feature > input:disabled.checked + label:before,
.feature > input.disabled:checked + label:before,
.feature > input.disabled.checked + label:before {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), inset 0 0 0 12px #999;
}

html[dir='rtl'] .feature > input + label:before {
    top: 2px;
    left: auto;
    right: 5px;
}

html[dir='rtl'] .feature > label {
    padding: 3px 37px 0 0;
}


/*#endregion */

div.search-product {
    padding: 0 3px;
    width: 200px;
    position: relative;
}

div.search-product > input {
    border: none;
    border-bottom: solid 1px #007bff30;
    font-size: 14px;
    background: transparent;
    width: 100%;
    padding: 5px;
}

div.search-product > button {
    border: none;
    background: transparent;
    position: absolute;
    right: 0;
    top: 3px;
    color: #007bff;
}

.search-product > button::before {
    font-size: 22px;
}

html[dir='rtl'] div.search-product > button {
    right: auto;
    left: 0;
}
/*#region div.sort-by */
div.sort-product {
    border-bottom: solid 1px #007bff30;
    width: calc(100% - 200px);
    position: relative;
}

div.sort-product > button {
    border: none;
    background: transparent;
    color: #007bff;
    position: absolute;
    left: 0;
    top: 3px;
}

div.sort-product > button::before {
    font-size: 22px;
}


div.sort-product > ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    margin-left: 40px;
}

div.sort-product > ul > li {
    display: inline-block;
    padding: 4px;
    color: #000;
    cursor: pointer;
}

div.sort-product > ul > li.active {
    color: #007bff;
}

html[dir='rtl'] div.sort-product > ul {
    margin-left: auto;
    margin-right: 40px;
}

/*#endregion */

/*#region ul.products */
ul.products {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
    overflow: hidden;
    width: 100%;
}

ul.products > li {
    text-align: center;
    float: left;
    padding: 0;
    width: 33.3333%;
    height: 320px;
}

ul.products > li > a {
    display: block;
    width: 99%;
    height: 100%;
    border: solid 1px silver;
    color: #000;
    text-decoration: none;
    position: relative;
    position: relative;
}

ul.products > li > a > img {
    display: block;
    height: calc(100% - 60px);
    margin: 0 auto;
}

ul.products > li > a > h2 {
    background: #F8F8F8;
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

ul.products > li > a > h3 {
    margin: 0;
    padding: 10px;
    font-size: 16px;
    width: 100%;
}

ul.products > li[data-issoldout='true'] > a > h3 {
    font-size: 25px;
    border: solid 1px red;
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    color: #f00;
    transform: rotate(30deg) translate(-50%);
    z-index: 9;
    text-transform: uppercase;
    font-weight: 900;
    border: double 5px #f00;
    border-width: 7px 0;
    width: auto;
    bottom: auto;
}

ul.products > li > a > span {
    position: absolute;
    background: #7851A9;
    color: #FFF;
    left: 0;
    z-index: 99;
    display: block;
    width: 100%;
    text-align: center;
    visibility: hidden;
    transition: all linear .2s .1s;
    bottom: 150px;
    padding: 10px;
}

ul.products > li > a:hover > span {
    visibility: visible;
    bottom: 0px;
}

ul.products > li > a > span:hover {
    background: rgba(120, 81, 169, 0.90);
}

ul.products > li > a > p {
    visibility: hidden;
    display: none;
}

ul.products > li > a:hover {
    border: solid 1px #7851A9;
}

ul.products > li ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul.products > li ul > li {
    overflow: hidden;
    padding: 5px;
}

ul.products > li ul > li > label {
    float: right;
    width: 100px;
    text-align: left;
}

ul.products > li ul > li > span {
    float: left;
    width: calc(100% - 100px);
    padding: 0 5px;
    text-align: right;
    color: #F8F8F8;
}

html[dir='rtl'] ul.products > li {
    float: right;
}

/*#endregion */


/*#region responsive */

/* Monitor */
@media (min-width: 768px) and (max-width: 992px) {
    ul.products > li {
        width: 50%;
    }

    div.search-product {
        width: 95%;
        margin: 0;
    }

    div.sort-product {
        width: 95%;
        margin: 0;
    }

    div.sort-product > ul {
        margin: 0;
    }

    div.sort-product > button {
        right: 0px;
        left: auto;
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 768px) {
    ul.products > li {
        width: 50%;
    }

    div.search-product {
        width: 95%;
        margin: 0 auto;
    }

    div.sort-product {
        width: 95%;
        margin: 0 auto;
        padding: 0;
    }

    div.sort-product > ul {
        margin: 0;
    }

    div.sort-product > button {
        right: 0px;
        left: auto;
    }

    button.toggle-filter {
        display: block;
    }

    aside > .filters {
        display: none;
        position: fixed;
        background: #fff;
        z-index: 9999;
        width: 100%;
        margin: 0;
        top: 0;
        left: 0px;
        height: calc(100vh - 40px);
        overflow-y: auto;
    }

    aside article ul {
        max-height: none;
    }

    body.filter-mode aside > .filters {
        display: block;
    }

    body.filter-mode aside > .filters button.toggle-filter {
        display: block;
        position: fixed;
        bottom: 0px;
    }
}

/* Phone */
@media (max-width: 576px) {
    ul.products > li {
        width: 100%;
    }

    div.search-product {
        width: calc(100% - 60px);
        margin: 0;
    }

    div.sort-product {
        width: 50px;
        position: relative;
    }

    div.sort-product > ul {
        position: absolute;
        top: 100%;
        left: -60vw;
        width: 70vw;
        background: #fff;
        display: list-item;
        z-index: 9999;
        border: solid 1px #007bff30;
        padding: 10px;
        display: none;
    }
    
    html[dir='rtl']  div.sort-product > ul {
        left: 0vw;
        width: 200px;
    }

    div.sort-product > ul > li {
        display: list-item;
        border-bottom: solid 1px #007bff30;
    }

    div.sort-product > button[data-showsort='true'] + ul {
        display: block;
    }

    button.toggle-filter {
        display: block;
    }

    aside > .filters {
        display: none;
        position: fixed;
        background: #fff;
        z-index: 9999;
        width: 100%;
        margin: 0;
        top: 0;
        left: 0px;
        height: 100vh;
        overflow-y: auto;
        height: calc(100vh - 40px);
    }

    aside article ul {
        max-height: none;
    }

    body.filter-mode aside > .filters {
        display: block;
    }

    body.filter-mode aside > .filters button.toggle-filter {
        display: block;
        position: fixed;
        bottom: 0px;
    }
}

/*#endregion */
