/* PECATTO Wishlist — estilos */

/* ── Botão coração nas cards ─── */
.pwl-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10,10,12,0.7);
  border: 1px solid rgba(160,16,32,0.2);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  z-index: 2;
  padding: 0;
}

.pwl-btn:hover {
  background: rgba(160,16,32,0.15);
  border-color: rgba(160,16,32,0.6);
  transform: scale(1.1);
}

.pwl-btn.is-active {
  background: rgba(160,16,32,0.2);
  border-color: #A01020;
}

.pwl-heart {
  width: 16px;
  height: 16px;
  color: #7A6A62;
  transition: color 0.25s, fill 0.25s;
  display: block;
}

.pwl-btn:hover .pwl-heart,
.pwl-btn.is-active .pwl-heart {
  color: #A01020;
}

.pwl-btn.is-active .pwl-heart {
  fill: #A01020;
}

/* ── Botão no single product ─── */
.pwl-btn--single {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 10px 20px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  background: transparent;
  border: 1px solid rgba(160,16,32,0.3);
}

.pwl-btn--single .pwl-btn__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A6A62;
  transition: color 0.25s;
}

.pwl-btn--single:hover .pwl-btn__label,
.pwl-btn--single.is-active .pwl-btn__label {
  color: #A01020;
}

.pwl-btn--single .pwl-heart {
  width: 14px;
  height: 14px;
}

/* ── Ícone do header ─── */
.pwl-header-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: #EDE5DC;
  text-decoration: none;
  transition: color 0.25s;
}

.pwl-header-icon:hover { color: #A01020; }

.pwl-header-icon svg {
  width: 20px;
  height: 20px;
}

/* .pwl-count herda posição de .pec-action__badge (top:5px right:5px) do header plugin */
.pwl-count {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s, transform 0.2s;
}

.pwl-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Página wishlist ─── */
.pwl-empty,
.pwl-login-msg {
  font-family: 'Inter', sans-serif;
  color: #7A6A62;
  font-size: 14px;
  text-align: center;
  padding: 60px 20px;
  letter-spacing: 0.05em;
}

.pwl-login-msg a {
  color: #A01020;
  text-decoration: none;
}

/* Garantir posição relativa nos cards para o botão absoluto */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  position: relative;
}
