.product-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card__wishlist {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  padding: 0;
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}
.product-card__wishlist svg {
  --white: transparent;
}
.product-card__wishlist_active svg {
  --white: var(--danger);
  --black: var(--danger);
}
.product-card__wishlist_active_red svg {
  --white: var(--danger);
  --black: var(--danger);
}

.product-card__wishlist:hover svg{
    --white: var(--danger);
    --black: var(--danger);
}

.product-card-preview{
    aspect-ratio: 4 / 3;
}

.product-card-preview__container{
    display: block;
    height: 100%;
    width: 100%;
}
.product-card__title {
  color: var(--black);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 150%;
  display: block;
  margin: 0;
  font-weight: 600;
  padding-top: 0.625rem;
}
.product-card__title:focus {
  color: var(--primary-hover);
}
.product-card__description {
  font-size: 0.75rem;
  line-height: 150%;
  margin: 0;
}
.product-card__price {
  margin: 0 0 0.4375rem 0;
}
.product-card__button {
  width: 100%;
  font-size: 0.75rem;
  height: 2.125rem;
  border-radius: 0.375rem;
  padding: 0 0.625rem;
  background-color: transparent;
}
.product-card__button:focus {
  background-color: var(--grey-1);
}
.product-card__button_added {
  background-color: var(--primary);
  color: var(--white);
    border-color: var(--primary);
}
.product-card__button_added:focus {
  background-color: var(--primary-hover);
}
.product-card_visible .product-card-preview__separator {
  display: none;
}

.product-card__info{
    /*padding-bottom: 0.625rem;*/
}

.product-card__info-top{
    position: relative;
}

@media (hover: hover) {
  .product-card__wishlist:hover:not(.product-card__wishlist_active) svg {
    --black: var(--primary-hover);
  }
  .product-card__button:hover {
    background-color: var(--grey-1);
  }
  .product-card__button_added:hover {
    background-color: var(--primary-hover);
  }
  .product-card__title:hover {
    color: var(--primary-hover);
  }
  .product-card:hover:not(.product-card_no-bottom) {
    /*overflow: hidden;*/
  }
  .product-card:hover:not(.product-card_no-bottom) .product-card__info {
    opacity: 1;
  }

    .product-card:hover:not(.product-card_no-bottom) .product-card__info .product-card__description{
        opacity: 0;
    }

  .product-card:hover:not(.product-card_no-bottom) .product-card__button {
    opacity: 1;
    position: absolute;
    z-index: 1;
  }
}
.product-cards-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.75rem;
  row-gap: 1.5rem;
}

.product-card-preview__container {
  position: relative;
}
.product-card-preview__wrapper {
  width: 100%;
    height: 100%;
  position: relative;
  border-radius: min(max(0.5rem, 1.5vw), 0.75rem);
  overflow: hidden;
}
.product-card-preview__track {
  height: 100%;
  position: relative;
}
.product-card-preview__slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: var(--transition);
  object-fit: cover;
  object-position: center;
}
.product-card-preview__picture_active .product-card-preview__slide {
  opacity: 1;
}
.product-card-preview__pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.3125rem;
  pointer-events: none;
  position: relative;
  bottom: 0.75rem;
  z-index: 1;
}
.product-card-preview__bullet {
  display: block;
  width: 0.3125rem;
  height: 0.3125rem;
  /*background: rgba(255, 255, 255, 0.5);*/
  background: rgba(33, 30, 49, 0.3);
  border-radius: 50%;
  transition: var(--transition);
}
.product-card-preview__bullet_active {
  /*background: var(--white);*/
  background: #211E31;
}
.product-card-preview__bullet_dark {
  background-color: rgba(161, 169, 195, 0.5);
}
.product-card-preview__bullet_dark.product-card-preview__bullet_active {
  background: var(--grey-2);
}
.product-card-preview__separator {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.product-card-preview__separator-item {
  flex-grow: 1;
}

@media (min-width: 48rem) {
  .product-card {
    gap: 0.625rem;
  }
  .product-card__title {
    font-size: 1rem;
  }
  .product-card__description {
    font-size: 1rem;
  }
  .product-card__button {
    font-size: 1rem;
    height: auto;
    padding: 1rem 1rem;
    border-radius: 0.75rem;
  }
  .product-cards-container {
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 80rem) {
  .product-card_no-bottom {
    padding-bottom: 0;
  }
  .product-card:not(.product-card_visible) {
    padding-bottom: 1.9375rem;
  }
  .product-card:not(.product-card_visible) .product-card__bottom {
    position: absolute;
    bottom: -0.625rem;
    left: 0;
    right: 0;
  }
  .product-card:not(.product-card_visible) .product-card__button {
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: none;
  }
  .product-cards-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card__bottom .product-card__button:hover{
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
