/* Stand Central shortlist (SC-171). Markup: inc/product-shortlist.php, behaviour: assets/js/sc-shortlist.js */

/* ---------- Heart toggle ---------- */
.sc-save {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--ink, #0b0b0f);
  font: 700 14px/1.2 var(--body, "Hanken Grotesk", sans-serif);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
}
.sc-save:focus-visible { outline: 2px solid var(--ink, #0b0b0f); outline-offset: 2px; }
.sc-save-heart { width: 20px; height: 20px; flex: 0 0 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; transition: fill .15s ease, stroke .15s ease, transform .15s ease; }
.sc-save[aria-pressed="true"] .sc-save-heart { fill: var(--pink, #ff2d87); stroke: var(--pink, #ff2d87); }
.sc-save.is-pop .sc-save-heart { animation: sc-save-pop .32s ease; }
@keyframes sc-save-pop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sc-save.is-pop .sc-save-heart { animation: none; } }

/* Product cards: round button on the image's top-right corner. */
ul.products li.product { position: relative; }
ul.products li.product > .sc-save--card {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 2px rgba(11, 11, 15, .08), 0 4px 14px -6px rgba(11, 11, 15, .3);
}
ul.products li.product > .sc-save--card:hover { background: #fff; }
@media (hover: hover) { ul.products li.product > .sc-save--card:hover .sc-save-heart { stroke: var(--pink, #ff2d87); } }
ul.products li.product > .sc-save--card:focus-visible { border-radius: 50%; }

/* Product page: a round heart beside Add to compare, so the order card gets no taller. */
.sc-compare-pdp.has-save { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: center; }
.sc-save--pdp {
  width: 42px;
  height: 42px;
  min-height: 0;
  margin-top: 4px;
  padding: 0;
  border: 1.5px solid #c4c4ce;
  border-radius: 50%;
  background: #fff;
}
.sc-save--pdp:hover { border-color: var(--ink, #0b0b0f); }
.sc-save--pdp[aria-pressed="true"] { border-color: #ffb3d1; background: #fff1f7; }

/* Articles: pill under the byline. */
.sc-save-article { margin: 14px 0 0; }
.sc-save--article {
  min-height: 40px;
  padding: 7px 16px 7px 13px;
  border: 1.5px solid #d6d6de;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}
.sc-save--article:hover { border-color: var(--ink, #0b0b0f); }
.sc-save--article[aria-pressed="true"] { border-color: #ffb3d1; background: #fff1f7; }

/* ---------- Header icon ---------- */
.icon-link.sc-header-saved svg { stroke-linejoin: round; }
.icon-link .sc-saved-dot { position: absolute; top: -6px; right: -8px; }
.icon-link .sc-saved-dot[hidden] { display: none !important; }

/* ---------- Shortlist page ---------- */
.sc-sl-page {
  width: 100%;
  margin: 0;
  padding: 0 0 72px;
  font-family: var(--body, "Hanken Grotesk", sans-serif);
  color: var(--ink, #0b0b0f);
}
.sc-sl-lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted, #6c6c7a); max-width: 640px; }
.sc-sl-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 28px; }
.sc-sl-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-sl-tools .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; white-space: nowrap; }
.sc-sl-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sc-sl-shared { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 22px; padding: 14px 16px 14px 20px; border-radius: 16px; background: #e9f8f6; border: 1px solid #bfe9e3; font-weight: 700; font-size: 15.5px; }
.sc-sl-shared[hidden] { display: none; }
.sc-sl-page.is-shared .sc-sl-lead[data-sc-sl-lead] { display: none; }

.sc-sl-group { margin: 0 0 36px; }
.sc-sl-group__title { margin: 0 0 4px; font-family: var(--display, inherit); font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.sc-sl-group__n { color: var(--muted, #6c6c7a); font-weight: 600; }
.sc-sl-group__hint { margin: 0 0 16px; font-size: 14.5px; color: var(--muted, #6c6c7a); }
.sc-sl-group__title + .sc-sl-grid { margin-top: 16px; }

.sc-sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.sc-sl-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--line, #e9e9ef); border-radius: 18px; background: #fff; overflow: hidden; }
.sc-sl-card__img { display: block; background: var(--soft, #f6f6f9); }
.sc-sl-card__img img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 !important; }
.sc-sl-card--article .sc-sl-card__img img { aspect-ratio: 1024 / 534; object-fit: cover; }
.sc-sl-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.sc-sl-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: calc(1.35em * 3); color: var(--ink, #0b0b0f) !important; font-weight: 800; font-size: 15.5px; line-height: 1.35; text-decoration: none !important; }
.sc-sl-card--article .sc-sl-card__title { min-height: 0; }
.sc-sl-card__title:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.sc-sl-card__price { font-weight: 800; font-size: 17px; }
.sc-sl-card__excerpt { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted, #6c6c7a); }
.sc-sl-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.sc-sl-card__view {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--teal, #1fb5a5);
  color: var(--ink, #0b0b0f) !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
}
.sc-sl-card__view:hover { filter: brightness(.95); }
.sc-sl-card .sc-compare-toggle--card { margin: 0; padding: 4px 0; }
.sc-sl-remove {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink, #0b0b0f);
  box-shadow: 0 1px 2px rgba(11, 11, 15, .08), 0 4px 14px -6px rgba(11, 11, 15, .3);
  cursor: pointer;
}
.sc-sl-remove:hover { background: var(--ink, #0b0b0f); color: #fff; }
.sc-sl-remove svg { width: 12px; height: 12px; display: block; }
.sc-sl-page.is-shared .sc-sl-remove { display: none; }

@media (max-width: 760px) {
  .sc-sl-lead { font-size: 15.5px; }
  .sc-sl-bar { margin-bottom: 22px; }
  .sc-sl-tools { width: 100%; }
  .sc-sl-tools .btn { flex: 1 1 auto; justify-content: center; }
  .sc-sl-tools .sc-sl-quote { flex-basis: 100%; }
  .sc-sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sc-sl-grid--articles { grid-template-columns: 1fr; }
  .sc-sl-card__title { -webkit-line-clamp: 4; min-height: calc(1.35em * 4); }
  .sc-sl-card__body { padding: 12px 12px 14px; }
  .sc-sl-card__title { font-size: 14.5px; }
  .sc-sl-card__view { width: 100%; justify-content: center; }
  .sc-sl-group__title { font-size: 22px; }
}
