/* «Ulubione»: позначка-закладка біля назви товару і в картках сторінки списку.
   Стан (.is-active) ставить js/wishlist.js. */

.wl-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #15161a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wl-mark svg path {
  transition: fill 0.15s ease;
}
.wl-mark.is-active svg path {
  fill: currentColor;
}
.wl-mark.is-pop svg {
  animation: wl-pop 0.3s ease;
}
@keyframes wl-pop {
  50% { transform: scale(1.2); }
}

/* Сторінка товару: праворуч від назви. Зона дотику 44 px, сама іконка 28 px
   притиснута до правого краю. Від'ємних відступів не можна: колонка товару має
   власний скрол і з'їжджає вбік. */
.wl-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wl-title-row .wl-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  justify-content: flex-end;
  margin-top: -6px;
}
@media (hover: hover) {
  .wl-title-row .wl-mark:hover {
    opacity: 0.6;
  }
}

/* Картки на сторінці списку: на темних фото потрібна біла підкладка. */
.wl-mark--card {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.wl-mark--card svg {
  width: 20px;
  height: 20px;
}
/* Бейджі (`.tags`, critical.css) тягнуться на всю ширину фото: лишаємо місце позначці. */
[data-wishlist-grid] .product-cards__card .tags {
  right: 52px;
}
@media (max-width: 650px) {
  .wl-mark--card {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
  }
  .wl-mark--card svg {
    width: 18px;
    height: 18px;
  }
  [data-wishlist-grid] .product-cards__card .tags {
    right: 42px;
  }
}

/* Сторінка списку: та сама сітка карток, що в каталозі, у колонці кабінету. */
.wishlist-page .catalog-list {
  grid-template-columns: repeat(3, 1fr);
}
.wishlist-page--guest .account-layout {
  grid-template-columns: 1fr;
}
.wishlist-page--guest .catalog-list {
  grid-template-columns: repeat(4, 1fr);
}
/* account.css (підключений пізніше) обнуляє відступи `.acc-muted` — вага з батьком. */
.wishlist-page .wishlist-page__guest {
  margin: -16px 0 32px;
}
.wishlist-page__guest a {
  color: inherit;
  text-decoration: underline;
}
.wishlist-page .product-cards__card.is-removing {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.wishlist-empty p {
  margin: 0 0 8px;
}
.wishlist-empty .wishlist-empty__title {
  color: #15161a;
  font-weight: 500;
}
.wishlist-empty .acc-btn {
  margin-top: 16px;
}
@media (max-width: 1200px) {
  .wishlist-page .catalog-list,
  .wishlist-page--guest .catalog-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .wishlist-page .catalog-list,
  .wishlist-page--guest .catalog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
