/* The Favorites heart and lists (heart.php, lists.php; card https://trello.com/c/sr5VURYT). Operator
   2026-10-21: the old gray button "appears bland … make it prettier". The store's coral throughout (the
   checkout's call-to-action colour); the storefront theme is light-only. Deep coral #8f332b on white is
   7.9:1, on the pale coral #fdf1ef 7.1:1; white on #c2493f 4.9:1. Touch targets 44px. */

.ncllc-fav { display: inline-flex; margin: 12px 0 4px; }
.ncllc-fav__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px 8px 14px;
  border: 1.5px solid #e6a59b; border-radius: 999px; background: #ffffff; color: #8f332b;
  font: inherit; font-weight: 700; font-size: max(16px, 1em); line-height: 1.2; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ncllc-fav__btn:hover { background: #fdf1ef; border-color: #c2493f; box-shadow: 0 2px 8px rgba(194, 73, 63, 0.18); }
.ncllc-fav__btn:focus-visible { outline: 2px solid #8f332b; outline-offset: 3px; }
.ncllc-fav__btn.is-on { background: #fdf1ef; border-color: #c2493f; }
.ncllc-fav__btn[aria-busy="true"] { cursor: wait; opacity: 0.8; }

/* The heart: an outline when off, filled when on. */
.ncllc-fav__heart { flex: 0 0 auto; fill: transparent; stroke: #c2493f; stroke-width: 2; stroke-linejoin: round; transition: fill 0.15s ease, transform 0.2s ease; }
.ncllc-fav__btn.is-on .ncllc-fav__heart { fill: #c2493f; }
.ncllc-fav__btn.is-popping .ncllc-fav__heart { animation: ncllc-fav-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes ncllc-fav-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* On a product card: a round heart on the photo's top right corner. */
li.product { position: relative; }
.ncllc-fav--card { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.ncllc-fav--card .ncllc-fav__btn {
  width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center;
  border: 0; background: rgba(255, 255, 255, 0.95); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.ncllc-fav--card .ncllc-fav__btn:hover { background: #ffffff; box-shadow: 0 2px 10px rgba(194, 73, 63, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .ncllc-fav__btn, .ncllc-fav__heart { transition: none; }
  .ncllc-fav__btn.is-popping .ncllc-fav__heart { animation: none; }
}

/* The toast: bottom centre, above everything; on phones the width of the screen less its margins. */
.ncllc-fav-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 99999;
  display: flex; align-items: center; gap: 12px; max-width: min(92vw, 420px); padding: 12px 16px;
  border-radius: 12px; background: #2b1f1d; color: #ffffff; font-size: 15px; line-height: 1.35;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
}
.ncllc-fav-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.ncllc-fav-toast__heart { flex: 0 0 auto; fill: #f2a196; }
.ncllc-fav-toast a { color: #ffd3cc; font-weight: 700; text-decoration: underline; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .ncllc-fav-toast { transition: none; } }

/* The lists: My Account → Favorites and /wishlist/. One card per favorite; on phones stacked. */
.ncllc-favs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ncllc-favs__item {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid #efd9d5; border-radius: 12px; background: #ffffff;
}
.ncllc-favs__img img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.ncllc-favs__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ncllc-favs__name { font-weight: 700; color: #1a1a1a; text-decoration: none; overflow-wrap: anywhere; }
.ncllc-favs__name:hover { text-decoration: underline; }
.ncllc-favs__opts, .ncllc-favs__meta { font-size: 0.9em; color: #5a5a5a; overflow-wrap: anywhere; }
.ncllc-favs__stock--in { color: #1e6b34; }
.ncllc-favs__stock--out { color: #8f332b; }
.ncllc-favs__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ncllc-favs__actions .ncllc-fav { margin: 0; }
.ncllc-favs__cart.button { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.ncllc-favs--empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ncllc-favs__empty, .ncllc-favs__shared { margin: 0 0 8px; }
@media (max-width: 600px) {
  .ncllc-favs__item { grid-template-columns: 72px minmax(0, 1fr); }
  .ncllc-favs__img img { width: 72px; height: 72px; }
  .ncllc-favs__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}
