/* ============================================================================
 * repfind 阶段二：收藏 / 想买按钮样式（ranking 主题）
 * ==========================================================================*/

/* ---------- 商品详情页 ---------- */
.rk-fav-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #131b2e;
  color: #fca5a5;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s ease;
}
.rk-fav-inline:hover { background: #1e293b; color: #fecaca; }
.rk-fav-inline.is-active { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,.08); }
.rk-fav-inline.is-active i.fa { color: #ef4444; }

.rk-wish-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0f172a;
  color: #93c5fd;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s ease;
}
.rk-wish-inline:hover { background: #1e293b; color: #bfdbfe; }
.rk-wish-inline.is-active { color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,.08); }
.rk-wish-inline.is-active i.fa { color: #f59e0b; }

/* ---------- 商品列表卡片 右上角 心形（v3.3 透明玻璃风，仅出现在瀑布流 + 分类页） ---------- */
.rk-product-shell { position: relative; }
.rk-fav-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 透明玻璃：低透 + 强模糊 + 银灰描边 + 浅雾色字 */
  background: rgba(255,255,255,.06);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  font-size: 15px;
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  transition: all .18s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  line-height: 1;
}
@media(hover:hover){
  .rk-fav-badge:not(.is-active):hover {
    background: rgba(244,114,182,.18);
    border-color: rgba(244,114,182,.5);
    color: #fbcfe8;
    transform: scale(1.08);
  }
}
.rk-fav-badge:active { transform: scale(.92); }
.rk-fav-badge.is-active {
  background: linear-gradient(135deg,#f472b6,#ec4899);
  border-color: rgba(244,114,182,.6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236,72,153,.45);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.rk-fav-badge.is-active i.fa { color: #fff; }
.rk-fav-badge[data-busy="1"] { opacity: .6; }

/* ---------- 用户中心列表 ---------- */
.rf-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  color: #e2e8f0;
  font-size: 14px;
}
.rf-list-table th, .rf-list-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}
.rf-list-table th {
  text-align: left;
  font-weight: 600;
  color: #94a3b8;
  background: #0f172a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rf-list-table td img { max-height: 46px; max-width: 60px; border-radius: 4px; }
.rf-list-table a.rf-prod-name { color: #e2e8f0; text-decoration: none; }
.rf-list-table a.rf-prod-name:hover { color: #22d3ee; }
.rf-empty {
  text-align: center;
  padding: 64px 20px;
  color: #94a3b8;
}
.rf-empty i { font-size: 42px; margin-bottom: 12px; display: block; }
.rf-del-btn {
  color: #f87171;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}
.rf-del-btn:hover { color: #ef4444; }

.rf-note {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  margin-top: 4px;
}

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
  .rk-fav-badge { width: 30px; height: 30px; font-size: 13px; top: 6px; right: 6px; }
  .rk-fav-inline, .rk-wish-inline { padding: 8px 12px; font-size: 13px; }
  .rf-list-table th:nth-child(3),
  .rf-list-table td:nth-child(3) { display: none; }
}
