/* ============================================
   Block: account-favorites — избранное
   ============================================ */

.b-account-favorites {
  color: var(--text, #3B3437);
  font-family: 'Manrope', sans-serif;
}

.b-account-favorites__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 22px;
}

.b-account-favorites__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Карточка товара */

.b-account-favorites__card {
  position: relative;
  background: var(--surface, #FDFBF7);
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.b-account-favorites__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(253, 251, 247, .9);
  font-size: 20px;
  line-height: 1;
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  transition: color .2s, background .2s;
}

.b-account-favorites__remove:hover {
  color: var(--accent, #6E5A7E);
  background: var(--lavender-soft, #E9E1EF);
}

.b-account-favorites__photo {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-2, #F1EBE2);
}

.b-account-favorites__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.b-account-favorites__card:hover .b-account-favorites__photo img {
  transform: scale(1.04);
}

.b-account-favorites__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  flex: 1;
}

.b-account-favorites__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text, #3B3437);
  text-decoration: none;
}

.b-account-favorites__name:hover {
  color: var(--accent, #6E5A7E);
}

.b-account-favorites__meta {
  font-size: 12px;
  color: var(--muted, #8A7F7A);
}

.b-account-favorites__price {
  font-size: 16px;
  font-weight: 600;
  margin: 6px 0 10px;
}

.b-account-favorites__btn {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .b-account-favorites__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .b-account-favorites__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .b-account-favorites__info {
    padding: 12px;
  }

  .b-account-favorites__name {
    font-size: 17px;
  }
}
