/*
|--------------------------------------------------------------------------
| Wishlist
|--------------------------------------------------------------------------
*/

.product-card__wishlist {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #171717;

  transition:
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

/*
|--------------------------------------------------------------------------
| SVG
|--------------------------------------------------------------------------
*/

.product-card__wishlist svg {
  display: block;
  width: 22px;
  height: 22px;
}

.product-card__wishlist svg path {
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

/*
|--------------------------------------------------------------------------
| Favorite state
|--------------------------------------------------------------------------
*/

.product-card__wishlist.is-favorite {
  color: #e53935;
}

.product-card__wishlist.is-favorite svg path {
  fill: #e53935;
  stroke: #e53935;
}

/*
|--------------------------------------------------------------------------
| Hover
|--------------------------------------------------------------------------
*/

.product-card__wishlist:hover {
  transform: scale(1.08);
}

/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.product-card__wishlist.wpf-loading {
  opacity: 0.5;
  pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Keyboard focus
|--------------------------------------------------------------------------
*/

.product-card__wishlist:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
