/* ROSHAN v2 wishlist page. The head, grid, cards and empty state are the category page's (archive.css, shop.css); this adds the
   count beside the title, the tools row, the niches shown while the list loads, and the way back after a heart comes off. */
.rv2-wl{background:var(--velvet);padding-bottom:clamp(48px,6vw,88px)}
.rv2-wl__row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px}
.rv2-wl__count{margin:0;font:400 15px/1.4 var(--sans);color:var(--mist)}
.rv2-wl__count:empty{display:none}
.rv2-wl__tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px;margin:0 0 clamp(16px,2vw,24px);
  padding-block:8px;border-block:1px solid var(--hair)}
.rv2-wl__tools[hidden],.rv2-wl__grid[hidden],.rv2-wl__undo[hidden]{display:none}
/* the way back, in the removed piece's place in the grid */
.rv2-wl__grid > .rv2-wl__slot{display:grid;place-items:center;min-height:180px;padding:16px;border:1px dashed rgba(194,165,113,.45);text-align:center}
.rv2-wl__slot .rv2-wl__undo{flex-direction:column;justify-content:center;gap:4px;margin:0;padding:0;background:none;border:0;text-wrap:balance}
.rv2-wl__note{margin:0;font:400 14px/1.4 var(--sans);color:var(--mist)}

/* while the list loads: quiet niches the size of a card */
.rv2-wl__ghost span{display:block;aspect-ratio:3/4;background:#1D4135;border:1px solid var(--hair)}
@media (prefers-reduced-motion:no-preference){
  .rv2-wl__ghost span{animation:rv2-wl-breathe 1.6s cubic-bezier(.4,0,.6,1) infinite alternate}
  @keyframes rv2-wl-breathe{from{opacity:.55}to{opacity:1}}
}

/* after a heart comes off: what happened, and the way back */
.rv2-wl__undo{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin:0 0 20px;padding:4px 16px;background:#1D4135;border:1px solid var(--hair);
  font:400 15px/1.5 var(--sans);color:var(--cream)}
.rv2 button.rv2-wl__undobtn{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;background:none;box-shadow:none;
  font:500 15px/1.3 var(--sans);letter-spacing:0;text-transform:none;color:var(--cream);text-decoration:underline;text-decoration-color:var(--champ);
  text-underline-offset:5px;cursor:pointer}
@media (hover:hover){ .rv2 button.rv2-wl__undobtn:hover{text-decoration-color:var(--cream);background:none;color:var(--cream)} }
.rv2-wl__empty{margin-top:4px}
