.toggle {
  margin: 0px;
  position: relative;
}
.toggle input[type="checkbox"] {
  opacity: 0;
  position:absolute;
}

.filter-box__mobile{
  display: none;
}

.toggle label {
  background-color: #f1f1f1;
  border: 1px solid #f1f1f1;
  border-radius: 20px;
  height: 23px;
  position: relative;
  width: 81px;
  display: block;
}
.toggle input:checked ~ label {
  background-color: #566772;
  border: 1px solid #566772;
  /*box-shadow: 0 0 15px rgba(255, 255, 255, 0.25) inset;*/
}
.toggle .toggle-handle {
    background-color: #7d8a92;
    border: 1px solid rgb(241 241 241);
    border-radius: 100px 100px 100px 100px;
    height: 16px;
    position: absolute;
    -webkit-transition: -webkit-transform 0.1s ease-in-out 0s, border 0.1s ease-in-out 0s;
    transition: transform 0.1s ease-in-out 0s, border 0.1s ease-in-out 0s;
    width: 16px;
    z-index: 2;
    pointer-events: none;
    top: 3px;
    left: 5px;
}
.toggle input:checked + .toggle-handle {
    border-color: #677680;
    border:none;
    top:4px;
    -webkit-transform: translate3d(55px, 0px, 0px);
    transform: translate3d(55px, 0px, 0px);
    background:#fff;
    left: 7px;
}
.toggle label:after {
    color: #777777;
    content: "Выкл";
    font-weight: bold;
    line-height: 23px;
    position: absolute;
    right: 10px;
    text-shadow: 0 1px #FFFFFF;
    text-transform: uppercase;
}
.toggle input:checked ~ label:after {
    color: #FFFFFF;
    content: "Вкл";
    left: 8px;
    right: auto;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.25);
}

.filter-box{
  height: 50px;
  display: flex;
  flex-wrap: wrap;
  border-radius: 4px;
  box-shadow: 0 0 15px #00000012;
  background: white;
  align-items: center;
  justify-content: space-between;
  color:#55646e;
  margin-top: 35px;
}

.filter-block__icon {
  width: 16px;
  margin-right: 20px;
}

.filter-block__icon img{
  width:100%;
  height: auto;
  margin-top: 5px;
}

.filter-block__title{
  color:#7d8a92;
  font-size:16px;
  font-weight: bold;
}

.filter-block{
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: 50px;
}

.filter-box__left{
  display: flex;
  flex-wrap: wrap;
}

.filter-box__left .filter-block__element:last-child{
  border:none;
}

.filter-block__item{
      color: #566772;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-right: 30px;
    padding-left: 15px;
}

.filter-block__item::after{
  content: '';
  width:16px;
  height: 16px;
  background:url(../img/arrow-down-filter.svg);
  background-size:100%;
  position: absolute;
  right: 7px;
  top: 2px;
}

.filter-block__element{
      border-right: 1px solid #f5f5f5;
    height: 50px;
    display: flex;
    align-items: center;
}

.filter-view__icon{
  width:24px;
  height: 24px;
}

.filter-grid{
  color:#566772;
  text-decoration: none;
  display: flex;
  align-items: center;
  column-gap: 10px;
  font-size: 16px;    
}

.filter-box__right{
  display: flex;
  flex-wrap: wrap;
  flex:0 0 475px;
}

.filter-list{
  color:#566772;
  text-decoration: none;
  display: flex;
  align-items: center;
  column-gap: 12px;
  font-size: 16px;
}


.filter-block__view{
  display: flex;
  justify-content: space-between;
  flex:0 0 200px;
  border-right: 0;
  padding:0 15px;
}

.toggle-title{
  margin:0 15px;
  font-size:16px;
}

.breadcrumb__item{
  position: relative;
}



.breadcrumb__item::after{
  background: url(../img/arrow-right-breadcrumb.svg);
  width:16px;
  height: 16px;
  content: '';
  display: block;
  position: absolute;
  background-size: 100%;
  transform: rotate(-90deg);
  right: -21px;
  top: 1px;
  opacity: .4
}

.breadcrumb__list .breadcrumb__item:last-child::after{
  display: none;
}

.breadcrumb__link{
  color:#3f3f3f;
  font-size:16px;
  text-decoration: none;
}

.breadcrumb__item span {
    font-size: 16px;
    color: #7d8a9275;
    font-weight: bold;
}


.product-item__price span{
  font-size: 14px;
  color: #8f8f8f;
}

.breadcrumb__list{
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  list-style: none;
  padding:0;
  margin:0;
  align-items: center;
}

.category h1{
  color: #566772;
  margin: 5px 0 0;
}

.breadcrumb{
  margin-top: 35px;
}

.catalog-products{
    display: flex;
    flex-wrap: wrap;
    column-gap: 22.5px;
    margin-top: 35px;
}



@media(max-width: 1820px){
  .catalog-products{
    column-gap:44px;
  }

  .catalog-products .product-item__image img{
    width:100%;
  }

  .navigation-links__list{
    column-gap: 25px;
  }
}


@media(max-width: 1520px){
  .catalog-products{
    column-gap:24px;
  }
}


@media(max-width: 1320px){
  .product-item--grid-view {
    width: 220px;
  }

  .product-item--grid-view .product-item__name{
    font-size: 16px;
  }

  .product-item__manufacturer{
    font-size: 16px;
  }

  .product-item__country--icon{
    width: 22px;
  }

  .product-item__country-name{
    font-size: 16px;
  }

  .product-item__attribute{
    font-weight: 500;
    font-size:12px;
  }

  .product-item__stock-country{
    font-size:11px;
  }

  .product-item__stock-status-icon{
    width:16px;
  }

  .product-item__stock-status-icon--cancel{
    width:14px;
  }

  .product-item__cart {
    flex: 0 0 128px;
  }

  .product-item__stock-status-value{
    font-size:12px;
  }

  .product-item__add-to-cart{
    font-weight: 500;
    font-size:14px;
  }

  .product-item__stock-status{
    flex: 0 0 80px;
  }

  .product-item__add-to-cart-icon {
    width: 18px;
    height: 18px;
    left: 13px;
    top: 14px;
  }
  .product-item__add-to-cart{
    padding-right: 12px;
  }

  .navigation-phone__link--footer .navigation-phone__country{
    display: none;
  }

  .navigation-phone__link--footer {
    width: 150px;
    flex: 0 0 220px;
    justify-content: space-between;
  }

  footer .logo {
    text-decoration: none;
    font-size: 20px;
    color: #8d8d8d;
    font-weight: 600;
  }

  footer .navigation-links__link {
    line-height: 38px;
    font-size: 14px;
  }
}

@media(max-width: 1220px){
  .filter-block__title{
    display: none;
  }

  .filter-block{
    margin-right: 0;
  }

  .catalog-products {
    column-gap: 44px;
  }

  .product-item--grid-view {
    width: 250px;
  }

  .footer-inner{
    flex-direction: column;
  }

  .footer-inner__contacts{
    flex-direction: column;
    margin-top: 15px;
  }

  footer .logo {
    text-decoration: none;
    font-size: 26px;
  }

  footer .navigation-links{
    margin-top:25px;
  }

  footer .navigation-email{
    margin-bottom: 15px;
  }

  .footer-navigation-phones{
        display: flex;
    column-gap: 30px;
    margin: 5px 0;
  }
}

@media (max-width: 1040px){
  .product-item--grid-view {
    width: 40.5%;
  }

  .filter-box{
    display: none;
  }

   .filter-box__mobile {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      align-items: center;
      margin: 30px 0;
  }

  .filter-box__mobilebutton{
    display: block;
    flex: 0 0 220px;
    border-radius: 4px;
    background: #566772;
    color: white;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    text-decoration: none;
    text-align: right;
    padding-right: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;

  }

  .filter-box__mobilebutton::before{
    content: '';
    position: absolute;
       left: 15px;
    top: 9px;
    background: url(../img/filter-white.svg);
    background-size: 100%;
    display: block;
       width: 20px;
    height: 20px;
  }
}


@media(max-width: 768px){
  .breadcrumb__item {
      position: relative;
    margin-bottom: 8px;
  }
  .category h1{
    font-size: 22px;
  }

  .catalog-products{
    margin-top: 0;
  }

  .filter-box__mobile{
    margin: 30px 0 15px;
  }

  .filter-box__mobilebutton {
    flex: 0 0 275px;
    color: #3f3f3f;
    font-weight: 500;
    background: #ffed26;
    height: 50px;
    line-height: 50px;
  }

  .filter-box__mobilebutton::before{
    top:15px;
  }

  .filter-block__view{
    display: none;
  }

  .filter-box__mobilebutton::before{
 
    background: url(../img/filter-black.svg);
    background-size: 100%;

  }

  .catalog-products .product-item__image img {
    width: 200px;
  }

  .product-item--grid-view{
    width: 100%;
  }

  .product-item__image{
    text-align: center;
  }

  .product-item__attributes{
    display: none;
  }

  .navigation-links__list {
    column-gap: 25px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  footer .navigation-links__link {
    line-height: 28px;
    font-size: 14px;
  }

  .footer-navigation-phones {
    display: block;
    column-gap: 30px;
    margin: 15px 0;
  }

  .footer-inner__copyright{
    margin-bottom: 5px;
    padding-top: 2px;
  }

  .footer-inner__bottom-inner{
    display: block;
    text-align: center;
    padding: 15px 0;
  }

}

.product-item__image figure{
  width: 280px;
  margin:0;
  padding:0;
  display: block;
  height: 280px;
}

.product-item__image figure img{
  width: 100%;
}

.product-item__buy .product-item__add-to-cart {
    background: #ef1515;
    color: #fff;
    font-weight: 600;
}

.catalog-products__item.product-item:hover .product-item__add-to-cart{
      background: #dd1313;
    color: #fff;
}

.js-add-to-cart img{
  display: none;
}

.product-item__add-to-cart.js-cart-loading{
  padding:0;
}

.js-cart-loading img{
  display: block;
  margin:0 auto;
  padding-top: 17px;
}

.js-cart-loading i{
  display: none;
}
.js-cart-loading span{
  display: none;
}

.filter-variants{
  display: flex;
  align-items: center;
  column-gap: 50px;
}

.filter-values{
  display: none;
}


.filter-item {
  position: relative;
}

.filter-values.open{
  display: block;
  width:400px;
  background: white;
  position: absolute;
  top:50px;
  left: 0;
  border-radius: 6px;
  z-index: 100;
  box-shadow: 1px 9px 11px 7px #0000000f;
  max-height: 396px;
    overflow-y: auto;
    overflow-x: hidden;
}

.filter-item a{
  text-decoration: none;
  color:#434b51;
  font-weight: 600;
  display: block;
  font-size: 16px;
  padding:0 20px 0 0;
}

.filter-item > a:after{
  content:'';
  background: url(../img/arrow-down.svg);
    background-size: 100%;
   width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    right: -10px;
    top: 1px;
}

.filter-value a{
  display: block;
  padding:12px;
  border-bottom:1px solid #f1f1f1;
  font-size:16px;
  color:#434b51;
  text-decoration: none;
  transition: all .3s ease-in-out;
  position: relative;
}

.filter-value a:hover{
  background: #f1f1f1;
}

.filter-values::-webkit-scrollbar {
  width: 6px;
  background: #efefef;
  border-radius: 50px;
  margin-right: 5px;
}

.filter-values::-webkit-scrollbar-track {
  box-shadow: none;
}

.filter-values::-webkit-scrollbar-thumb {
  background-color: #ef1515;
    outline: none;
    border-radius: 50px;
}


.pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  margin: 50px 0 20px;
}


.pagination li{
  list-style: none;
}

.pagination li a{
    color: #333;
    text-decoration: none;
    background: #f1f1f1;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    text-align: center;
    line-height: 42px;
    display: block;
    font-size: 24px;
}

.pagination li.disabled span{
  color: #333;
    text-decoration: none;
    background: #fafafa;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    text-align: center;
    line-height: 31px;
    display: block;
    font-size: 24px;
}


.pagination li.active a{
    color: #fff;
    text-decoration: none;
    background: #dd1313;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    text-align: center;
    line-height: 42px;
    display: block;
    font-size: 24px;
}


.filter-value.active a:after{
    content: "";
    width: 32px;
    height: 32px;
    background: url(/assets/img/checkfilter.svg);
    background-size: 100%;
    position: absolute;
    right: 6px;
    top: 6px;
}

.filter-value.active a{
  color: #ef1515;
  background: #fafafa;
}