/* My try-ons (#/mine, mine.js): the collection chips (Discover's .dv-coll, collection-chips.js), the finished looks
   (photo with its collection's name, "Add to collection" on hover or focus, pieces and "Buy" below) and the look and
   piece counts in the collection popover (save-menu.js). Design: project/design/ui-rework-2026-12/png/Mine-After.png. */
.mine-colls { margin-top: calc(-1 * var(--s2)); }
.mine-colls[hidden] { display: none; }

#gallery-grid:has(.look-tile) { gap: var(--s5) var(--s3); }
.look-tile .plate { aspect-ratio: 8 / 11; border-radius: 14px; background: var(--tone); }
.look-tile .plate > img { object-fit: cover; object-position: 50% 20%; }
.look-tile .plate .tag-new { top: 10px; left: 54px; border-radius: 4px; } /* beside the delete */
.look-coll { position: absolute; left: 10px; bottom: 10px; z-index: 1; max-width: calc(100% - 20px); overflow: hidden; padding: 5px 8px; border-radius: 4px; background: var(--ground); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.look-tile .card-delete { top: 10px; right: auto; left: 10px; }
.look-collect { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: var(--ground); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.look-collect::before { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--bookmark) center / contain no-repeat; mask: var(--bookmark) center / contain no-repeat;
  --bookmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.look-collect:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.look-foot { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.look-pieces { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.look-pieces .item-thumb { flex: none; width: 34px; border-radius: 6px; background: var(--tone); box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.07); }
.look-buy { flex: none; margin-left: auto; min-height: 40px; padding: 0 2px; font-size: 13px; font-weight: 700; }

/* A pointer that hovers: the delete and "Add to collection" show on hover or focus, and while the popover is open. */
@media (hover: hover) {
  .look-tile .look-collect, .look-tile .card-delete { opacity: 0; transition: opacity 0.12s; }
  .look-tile:hover :is(.look-collect, .card-delete), .look-tile:focus-within :is(.look-collect, .card-delete), .look-collect[aria-expanded="true"] { opacity: 1; }
}
/* A phone's narrow tile: the bookmark alone (its words stay for screen readers). */
@media (max-width: 599px) {
  .look-collect { justify-content: center; width: 40px; padding: 0; }
  .look-collect > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) { #gallery-grid:has(.look-tile) { gap: 18px; } }
@media (min-width: 1200px) { #gallery-grid:has(.look-tile) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* The collection popover's second line: "3 looks · 12 pieces". */
.save-menu-name:has(.save-menu-meta) { display: flex; flex-direction: column; line-height: 1.3; }
.save-menu-name > span { overflow: hidden; text-overflow: ellipsis; }
.save-menu-meta { font-size: 12px; color: var(--muted); }
