/* ===== Favorilerim ===== */

.fav-page { padding: 0 0 80px }

.crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); padding: 18px 0 24px;
}
.crumbs a { color: var(--muted); transition: color .14s }
.crumbs a:hover { color: var(--ink) }
.crumbs .sep { color: var(--line) }
.crumbs .here { color: var(--ink); font-weight: 600 }

/* Layout */
.fav-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.fav-sidebar {
  position: sticky; top: 16px;
}
.fav-sidebar-head {
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.fav-cats { display: flex; flex-direction: column; gap: 2px }
.fav-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background .12s, color .12s;
}
.fav-cat:hover { background: var(--surface); color: var(--ink) }
.fav-cat.is-active {
  background: var(--blue-50, #EFF6FF);
  color: var(--blue); font-weight: 700;
}
.fav-cat-count {
  font-size: 12px; font-weight: 700;
  color: var(--muted-2);
  background: var(--surface);
  padding: 1px 7px; border-radius: 99px;
}
.fav-cat.is-active .fav-cat-count {
  background: rgba(10,132,217,.12);
  color: var(--blue);
}

.fav-sidebar-tip {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 24px; padding: 12px 14px;
  background: var(--surface); border-radius: 10px;
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.fav-sidebar-tip svg { flex-shrink: 0; margin-top: 1px; color: var(--blue) }

/* Bar */
.fav-bar {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 20px;
}
.fav-title {
  font-size: 22px; font-weight: 900;
  letter-spacing: -.04em; color: var(--ink); margin: 0;
}
.fav-count {
  font-size: 13px; font-weight: 600; color: var(--muted);
}

/* Grid */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card */
.fav-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .16s, border-color .16s;
}
.fav-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(10,132,217,.09);
}

/* Badge (reuse kt-badge from kategori) */
.kt-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
}
.kt-badge.bestseller { background: #FFF3CD; color: #92400E }
.kt-badge.popular    { background: #DCFCE7; color: #166534 }
.kt-badge.premium    { background: #EDE9FE; color: #5B21B6 }
.kt-badge.new        { background: #DBEAFE; color: #1D4ED8 }

/* Remove btn */
.fav-remove {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #ef4444;
  transition: background .12s, border-color .12s, transform .12s;
}
.fav-remove:hover {
  background: #FFF1F2; border-color: #fca5a5;
  transform: scale(1.1);
}

/* Thumb */
.fav-thumb {
  display: block; aspect-ratio: 4/3; overflow: hidden;
  background: var(--surface);
}
.fav-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.fav-card:hover .fav-thumb img { transform: scale(1.04) }

/* Body */
.fav-card-body { padding: 14px 16px 16px }

.fav-cat-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 5px;
}
.fav-card-name {
  display: block;
  font-size: 14.5px; font-weight: 800;
  color: var(--ink); margin-bottom: 4px;
  transition: color .12s;
}
.fav-card-name:hover { color: var(--blue) }
.fav-card-desc {
  font-size: 12.5px; color: var(--muted);
  line-height: 1.55; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-card-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
}
.fav-reviews { color: var(--muted); font-weight: 500 }

.fav-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--line-2);
}
.fav-price strong {
  display: block; font-size: 16px; font-weight: 900;
  color: var(--ink); letter-spacing: -.03em;
}
.fav-price span { font-size: 11px; color: var(--muted); font-weight: 500 }

.fav-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
  transition: opacity .14s;
}
.fav-cta:hover { opacity: .85 }

/* Empty state */
.fav-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 80px 20px; text-align: center;
}
.fav-empty-ico {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--line); margin-bottom: 20px;
}
.fav-empty p {
  font-size: 15px; color: var(--muted); margin: 0 0 20px;
}
.fav-empty-btn {
  padding: 11px 24px; border-radius: 10px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700;
  transition: opacity .14s;
}
.fav-empty-btn:hover { opacity: .85 }

/* Responsive */
@media (max-width: 900px) {
  .fav-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 720px) {
  .fav-layout { grid-template-columns: 1fr }
  .fav-sidebar { position: static }
  .fav-cats { flex-direction: row; flex-wrap: wrap; gap: 6px }
  .fav-cat { padding: 6px 12px; border: 1.5px solid var(--line-2); border-radius: 99px }
  .fav-cat.is-active { border-color: var(--blue) }
  .fav-sidebar-tip { display: none }
}
@media (max-width: 480px) {
  .fav-grid { grid-template-columns: 1fr }
}
