/* CARACAL wishlist — the heart on product cards and the product page, plus the
   header count. The /wishlist page carries its own layout styles inline. */

.wish-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100%;
  padding: 0;
  cursor: pointer;
  background: rgba(247,247,247,0.9);
  box-shadow: 0 1px 6px rgba(21,21,21,0.1);
  /* Always visible, never hover-gated — a phone has no hover, and the heart is
     the one control on the card a touch user must be able to find. */
  opacity: 1;
  transition: transform 0.2s cubic-bezier(0.19,1,0.22,1), background 0.2s;
}
.wish-btn:hover { transform: scale(1.08); background: #f7f7f7; }
.wish-btn:active { transform: scale(0.94); }

.wish-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  fill: none;
  stroke: #151515;
  stroke-width: 1.7;
  stroke-linejoin: round;
  transition: fill 0.2s, stroke 0.2s;
}
.wish-btn.is-saved svg { fill: #151515; stroke: #151515; }

.wish-btn:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 2px;
}

/* Product page heart — sits beside Add to cart rather than over an image. */
.wish-btn--inline {
  position: static;
  width: 3.2rem;
  height: 3.2rem;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(21,21,21,0.2);
  box-shadow: none;
}
.wish-btn--inline:hover { background: rgba(21,21,21,0.04); transform: none; }
.wish-btn--inline svg { width: 1.3rem; height: 1.3rem; }

/* Header link, matching the cart button it sits beside. */
.wish-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 4rem;
  padding: 0 1rem;
  border-radius: 10rem;
  border: 1px solid rgba(21,21,21,0.2);
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.19,1,0.22,1);
}
.wish-link:hover { background: rgba(21,21,21,0.06); }
.wish-link svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}
.wish-link__count { font-size: 13px; font-weight: 700; }
/* Nothing saved yet — present but quiet, so it doesn't compete with the cart. */
.wish-link.is-empty { opacity: 0.45; }
.wish-link.is-empty:hover { opacity: 1; }

@media (max-width: 700px) {
  .wish-link { padding: 0 0.8rem; height: 3.6rem; }
  .wish-btn { width: 2rem; height: 2rem; top: 0.55rem; right: 0.55rem; }
}
