/* /shops — square tiles (owner, 2026-11-09): 3 in a row on every screen; the top 65% is the
   shop's logo stretched to fill it (owner: no white sides, even if it bends), the bottom 35%
   its name + the item count.
   --c1 = the shop's colour (a thin line between the halves). */
.sgrid.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; }
.st { display: flex; flex-direction: column; aspect-ratio: 1; min-width: 0; overflow: hidden;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(58, 37, 48, .09); transition: transform .2s, box-shadow .2s; }
.st:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(58, 37, 48, .15); }
.st:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.st .st-logo { position: relative; flex: 0 0 65%; display: grid; place-items: center; overflow: hidden; background: #fff; border-bottom: 3px solid var(--c1); }
.st .st-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.st .st-logo .em { font-size: clamp(28px, 7vw, 56px); }
.st .st-txt { flex: 1 1 35%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 6px 8px; }
.st h3 { margin: 0; max-width: 100%; font-family: 'Secular One', 'Rubik', sans-serif; font-weight: 400;
  font-size: clamp(15px, 2.4vw, 24px); line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.st .cnt { font-size: 13px; font-weight: 700; color: var(--muted); }
.st .matched { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 600px) {
  .sgrid.gallery { gap: 8px; }
  .st { border-radius: 12px; }
  .st .st-logo { border-bottom-width: 2px; }
  .st .st-txt { padding: 4px 4px; gap: 2px; }
  .st h3 { font-size: 13px; -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .st .cnt { font-size: 10.5px; }
}
@media (max-width: 360px) { .st h3 { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .st { transition: none; } .st:hover { transform: none; } }
