/* Sales list common */

.sales-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(50% - 32px), 1fr));
  gap: 16px;
}

/* Sales preview */

.sales-preview__container {
  position: relative;

  height: 230px;

  border-radius: 16px;
  background: black;
}

.sales-preview__text {
  position: inherit;
  padding: 30px 40px;
  justify-content: space-between;
  z-index: 1;
  height: 100%;
  max-width: 50%;
}

.sales-preview__text > div {
  gap: 14px;
}

.sales-preview__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
}

.sales-preview__image,
.sales-preview__image > img {
  height: 230px;
  z-index: 0;
}

.sales-preview__image > img {
  object-fit: cover;
  width: 100%;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 35% 100%);
  border-radius: 0 16px 16px 0;
}

/* Sales card */

.sales-card__container {
  position: relative;
  height: 190px;
  border-radius: 16px;
  background: black;
}

.sales-card__text {
  position: inherit;
  padding: 30px 40px;
  gap: 14px;
  z-index: 1;
  height: 100%;
  max-width: 50%;
}

.sales-card__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
}

.sales-card__image,
.sales-card__image > img {
  height: 190px;
  z-index: 0;
}

.sales-card__image > img {
  object-fit: cover;
  width: 100%;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 35% 100%);
  border-radius: 0 16px 16px 0;
}

.sales-card__link {
  text-decoration: none;
  cursor: pointer;
}

/* Sales slider */
.sales-slider__container {
  position: relative;
  gap: 20px;
  padding: 0 10px;
  width: calc(100% - 120px);
  margin: 0 auto;
}

.sales-slider__item {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 214px;
  width: 360px;
}

#sales-slider {
  overflow-x: hidden;
}

.sales-button__slider {
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  background-color: white;
  border: none;
  -webkit-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  position: absolute;
  z-index: 5;
}

.sales-slider-left {
  top: calc(50% - 50px);
  left: -50px;
}

.sales-slider-right {
  top: calc(50% - 50px);
  right: -50px;
  transform: rotate(180deg);
}

.sales-slider__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 10px 10px 0;
}

.sales-slider__text {
  justify-content: center;
  background-color: var(--color-accent-red);
  padding: 5px;
  border-radius: 10px 0 0 10px;
}

.sale-slider__redirect-container {
  justify-content: center;
}

@media (max-width: 780px) {
  .sales-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    gap: 16px;
  }

  .sales-preview__container {
    height: 200px;
  }

  .sales-preview__image,
  .sales-preview__image > img {
    height: 200px;
  }

  .sales-preview__text {
    padding: 30px;
  }

  .sales-card__container {
    height: 170px;
  }

  .sales-card__image,
  .sales-card__image > img {
    height: 170px;
  }

  .sales-card__text {
    padding: 30px;
  }

  .sales-slider__container {
    width: 100%;
  }

  .sales-button__slider {
    display: none;
  }
}
