/* ========== GRID BASE ========== */
.grid__item-title_count {
  display: block;
}

.grid__preview {
  position: relative;
  margin: 0 0 5px;
}

.grid__preview > .grid__list {
  display: block;
  position: relative;
  width: 100%;
}

.grid__preview .slick-track {
  display: flex;
}

.grid__preview .grid__item {
  padding: 0 2px;
  max-width: calc(45vw);
}

.grid__preview .slick-list {
  overflow: hidden;
}

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

.grid__title {
  font-size: 18px;
  line-height: 23px;
}

.grid__title-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.grid__title-view_all {
  display: block;
  padding: 5px 7px;
  font-size: 12px;
  line-height: 17px;
  color: #000;
  background: rgba(255, 217, 0, 1);
  border-radius: 8px;
  box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.2);
}

.grid__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* базовый mobile */
  grid-gap: 25px 4px;
  justify-content: space-between;
}

.grid__item {
  outline: none;
}

.grid__item-link {
  display: block;
  position: relative;
  outline: none;
}

.grid__item-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* сохраняет пропорции без обрезки */
  object-position: center;
}

.grid__item-image_block {
  /* min-height: 100px; */
  aspect-ratio: 1 / 1;
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid__item-price {
  display: block;
  margin: 0 0 5px 0;
}

.grid__item-price_current {
  display: block;
  color: #FF416E;
  font-weight: 500;
  font-size: 14px;
  line-height: 15px;
}

.grid__item-price_old {
  position: relative;
  margin: 0;
  display: inline-block;
  color: rgba(45, 72, 80, 0.6);
  font-size: 12px;
  line-height: 14px;
  font-weight: 300;
}

.grid__item-price_old:before {
  content: '';
  position: absolute;
  left: 0;
  top: 45%;
  width: 100%;
  height: 1px;
  background: #FF416E;
}

.grid__item-title {
  color: #2D4850;
  font-size: 14px;
  line-height: 20px;
}

.grid__item-title_val {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: calc(45vw);
  width: 100%;
  display: block;
  font-weight: 500;
}

.grid__add-button {
  display: block;
  margin: 15px 0 0 0;
  opacity: 1;
  text-transform: uppercase;
  width: calc(100% - 20px);
  padding: 12px 0;
  cursor: pointer;
  font-size: 12px;
  line-height: 12px;
}

.grid__add-button.inactive {
  pointer-events: none !important;
}

.grid__item-more {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45vw;
}

.grid__item-more-link {
  display: flex;
  flex-direction: column;
}

.grid__item-more-icon {
  display: block;
  padding: 20px;
  border-radius: 50%;
  border: 3px solid #ff416e;
  margin: auto;
}

.grid__item-more-icon:after {
  content: '';
  display: block;
  background-image: url("/build/images/svg/sprite.svg");
  background-position: -246px, -246px;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
}

.grid__item-more-text {
  display: block;
  text-align: center;
  margin: 15px 0 0 0;
  color: #ff416e;
}

.grid__block.grid__preview {
  margin: 0 0 30px;
}

.grid__list-arrows {
  display: none;
  /* по умолчанию скрыто */
  position: absolute;
  width: 100%;
  pointer-events: none;
  top: calc(45% - 40px);
}

.grid__list-arrow-left,
.grid__list-arrow-right {
  display: block;
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: all;
  cursor: pointer;
  transition: .5s;
  outline: none;
}

.grid__list-arrow-left {
  left: -60px;
  background-image: url("/build/images/svg/sprite.svg");
  background-position: -298px, -298px;
}

.grid__list-arrow-right {
  right: -60px;
  background-image: url("/build/images/svg/sprite.svg");
  background-position: -368px, -368px;
}

.grid__list-arrow-right.slick-disabled,
.grid__list-arrow-left.slick-disabled {
  opacity: 0;
  pointer-events: none;
}

/* ========== MEDIA QUERIES ========== */

/* ≥480px */
@media screen and (min-width: 480px) {
  .grid__title-container {
    margin: 0 0 22px;
  }

  .category-page .grid__title {
    font-size: 18px;
    line-height: 22px;
  }
}

/* ≥560px */
@media screen and (min-width: 560px) {
  .grid__list-arrows {
    display: block;
  }
}

/* ≥640px */
@media screen and (min-width: 640px) {
  .grid__item-title_val {
    max-width: 100%;
    width: 100%;
  }
}

/* ≥768px */
@media screen and (min-width: 768px) {
  .grid__title {
    font-size: 22px;
    line-height: 27px;
  }

  .grid__title-view_all {
    font-size: 14px;
    line-height: 18px;
  }

  .grid__title-container {
    justify-content: space-between;
    margin: 0 0px 20px 0;
  }

  .grid__item-img {
    width: 150px;
  }

  .grid__preview .grid__item {
    margin: 0 20px 0 0;
    padding: 0;
    width: 150px !important;
  }

  .grid__block.grid__preview {
    margin: 0 -20px 20px 0;
  }
}

/* ≥1024px */
@media screen and (min-width: 1024px) {
  .grid__item-img {
    max-width: 130px;
  }

  .grid__list {
    grid-template-columns: repeat(auto-fill, 160px);
    justify-content: space-around;
  }
}

/* ≥1248px */
@media screen and (min-width: 1248px) {
  .grid__item-img {
    max-width: 130px;
  }
}

/* ≥1440px */
@media screen and (min-width: 1440px) {
  .grid__item-img {
    max-width: 160px;
  }
}

/* SPECIAL CASES */
.related .grid__title {
  font-size: 18px;
  line-height: 21px;
}

.category-page .grid__title {
  font-size: 14px;
  line-height: 16px;
}