.favorite-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.favorite-actions__form {
  margin: 0;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.favorite-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  background: #1f2937;
}

.favorite-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.favorite-button--remove {
  background: #dc2626;
}

.favorite-button--remove:hover {
  background: #b91c1c;
}

.favorite-link {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.favorite-link:hover {
  text-decoration: underline;
}

.favorites-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px;
}

.favorites-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.favorites-page h1 {
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 700;
}

.favorites-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.favorite-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.favorite-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.favorite-card__image {
  display: block;
  background: #f8fafc;
}

.favorite-card__image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.favorite-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.favorite-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.favorite-card__title a {
  text-decoration: none;
  color: inherit;
}

.favorite-card__title a:hover {
  text-decoration: underline;
}

.favorite-card__brand {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.favorite-card__form {
  margin-top: auto;
}

.favorite-card__form .favorite-button {
  width: 100%;
}

.favorites-empty {
  color: #64748b;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .favorite-card__image img {
    height: 180px;
  }
}
