/* ==========================================================================
   peptit.online — FAVORİ ÜRÜNLER SAYFASI (DEDICATED FAVORITES PAGE)
   ========================================================================== */

.favorites-page-shell {
  padding-top: 16px;
  padding-bottom: 72px;
}

.favorites-top-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.favorites-title-col {
  max-width: 620px;
}

.favorites-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.favorites-heading {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}

.favorites-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

.favorites-toolbar-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fav-count-pill {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fav-count-pill strong {
  color: #e11d48;
  font-weight: 800;
}

.fav-sort-select {
  height: 38px;
  padding: 0 32px 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s ease;
}

.fav-sort-select:hover,
.fav-sort-select:focus {
  border-color: #0284c7;
  outline: none;
}

.btn-clear-favs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #fecdd3;
  color: #e11d48;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-favs:hover {
  background: #fff1f2;
  border-color: #fda4af;
}

/* Ürün Izgarası */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.favorites-grid .product-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
  background-color: #ffffff !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  padding: 10px 12px 10px;
}

.favorites-grid .product-art {
  position: relative;
  height: 195px;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin: 2px 0 6px;
  box-sizing: border-box;
}

.favorites-grid .card-real-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}

.favorites-grid .product-real-img {
  width: auto;
  height: auto;
  max-width: 96% !important;
  max-height: 94% !important;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent !important;
  filter: none !important;
  transform: scale(1.0);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.favorites-grid .product-card:hover .product-real-img {
  transform: scale(1.06) translateY(-2px);
  filter: none !important;
}

.favorites-grid .product-category-tag {
  font-family: var(--font-heading, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
  text-transform: uppercase;
  letter-spacing: 0.02em !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* Kart kaldırma animasyonu */
.fav-removing {
  opacity: 0 !important;
  transform: scale(0.92) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Boş Durum (Empty State) */
.favorites-empty-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 64px 24px;
  text-align: center;
  max-width: 640px;
  margin: 20px auto 0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.03);
}

.fav-empty-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff1f2;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecdd3;
}

.fav-empty-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.favorites-empty-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.favorites-empty-text {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 26px;
}

.favorites-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .favorites-top-card {
    padding: 20px;
  }
  .favorites-heading {
    font-size: 22px;
  }
  .favorites-toolbar-col {
    width: 100%;
    justify-content: space-between;
  }
  .fav-sort-select {
    flex: 1;
  }
  .favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .favorites-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .favorites-top-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .favorites-toolbar-col {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .fav-count-pill,
  .fav-sort-select,
  .btn-clear-favs {
    width: 100%;
    justify-content: center;
  }
  .favorites-empty-actions {
    flex-direction: column;
    width: 100%;
  }
  .favorites-empty-actions .btn {
    width: 100%;
  }
}
