/**
 * Northcity Favori Sistemi (Wishlist / Favorites) CSS
 */

/* 1. Genel Buton Stilleri */
.nc-fav-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.nc-fav-btn:hover {
  background: #fff1f2;
  border-color: #fecdd3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

.nc-fav-btn:active {
  transform: scale(0.92);
}

/* 2. Kalp İkonu */
.nc-fav-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.8;
  transition: all 0.25s ease;
  pointer-events: none;
}

.nc-fav-btn:hover .nc-fav-icon {
  stroke: #e11d48;
}

/* Aktif Durum: Dolu Kırmızı Kalp */
.nc-fav-btn.active .nc-fav-icon {
  fill: #e11d48;
  stroke: #e11d48;
  animation: nc-fav-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nc-fav-btn.active {
  background: #fff1f2;
  border-color: #fda4af;
}

@keyframes nc-fav-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* 3. Kategori, Mağaza ve Döngü (Loop) Kartlarındaki Buton */
.nc-loop-fav-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 9 !important;
}

.nc-product-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.ast-separate-container .ast-woocommerce-container ul.products li.product {
  position: relative !important;
}

/* 4. Tekil Ürün Sayfası Butonu (.nc-single-fav-btn) */
.nc-single-fav-btn {
  width: auto !important;
  height: 48px !important;
  border-radius: 12px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  vertical-align: middle !important;
  text-decoration: none !important;
}

.nc-single-fav-btn:hover {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  color: #e11d48 !important;
}

.nc-single-fav-btn.active {
  background: #fff1f2 !important;
  border-color: #fda4af !important;
  color: #e11d48 !important;
}

.nc-single-fav-btn .nc-fav-icon {
  width: 22px !important;
  height: 22px !important;
}

/* WooCommerce Tekil Ürün Sepete Ekle Formu Hizalaması */
.woocommerce div.product form.cart {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

/* 5. Header Favoriler Rozeti */
.nc-header-fav-btn .nc-fav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

/* 6. Favoriler Sayfası & Hesabım Favoriler Stilleri */
.nc-favorites-page {
  padding: 10px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.nc-fav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 16px;
}

.nc-fav-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.nc-fav-count {
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 12px;
  border-radius: 999px;
  margin-left: 8px;
}

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

.nc-fav-product {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nc-fav-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.nc-fav-product-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8fafc;
}

.nc-fav-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nc-fav-product:hover .nc-fav-product-img img {
  transform: scale(1.06);
}

.nc-fav-product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nc-fav-product-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-fav-product-title:hover {
  color: #0284c7;
}

.nc-fav-product-price {
  font-size: 16px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 14px;
  margin-top: auto;
}

.nc-fav-add-to-cart {
  width: 100% !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
}

.nc-fav-add-to-cart:hover {
  background: #0369a1 !important;
}

.nc-fav-add-to-cart.added {
  background: #10b981 !important;
}

.nc-fav-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s ease;
  z-index: 5;
}

.nc-fav-remove-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.1);
}

.nc-fav-empty {
  text-align: center;
  padding: 50px 20px;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
}

.nc-fav-browse-btn {
  display: inline-block;
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none !important;
  margin-top: 16px;
}

.nc-fav-browse-btn:hover {
  background: #0369a1;
}

/* 7. Mobil Uyumluluk */
@media (max-width: 768px) {
  .nc-fav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .nc-fav-product-info {
    padding: 10px;
  }
  .nc-fav-product-title {
    font-size: 13px;
  }
  .nc-single-fav-btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 10px !important;
    justify-content: center !important;
  }
}
