/* The Chance storefront - components (v1). Mobile-first: base = phone, @media (min-width) only. */


/* ---- base ---- */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
         color: var(--text); background: var(--bg); -webkit-tap-highlight-color: transparent;
         font-variant-numeric: tabular-nums; text-wrap: pretty; }
  img { max-width: 100%; display: block; }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  :focus-visible { outline: 3px solid var(--accent-500); outline-offset: 2px; border-radius: var(--r-sm); }
  ::selection { background: var(--accent-100); }
  h1, h2, h3 { margin: 0; text-wrap: balance; }
}

@layer components {
  /* ---------- icons ---------- */
  .ic { width: 24px; height: 24px; flex: none; fill: currentColor; }
  .ic-sm { width: 20px; height: 20px; }

  /* ---------- buttons (pill) ---------- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-6); white-space: nowrap;
         border: 0; border-radius: var(--r-full); font-weight: 700; font-size: var(--fs-body); cursor: pointer;
         transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
  .btn:active { transform: scale(.97); }
  .btn[disabled] { opacity: .5; pointer-events: none; }
  .btn-primary { background: var(--ink-900); color: var(--white); }
  .btn-primary:hover { background: var(--ink-800); }
  .btn-accent { background: var(--accent-500); color: var(--ink-900); }           /* ink on orange: 5.1:1 */
  .btn-accent:hover { background: var(--accent-600); }
  .btn-soft { background: var(--surface-2); color: var(--text); }
  .btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
  .btn-block { width: 100%; }
  .btn-sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--fs-small); }

  /* round icon button (app bar, favourite, close) */
  .icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border: 0; border-radius: var(--r-full);
              background: var(--surface); color: var(--text); box-shadow: var(--e-1); cursor: pointer;
              transition: transform var(--dur-1) var(--ease-out); }
  .icon-btn:active { transform: scale(.94); }
  .icon-btn.on-ink { background: rgb(255 255 255 / .12); color: var(--white); box-shadow: none; }

  /* ---------- app bar ---------- */
  .appbar { position: sticky; top: 0; z-index: var(--z-appbar); display: flex; align-items: center; gap: var(--s-3);
            min-height: calc(var(--appbar-h) + var(--safe-t)); padding: var(--safe-t) var(--gutter) 0; background: var(--bg); }
  .appbar-title { flex: 1; font-size: var(--fs-headline); font-weight: 800; letter-spacing: -.01em; }
  .appbar.on-ink { background: var(--ink-900); color: var(--white); }

  /* ---------- hero header: ink surface with the content sheet sliding over it ---------- */
  .hero-ink { background: var(--ink-900); color: var(--white); padding: var(--s-4) var(--gutter) var(--s-10); border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .hero-ink .hint { color: var(--ink-300); font-size: var(--fs-small); }
  .search { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-4); border-radius: var(--r-full);
            background: var(--surface); color: var(--text-3); box-shadow: var(--e-1); }
  .search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: var(--fs-input); }

  /* ---------- chips ---------- */
  .chips { display: flex; gap: var(--s-2); overflow-x: auto; padding: 0 var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); scroll-snap-align: start;
          border: 0; border-radius: var(--r-full); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: var(--fs-small);
          box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
          transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
  .chip[aria-pressed="true"], .chip.is-active { background: var(--ink-900); color: var(--white); box-shadow: none; }

  /* ---------- section header ---------- */
  .section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin: var(--s-6) 0 var(--s-3); }
  .section-head h2 { font-size: var(--fs-headline); font-weight: 800; letter-spacing: -.01em; }
  .link-accent { color: var(--accent-700); font-weight: 700; font-size: var(--fs-small); }

  /* ---------- category tile ---------- */
  .cat { display: grid; gap: var(--s-2); justify-items: center; align-content: start; text-align: center; font-size: var(--fs-small); font-weight: 700; width: 72px; flex: none; line-height: var(--lh-snug); overflow-wrap: anywhere; }
  .cat-img { width: 72px; height: 72px; border-radius: var(--r-lg); background: var(--tint, var(--surface-2)); display: grid; place-items: center; overflow: hidden; }
  .cat-img img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- product card (2-up grid) ---------- */
  .grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); padding: 0 var(--gutter); }
  /* rows: photo+name, meta, price+add. Spare height (a taller neighbour in the same grid row) goes above the add control,
     so every Add button in a row sits on one line and nothing else moves. */
  .pcard { position: relative; display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface);
           box-shadow: var(--e-1); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
  .pcard:active { transform: scale(.985); }
  .pcard-img { aspect-ratio: 1 / 1; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
  .pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: var(--s-2); mix-blend-mode: multiply; }
  .pcard-name { font-weight: 700; font-size: var(--fs-small); line-height: var(--lh-snug); margin: 0;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line, truncated */
  .pcard-meta { color: var(--text-3); font-size: var(--fs-caption); }
  .price { font-weight: 800; font-size: var(--fs-body); letter-spacing: -.01em; }
  .price small { font-weight: 600; color: var(--text-3); font-size: var(--fs-caption); }
  .price-was { color: var(--text-3); text-decoration: line-through; font-size: var(--fs-caption); font-weight: 600; }
  .badge { position: absolute; top: var(--s-3); left: var(--s-3); padding: 2px var(--s-2); border-radius: var(--r-full);
           background: var(--accent-100); color: var(--accent-700); font-size: var(--fs-caption); font-weight: 800; }
  .fav { position: absolute; top: var(--s-2); right: var(--s-2); }
  /* add control: a full-width pill under the price; it never overlaps the price */
  .pcard-foot { display: grid; gap: var(--s-2); align-self: end; }
  /* quiet by design: the orange Cart button in the tab bar is the one solid accent on screen */
  .add { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); width: 100%; height: 40px; border: 0;
         border-radius: var(--r-full); background: var(--accent-100); color: var(--accent-700); font-weight: 800; font-size: var(--fs-small); cursor: pointer; }
  .add:hover { background: color-mix(in srgb, var(--accent-100) 82%, var(--accent-500)); }
  .add:active { transform: scale(.97); }

  /* ---------- quantity stepper ---------- */
  .stepper { display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-full); background: var(--surface-2); }
  .stepper button { width: 40px; height: 40px; border: 0; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--e-1);
                    display: grid; place-items: center; cursor: pointer; }
  .stepper output, .stepper input { min-width: 44px; text-align: center; font-weight: 800; border: 0; background: transparent; font-size: var(--fs-input); }

  /* ---------- weight / quantity picker (product sheet) ---------- */
  .seg { display: grid; grid-auto-flow: column; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-full); background: var(--surface-2); }
  .seg button { min-height: 40px; border: 0; border-radius: var(--r-full); background: transparent; font-weight: 700; color: var(--text-2); cursor: pointer; }
  .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--e-1); }
  .presets { display: flex; gap: var(--s-2); flex-wrap: wrap; }
  .preset { min-width: 64px; min-height: 48px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-full); background: var(--surface-2);
            font-weight: 800; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out); }
  .preset[aria-pressed="true"] { background: var(--ink-900); color: var(--white); }

  /* ---------- floating tab bar: dark pill, raised centre Cart button sitting in a notch ----------
     .tabbar (wrapper, carries the drop shadow so it follows the notch) > .tabbar-bar (pill) > tabs + .tab-cart + .tab-ind */
  .tabbar { position: fixed; left: var(--s-4); right: var(--s-4); bottom: calc(var(--s-2) + var(--safe-b)); z-index: var(--z-tabbar);
            height: var(--tabbar-h); filter: drop-shadow(0 10px 18px rgb(15 27 51 / .30)); }
  .tabbar-bar { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr 80px 1fr 1fr; align-items: center;
                border-radius: var(--r-full); isolation: isolate;
                background:
                  var(--tab-notch) center top / 112px 100% no-repeat,
                  linear-gradient(var(--ink-900), var(--ink-900)) left top / calc(50% - 55px) 100% no-repeat,
                  linear-gradient(var(--ink-900), var(--ink-900)) right top / calc(50% - 55px) 100% no-repeat; }
  /* the whole grid cell is the tap target (about 70 x 64), not just the icon */
  .tab { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-300);
         touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tab[aria-current="page"] { color: var(--white); }
  .tab-cart { position: relative; justify-self: center; align-self: start; margin-top: -28px; width: 64px; height: 64px; display: grid; place-items: center;
             border-radius: var(--r-full); background: var(--accent-500); color: var(--white); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tab-cart::after { content: ""; position: absolute; inset: calc(var(--s-2) * -1); }   /* larger hit area around the raised button */
  .tab-cart[aria-current="page"] { box-shadow: 0 0 0 4px var(--accent-100); }
  .tab-ind { position: absolute; left: 0; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: var(--r-full);
             background: var(--accent-500); pointer-events: none; opacity: 0; }
  .tabbar.has-ind .tab-ind { opacity: 1; }
  .tab-count[hidden] { display: none; }
  .tab-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full);
               background: var(--white); color: var(--ink-900); font-size: 11px; font-weight: 800; display: grid; place-items: center;
               box-shadow: 0 0 0 2px var(--accent-500); }

  /* ---------- live order pill (replaces the floating FAB; sits above the tab bar) ---------- */
  .order-pill { position: fixed; right: 0; z-index: var(--z-tabbar); width: max-content; max-width: 60vw;
                bottom: calc(var(--tabbar-h) + var(--s-3) * 2 + var(--fab-lift) + var(--safe-b));
                display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1);
                border-radius: var(--r-full) 0 0 var(--r-full); background: var(--pill-bg, var(--tint-butter)); color: var(--ink-900);
                box-shadow: 0 0 0 1px rgb(15 27 51 / .08), var(--e-2); }   /* attached to the right edge, rounded on the left */
  .order-pill[data-status="processing"] { --pill-bg: var(--tint-sky); }
  .order-pill[data-status="shipped"] { --pill-bg: var(--tint-sage); }
  .op-ico { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--surface); display: grid; place-items: center; flex: none;
            color: var(--ink-900); }
  .op-ico > span { display: none; }
  .order-pill[data-status="pending"] [data-ico="pending"], .order-pill[data-status="processing"] [data-ico="processing"],
  .order-pill[data-status="shipped"] [data-ico="shipped"] { display: grid; }
  .op-text { display: grid; line-height: var(--lh-tight); min-width: 0; }
  .op-text b { font-size: var(--fs-small); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .op-text small { font-size: var(--fs-caption); font-weight: 700; color: var(--text-2); }
  .status { padding: 2px var(--s-2); border-radius: var(--r-full); font-size: var(--fs-caption); font-weight: 800; }
  .status-pending { background: var(--warning-100); color: var(--warning); }
  .status-ship { background: var(--info-100); color: var(--info); }
  .status-done { background: var(--success-100); color: var(--success); }
  .status-cancel { background: var(--danger-100); color: var(--danger); }

  /* ---------- sheet ---------- */
  .sheet { position: fixed; inset: auto 0 0 0; z-index: var(--z-sheet); max-height: 88dvh; overflow: auto; background: var(--surface);
           border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--e-3); padding: var(--s-3) var(--gutter) calc(var(--s-6) + var(--safe-b));
           animation: sheet-in var(--dur-3) var(--ease-out); }
  .sheet-grab { width: 40px; height: 4px; border-radius: var(--r-full); background: var(--line); margin: 0 auto var(--s-4); }
  @keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }

  /* wide screens: a sheet is a centred dialog (inset 0 + margin auto + fit-content centres it without using transform,
     which the open/close scale animation owns). Phones keep the bottom sheet. */
  @media (min-width: 768px) {
    .sheet { inset: 0; margin: auto; height: fit-content; width: min(480px, 92vw); max-height: 86dvh; border-radius: var(--r-xl);
             padding: var(--s-6) var(--s-8) var(--s-8); }
    .sheet-grab { display: none; }
  }

  /* ---------- inputs ---------- */
  .field { display: grid; gap: var(--s-2); }
  .field label { font-weight: 700; font-size: var(--fs-small); }
  .input { min-height: 52px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-input);
           box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow var(--dur-2) var(--ease-out); }
  .input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--ink-900); background: var(--surface); }
  .input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
  .field-error { color: var(--danger); font-size: var(--fs-small); font-weight: 600; }

  /* ---------- list rows, order card, timeline ---------- */
  .card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e-1); padding: var(--s-4); }
  .row { display: flex; align-items: center; gap: var(--s-3); }
  .thumb { width: 64px; height: 64px; flex: none; border-radius: var(--r-md); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
  .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
  .timeline { display: grid; gap: 0; }
  .tl { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding-bottom: var(--s-5); }
  .tl::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
  .tl:last-child::before { display: none; }
  .tl-dot { width: 28px; height: 28px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
  .tl.done .tl-dot { background: var(--ink-900); color: var(--white); }
  .tl.now .tl-dot { background: var(--accent-500); color: var(--white); box-shadow: 0 0 0 6px var(--accent-100); }

  /* ---------- toast (snackbar above the tab bar) ---------- */
  .toast { position: fixed; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); max-width: min(92vw, 420px);
           bottom: calc(var(--tabbar-h) + var(--s-6) + var(--fab-lift) + var(--safe-b)); padding: var(--s-3) var(--s-4); border-radius: var(--r-full);
           background: var(--ink-900); color: var(--white); font-weight: 700; font-size: var(--fs-small); box-shadow: var(--e-2);
           animation: toast-in var(--dur-3) var(--ease-out); }
  @keyframes toast-in { from { transform: translate(-50%, 12px); opacity: 0; } }

  /* ---------- skeleton ---------- */
  .skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
          background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) { .skel { animation: none; } .sheet, .toast { animation: none; } .promo-img, .promo-stack > .promo { transition: none; } }

  /* ---------- cart row: name gets the full width, price + stepper share the second line ---------- */
  .crow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-items: center;
          padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e-1); }
  .crow .thumb { grid-row: 1 / span 2; }
  .crow-name { font-weight: 700; font-size: var(--fs-small); line-height: var(--lh-snug);
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .crow-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }

  /* ---------- promo banners ----------
     .promo        designed card: tint + headline + CTA + a product cut-out that breaks out of the box
     .promo-poster legacy full-art image (copy baked into the picture); shown whole, never cropped
     .promo-track  scroll-snap carousel with a peek of the next card;  .promo-stack  3-card layered stack */
  .promo-track { display: flex; gap: var(--s-3); overflow-x: auto; padding: var(--s-4) var(--gutter) var(--s-2);
                 scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .promo-track::-webkit-scrollbar { display: none; }
  .promo, .promo-poster { flex: 0 0 min(88%, 420px); scroll-snap-align: start; position: relative; border-radius: var(--r-xl); }
  .promo { min-height: 172px; padding: var(--s-5); display: grid; align-content: space-between; gap: var(--s-4);
           background: var(--tint, var(--accent-100)); color: var(--ink-900); isolation: isolate; }
  .promo-copy { max-width: 58%; display: grid; gap: var(--s-1); }
  .promo-title { font-size: var(--fs-title); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.02em; }
  .promo-sub { font-size: var(--fs-small); color: var(--text-2); font-weight: 600; }
  .promo-img { position: absolute; right: calc(var(--s-3) * -1); bottom: var(--s-2); width: 46%; max-height: 118%; object-fit: contain;
               z-index: var(--l-under); filter: drop-shadow(0 10px 14px rgb(15 27 51 / .18)); transform: rotate(-4deg);
               transition: transform var(--dur-3) var(--ease-out); }
  .promo:active .promo-img { transform: rotate(-1deg) scale(1.04); }
  /* photo banner: the picture is the whole card, headline and button sit on its calm side (no tint box, no cut-out) */
  .promo-photo { background: var(--surface-2); overflow: hidden; }
  .promo-photo .promo-img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; transform: none; filter: none; z-index: var(--l-under); }
  .promo-photo:active .promo-img { transform: none; }
  .promo-img.pop { top: calc(var(--s-4) * -1); bottom: auto; max-height: none; height: 125%; }   /* breaks out of the top edge */
  .promo-poster { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); box-shadow: var(--e-1); }
  .promo-poster img { width: 100%; height: 100%; object-fit: cover; }
  /* mixed-ratio artwork is shown whole: the picture itself is contained, a blurred copy fills the rest of the frame */
  .promo-poster, .promo-photo { isolation: isolate; transform: translateZ(0); }
  /* Safari/WebKit ignores border-radius + overflow:hidden for children that are composited (the blurred fill, images inside
     transformed stack cards): the corners come out square and the picture spills. A mask clips them reliably. WebKit only,
     because a mask also clips the element's own box-shadow. */
  @supports (-webkit-hyphens: none) {
    .promo-poster, .promo-photo { -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
  }
  .promo-poster.is-fit { isolation: isolate; }
  .promo-poster.is-fit::before { content: ""; position: absolute; inset: calc(var(--s-5) * -1); background: var(--fill) center / cover;
                                 filter: blur(22px) saturate(1.15); }
  .promo-poster.is-fit img { position: relative; object-fit: contain; }
  .promo-dots { display: flex; justify-content: center; gap: 6px; padding: var(--s-2) 0 0; }
  .promo-dots i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--line);
                  transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
  .promo-dots i[aria-current="true"] { width: 18px; background: var(--accent-500); }

  .promo-stack { display: grid; margin: var(--s-4) var(--gutter) var(--s-10); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .promo-stack > * { grid-area: 1 / 1; flex: none; width: 100%; aspect-ratio: 16 / 9; min-height: 0; will-change: transform; cursor: grab; }
  .promo-stack > .promo { padding: var(--s-5); }
  .promo-stack > *:active { cursor: grabbing; }
  .stack-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin: 0 0 var(--s-2); }
  .stack-controls .icon-btn { display: none; }

  /* ---------- responsive: components answer to the .app container, never the raw viewport ---------- */
  .app { container-type: inline-size; }
  @container (min-width: 768px) {                    /* tablet: 3-up, sheets become centred dialogs */
    .app > * { --gutter: var(--s-6); }
    .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  }
  @container (min-width: 1024px) {                   /* desktop: 4-up grid (the tab bar rail lives in shell.css) */
    .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
}

/* ---------- empty state, misc ---------- */
.empty { display: grid; justify-items: center; gap: var(--s-3); text-align: center; padding: var(--s-14) var(--gutter); }
.empty h2 { font-size: var(--fs-headline); font-weight: 800; }
.empty p { margin: 0; color: var(--text-2); max-width: 32ch; }
.empty-icon { width: 88px; height: 88px; border-radius: var(--r-full); background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.ic-lg { width: 40px; height: 40px; }
.pcard-link { display: grid; gap: var(--s-2); min-width: 0; }
.pcard > * { min-width: 0; }
.pcard-letter { font-size: var(--fs-display); font-weight: 800; color: var(--text-3); }
.row-link { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); }
/* sold out: dim the photo and name, no add button is rendered (listing pages) */
.pcard.is-oos .pcard-img, .pcard.is-oos .pcard-name { opacity: .5; }

/* desktop-only side tiles next to the offer stack */
.hero-side { display: none; }

/* file picker matches the other fields instead of the browser default button */
.input[type=file] { padding: var(--s-2) var(--s-3); cursor: pointer; }
.input[type=file]::file-selector-button { margin-right: var(--s-3); padding: var(--s-2) var(--s-4); border: 0; border-radius: var(--r-full);
                                           background: var(--ink-900); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
