.product {
  padding: 8px;
  margin: 0 auto;

  background-color: $white;
  border-radius: 10px;

  &:hover {

    .product__btns--column {
      opacity: 1;
    }

    .product__image {
      opacity: 0.6;
    }
  }

  &--column {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  &--compare {
    border: 1px solid transparent;
    transition: box-shadow .1s linear, border-color .1s linear;

    &:hover {
      border-color: #F2F2F2;
      box-shadow: 0 4px 5px 0 #ACACAC26;

      .product__delete {
        opacity: 1;
      }
    }
  }

  &--row {
    width: 100%;
    margin-bottom: 3rem;

    .product__preview {
      width: 100%;
      height: 214px;
      padding-bottom: 0;
      margin-bottom: 0;

      border-bottom: 0;

      @include media-breakpoint-down(md) {
        margin-bottom: 2rem;
      }
    }

    .product__title {
      font-size: 1.8rem;
      font-weight: 500;
      color: $dark;
    }

    .product__price {
      margin-bottom: 0;

      font-size: 2.4rem;

      del {
        font-size: 1.4rem;
      }
    }
  }
}

.product__header {
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;

  border-bottom: 1px solid #F2F2F2;
}

.product__data {
  display: flex;
  flex-wrap: wrap;
  list-style: none;

  font-size: 1.4rem;
  color: #9E9E9E;

  @include media-breakpoint-down(md) {
    flex-direction: column;
  }

  &--sm {
    font-size: 1.2rem;

    .product_data-item {

      &:not(:last-child) {
        padding-right: 1.2rem;
        margin-right: 1.2rem;
      }
    }
  }
}

.product_data-item {

  &:not(:last-child) {
    padding-right: 1.2rem;
    margin-right: 1.2rem;

    border-right: 1px solid #F2F2F2;

    @include media-breakpoint-down(md) {
      border: none;
    }
  }
}

.product__preview {
  display: block;
  width: 100%;
  // height: 20rem;
  // margin-bottom: 2.6rem;
  // padding-bottom: 1.6rem;
  position: relative;

  // border-bottom: 1px solid #F2F2F2;
  text-decoration: none;
  color: $white;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    max-width: 100%;
  }
}

.product__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .1s linear;
}

.product__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;

  background-color: $red;
  box-shadow: 0px 9px 7px rgba(175, 175, 175, 0.25);
  border-radius: 50%;

  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;

  position: absolute;
  bottom: 1.8rem;
  right: -3rem;

  span {
    position: relative;
    top: 2px;
  }
}

.product__title {
  flex: 1;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #606060;
  font-weight: 400;

  a {
    color: inherit;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.product__text {
  margin-bottom: 0.8rem;

  font-size: 1.4rem;
  color: #606060;
}

.product__status {
  margin-bottom: 1rem;

  font-size: 1.2rem;
  font-weight: 500;
}

.product__price {
  margin-bottom: 2.4rem;

  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
  color: $dark;

  del {
    margin-left: 0.8rem;

    font-size: 1.2rem;
    color: #9E9E9E;
    font-weight: 400;
  }
}

.product__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.6rem;

  border-bottom: 1px solid #F2F2F2;

  .btn--block {
    width: auto;
    flex-grow: 1;
  }
}

.product__delete {
  width: 2rem;
  height: 2rem;
  padding: 0;

  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;

  position: absolute;
  left: 50%;
  top: -1.75rem;
  z-index: 1;

  transform: translateX(-50%);
  transition: opacity .1s linear;
}

.product__btn {
  margin-top: auto;
  a {
    font-size: 12px;
  }
}

.product__btns {

  &--column {
    display: flex;
    flex-direction: column;
    gap: 8px;

    position: absolute;
    top: 8px;
    right: 8px;

    opacity: 0;
    transition: opacity .1s linear;

    .btn + .btn {
      margin-top: 8px;
      margin-left: 0;
    }
  }

}

.product__description a {
  font-weight: bolder;
  text-decoration: underline;
  cursor: pointer;
}