.products .hide {
  display: none !important;
}

.products .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-column-gap: 2.5em;
  grid-row-gap: 4em;
  margin-bottom: 5em;
  padding: 0;
  text-align: center;
}

.products .product-item {
  box-sizing: border-box;
  border-radius: 16px;
  background: #fff;
  /*box-shadow: var(--shadow);*/
  border-top: 0px solid #eee;
  padding: 0px;
  overflow: hidden;
  padding: 0;
}

  .products .product-item .image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 260px;
    text-align: center;
    overflow: hidden !important;
  }
    .products .product-item .image img {
      position: relative;
      left: 0;
      top: 0px;
      display: block;
      width: 100%;
      max-width: 240px;
      height: 260px;
      margin: auto;
      overflow: hidden;
      object-fit: contain;
      object-position: center center;
      transition: .6s;
    }

  .products .product-item .image.cover {
    display: block;
    box-sizing: border-box;
    padding: 0px;
  }
    .products .product-item .image.cover img {
      width: 100%;
      max-width: 1000px;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
    }

    .products .product-item .image.stock img {
      position: relative;
      left: 0;
      top: 20px;
      display: block;
      width: 100%;
      height: 180px;
      overflow: hidden;
      object-fit: contain;
      object-position: center center;
      transition: .6s;
    }
    .products .product-item .image img.label {
      position: absolute;
      top: 0;
      left: 0;
      width: auto;
      height: 32px;
    }

  .products .product-item .text {
    position: relative;
    padding: 12px 0px 0 0px;
  }



    .products .product-item .title {
      position: relative;
      display: flex !important;
      align-items: center;
      height: 44px;
      text-align: left;
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      line-height: 1.15;
      font-size: 1.25em;
      font-weight: 600;
    }
    .products .product-item .desc {
      display: block;
      min-height: 30px;
      margin: 0px 0;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      line-height: 1.3;
      font-size: .85em;
      color: #777;
    }

   @media screen and (min-width: 1024px) {

    .products .product-item .weight select {
      position: relative;
      top: 0px;

      cursor: pointer;
      width: 100%;
      height: 32px;
      margin: 8px 0 0 0;

      background: #f5f5f5;
      border: 1px solid #f5f5f5;
      border-radius: 4px;

      -webkit-appearance: none;
      background-image: url('../images/icons/ic_select.png');
      background-size: 16px 16px;
      background-position: right 10px center;
      background-repeat: no-repeat;

      padding: 0px 16px 0px 4px;

      font-weight: 400;
      color: #000;
    }

    .products .product-item .weight span {
      position: relative;
      top: 0px;

      display: flex;
      box-sizing: border-box;
      align-items: center;

      width: 100%;
      height: 32px;
      margin: 8px 0 0 0;

      background: #f5f5f5;
      border: 1px solid #f5f5f5;
      border-radius: 4px;

      padding-left: 4px;

      font-weight: 400;
      color: #000;
    }
  }





    .products .product-item .cost-line {
      position: relative;
      display: grid;
      grid-template-columns: 11fr 1fr;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 56px;
    }

    .products .product-item .oldcost {
      position: ;
      left: 0;
      text-align: left;
      text-decoration: line-through;
      font-size: ;
      font-weight: 500;
      color: #aaa;
    }
    .products .product-item .cost {
      position: relative;
      display: inline-block;
      text-align: left;
      font-size: 1.25em;
      font-weight: 900;
      color: #000;
    }





/* NOTEBOOK / IPAD */
@media screen and (max-width: 1480px) {

  .products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-column-gap: 2.5em;
    grid-row-gap: 3em;
    margin-bottom: 32px;
    padding: 0;
    text-align: center;
  }

  .products .product-item {
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
    padding: 0px;
    overflow: hidden;
    transition: .3s;
  }

    .products .product-item .image {
      position: relative;
      display: block;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 200px;
      text-align: center;
      overflow: hidden !important;
    }
      .products .product-item .image img {
        position: relative;
        left: 0;
        top: 0px;
        display: block;
        width: 80%;
        max-width: 200px;
        height: 200px;
        margin: auto;
        overflow: hidden;
        object-fit: contain;
        object-position: center center;
        transition: .6s;
      }


}



@media screen and (max-width: 1360px) {

  .mainlist .product-item:nth-child(5) {
    display: none;
  }

}


@media screen and (max-width: 1024px) {

  .products h2 {
    font-size: 18px !important;
  }


  .products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-row-gap: 24px !important;
  }

    .products .product-item {
      display: grid;
      grid-template-columns: 144px 1fr;
      grid-column-gap: 8px;
      align-items: start;
      margin: 0;
      padding: 0;
      box-shadow: none;
      border: 0;
      border-radius: 0;
    }
    .products .product-item:hover {
      border: 0;
    }

    .products .product-item .image {
      position: relative;
      display: flex;
      align-items: start;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
      .products .product-item .image img {
        top: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-height: 150px;
        object-fit: contain;
        object-position: center;

        border-radius: 12px;
        transition: .6s;
      }

    .products .product-item .image.cover {
      padding: 0;
    }
      .products .product-item .image.cover img {
        min-width: 100%;
        height: 128px;
      }

      .products .product-item .image img.label {
        width: auto;
        height: 24px;
        border-radius: 0;
      }


    .products .product-item .text {
      padding: 0;
    }

      .products .product-item .title {
        text-align: left;
        font-size: 16px;
        font-weight: 700;
      }

      .products .product-item .desc {
        min-height: auto;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        font-size: 12px;
        color: #444;
      }


      .products .product-item .weight select {
        width: 100%;
        height: 36px;
        margin: 4px 0 0 0;
        background: #f5f5f5;
        border: 1px solid #f5f5f5;
        border-radius: 4px;
        -webkit-appearance: none;
        background-image: url('../images/icons/ic_select.png');
        background-size: 16px 16px;
        background-position: right 10px center;
        background-repeat: no-repeat;
        padding: 0px 16px 0px 6px;
        font-weight: 400;
        color: #000;
      }


      .products .product-item .weight span {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        height: 36px;
        margin: 4px 0;
        background: #f5f5f5;
        border: 0px solid rgba(0,0,0,.1);
        border-radius: 8px;
        padding: 0 6px;
      }




    .products .product-item .cost-line {
      margin: 0;
    }
      .products .product-item .cost {
        font-size: 16px;
        font-weight: 700;
      }


}

@media screen and (max-width: 400px) {

  .products .products-grid {
    grid-row-gap: 16px;
  }
    .products .product-item {
      grid-template-columns: 128px 1fr;
      grid-template-rows: ;
    }
}


@media screen and (max-width: 330px) {

  .products .products-grid {
    grid-row-gap: 8px;
  }
    .products .product-item {
      grid-template-columns: 104px 1fr;
      grid-template-rows: ;
    }
    .products .product-item .desc {
      -webkit-line-clamp: 2;
    }
}
















@media screen and (min-width: 1024px) and (max-width: 1280px) {

	.mainlist .product-item:nth-child(5) {
		display: none;
	}

}
/*
@media screen and (min-width: 1280px)  {

  .products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-column-gap: 1em;
    grid-row-gap: 3em;
    margin-bottom: 32px;
    padding: 0;
    text-align: center;
  }

	.mainlist .product-item:nth-child(5) {
		display: none;
	}

}
*/




















/* Кнопки */
.button-passive,
.button-active {
  display: flex;
  align-items: center;
}



.button-passive .addToCart, a.addToCart_a {
  cursor: pointer;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f39314;
  padding: 0;
  font-size: .9em;
  font-weight: 700;
  color: #fff;
  transition: all .2s;
}
.button-passive .addToCart:active {
  width: 112px;
  height: 40px;
  transition: all .1s;
}

.button-active .updateCart, .button-active .updateCart_fake {
  cursor: pointer;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f39314;
  padding: 0;
  font-size: 1.5em;
  font-weight: 500;
  color: #fff;
  transition: all .2s;
}
.button-active .updateCart:active {
  width: 40px;
  height: 40px;
  transition: all .1s;
}

  .button-active .updateCart.minus span, .button-active .updateCart_fake.minus span {
    position: relative;
    top: -1px;
    font-size: 1.0em;
  }
  .button-active .updateCart.plus span, .button-active .updateCart_fake.plus span {
    position: relative;
    top: 0px;
    font-size: 1.0em;
  }

  .button-active .kolvo {
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 500 !important;
    color: #000;
  }

@media screen and (max-width: 1025px) {

  .button-active .updateCart, .button-active .updateCart_fake {
    width: 32px;
    height: 32px;
  }

  .button-passive .addToCart, a.addToCart_a {
    width: 108px;
    height: 32px;
  }

    .products .product-item .button-passive .addToCart {
      width: 108px;
      height: 32px;
      color: #fff;
    }

    .products .product-item .button-active .updateCart {
      width: 32px;
      height: 32px;
      transition: all .2s;
    }
    .products .product-item .button-active .updateCart:active {
      width: 34px;
      height: 34px;
      transition: all .1s;
    }


      .products .product-item .button-active .kolvo {
        top: 1px;
        width: 44px;
        font-size: 16px;
      }

}

/* */