.products-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.products-loop--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products-loop--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-loop--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .products-loop--cols-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .products-loop,
  .products-loop--cols-4,
  .products-loop--cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .products-loop,
  .products-loop--cols-4,
  .products-loop--cols-5,
  .products-loop--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-loop {
    gap: 1.25rem 0.75rem;
  }
}

.product-card {
  position: relative;
}

.product-card__link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--rounded);
  background-color: var(--gray-100);
  aspect-ratio: 4 / 5;
}

.product-card__image-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  z-index: 2;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.product-card__image-wrapper--multi .product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.product-card__image-wrapper--multi .product-card__image.is-active {
  opacity: 1;
  z-index: 1;
}

.product-card__image-bars {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 180ms ease;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

@media (hover: hover) {
  .product-card__image-wrapper--multi:hover .product-card__image-bars {
    opacity: 1;
  }
}

.product-card__image-bar {
  flex: 1 1 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.product-card__image-bar.is-active {
  background: #fff;
}

.product-card__badge,
.product-card__saving {
  position: absolute;
  top: 0.75rem;
  z-index: 3;
  padding: 0.35rem 0.55rem;
  border-radius: calc(var(--rounded) * 0.5);
  background: #fff;
  color: #111;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.product-card__badge {
  left: 0.75rem;
}

.product-card__saving {
  right: 2.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.product-card__category {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray-500);
  text-decoration: none;
}

.product-card__category:hover {
  color: #111;
  text-decoration: underline;
}

.product-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  word-break: break-word;
  color: inherit;
  text-decoration: none;
}

.product-card__title .product-title__quoted {
  font-weight: 700;
}

.product-card__price {
  margin-top: 0.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
}

.product-card__price .price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
}

.product-card__price del {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gray-500);
}

.product-card__price ins {
  background-color: transparent;
  text-decoration: none;
}

.product-card__wishlist {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.35);
  transition: color 300ms;
}

@media (hover: hover) {
  .product-card__wishlist:hover {
    color: #111;
  }
}

.product-card__wishlist--active {
  color: #111;
}

.products-empty {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
}

.products-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--gray-500);
}

.products-empty__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111;
}

.products-empty__text {
  margin: 0;
  max-width: 28rem;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.5;
}

.products-empty__btn {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.wishlist-content > .products-empty {
  min-height: 45vh;
}

@media (max-width: 767px) {
  .products-empty__title {
    font-size: 1.25rem;
  }
}
