/* ===== Serduszko na zdjęciu ===== */
.shfav-host { position: relative !important; }

.shfav-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  z-index: 30 !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
}
.shfav-btn svg {
  width: 26px; height: 26px; overflow: visible; display: block;
  transition: transform .15s ease;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.shfav-btn svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill .15s ease, stroke .15s ease;
}
.shfav-btn:hover svg { transform: scale(1.12); }
.shfav-btn.is-active svg path { fill: #e11d2e; stroke: #e11d2e; }
.shfav-btn.is-pop svg { animation: shfav-pop .3s ease; }
@keyframes shfav-pop { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ukryj ewentualne serduszka motywu / starej wtyczki */
.nm-wishlist-button, .wishsuite-btn, .custom-wishlist-heart { display: none !important; }

/* ===== Strona ulubionych ===== */
.shfav-page { font-family: Arial, Helvetica, sans-serif; width: 100%; }
.shfav-head[hidden], .shfav-empty[hidden] { display: none !important; }

.shfav-head { display: grid; justify-content: center; justify-items: start; margin: 4px 0 24px; }
.shfav-title { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.1; color: #111; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.shfav-title-heart { display: inline-flex; line-height: 0; }
.shfav-title-heart svg { width: .85em; height: .85em; }
.shfav-count { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; background: #f3f3f3; border-radius: 999px; font-size: 14px; color: #333; line-height: 1; }
.shfav-count-icon { color: #888; }

.shfav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; width: 100%; }
@media (max-width: 767px) { .shfav-grid { grid-template-columns: 1fr; gap: 14px; } }

.shfav-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 12px; box-sizing: border-box; }
.shfav-card-img { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #f3f3f3; aspect-ratio: 1 / 1; }
.shfav-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shfav-card-title { margin: 12px 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: #111; }
.shfav-card-title a { color: #111 !important; text-decoration: none !important; }
.shfav-card-price { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #111; }
.shfav-card-price del { color: #9a9a9a; font-weight: 400; }
.shfav-card-price ins { text-decoration: none; }
.shfav-card-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 44px;
  background: #111; color: #fff !important; border-radius: 8px; font-size: 14px; font-weight: 700;
  text-decoration: none !important; text-align: center; padding: 10px 14px; box-sizing: border-box;
}
.shfav-card-cta.is-disabled { background: #d5d5d5; pointer-events: none; }

.shfav-empty { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 360px; margin: 16px auto 40px; padding: 8px 16px 0; box-sizing: border-box; }
.shfav-empty-heart { margin: 8px 0 20px; }
.shfav-empty-heart svg { display: block; margin: 0 auto; }
.shfav-empty-title { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.25; color: #111; }
.shfav-empty-desc { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: #8a8a8a; }
.shfav-empty-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 48px; padding: 0 28px; background: #111; color: #fff !important; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none !important; }
