/* sub-categories list to choose */
.subcategories ul.items {
    margin: 0 auto 40px auto;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0 0;
    justify-content: center;
}

.subcategories ul.items li {
    margin: 0;
    padding: 0;
    border: solid #e7e7e7 1px;
    line-height: 1.0;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.subcategories ul.items li:hover {
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
}

.subcategories ul.items li a {
    padding: 25px 15px 10px 15px;
    display: flex;
    flex-wrap: wrap;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.subcategories ul.items li a img {
    height: 90px;
    max-width: 285px;
    border: none;
    outline: none;
    transition: .25s;
}

.subcategories ul.items li a:hover img {
    transform: scale(1.04);
}

.subcategories ul.items li a span {
    display: block;
    height:35px;
    overflow: hidden;
    margin: 20px 0 0 0;
    color: #000;
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    text-align: center;
}

/* attributes list to choose */
.attributes {
    margin: 15px 0 15px 0;
    border: solid #d9d9d9 1px;
    line-height: 1.0;
}

.attributes ul.items {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0px 0px;
    justify-content: center;
}

.attributes ul.items li {
    position: relative;
    top: 1px;
    display: block;
    margin: 0;
    padding: 4px 0 3px 0;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #333;
    border-bottom: solid #d9d9d9 1px;
    line-height: 1.0;
}

.attributes ul.items li a.toggler,
.attributes ul.items li a.toggler:hover {
    font-weight: 500;
    position: relative;
    display: block;
    padding: 9px 16px;
    height: 32px;
    color: #333;
    border-right: solid #d9d9d9 1px;
    line-height: 1.0;
}

.attributes ul.items li.selected a.toggler,
.attributes ul.items li.selected a.toggler:hover {
    color: #ed1c24;
}

.attributes ul.items li a.toggler::after {
    position: absolute;
    top: 14px;
    right: 15px;
    display: inline-block;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.attributes hr {
    clear: both;
}

.attributes ul.items li .content {
    position: absolute;
    display: none;
    top: 38px;
    left: -1px;
    width: calc(100% + 1px);
    height: auto;
    padding: 6px 15px 15px 15px;
    line-height: 1.0;
    background: #fff;
    z-index: 1000;
    border: solid #d9d9d9 1px;
    border-top: none;
}

.attributes ul.items li .content .wrapper {
    padding: 0;
    margin: 9px 0 5px 0;
    max-height: 235px;
    overflow-y: auto;
}

.attributes ul.items li .content label.form-label {
    margin: 0 0 5px 0;
}

.attributes ul.items li .content .input-search {
    width: 100%;
    margin: 0 0 9px 0;
    border: solid #d9d9d9 1px;
    padding: 7px 5px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 13px;
    border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
}

.attributes ul.items li .content .input-range {
    width: 100%;
    margin: 0 0 12px 0;
    border: solid #d9d9d9 1px;
    padding: 7px 5px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 13px;
    border-radius: 4px 4px 4px 4px;
    -moz-border-radius: 4px 4px 4px 4px;
    -webkit-border-radius: 4px 4px 4px 4px;
}

/* selected attributes list in filter */
.selected-attributes {
}

.selected-attributes .badge {
    border: none;
    background: #fff !important;
    border: solid #d9d9d9 1px !important;
    padding: 2px 8px 5px 10px;
    font-family: "Avenir";
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
    color: #444;
    line-height: 1.0;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
}

.selected-attributes .badge span:nth-child(2) {
    font-weight: 600;
}

.selected-attributes .badge a {
    display: inline-block;
    margin: 0 0 0 8px;
    padding: 0;
    font-family: 'Avenir';
    font-weight: 300;
    font-style: normal;
    font-size: 15px;
    color: #666;
    text-decoration: none;
}

.selected-attributes .badge a:hover {
    color: #ed1c24;
}

.badge.clear-attributes {
    margin: 0;
    padding: 5px 10px;
    height: 24px;
    font-family: "Avenir";
    font-weight: 400;
    font-style: normal;
    font-size: 11px;
    color: #d65151;
    background: none;
    border: solid #d9aeae 1px !important;
    line-height: 1.0;
    text-decoration: none;
    text-transform: none;
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
.attributes ul.items li .content input[type='text']::placeholder {
    color: #c0c0c0;
    opacity: 1; /* Firefox */
}

/* Internet Explorer 10-11 */
.attributes ul.items li .content input[type='text']:-ms-input-placeholder {
    color: #c0c0c0;
}

/* Microsoft Edge */
.attributes ul.items li .content input[type='text']::-ms-input-placeholder {
    color: #c0c0c0;
}

.attributes ul.items li .content .custom-checkbox {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 13px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 1.3;
    margin: 0 10px 10px 0;
}

.attributes ul.items li .content .custom-checkbox .checkmark {
    top: 0;
    left: 0;
}

.attributes ul.items li .content .btn-filter {
    width: 100%;
    margin: 10px 0 0 0;
    font-size: 11px;
    padding:5px 20px;
}

/* product colors drop-down menu */
.btnProductColors.selected {
    padding: 6px 35px 6px 15px;
}

.btnProductColors .color-separator {
    margin: 0 0 0 10px;
}

.productColors {
    min-width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.productColors ul {
    padding: 0;
    list-style: none;
}

.productColors ul li {
    padding: 6px 15px;
}

.productColors ul li.selected,
.productColors ul li:hover {
    background: #f0f0f0;
}


.productColors ul li a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.productColors ul li a img {
    border: solid #fff 2px;
    background: #fff;
    padding: 2px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.productColors ul li:hover a img {
    border: solid #f0f0f0 2px;
}

.productColors ul li.selected a img {
    border: solid #dc3545 2px;
}

.productColors ul li a span {
    margin: 0 0 0 15px;
    width: 180px;
    color: #000;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    line-height: 1.3;
}

/* only for XX-LARGE */
@media all and (min-width: 1400px) {
    .subcategories ul.items {
        grid-template-columns: repeat(6, 216px);
    }

    .attributes ul.items {
        grid-template-columns: repeat(6, 216px);
    }

    .attributes ul.items li:nth-child(6n+6) a {
        border-right: none !important;
    }

    .attributes ul.items li:nth-child(6n+6) .content {
        width: calc(100% + 2px);
    }

    .attributes ul.items li:nth-child(n+7) {
        display: none;
    }

    .attributes ul.items li.selected:nth-child(n+7) {
        display: block;
    }

    .attributes ul.items li.toggled:nth-child(n+7) {
        display: block;
    }
}

/* only for X-LARGE */
@media all and (min-width: 1200px) and (max-width: 1399px) {
    .subcategories ul.items {
        grid-template-columns: repeat(6, 186px);
    }

    .attributes ul.items {
        grid-template-columns: repeat(5, 20%);
    }

    .attributes ul.items li:nth-child(5n+5) a {
        border-right: none !important;
    }

    .attributes ul.items li:nth-child(5n+5) .content {
        width: calc(100% + 2px);
    }

    .attributes ul.items li:nth-child(n+6) {
        display: none;
    }

    .attributes ul.items li.selected:nth-child(n+6) {
        display: block;
    }

    .attributes ul.items li.toggled:nth-child(n+6) {
        display: block;
    }
}

/* only for LARGE */
@media all and (min-width: 992px) and (max-width: 1199px) {
    .subcategories ul.items {
        grid-template-columns: repeat(5, 187px);
    }

    .attributes ul.items {
        grid-template-columns: repeat(4, 25%);
    }

    .attributes ul.items li:nth-child(4n+4) a {
        border-right: none !important;
    }

    .attributes ul.items li:nth-child(4n+4) .content {
        width: calc(100% + 2px);
    }

    .attributes ul.items li:nth-child(n+5) {
        display: none;
    }

    .attributes ul.items li.selected:nth-child(n+5) {
        display: block;
    }

    .attributes ul.items li.toggled:nth-child(n+5) {
        display: block;
    }
}

/* only for MEDIUM */
@media all and (min-width: 768px) and (max-width: 991px) {
    .subcategories ul.items {
        grid-template-columns: repeat(4, 174px);
    }

    .subcategories ul.items li a:hover img {
        transform: none;
    }

    .attributes ul.items {
        grid-template-columns: repeat(3, 232px);
    }

    .attributes ul.items li:nth-child(3n+3) a {
        border-right: none !important;
    }

    .attributes ul.items li:nth-child(3n+3) .content {
        width: calc(100% + 2px);
    }

    .attributes ul.items li:nth-child(n+4) {
        display: none;
    }

    .attributes ul.items li.selected:nth-child(n+4) {
        display: block;
    }

    .attributes ul.items li.toggled:nth-child(n+4) {
        display: block;
    }
}

/* only for SMALL */
@media all and (min-width: 576px) and (max-width: 767px) {
    .subcategories ul.items {
        grid-template-columns: repeat(3, 172px);
    }

    .subcategories ul.items li a img {
        height: 80px;
    }

    .subcategories ul.items li a:hover img {
        transform: none;
    }

    .attributes ul.items {
        grid-template-columns: repeat(2, 50%);
    }

    .attributes ul.items li:nth-child(2n+2) a {
        border-right: none !important;
    }

    .attributes ul.items li:nth-child(2n+2) .content {
        width: calc(100% + 2px);
    }

    .attributes ul.items li:nth-child(n+3) {
        display: none;
    }

    .attributes ul.items li.selected:nth-child(n+3) {
        display: block;
    }

    .attributes ul.items li.toggled:nth-child(n+3) {
        display: block;
    }
}

/* up to X-SMALL */
@media all and (max-width: 575px) {
    .subcategories ul.items {
        grid-template-columns: repeat(2, 50%);
    }

    .subcategories ul.items li a {
        padding: 25px 10px 10px 10px;
    }

    .subcategories ul.items li a span {
        margin: 25px 0 0 0;
        font-size: 12px;
    }

    .subcategories ul.items li a img {
        height: 80px;
    }

    .subcategories ul.items li a:hover img {
        transform: none;
    }

    .attributes ul.items {
        grid-template-columns: repeat(2, 50%);
    }

    .attributes ul.items li:nth-child(2n+2) a {
        border-right: none !important;
    }

    .attributes ul.items li:nth-child(2n+2) .content {
        width: calc(100% + 2px);
    }

    .attributes ul.items li:nth-child(n+3) {
        display: none;
    }

    .attributes ul.items li.selected:nth-child(n+3) {
        display: block;
    }

    .attributes ul.items li.toggled:nth-child(n+3) {
        display: block;
    }
}
