/* Listing card v2 (LC1, owner approved 6 Nov 2026; design by Member 1, mockup section 2). Loaded after listing.css and
   arch-card.css, whose frozen rules it overrides by one more class; store.css, store-listing.css, listing.css and arch-card.css
   are not edited (scripts/css-check.mjs). Colours from the design system's tokens only.
   1. "Add to cart": a full-width pill with a plain bag, on the Arch card and under the regular card (.pc-cell).
   2. The foot: the price left, at most three swatches and "+N" right, on one line; one colour shows its swatch and name.
   3. The title takes three lines, the eyebrow wraps, and the foot sits at the bottom, so a row's cards end level.
   4. Hover cross-fades to the back photograph only when there is one (pa--two, pc--two); before this a design with one
      photograph faded to the window's brown backing. */

/* ── The Arch card (html.ls-card-arch) ── */
html.ls-card-arch .pa .pa__eyebrow { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
html.ls-card-arch .pa .pa__title { -webkit-line-clamp: 3; min-height: 2.56em; margin-top: 3.6cqw; }
html.ls-card-arch .pa .pa__body { padding-bottom: 4.5cqw; }
html.ls-card-arch .pa .pa__foot { margin-top: auto; padding-top: 5cqw; grid-template-columns: minmax(0, 1fr) auto; row-gap: 4.2cqw; align-items: center; }
html.ls-card-arch .pa .pa__price { grid-column: 1; grid-row: 1; }
html.ls-card-arch .pa .pa__price .ui-price { font-size: max(15px, 9.4cqw); white-space: nowrap; }
html.ls-card-arch .pa .pa__dots { grid-column: 2; grid-row: 1; justify-self: end; align-items: center; gap: 2.6cqw; margin: 0; min-width: 0; }
html.ls-card-arch .pa .pa__dots i { flex: none; width: max(11px, 7cqw); height: max(11px, 7cqw);
  box-shadow: 0 0 0 1.5px var(--ui-text-inverse), 0 0 0 2.5px var(--ui-accent-border); }
html.ls-card-arch .pa .pa__more { font: 600 max(10px, 5.4cqw) / 1 var(--ui-font-body); letter-spacing: 0.02em; margin-left: 1cqw; color: var(--ui-accent); white-space: nowrap; }
/* One colour (owner, 11 Nov 2026): its name as plain text in the colour slot. A long name wraps rather than overflows: beside
   the price on the pick card (its foot does not wrap, and gives the swatches flex: none), and on its own line on the card. */
.pc__colours.pc__colours--name { display: inline-block; min-width: 0; }
.ep__foot .pc__colours.pc__colours--name { flex: 0 1 auto; text-align: right; }
.pc .pc__colours .pc__more { font-weight: 600; color: var(--ui-accent); letter-spacing: 0.02em; white-space: nowrap; }
html.ls-card-arch .pa .pa__dots--one .pa__more { font-weight: 400; color: var(--ui-text-muted); max-width: 30cqw; overflow: hidden; text-overflow: ellipsis; }

/* ── "Add to cart": one pill for both cards. On the Arch card it spans the foot's second row and scales with the card; under
   the regular card it is a fixed 44 px. It sits above the Arch title's whole-card link (z-index), as the old bag did. ── */
html.ls-card-arch .pa .pa__bag,
.pc-cell .pa__bag.pc__bag {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin: 0; padding: 0 12px; box-sizing: border-box; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ui-accent-border); color: var(--ui-accent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--ui-accent-soft) 55%, var(--ui-text-inverse)), var(--ui-accent-soft));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ui-text-inverse) 70%, transparent);
  text-transform: uppercase; white-space: nowrap;
  transition: background var(--ui-dur-base) var(--ui-ease), color var(--ui-dur-base) var(--ui-ease),
    border-color var(--ui-dur-base) var(--ui-ease), transform var(--ui-dur-base) var(--ui-ease);
}
html.ls-card-arch .pa .pa__bag { grid-column: 1 / -1; grid-row: 2; align-self: auto; height: max(44px, 21cqw); gap: 2.6cqw;
  font: 600 max(11.5px, 6.4cqw) / 1 var(--ui-font-body); letter-spacing: 0.08em; }
html.ls-card-arch .pa .pa__bag .sc-icon { width: max(16px, 8.6cqw); height: max(16px, 8.6cqw); stroke-width: 1.7; }
.pc-cell .pa__bag.pc__bag { margin-top: auto; min-height: 44px; height: 44px; gap: 8px; font: 600 12px / 1 var(--ui-font-body); letter-spacing: 0.08em; }
.pc-cell .pa__bag.pc__bag .sc-icon { width: 17px; height: 17px; stroke-width: 1.7; flex: none; }
html.ls-card-arch .pa .pa__bag:hover,
.pc-cell .pa__bag.pc__bag:hover { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-text-inverse); }
html.ls-card-arch .pa .pa__bag:active,
.pc-cell .pa__bag.pc__bag:active { transform: scale(0.985); background: var(--ui-accent-hover); border-color: var(--ui-accent-hover); color: var(--ui-text-inverse); }
html.ls-card-arch .pa .pa__bag:focus-visible,
.pc-cell .pa__bag.pc__bag:focus-visible { outline: var(--ui-ring-width) solid var(--ui-ring); outline-offset: 2px; }

/* ── The regular card's cell: the card, then its button, in one column; the button is outside the card's hover lift and
   rests at the bottom so a row's buttons line up. ── */
.pc-cell { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pc-cell > .pc { flex: 1 1 auto; }
/* The listing's rise-in (listing.css hides `> .pc` until `.is-in`): the cell is now the grid's child, so it rises instead. */
.ls-grid.js-reveal > .pc-cell:not(.is-in) { opacity: 0; transform: translateY(16px); }
.ls-grid.js-reveal > .pc-cell { transition: opacity 520ms var(--ls-ease-out), transform 640ms var(--ls-ease-out); transition-delay: var(--ls-d, 0ms); }

/* ── Hover: no back photograph, no fade (the front keeps its gentle zoom) ── */
@media (hover: hover) {
  html.ls-card-arch .pa:not(.pa--two):hover .pa__img--a { opacity: 1; }
  .pc:not(.pc--two):hover .pc__img--a { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.ls-card-arch .pa .pa__bag, .pc-cell .pa__bag.pc__bag { transition: none; }
  html.ls-card-arch .pa .pa__bag:active, .pc-cell .pa__bag.pc__bag:active { transform: none; }
  .ls-grid.js-reveal > .pc-cell:not(.is-in) { opacity: 1; transform: none; }
  .ls-grid.js-reveal > .pc-cell { transition: none; }
}
