/* =====================
   Favorites — Blue × Indigo
===================== */
.fav-hero {
    background:
      radial-gradient(ellipse 70% 60% at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 65%),
      radial-gradient(ellipse 50% 50% at 80% 30%, rgba(99, 102, 241, 0.07) 0%, transparent 60%),
      var(--bg-2);
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--border);
  }
  
  .fav-hero-inner { display: flex; flex-direction: column; gap: 6px; }
  
  .fav-heading {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    margin: 0;
  }
  
  .fav-sub { margin: 0; }
  
  .fav-section { padding: 36px 20px 60px; }
  
  .fav-grid {
    display: grid;
    /* 235px min → 4 cards per row in the 1140px container (responsive via auto-fill) */
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 18px;
  }
  
  /* Card */
  .fav-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), opacity 0.3s ease;
  }
  
  .fav-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-border);
    box-shadow: var(--shadow-blue);
  }
  
  .fav-card.removing {
    opacity: 0;
    transform: scale(0.93);
    pointer-events: none;
  }
  
  .fav-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  
  .fav-card-link:hover { text-decoration: none; }
  
  .fav-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-3);
  }
  
  .fav-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .fav-card:hover .fav-card-img { transform: scale(1.04); }
  
  .fav-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .fav-card-seller { display: flex; align-items: center; gap: 8px; }
  
  .fav-card-avatar {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-border);
    display: grid; place-items: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--blue);
    flex: 0 0 auto;
  }
  
  .fav-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .fav-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  
  .fav-card-rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.83rem; font-weight: 700;
  }
  
  .fav-rating-val { font-weight: 800; color: var(--text); }
  
  .fav-card-price { font-size: 0.83rem; color: var(--text-2); }
  .fav-card-price strong { color: var(--blue); font-weight: 900; }
  
  /* Remove btn */
  .fav-remove-btn {
    position: absolute;
    top: -10px; right: -10px;
    width: 28px; height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), color var(--transition), transform var(--transition);
    z-index: 2;
  }
  
  .fav-remove-btn:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    transform: scale(1.15);
  }
  
  /* Empty state */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 14px;
  }
  
  .empty-icon  { font-size: 3.5rem; }
  .empty-title { font-size: 1.4rem; font-weight: 900; margin: 0; color: var(--text); }
  .empty-sub   { max-width: 320px; line-height: 1.6; color: var(--text-2); }
  .empty-btn   { margin-top: 6px; width: auto; padding: 12px 28px; }
  
  /* Responsive */
  @media (max-width: 640px) {
    .fav-heading { font-size: 1.5rem; }
    .fav-grid    { grid-template-columns: 1fr; }
  }