:root {
    --switch-layout-color: #878787;
    --border-color: #ddd;
    --btn-bg-color: #222222;
    --btn-background: #000;
    --loader-color: white;
}

.collections__container {
    max-width: 1600px;
    margin-inline-end: auto;
    margin-inline-start: auto;
    min-height: calc(100vh - 532px);
}

.collections__tools {
    display: flex;
    min-height: 50px;
    margin: 80px 0 40px;
}

.collections__tools--left {
    display: flex;
    justify-content: center;
    flex: 1 1 0;
    padding: 15px;
}

.collections__tools--middle {
    display: flex;
    flex: 2 1 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.collections__tools--right {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: end;
}

.collections__layout_icon {
    position: relative;
    width: 29px;
    height: 26px;
    color: var(--switch-layout-color);
    border: 1px solid currentColor;
}

.collections__layout_icon--vertical::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    height: 5px;
    width: 23px;
    box-shadow: 0 7.3px 0 var(--switch-layout-color), 0 15.1px 0 var(--switch-layout-color);
    background: var(--switch-layout-color);
}

.collections__layout_icon--2-cols::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    height: 20px;
    width: 10px;
    box-shadow: 13px 0 0 var(--switch-layout-color), 13px 0 0 var(--switch-layout-color);
    background: var(--switch-layout-color);
}

.collections__layout_icon--1-cols::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    height: 20px;
    width: 23px;
    background: var(--switch-layout-color);
}

.collections__layout_icon--3-cols {
    width: 42px;
}

.collections__layout_icon--3-cols::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    height: 20px;
    width: 10px;
    box-shadow: 13px 0 0 var(--switch-layout-color), 26px 0 0 var(--switch-layout-color);
    background: var(--switch-layout-color);
}

.collections__layout_icon--4-cols {
    width: 55px;
}

.collections__layout_icon--4-cols::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    height: 20px;
    width: 10px;
    box-shadow: 13px 0 0 var(--switch-layout-color), 26px 0 0 var(--switch-layout-color), 39px 0 0 var(--switch-layout-color);
    background: var(--switch-layout-color);
}

input[type="radio"]:checked + .collections__layout_icon {
    --switch-layout-color: black;
}

.collections__tools:has(input[type="radio"][value="1-cols"]:checked) + .collections__content > .collections__product_list .slider__item {
    width: calc(100% - 30px);
    border-bottom: 1px var(--border-color) solid;
}

.collections__tools:has(input[type="radio"][value="2-cols"]:checked) + .collections__content > .collections__product_list .slider__item {
    width: calc(50% - 30px);
}

.collections__tools:has(input[type="radio"][value="3-cols"]:checked) + .collections__content > .collections__product_list .slider__item {
    width: calc(33.333% - 30px);
}

.collections__tools:has(input[type="radio"][value="4-cols"]:checked) + .collections__content > .collections__product_list .slider__item {
    width: calc(25% - 30px);
}

.collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content > .collections__product_list .slider__item {
    width: calc(100% - 30px);
    border-bottom: 1px var(--border-color) solid;
}

.collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content > .collections__product_list .slider__item a {
    display: inline-block;
    height: 130px;
}

.collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content > .collections__product_list .slider__item .item_arrival__product_img {
    width: 100px;
    float: left;
    margin-right: 30px;
    padding-top: 100px;
}

.collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content > .collections__product_list .slider__item .product__colors {
    float: left;
}

.collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content > .collections__product_list .slider__item .product__title {
    padding-top: 0;
}

.collections__tools:has(input[type="radio"][value="list"]:checked:active) + .collections__content > .collections__product_list .slider__item .product__title {
    padding-top: 0;
}

.collections__tools:has(input[type="radio"][value="list"]:checked:active) + .collections__content > .collections__product_list .products_list__footer {
    border-top: none;
}

.collections__tools:has(input[type="radio"][value="list"]:checked)+.collections__content > .collections__product_list .badges__item {
    font-size: 9px;
}

.collections__tools:has(input[type="radio"][value="list"]:checked)+.collections__content > .collections__product_list .badges {
    top: 0px;
    right: 0px;
}

.collections__tools:has(input[type="radio"][value="list"]:checked)+.collections__content > .collections__product_list .badge--soldout {
    min-width: 60px;
    min-height: 13px;
}

.collections__content {
    display: flex;
    flex-wrap: wrap;
    min-height: 100px;
}

.collections__filters {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 25%;
    padding: 0 15px;
    border: 1px dotted #222222;
    margin-bottom: 50px;
}

.collections__product_list {
    width: 75%;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 30px;
    justify-content: space-evenly;
    align-content: flex-start;
}

.filters__section {
    display: flex;
    flex-direction: column;
}

.filters__section > h4 {
    position: relative;
    display: inline-block;
}

.filters__section > h4::after {
    content: "";
    position: absolute;
    width: 60px;
    left: 0px;
    bottom: -5px;
    height: 2px;
    background-color: black;
}

.slider__item_arrival {
    height: auto;
}

.colors__box {
    height: 34px;
    width: 34px;
}

.products_list__footer,
.products_list_loading__header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 60px;
    width: 100%;
    flex-grow: 1;
    height: min-content;
}

.products_list__header {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    width: 100%;
    height: min-content;
    row-gap: 10px;
}

.products_list__header:has(button[style*="display:none"]):not(:has(button:not([id="clear_all_filters"]))) {
   display: none;
}


.product_list__header__item {
    position: relative;
    padding: 0 10px 0 28px;
    margin: 0 5px;
    line-height: 26px;
    border: none;
    background: none;
    font-size: 15px;
    cursor: pointer;
    color: var(--text-color-accent-invert);
}

.close_icon::before,
.close_icon::after {
    content: " ";
    position: absolute;
    top: 50%;
    left: 8px;
    display: inline-block;
    margin-top: -1px;
    width: 10px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transition: transform .4s;
}

.close_icon:hover::before {
    transform: rotate(0deg);
}
.close_icon:hover::after {
    transform: rotate(-0deg);
}

.oval_button {
    position: relative;
    color: var(--text-color-accent);
    background: var(--bg-dark);
    padding: 0 15px 0 25px;
    border-radius: 15px;
    font-size: 15px;
    line-height: 26px;
    border: none;
}

.close_icon::after {
    transform: rotate(-45deg);
}

.product_list__header__item {
    border-left: 1px solid var(--border-color);
}

.product_list__header__item:last-of-type {
    border-right: 1px solid var(--border-color);
    margin-right: 15px;
}

.products_list__footer:empty {
    border-top: none;
}

.product_list__header__info {
    padding: 0 10px;
}

.footer__header {
    font-weight: 400;
    text-align: center;
    margin-block-end: 0;
}

.progress {
    position: relative;
    display: block;
    margin: 15px auto 20px;
    width: 250px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 20px;
}

.icon-twirl-down {
    fill: currentColor;
    width: 30px;
    height: 30px;
}

.icon-twirl-up {
    fill: currentColor;
    width: 30px;
    height: 30px;
    rotate: -180deg;
}

.oval-black-btn {
    width: fit-content;
    color: var(--text-color-accent);
    background-color: var(--btn-bg-color);
    border-radius: 60px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 34px;
    text-decoration: none;
    line-height: 14px;
    font-weight: 600;
    box-shadow: 8px 8px 10px gray;
}

.load-more-btn * {
    pointer-events: none;
}

.progress__fillbar {
    display: inline-block;
    position: absolute;
    background-color: var(--btn-background);
    background: linear-gradient(to right, var(--btn-background), var(--btn-background));
    will-change: width;
    -webkit-transition: width .3s cubic-bezier(.19, 1, .22, 1);
    transition: width .3s cubic-bezier(.19, 1, .22, 1);
    height: 100%;
}

.loader {
    position: relative;
    margin: 0px auto;
    width: 16px;
    height: 16px;
    display: none;
}

.loading > *:not(.loader) {
    display: none;
}

.loading .loader {
    display: flex;
    padding: 0 40px;
}

.loader:before {
    content: '';
    display: block;
    padding-top: 100%;
}

.circular-loader {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    height: 100%;
    -webkit-transform-origin: center center;
    -ms-transform-origin: center center;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: auto;
}

.loader-path {
    stroke-dasharray: 150, 200;
    stroke-dashoffset: -10;
    -webkit-animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    stroke-linecap: round;
}

@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124;
    }
}

@-webkit-keyframes color {
    0% {
        stroke: var(--loader-color);
    }

    40% {
        stroke: var(--loader-color);
    }

    66% {
        stroke: var(--loader-color);
    }

    80%,
    90% {
        stroke: var(--loader-color);
    }
}

@keyframes color {
    0% {
        stroke: var(--loader-color);
    }

    40% {
        stroke: var(--loader-color);
    }

    66% {
        stroke: var(--loader-color);
    }

    80%,
    90% {
        stroke: var(--loader-color);
    }
}

.collections__breadcrumbs {
    position: absolute;
    left: 0;
    width: 100vw;
}


.alert {
    display: flex;
    height: min-content;
    padding: 10px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.alert--warning {
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.alert_icon {
    font-size: 18px;
    padding-right: 10px;
}

.filter_btn {
    display: none;
    align-items: center;
    position: relative;
    color: var(--text-color);
    border: none;
}

.filter_btn .icon-close {
    display: none;
}

.filter_btn svg {
    width: 31px;
}

.btn_sortby {
    display: flex;
    position: relative;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
    justify-self: flex-end;
    user-select: none;
    gap: 10px;
    border-radius: 60px;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-color);
    padding: 7px 30px;
    height: 40px;
    min-height: 40px;
    min-width: 190px;
}


.btn_sortby__overlay {
    display: none;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px 0px;
    width: 100%;
}

.btn_sortby__overlay::before {
    content: "";
    position: absolute;
    height: 0;
    top: -10px;
    left: calc(50% - 10px);
    border-bottom: 10px solid var(--bg-white);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.btn_sortby__menu {
    width: 100%;
    height: 100%;
}

.btn_sortby__menu > ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    width: 100%;
}

.btn_sortby__menu > ul > li {
    width: 100%;
}

.btn_sortby__menu > ul > li:not(:last-of-type) {
    border-bottom: 1px solid var(--border-color);
}

.btn_sortby__menu > ul > li:hover {
    background: var(--hover-color);
}

.btn_sortby_menu__selected {
    background: var(--hover-color);
}

li.btn_sortby_menu__selected a {
    color: var(--text-color-accent-invert);
}

.btn_sortby__menu a {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
    height: 100%;
    padding: 15px 5px 15px 15px;
}

input[type="checkbox"]:checked + .btn_sortby__overlay {
    display: flex;
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    height: auto;
    background: var(--bg-white);
    z-index: var(--drop-down-z-index);
}

input[type="checkbox"] ~ .icon-arrow {
    transition: transform .2s ease;
}

input[type="checkbox"]:checked ~ .icon-arrow {
    transform: rotate(-180deg);
    transition: transform .2s ease;
}

.icon-arrow {
    opacity: 1;
    width: 10px;
    height: 10px;
}

.layout-switchers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.layout-switchers > label {
    position: relative;
    display: flex;
}

label:has(input[type="radio"][value="1-cols"]) {
    display: none;
}

.btn_sortby_menu__header { 
    display: none;
}

@media only screen and (min-width: 330px) and (max-width: 1366px) {
    .filter_btn {
        display: flex;
    }

    html:has(.filter_btn input[type="checkbox"]:checked) {
        overflow: hidden;
    }

    .collections__product_list {
        width: 100%;
    }

    .products_list__header {
        justify-content: center;
    }

    .filter_btn .filter_btn__title {
        display: block;
    }

    .collections__filters {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
    }

    form#filter_form {
        width: 0;
        height: 100vh;
        overflow: hidden;   
    }

    .collections__content {
        justify-content: center;
    }

    .filter_btn:has(input[type="checkbox"]:checked) .icon-close {
        display: block;
        width: 20px;
    }

    .filter_btn:has(input[type="checkbox"]:checked) .icon-filter,  
    .filter_btn:has(input[type="checkbox"]:checked) .filter_btn__title {
        display: none;
    }

    .filter_btn:has(input[type="checkbox"]:checked) {
        position: absolute;
        top: 15px;
        left: calc(345px - 15px - 31px);
        z-index: calc(var(--on-top-z-index) + 1);
        color: var(--text-color-accent-invert);
        width: 31px;
        height: 31px;
        justify-content: center;
    }

    .collections__tools:has(.filter_btn input[type="checkbox"]:checked) + .collections__content form#filter_form {
        left: 0;
        top: 0;
        z-index: var(--on-top-z-index);
        /* width: calc(100vw - 65px); */
        width: 345px;
        transition: width .4s;
        background: var(--bg-white);
        padding: 15px;
        overflow-y: scroll;
    }

    .collections__tools:has(.filter_btn input[type="checkbox"]:checked) + .collections__content .collections__filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000000b3;
        z-index: calc(var(--on-top-z-index) - 1);
        padding: 0;
    }

    .btn_sortby {
        display: flex;
        position: relative;
        font-size: 16px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border: none;
        background: none;
        width: 100%;
        color: var(--text-color);
    }

    .collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content>.collections__product_list .slider__item .item_arrival__product_img {
        height: 180px;
    }

    .collections__tools:has(input[type="radio"][value="list"]:checked) + .collections__content>.collections__product_list .slider__item {
        height: 180px;
    }
}

@media only screen and (max-width: 931px) {
    label:has(input[type="radio"][value="1-cols"]) {
        display: flex;
    }

    label:has(input[type="radio"][value="3-cols"]),
    label:has(input[type="radio"][value="4-cols"]) {
        display: none;
    }

    .btn_sortby {
        min-width: 130px;
        padding: 15px;
    }

    html:has(.btn_sortby input[type="checkbox"]:checked) {
        overflow: hidden;
        position: fixed;
        width: 100%;
        overflow: hidden;
        overscroll-behavior: none;
    }

    .btn_sortby__overlay {
        display: flex;
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
    }

    input[type="checkbox"]:checked + .btn_sortby__overlay {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: #000000b3;
        z-index: calc(var(--on-top-z-index) - 1);
    }

    .btn_sortby__overlay .btn_sortby__menu {
        position: absolute;
        width: 100%;
        height: auto;
        bottom: -100%;
        left: 0;
        z-index: var(--on-top-z-index);
        transition: bottom .4s;
        flex-direction: column;
        background: var(--bg-white);
    }

    input[type="checkbox"]:checked + .btn_sortby__overlay .btn_sortby__menu {
        bottom: 0;
        transition: bottom .4s;
    }

    .btn_sortby_menu__header {
        display: flex;
        padding: 15px;
        text-transform: uppercase;
        border-bottom: 1px dashed var(--bg-dark);
        align-items: center;
        justify-content: space-between;
    }

    .btn_sortby_menu_header__close {
        font-size: 24px;
    }
}
