/* ===============================
    Favorites Page Style
    (رنگ‌بندی هماهنگ با home.css / cart.css)
==================================*/

/* نشون دادن اینکه کاربر الان تو صفحه علاقه‌مندی‌هاست */
.favShop_icons.active i {
  color: #e0245e;
}

/* عنوان صفحه */
.fav-page-title {
  width: 98%;
  max-width: 1100px;
  margin: 16px auto 18px;
  padding: 0 20px;
  text-align: center;
}

.fav-page-title h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--c-primary);
}

/* بسته‌بندی کلی */
.fav-wrap {
  width: 98%;
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 20px;
  min-height: 200px;
}

.fav-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* هر ردیف از علاقه‌مندی‌ها */
.fav-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}

.fav-row:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.11);
  transform: translateY(-1px);
}

.fav-row-img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}

.fav-row-info {
  min-width: 0;
}

.fav-row-name {
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}

.fav-row-price {
  color: var(--c-primary);
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 4px;
}

.fav-row-stock {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: #16a34a;
}

.fav-row-stock.out {
  color: var(--c-danger);
}

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

.fav-row-addcart-btn {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .2s, transform .2s;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.fav-row-addcart-btn:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}

.fav-row-addcart-btn:disabled {
  background: var(--c-border);
  color: var(--c-text-muted);
  cursor: not-allowed;
  transform: none;
}

.fav-row-remove {
  border: none;
  background: #fee2e2;
  color: var(--c-danger);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
}

.fav-row-remove:hover {
  background: var(--c-danger);
  color: #fff;
}

/* حالت خالی بودن علاقه‌مندی‌ها */
.fav-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--c-text-muted);
}

.fav-empty i {
  font-size: 3rem;
  color: #f3a8be;
  margin-bottom: 16px;
  display: block;
}

.fav-empty p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.fav-empty-btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  transition: background .25s;
}

.fav-empty-btn:hover {
  background: var(--c-primary-dark);
}

/* ================= واکنش‌گرا (موبایل) ================= */
@media (max-width: 700px) {
  .fav-row {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "img info"
      "actions actions";
    row-gap: 12px;
  }

  .fav-row-img { grid-area: img; width: 60px; height: 60px; }
  .fav-row-info { grid-area: info; }
  .fav-row-actions { grid-area: actions; justify-content: space-between; }

  .fav-row-addcart-btn {
    flex: 1;
    justify-content: center;
  }

  .fav-page-title h1 {
    font-size: 1.5rem;
  }
}
