/* v1.14.0 (owner, 15 Nov 2026): the Wishlist's heart, Share, the header's heart and the /wishlist page.
   Palette tokens only. A heart is drawn unsaved by the server and filled by the browser: only its fill changes, never its box,
   so nothing moves when it fills. */

/* ── The heart ── */
.sc-heart {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--ui-radius-round);
  background: var(--ui-surface);
  color: var(--ui-text);
  cursor: pointer;
  transition: color var(--ui-dur-fast) var(--ui-ease), transform var(--ui-dur-fast) var(--ui-ease);
}
.sc-heart .sc-icon { width: 22px; height: 22px; }
.sc-heart:hover { color: var(--ui-accent); }
.sc-heart:active { transform: scale(0.92); }
.sc-heart:focus-visible { outline: var(--ui-ring-width) solid var(--ui-ring); outline-offset: 2px; }
.sc-heart[aria-pressed='true'] { color: var(--ui-accent); }
.sc-heart[aria-pressed='true'] .sc-icon { fill: currentColor; }

/* On a card: over the photograph's top corner, inside the cell, after the card's link (a button never sits inside a link). */
.pc-cell { position: relative; }
.pc__heart,
.pa__heart {
  position: absolute;
  z-index: 2;
  box-shadow: var(--ui-shadow-sm);
}
.pc__heart { top: 8px; right: 8px; }
.pa__heart { top: 6px; right: 6px; }

/* On the product page: beside Share, under the code. */
.pp-keep {
  display: flex;
  align-items: center;
  gap: var(--ui-space-2);
  margin-top: var(--ui-space-2);
}
.pp-heart { border: 1px solid var(--ui-border); }

/* ── Share ── */
.sc-share { position: relative; display: inline-block; }
.sc-share__btn { gap: 6px; }
.sc-share__menu {
  position: absolute;
  z-index: var(--ui-z-dropdown);
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  display: grid;
  padding: var(--ui-space-2);
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  box-shadow: var(--ui-shadow-md);
}
.sc-share__item {
  display: flex;
  align-items: center;
  gap: var(--ui-space-2);
  min-height: 44px;
  padding: 0 var(--ui-space-3);
  border: 0;
  border-radius: var(--ui-radius-sm);
  background: transparent;
  color: var(--ui-text);
  font: inherit;
  font-size: var(--ui-text-sm);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.sc-share__item:hover { background: var(--ui-surface-hover); }
.sc-share__item:focus-visible { outline: var(--ui-ring-width) solid var(--ui-ring); outline-offset: -2px; }
.sc-share__item--wa .sc-icon { color: var(--sc-whatsapp, currentColor); }
.sc-share__manual { display: grid; gap: var(--ui-space-1); padding: var(--ui-space-2) var(--ui-space-3) var(--ui-space-1); font-size: var(--ui-text-xs); color: var(--ui-text-muted); }
.sc-share__manual .ui-input { width: 100%; font-size: var(--ui-text-sm); }
/* A wishlist row's menu opens towards the page's middle, never off its right edge. */
.wl-row .sc-share__menu { left: auto; right: 0; }

/* ── The header's heart ── */
/* Below 834, where the tab bar is drawn, the header's own Search and Cart step aside (tabbar.css); the heart stays, beside the
   WhatsApp mark: Menu · logo · heart · WhatsApp. */
@media (max-width: 833px) {
  /* As strong as tabbar.css's hiding rule (body:has(.sc-tabbar) .sc-header__right .sc-iconbtn:not(.sc-wa)) and later, so it wins. */
  body:has(.sc-tabbar) .sc-header__right .sc-iconbtn.sc-wishlink { display: inline-grid; }
}

/* ── /wishlist ── */
.wl-title:focus,
.wl-empty-title:focus { outline: none; }
.wl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ui-space-3); }
.wl-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--ui-space-3);
  padding: var(--ui-space-3);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface);
}
.wl-row__link { display: block; }
.wl-row__media { width: 88px; aspect-ratio: 4 / 5; }
.wl-row[data-status='sold'] .wl-row__media img { opacity: 0.6; }
.wl-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wl-row__title { color: var(--ui-text); font-weight: var(--ui-weight-strong); text-decoration: none; overflow-wrap: anywhere; }
a.wl-row__title:hover { color: var(--ui-accent); text-decoration: underline; }
.wl-row__colour { color: var(--ui-text-muted); font-size: var(--ui-text-sm); }
.wl-row__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ui-space-2); }
.wl-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ui-space-2); margin-top: var(--ui-space-2); }
.wl-row__actions .ui-btn { min-height: 44px; }
.wl-row__remove { margin-inline-start: auto; }
@media (min-width: 834px) {
  .wl-row { grid-template-columns: 120px minmax(0, 1fr); padding: var(--ui-space-4); }
  .wl-row__media { width: 120px; }
}
