.favorites-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.favorites-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.favorites-header p {
  color: #666;
}

.btn-outline {
  background: #fff;
  color: purple;
  border: 1px solid rgba(128, 0, 128, 0.35);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.card {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  position: relative;
}

.card-media {
  position: relative;
  aspect-ratio: 2 / 1;
  height: auto;
  overflow: hidden;
}

.card-link--overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: purple;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.fav {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  background: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fav .bx {
  color: purple;
  font-size: 18px;
}

.fav:hover {
  transform: scale(1.08);
  transition: transform 0.15s ease;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.price-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pro {
  border: 1px solid purple;
  color: purple;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.specs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.specs span {
  display: block;
  color: #777;
  font-size: 0.65rem;
}

.specs strong {
  font-size: 0.75rem;
  color: #222;
}

.specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(128, 0, 128, 0.15);
  color: purple;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  overflow: hidden;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller {
  color: #333;
  font-size: 0.9rem;
  margin: 0;
}

.verified {
  color: #1d9bf0;
  font-size: 0.95rem;
  vertical-align: middle;
  margin-left: 4px;
}

.seller-sub {
  color: #1a9b3f;
  font-size: 0.75rem;
  margin: 2px 0 0;
}

.price {
  color: purple;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed rgba(128, 0, 128, 0.35);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: #4b0076;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: #666;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .favorites-page {
    padding-top: 88px;
    overflow-x: hidden;
  }

  .favorites-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards,
  .card,
  .card-link,
  .card-body,
  .specs,
  .specs > div {
    min-width: 0;
  }

  .card-body h3 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92%;
  }
}
