/* FABLE — stran »Trgovine« (/trgovine; shops.php, shops-functions.php). Kartice oglasov in barvne spremenljivke
   (--sgl-*) so iz css/search-grid.css (.sgl-page); tu samo glava strani, glava trgovine in mreža štirih oglasov. */

/* Širina kot drugod (.wrapper teme); #main samo zapolni ovoj */
body.fable-shops #content { display: block; }
body.fable-shops #main { float: none !important; width: auto !important; max-width: none !important; background: none !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

.fshops-head { margin: 8px 0 8px; }
.fshops-head h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--sgl-ink); }
.fshops-sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--sgl-muted); }
.fshops-empty { margin: 24px 0 0; font-size: 15px; color: var(--sgl-muted); }

/* Trgovina: ime levo, »Vsi oglasi trgovine« desno, pod njima mreža */
.fshops-shop { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id all" "grid grid"; align-items: center; gap: 18px 16px; padding: 28px 0 36px; border-top: 1px solid var(--sgl-line); }
.fshops-head + .fshops-shop { margin-top: 20px; }

.fshops-id { grid-area: id; display: flex; align-items: center; gap: 14px; min-width: 0; }
.fshops-avatar { flex: none; display: block; width: 56px; height: 56px; }
.fshops-avatar > * { display: flex !important; align-items: center; justify-content: center; width: 56px !important; height: 56px !important; margin: 0 !important; border: 1px solid var(--sgl-line); border-radius: 50% !important; box-sizing: border-box; object-fit: contain; background: #fff; font-size: 20px; }
.fshops-avatar .fable-avatar-initials { background: var(--sgl-chip); color: var(--sgl-ink); }
.fshops-txt { min-width: 0; }
.fshops-name { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; }
.fshops-name a { color: var(--sgl-ink); text-decoration: none; }
.fshops-name a:hover { color: var(--sgl-ink); text-decoration: underline; text-underline-offset: 3px; }
.fshops-meta { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--sgl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gumb kot »Pokaži več oglasov« (.sgl-more-btn) */
.fshops-all { grid-area: all; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid #d6d6d6; border-radius: 6px; background: var(--sgl-surface); color: var(--sgl-ink); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: border-color .15s; }
.fshops-all:hover, .fshops-all:focus { border-color: #9a9a9a; color: var(--sgl-ink); text-decoration: none; }
html[data-theme="dark"] .fshops-all { border-color: rgba(255,255,255,.2); }
html[data-theme="dark"] .fshops-all:hover { border-color: rgba(255,255,255,.45); }

.sgl-page .fshops-grid { grid-area: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .fshops-head h1 { font-size: 24px; }
  .fshops-sub { font-size: 14px; }
  .fshops-shop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "grid" "all"; gap: 16px; padding: 22px 0 28px; }
  .fshops-avatar, .fshops-avatar > * { width: 48px !important; height: 48px !important; font-size: 17px; }
  .fshops-name { font-size: 17px; }
  .fshops-meta { font-size: 13px; }
  .fshops-all { width: 100%; height: 44px; box-sizing: border-box; }
  .sgl-page .fshops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}
