/* The shop collection widget (shop_collection.js). Basin tokens from shop.css,
   with fallbacks for host pages that do not load it. A scrolling row on
   phones, a grid from 760px. Every rule is scoped to .sc-collection. */
.sc-collection { --sc-ink: var(--ink, #26241c); --sc-muted: var(--muted, #5f5b4e); --sc-line: var(--line, #e4dfce);
  --sc-paper: var(--paper, #fbf7ea); --sc-accent: var(--terracotta, #af5436);
  --sc-accent-dark: var(--terracotta-dark, #8a3f27); --sc-gold: var(--gold, #e9c867);
  margin: 24px 0; color: var(--sc-ink); }
.sc-collection * { box-sizing: border-box; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sc-heading { font-size: 20px; margin: 0 0 10px; }
.sc-pickup { font-size: 14px; color: #555; margin: 0 0 12px; }
.sc-cart { color: var(--sc-accent-dark); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.sc-cart[hidden] { display: none; }
.sc-toast { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; padding: 12px 14px;
  border: 2px solid var(--sc-line); border-radius: 12px; background: #fff; }
.sc-toast-text { font-weight: 800; margin-right: auto; }
.sc-toast-cart { color: var(--sc-accent-dark); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.sc-keep { font: inherit; font-weight: 700; color: var(--sc-ink); background: var(--sc-paper); border: 2px solid var(--sc-line);
  border-radius: 10px; padding: 8px 14px; min-height: 44px; cursor: pointer; }
.sc-row { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column;
  grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
@media (min-width: 760px) {
  .sc-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow-x: visible; }
}
/* Every card is a column stretched to its row: a two-line title block, a one-line
   price, a one-line badge row (empty when there is no badge) and the buy block
   pinned to the bottom, so selects and Add buttons line up across the row
   whether or not a card has a size select or a badge. */
.sc-card { display: flex; flex-direction: column; gap: 6px; min-height: 100%; scroll-snap-align: start; }
.sc-link { display: flex; flex-direction: column; gap: 4px; color: var(--sc-ink); text-decoration: none; }
.sc-img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 14px;
  background: var(--sc-paper); display: block; }
.sc-title { font-weight: 800; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.sc-price { color: var(--sc-muted); line-height: 1.5; min-height: 1.5em; }
.sc-pill-row { min-height: 24px; display: flex; align-items: center; }
.sc-pill { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 18px;
  padding: 3px 10px; border-radius: 99px; background: var(--sc-gold); color: var(--sc-ink); }
.sc-buy { display: grid; gap: 8px; margin-top: auto; }
.sc-select { font: inherit; color: inherit; padding: 10px 12px; min-height: 44px; border: 2px solid var(--sc-line);
  border-radius: 10px; background: #fff; width: 100%; }
.sc-add { font: inherit; font-weight: 800; color: #fff; background: var(--sc-accent); border: 0; border-radius: 12px;
  padding: 10px 14px; min-height: 44px; cursor: pointer; }
.sc-add:hover { background: var(--sc-accent-dark); }
.sc-add:disabled { opacity: .55; cursor: default; }
.sc-collection :focus-visible { outline: 3px solid var(--sc-gold); outline-offset: 2px; }
