/* ================================================
   NORTHCITY FAVORİ SİSTEMİ STILLERİ
   ================================================ */

/* ---------- FAVORİ BUTONU ---------- */
.nc-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  padding: 0;
}

.nc-fav-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Kalp ikonu - boş */
.nc-fav-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #999;
  stroke-width: 2;
  transition: all 0.3s ease;
}

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

/* Kalp ikonu - dolu (favori) */
.nc-fav-btn.active .nc-fav-icon {
  fill: #E53935;
  stroke: #E53935;
  animation: nc-fav-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nc-fav-btn.active {
  background: rgba(255, 255, 255, 0.95);
}

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

@keyframes nc-fav-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.nc-fav-btn.active:hover {
  animation: nc-fav-pulse 0.6s ease;
}

/* ---------- TOOLTIP ---------- */
.nc-fav-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #333;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.nc-fav-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip ok */
.nc-fav-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #333;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 11;
}

.nc-fav-btn:hover::before {
  opacity: 1;
}

/* ================================================
   HESABIM > FAVORILERIM SAYFASI
   ================================================ */

.nc-favorites-page {
  padding: 10px 0;
}

/* --- Boş durum --- */
.nc-fav-empty {
  text-align: center;
  padding: 60px 20px;
}

.nc-fav-empty-icon {
  margin-bottom: 20px;
  opacity: 0.5;
}

.nc-fav-empty h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.nc-fav-empty p {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

.nc-fav-browse-btn {
  display: inline-block;
  background: #1E3A5F;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
}

.nc-fav-browse-btn:hover {
  background: #152c49;
}

/* --- Başlık --- */
.nc-fav-header {
  margin-bottom: 20px;
}

.nc-fav-header h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
}

.nc-fav-count {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  margin-left: 6px;
}

/* --- Ürün grid'i --- */
.nc-fav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Ürün kartı --- */
.nc-fav-product {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
}

.nc-fav-product:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Ürün resmi */
.nc-fav-product-img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}

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

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

/* Ürün bilgileri */
.nc-fav-product-info {
  padding: 12px 14px;
}

.nc-fav-product-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 6px;
  line-height: 1.3;
  /* max 2 satır */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nc-fav-product-title:hover {
  color: #1E3A5F;
}

.nc-fav-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 10px;
}

/* Sepete ekle butonu */
.nc-fav-add-to-cart {
  width: 100%;
  padding: 8px 12px;
  background: #1E3A5F;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.nc-fav-add-to-cart:hover {
  background: #152c49;
}

.nc-fav-add-to-cart.added {
  background: #27ae60;
}

.nc-fav-out-of-stock {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #999;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Kaldır butonu (X) */
.nc-fav-remove-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  z-index: 10;
}

.nc-fav-remove-btn:hover {
  background: #E53935;
  color: #fff;
  transform: scale(1.1);
}

/* Kaldırma animasyonu */
.nc-fav-product.removing {
  animation: nc-fav-remove 0.4s ease forwards;
}

@keyframes nc-fav-remove {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); height: 0; margin: 0; padding: 0; border: 0; overflow: hidden; }
}

/* --- Sayfalama --- */
.nc-fav-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.nc-fav-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nc-fav-page-link:hover {
  border-color: #1E3A5F;
  color: #1E3A5F;
}

.nc-fav-page-link.current {
  background: #1E3A5F;
  border-color: #1E3A5F;
  color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nc-fav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Loading spinner --- */
.nc-fav-loading {
  text-align: center;
  padding: 60px 20px;
}

.nc-fav-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top-color: #1E3A5F;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: nc-fav-spin 0.8s linear infinite;
}

@keyframes nc-fav-spin {
  to { transform: rotate(360deg); }
}

.nc-fav-loading p {
  font-size: 14px;
  color: #999;
}

@media (max-width: 768px) {
  .nc-fav-btn {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }

  .nc-fav-icon {
    width: 18px;
    height: 18px;
  }

  .nc-fav-btn::after {
    display: none;
  }

  .nc-fav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .nc-fav-product-info {
    padding: 10px;
  }

  .nc-fav-product-title {
    font-size: 12px;
  }

  .nc-fav-product-price {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nc-fav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .nc-fav-empty {
    padding: 40px 15px;
  }
}
