/* ==================================================
   GALILE — favorites.css
   صفحه علاقه‌مندی‌ها
   ================================================== */

/* ============================================
   ۱. هدر صفحه
   ============================================ */
.fav-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  text-align: center;
}

.fav-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.fav-subtitle {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .fav-hero {
    padding: 110px 0 40px;
  }
}

/* ============================================
   ۲. محتوای لیست
   ============================================ */
.fav-content {
  padding: 20px 0 80px;
  background: var(--bg);
  min-height: 50vh;
}

/* ============================================
   ۳. نوار ابزار بالای لیست
   ============================================ */
.fav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.fav-count {
  font-size: 13.5px;
  color: var(--text-soft);
}

.fav-count span {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.fav-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  font-family: inherit;
}

.fav-clear-btn i {
  font-size: 12px;
}

.fav-clear-btn:hover {
  border-color: #e63946;
  color: #e63946;
  background: rgba(230, 57, 70, 0.06);
}

/* ============================================
   ۴. گرید محصولات علاقه‌مندی
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ============================================
   ۵. کارت محصول (کپی از style.css — هماهنگ)
   ============================================ */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.45s var(--ease);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 154, 90, 0.35);
  box-shadow: var(--shadow-lg);
}

.product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gold);
}

.product-placeholder i {
  font-size: 38px;
  opacity: 0.45;
}

.product-placeholder span {
  font-size: 11px;
  color: var(--text-faint);
}

.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-new {
  background: rgba(23, 23, 25, 0.88);
  color: #fff;
}

.badge-sale {
  background: var(--gold);
  color: #fff;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
  transition: all 0.3s var(--ease);
  z-index: 2;
  border: none;
  cursor: pointer;
}

.product-wishlist:hover,
.product-wishlist.active {
  background: var(--gold);
  color: #fff;
}

/* در این صفحه همیشه قلب پر باشه */
.fav-card .product-wishlist {
  background: var(--gold);
  color: #fff;
  opacity: 1;
}

.product-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-code {
  font-size: 9.5px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  font-family: var(--ff-en);
  text-transform: uppercase;
}

.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.product-price small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-soft);
  margin-right: 2px;
}

.product-price-old {
  font-size: 11px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.product-cta {
  margin-top: 10px;
  width: 100%;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.product-cta:hover {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 768px) {
  .product-info { padding: 10px 12px 14px; }
  .product-name { font-size: 12px; min-height: 34px; }
  .product-price { font-size: 13px; }
  .product-cta { height: 32px; font-size: 10.5px; margin-top: 8px; }
  .product-badges { top: 6px; right: 6px; }
  .badge { font-size: 9px; padding: 2px 8px; }
  .product-wishlist {
    top: 6px;
    left: 6px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* ============================================
   ۶. حالت خالی
   ============================================ */
.fav-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}

.fav-empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 42px;
  opacity: 0.7;
}

.fav-empty h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.5;
}

.fav-empty p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 28px;
  line-height: 1.9;
}

.fav-empty .btn {
  display: inline-flex;
}