/* 
 * WP Custom Favorites - Premium Stylesheet
 */

:root {
  /* Ana Renk Paleti (Primary Color Palette) */
  --wpcf-primary: #ff4b5c;
  --wpcf-primary-hover: #e03e4d;
  --wpcf-primary-light: #fff1f2;
  --wpcf-primary-border: #fecdd3;
  --wpcf-primary-active-hover-bg: #ffe4e6;
  --wpcf-primary-active-hover-border: #fda4af;

  /* Nötr Tonlar (Neutral Tones) */
  --wpcf-dark: #0f172a;
  --wpcf-dark-hover: #1e293b;
  --wpcf-white: #ffffff;
  --wpcf-white-trans-80: rgba(255, 255, 255, 0.8);
  --wpcf-white-trans-90: rgba(255, 255, 255, 0.9);
  
  --wpcf-gray-50: #f8fafc;
  --wpcf-gray-100: #f1f5f9;
  --wpcf-gray-200: #e2e8f0;
  --wpcf-gray-300: #cbd5e1;
  --wpcf-gray-400: #94a3b8;
  --wpcf-gray-600: #475569;

  /* Kategori Rozet Renkleri (Category Badge Colors) */
  --wpcf-tag-product-bg: rgba(16, 185, 129, 0.1);
  --wpcf-tag-product-text: #10b981;
  --wpcf-tag-post-bg: rgba(14, 165, 233, 0.1);
  --wpcf-tag-post-text: #0ea5e9;

  /* Kart & Arayüz Değişkenleri (UI Customization Variables) */
  --wpcf-card-bg: var(--wpcf-white);
  --wpcf-card-border: var(--wpcf-gray-200);
  --wpcf-card-border-hover: var(--wpcf-gray-300);
  --wpcf-card-shadow: var(--wpcf-shadow-md);
  --wpcf-card-shadow-hover: var(--wpcf-shadow-lg);

  --wpcf-title-color: var(--wpcf-dark);
  --wpcf-title-hover-color: var(--wpcf-primary);

  --wpcf-price-color: var(--wpcf-dark);
  --wpcf-price-sale-color: var(--wpcf-primary);

  --wpcf-button-view-bg: var(--wpcf-gray-100);
  --wpcf-button-view-border: var(--wpcf-gray-200);
  --wpcf-button-view-text: var(--wpcf-dark);
  --wpcf-button-view-bg-hover: var(--wpcf-gray-200);

  --wpcf-button-cart-bg: var(--wpcf-dark);
  --wpcf-button-cart-border: var(--wpcf-dark);
  --wpcf-button-cart-text: var(--wpcf-white);
  --wpcf-button-cart-bg-hover: var(--wpcf-dark-hover);

  --wpcf-remove-btn-bg: var(--wpcf-white-trans-90);
  --wpcf-remove-btn-text: var(--wpcf-dark);
  --wpcf-remove-btn-bg-hover: var(--wpcf-primary);
  --wpcf-remove-btn-text-hover: var(--wpcf-white);

  --wpcf-header-btn-bg: var(--wpcf-white-trans-80);
  --wpcf-header-btn-border: var(--wpcf-gray-200);
  --wpcf-header-btn-text: var(--wpcf-dark);

  /* Yuvarlaklık, Gölgeler ve Geçişler (Radius, Shadows & Transitions) */
  --wpcf-radius-sm: 6px;
  --wpcf-radius-md: 10px;
  --wpcf-radius-lg: 16px;
  --wpcf-radius-full: 9999px;
  
  --wpcf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --wpcf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --wpcf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --wpcf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------
 * 1. FAVORİ EKLE/ÇIKAR BUTONU (DETAY VE LİSTELEME)
 * ---------------------------------------------------- */
.wpcf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  gap: 8px;
  background-color: var(--wpcf-custom-detail-btn-bg, var(--wpcf-white));
  color: var(--wpcf-custom-detail-btn-color, var(--wpcf-dark));
  border: 1px solid var(--wpcf-custom-detail-btn-border, var(--wpcf-card-border));
  border-radius: var(--wpcf-radius-md);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--wpcf-shadow-sm);
  transition: var(--wpcf-transition);
  outline: none;
  user-select: none;
  margin: 10px 0;
  font-family: inherit;
}

.wpcf-btn:hover {
  background-color: var(--wpcf-custom-detail-btn-bg, var(--wpcf-gray-50));
  border-color: var(--wpcf-custom-detail-btn-border, var(--wpcf-gray-400));
  color: var(--wpcf-custom-detail-btn-color, var(--wpcf-dark));
  opacity: 0.9;
  transform: translateY(-1px);
}

.wpcf-btn:active {
  transform: translateY(1px);
}

/* Yükleniyor Durumu (Loading State) */
.wpcf-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.wpcf-btn.wpcf-icon-only {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: var(--wpcf-radius-full) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wpcf-btn.wpcf-icon-only .wpcf-text {
  display: none !important;
}

.wpcf-btn.wpcf-icon-only .wpcf-icon-wrapper {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wpcf-btn.wpcf-icon-only .wpcf-heart-icon {
  width: 22px !important;
  height: 22px !important;
}

/* Kalp İkonu */
.wpcf-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wpcf-heart-icon {
  width: 20px;
  height: 20px;
  display: block;
  color: var(--wpcf-custom-icon-normal, var(--wpcf-gray-400));
  transition: var(--wpcf-transition);
}

/* Detay Sayfası Kalp İkonu Normal ve Aktif */
.wpcf-btn:not(.wpcf-loop-btn) .wpcf-heart-icon {
  color: var(--wpcf-custom-detail-icon-normal, var(--wpcf-gray-400)) !important;
}
.wpcf-btn:not(.wpcf-loop-btn).active .wpcf-heart-icon {
  color: var(--wpcf-custom-detail-icon-active, var(--wpcf-primary)) !important;
  fill: var(--wpcf-custom-detail-icon-active, var(--wpcf-primary)) !important;
  animation: wpcf-pulse 0.45s ease-out;
}

/* Katalog (Listeleme) Kalp İkonu Aktif */
.wpcf-loop-btn.active .wpcf-heart-icon {
  color: var(--wpcf-custom-icon-active, var(--wpcf-primary)) !important;
  fill: var(--wpcf-custom-icon-active, var(--wpcf-primary)) !important;
}

/* Aktif (Favorilere Ekli) Durum */
.wpcf-btn.active {
  background-color: var(--wpcf-custom-detail-btn-active-bg, var(--wpcf-primary-light));
  border-color: var(--wpcf-custom-detail-btn-active-border, var(--wpcf-primary-border));
  color: var(--wpcf-custom-detail-btn-active-color, var(--wpcf-primary));
}

.wpcf-btn.active:hover {
  background-color: var(--wpcf-custom-detail-btn-active-bg, var(--wpcf-primary-active-hover-bg));
  border-color: var(--wpcf-custom-detail-btn-active-border, var(--wpcf-primary-active-hover-border));
  color: var(--wpcf-custom-detail-btn-active-color, var(--wpcf-primary));
  opacity: 0.9;
}

/* WooCommerce Katalog Listesi Hızlı Buton (Ürün Kartının Sağ Üstünde, Sadece Kalp İkonu) */
ul.products li.product,
.wc-block-grid__products li.wc-block-product,
li.product,
li.wc-block-product,
.type-product {
  position: relative !important;
}

.wpcf-loop-btn.wpcf-icon-only {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10 !important;
  cursor: pointer !important;
  transition: var(--wpcf-transition) !important;
}

.wpcf-loop-btn.wpcf-icon-only:hover {
  background: none !important;
  border: none !important;
  transform: scale(1.1) !important;
}

.wpcf-loop-btn.wpcf-icon-only .wpcf-heart-icon {
  width: 26px !important;
  height: 26px !important;
  color: var(--wpcf-custom-icon-normal, var(--wpcf-gray-400)) !important;
  fill: none !important;
  stroke: var(--wpcf-custom-icon-normal, var(--wpcf-gray-400)) !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  transition: var(--wpcf-transition);
}



/* Katalogdaki Aktif Durum (İkon Modu) */
.wpcf-loop-btn.wpcf-icon-only.active {
  background: none !important;
}

.wpcf-loop-btn.wpcf-icon-only.active .wpcf-heart-icon {
  color: var(--wpcf-custom-icon-active, var(--wpcf-primary)) !important;
  fill: var(--wpcf-custom-icon-active, var(--wpcf-primary)) !important;
  stroke: var(--wpcf-custom-icon-active, var(--wpcf-primary)) !important;
  filter: drop-shadow(0 2px 8px rgba(255, 75, 92, 0.35));
}

/* Yazılı Modda İken (Görünür yazı seçeneği aktifse) */
.wpcf-loop-btn:not(.wpcf-icon-only) {
  display: inline-flex !important;
  width: calc(100% - 20px) !important;
  margin: 8px 10px !important;
  box-sizing: border-box !important;
  background-color: var(--wpcf-custom-loop-btn-bg, var(--wpcf-white)) !important;
  color: var(--wpcf-custom-loop-btn-color, var(--wpcf-dark)) !important;
  border: 1px solid var(--wpcf-custom-loop-btn-border, var(--wpcf-card-border)) !important;
}

.wpcf-loop-btn:not(.wpcf-icon-only):hover {
  background-color: var(--wpcf-custom-loop-btn-bg, var(--wpcf-gray-50)) !important;
  border-color: var(--wpcf-custom-loop-btn-border, var(--wpcf-gray-400)) !important;
  color: var(--wpcf-custom-loop-btn-color, var(--wpcf-dark)) !important;
  opacity: 0.9 !important;
}

.wpcf-loop-btn:not(.wpcf-icon-only).active {
  background-color: var(--wpcf-custom-loop-btn-active-bg, var(--wpcf-primary-light)) !important;
  border-color: var(--wpcf-custom-loop-btn-active-border, var(--wpcf-primary-border)) !important;
  color: var(--wpcf-custom-loop-btn-active-color, var(--wpcf-primary)) !important;
}

.wpcf-loop-btn:not(.wpcf-icon-only).active:hover {
  background-color: var(--wpcf-custom-loop-btn-active-bg, var(--wpcf-primary-active-hover-bg)) !important;
  border-color: var(--wpcf-custom-loop-btn-active-border, var(--wpcf-primary-active-hover-border)) !important;
  color: var(--wpcf-custom-loop-btn-active-color, var(--wpcf-primary)) !important;
}

/* ----------------------------------------------------
 * 2. HEADER BADGE / SAYAÇ ALANI
 * ---------------------------------------------------- */
.wpcf-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--wpcf-custom-header-text, var(--wpcf-header-btn-text));
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--wpcf-radius-full);
  background-color: var(--wpcf-header-btn-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none !important;
  transition: var(--wpcf-transition);
  position: relative;
  box-shadow: var(--wpcf-shadow-sm);
}
.wpcf-header-btn:hover {
  background-color: var(--wpcf-white);
  color: var(--wpcf-custom-header-text, var(--wpcf-header-btn-text));
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Header Butonu Sadece İkon Durumu (Metin Boş Bırakıldığında) */
.wpcf-header-btn.wpcf-header-icon-only {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: var(--wpcf-radius-full) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wpcf-header-btn.wpcf-header-icon-only .wpcf-header-text {
  display: none !important;
}

.wpcf-header-btn.wpcf-header-icon-only .wpcf-header-icon-wrapper {
  margin: 0 !important;
}

.wpcf-header-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.wpcf-header-heart-icon {
  width: 22px;
  height: 22px;
  color: var(--wpcf-custom-header-icon-color, var(--wpcf-header-btn-text));
  transition: var(--wpcf-transition);
}

.wpcf-header-btn:hover .wpcf-header-heart-icon {
  color: var(--wpcf-custom-header-icon-active, var(--wpcf-primary));
  fill: var(--wpcf-custom-header-icon-active, var(--wpcf-primary));
  transform: scale(1.1);
}

.wpcf-header-btn.active .wpcf-header-heart-icon {
  color: var(--wpcf-custom-header-icon-active, var(--wpcf-primary)) !important;
  fill: var(--wpcf-custom-header-icon-active, var(--wpcf-primary)) !important;
}

/* Sayaç Balonu (Badge) */
.wpcf-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--wpcf-custom-header-icon-active, var(--wpcf-gray-400));
  color: var(--wpcf-white);
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: var(--wpcf-radius-full);
  display: none !important; /* Favori 0 iken gizli kalsın */
  align-items: center;
  justify-content: center;
  transition: var(--wpcf-transition);
  border: 2px solid var(--wpcf-white);
  box-shadow: var(--wpcf-shadow-sm);
  z-index: 2;
}

.wpcf-count.has-items {
  display: flex !important;
}

/* Yazılı/Yazısız Mod Göre Sayaç Konumlandırma Ayarları */
.wpcf-header-btn.wpcf-header-icon-only .wpcf-count {
  top: -8px !important;
  right: -8px !important;
}

.wpcf-header-btn:not(.wpcf-header-icon-only) .wpcf-header-icon-wrapper {
  margin-right: 5px !important; /* Yazı ile sayaç arasında boşluk oluşturur */
}

.wpcf-header-btn:not(.wpcf-header-icon-only) .wpcf-count {
  top: -7px !important;
  right: -7px !important;
}



.wpcf-bounce {
  animation: wpcf-bounce 0.5s ease-out;
}

/* ----------------------------------------------------
 * 3. FAVORİLER LİSTELEME SAYFASI (GRID)
 * ---------------------------------------------------- */
/* WordPress editöründe shortcode'lar kopyalanırken <code> veya <strong> etiketleri arasına sıkışırsa stili sıfırla */
code:has(.wpcf-favorites-grid),
strong:has(.wpcf-favorites-grid),
code:has(.wpcf-btn),
strong:has(.wpcf-btn) {
  font-family: inherit !important;
  font-weight: inherit !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
  width: 100%;
}

code .wpcf-favorites-grid,
strong .wpcf-favorites-grid,
code .wpcf-favorites-grid *,
strong .wpcf-favorites-grid *,
code .wpcf-btn,
strong .wpcf-btn,
code .wpcf-btn *,
strong .wpcf-btn * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  font-style: normal !important;
  text-decoration: none !important;
}

code .wpcf-favorites-grid strong,
strong .wpcf-favorites-grid strong {
  font-weight: bold !important;
}

.wpcf-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 30px auto !important;
  width: 100% !important;
  max-width: 1200px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.wpcf-fav-card {
  background-color: var(--wpcf-card-bg);
  border: 1px solid var(--wpcf-card-border);
  border-radius: var(--wpcf-radius-lg);
  overflow: hidden;
  box-shadow: var(--wpcf-card-shadow);
  transition: var(--wpcf-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.wpcf-fav-card:hover {
  box-shadow: var(--wpcf-card-shadow-hover);
  border-color: var(--wpcf-card-border-hover);
}

.wpcf-fav-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  background-color: var(--wpcf-gray-50);
}

.wpcf-fav-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wpcf-fav-card:hover .wpcf-fav-image {
  transform: scale(1.06);
}

/* Hızlı Favorilerden Kaldırma Butonu */
.wpcf-remove-card-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--wpcf-remove-btn-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--wpcf-remove-btn-text);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--wpcf-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: var(--wpcf-transition);
  box-shadow: var(--wpcf-shadow-sm);
  z-index: 10;
}

.wpcf-remove-card-btn:hover {
  background-color: var(--wpcf-remove-btn-bg-hover);
  color: var(--wpcf-remove-btn-text-hover);
  transform: rotate(90deg) scale(1.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Çöp Kutusu SVG İkonu */
.wpcf-remove-card-btn .wpcf-btn-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2px;
  display: block;
}

/* Kart İçerik Detayları */
.wpcf-fav-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Kategori Rozeti (Pill Badge) */
.wpcf-fav-category {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--wpcf-radius-full);
}

/* Ürün ise Yeşil Rozet */
.wpcf-fav-card:has(.wpcf-fav-category:contains("Ürün")) .wpcf-fav-category,
.wpcf-fav-category {
  background-color: var(--wpcf-tag-post-bg);
  color: var(--wpcf-tag-post-text);
}

/* WordPress get_post_type() çıktısına göre 'Ürün' metnini yeşil yapalım */
.wpcf-fav-card .wpcf-fav-category {
  background-color: var(--wpcf-tag-post-bg);
  color: var(--wpcf-tag-post-text);
}
/* Eğer kategoride 'Ürün' yazıyorsa (PHP tarafında verdiğimiz) */
.wpcf-fav-card .wpcf-fav-category {
  background-color: var(--wpcf-tag-post-bg);
  color: var(--wpcf-tag-post-text);
}

/* WooCommerce Ürün Tag Modifikasyonu */
.wpcf-fav-card:has(.wpcf-fav-price) .wpcf-fav-category {
  background-color: var(--wpcf-tag-product-bg);
  color: var(--wpcf-tag-product-text);
}

.wpcf-fav-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 14px 0;
  font-family: inherit;
}

.wpcf-fav-title a {
  color: var(--wpcf-title-color);
  text-decoration: none;
  transition: var(--wpcf-transition);
}

.wpcf-fav-title a:hover {
  color: var(--wpcf-title-hover-color);
}

/* Fiyat Alanı */
.wpcf-fav-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--wpcf-price-color);
  margin-bottom: 18px;
  margin-top: auto; /* Alt tarafa hizala */
}

/* İndirimli Fiyat Stili */
.wpcf-fav-price ins {
  text-decoration: none;
  color: var(--wpcf-price-sale-color);
  margin-left: 6px;
}

.wpcf-fav-price del {
  color: var(--wpcf-gray-400);
  font-size: 14px;
  margin-right: 4px;
  font-weight: 500;
}

.wpcf-fav-price .amount {
  font-family: inherit;
}

/* Alt Aksiyon Butonları */
.wpcf-fav-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.wpcf-fav-view-btn, 
.wpcf-fav-cart-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--wpcf-radius-md);
  transition: var(--wpcf-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wpcf-shadow-sm);
  border: 1px solid transparent;
  height: 42px !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
}

/* İncele Butonu */
.wpcf-fav-view-btn {
  background-color: var(--wpcf-button-view-bg);
  color: var(--wpcf-button-view-text);
  border-color: var(--wpcf-button-view-border);
}

.wpcf-fav-view-btn:hover {
  background-color: var(--wpcf-button-view-bg-hover);
  border-color: var(--wpcf-gray-300);
  color: var(--wpcf-dark);
}

/* Sepete Ekle Butonu */
.wpcf-fav-cart-btn {
  background-color: var(--wpcf-button-cart-bg);
  border-color: var(--wpcf-button-cart-border);
  color: var(--wpcf-button-cart-text);
}

.wpcf-fav-cart-btn:hover {
  background-color: var(--wpcf-button-cart-bg-hover);
  border-color: var(--wpcf-dark-hover);
  color: var(--wpcf-white);
  transform: translateY(-1px);
}

.wpcf-fav-cart-btn:active {
  transform: translateY(1px);
}

/* Sepete Başarıyla Eklendiğinde WooCommerce'in Eklediği "Sepetim" Butonu */
.wpcf-fav-cart-btn.added {
  display: none !important;
}

.wpcf-fav-actions .added_to_cart.wc-forward {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--wpcf-radius-md);
  transition: var(--wpcf-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wpcf-shadow-sm);
  border: 1px solid #10b981;
  background-color: #10b981;
  color: #ffffff !important;
  height: 42px !important;
  box-sizing: border-box !important;
  line-height: 1.2 !important;
}

.wpcf-fav-actions .added_to_cart.wc-forward:hover {
  background-color: #059669;
  border-color: #059669;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.wpcf-fav-actions .added_to_cart.wc-forward::before {
  content: "✓ ";
  margin-right: 6px;
  font-weight: bold;
}

/* Buton SVG İkonları Hizalama */
.wpcf-fav-actions .wpcf-btn-svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  stroke: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* Favoriler Boş Görünümü */
.wpcf-empty-list {
  text-align: center;
  padding: 60px 30px;
  border: 2px dashed var(--wpcf-gray-200);
  border-radius: var(--wpcf-radius-lg);
  color: var(--wpcf-gray-600);
  font-size: 16px;
  font-weight: 500;
  grid-column: 1 / -1;
  background-color: var(--wpcf-gray-50);
  box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02);
}

/* Kartın Silinirken Yumuşaması */
.wpcf-card-fade-out {
  transform: scale(0.92) translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------
 * 4. KEYFRAMES & ANIMATIONS
 * ---------------------------------------------------- */
@keyframes wpcf-pulse {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.35);
  }
  60% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes wpcf-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Responsive Grid Düzenlemeleri */
@media (max-width: 640px) {
  .wpcf-favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  
  .wpcf-fav-content {
    padding: 16px;
  }
  
  .wpcf-fav-title {
    font-size: 15px;
  }
  
  .wpcf-fav-view-btn, 
  .wpcf-fav-cart-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ----------------------------------------------------
 * 5. KART PARLAYAN KALP ROZETİ (HEARTBADGE)
 * ---------------------------------------------------- */
.wpcf-card-heart-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--wpcf-white);
  border: 1px solid var(--wpcf-custom-btn-active-border, var(--wpcf-primary-border));
  color: var(--wpcf-custom-icon-active, var(--wpcf-primary));
  width: 32px;
  height: 32px;
  border-radius: var(--wpcf-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--wpcf-custom-icon-active, rgba(255, 75, 92, 0.3));
  z-index: 9;
  animation: wpcf-badge-pulse 2s infinite ease-in-out;
}

.wpcf-card-heart-badge svg {
  width: 15px;
  height: 15px;
  display: block;
}

@keyframes wpcf-badge-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--wpcf-custom-icon-active, rgba(255, 75, 92, 0.4));
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 75, 92, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 75, 92, 0);
  }
}

/* ----------------------------------------------------
 * 6. MASAÜSTÜ YATAY DÜZEN OVERRIDES (DESKTOP LIST VIEW)
 * ---------------------------------------------------- */
@media (min-width: 1024px) {
  /* Grid'i dikey listeye dönüştür */
  .wpcf-favorites-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100%;
  }
  
  /* Kartları yatay satır yap */
  .wpcf-fav-card {
    flex-direction: row !important;
    align-items: center !important;
    padding: 16px 24px !important;
    gap: 24px !important;
    min-height: 152px;
  }
  
  /* Görsel alanını sola kare olarak sabitle */
  .wpcf-fav-image-wrapper {
    width: 120px !important;
    height: 120px !important;
    padding-top: 0 !important;
    border-radius: var(--wpcf-radius-md) !important;
    flex-shrink: 0 !important;
  }
  
  .wpcf-fav-image {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* İçeriği yatayda iki yana yay */
  .wpcf-fav-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    flex-grow: 1 !important;
    gap: 24px !important;
  }
  
  /* Sol sütun: Kategori ve Başlık */
  .wpcf-fav-info {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: left !important;
  }
  
  .wpcf-fav-category {
    margin-bottom: 0 !important;
  }
  
  .wpcf-fav-title {
    font-size: 18px !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
  }
  
  /* Sağ sütun: Fiyat ve Eylemler */
  .wpcf-fav-price-action {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 30px !important;
    flex-shrink: 0 !important;
    justify-content: flex-end !important;
  }
  
  .wpcf-fav-price {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    text-align: right !important;
    min-width: 120px !important;
    font-size: 19px !important;
  }
  
  .wpcf-fav-actions {
    margin-top: 0 !important;
    gap: 12px !important;
    min-width: 280px !important;
    justify-content: flex-end !important;
  }
  
  .wpcf-fav-view-btn, 
  .wpcf-fav-cart-btn,
  .wpcf-fav-actions .added_to_cart.wc-forward {
    flex: 0 1 auto !important;
    padding: 10px 20px !important;
    min-width: 130px;
  }
}
.wpcf-favorites-grid{
  a.added_to_cart{
    margin-top: 0 !important;
  }
}

/* ----------------------------------------------------
 * 7. EKRAN ORTASI BİLDİRİM KARTI (TOAST NOTIFICATION)
 * ---------------------------------------------------- */
.wpcf-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--wpcf-custom-toast-bg, rgba(15, 23, 42, 0.92)) !important; /* Slate 900 Glass */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: var(--wpcf-custom-toast-text, var(--wpcf-white)) !important;
  padding: 16px 32px !important;
  border-radius: var(--wpcf-radius-lg) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  z-index: 9999999 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.12) !important;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-align: center;
  letter-spacing: 0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.wpcf-toast.show {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}