/* 在庫一覧の並び替え・表示切替・ページ送り（stock-sites 共通）。色は .sl{--sl-accent} で上書き */
.sl { --sl-accent: #e60012; --sl-ink: #222; --sl-line: #d9dce0; }
.sl [hidden] { display: none !important; }
.sl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sl .sl-filters button { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--sl-line); background: #fff; color: var(--sl-ink); cursor: pointer; min-height: 0; margin: 0; }
.sl .sl-filters button span { font-weight: 400; opacity: .7; margin-left: 4px; }
.sl .sl-filters button.on { background: var(--sl-ink); border-color: var(--sl-ink); color: #fff; }
.sl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; }
.sl-count { background: #3a3f45; color: #fff; border-radius: 4px; padding: 6px 12px; font-weight: 700; line-height: 1.4; }
.sl-count b { font-size: 16px; margin: 0 2px; }
.sl-soldcount { font-size: 13px; color: #6b7179; padding: 0 4px; }
.sl-soldcount b { margin: 0 2px; }
.sl .sl-bar button { font: inherit; font-size: 14px; line-height: 1.3; min-height: 0; margin: 0; cursor: pointer; color: var(--sl-ink); background: #f1f2f4; border: 1px solid var(--sl-line); border-radius: 4px; padding: 6px 12px; }
.sl .sl-bar button:hover:not(:disabled) { background: #e5e7ea; }
.sl .sl-bar button.on { background: var(--sl-accent); border-color: var(--sl-accent); color: #fff; }
.sl .sl-bar button:disabled { opacity: .4; cursor: default; }
.sl-pair { display: inline-flex; align-items: center; gap: 4px; background: #f1f2f4; border: 1px solid var(--sl-line); border-radius: 4px; padding: 2px 4px 2px 10px; }
.sl-lab { font-size: 13px; margin-right: 2px; }
.sl .sl-pair button { padding: 3px 8px; background: #fff; }
.sl-views { display: inline-flex; gap: 2px; background: #f1f2f4; border: 1px solid var(--sl-line); border-radius: 4px; padding: 2px; }
.sl .sl-views button { padding: 4px 7px; border: 0; background: transparent; display: inline-flex; }
.sl .sl-views button svg { width: 18px; height: 18px; }
.sl .sl-views button.on { background: #3a3f45; color: #fff; }
.sl-pager { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.sl-pager span { padding: 0 6px; font-weight: 700; white-space: nowrap; }
.sl .sl-pager button { padding: 5px 9px; background: #fff; }
.sl-pager-bottom { display: flex; justify-content: center; margin: 22px 0 0; }
.sl-pager-bottom .sl-pager { margin: 0; }
/* リスト表示：カードを横長の行に（写真を左、文字を右）。カードの中身は店ごとのまま */
.sl.sl-list .sl-items { grid-template-columns: 1fr !important; }
.sl.sl-list [data-sl-item] { display: grid !important; grid-template-columns: 240px minmax(0, 1fr); align-items: stretch; }
.sl.sl-list [data-sl-item] > :first-child { aspect-ratio: auto; height: 100%; min-height: 160px; }
.sl.sl-list [data-sl-item] > :first-child img { height: 100%; }
@media (max-width: 640px) {
  .sl-bar { gap: 6px; }
  .sl .sl-bar button { padding: 6px 9px; font-size: 13px; }
  .sl-pager { margin-left: 0; width: 100%; justify-content: center; }
  .sl.sl-list [data-sl-item] { grid-template-columns: 120px minmax(0, 1fr); }
  .sl.sl-list [data-sl-item] > :first-child { min-height: 100px; }
}
