.list-page { width: 100%; max-width: 1100px; margin: 30px auto 80px; padding: 0 24px; }
.list-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; text-align:center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background:#fff; border:1px solid #eee; border-radius:12px; padding:12px; text-decoration:none; color:inherit; box-shadow:0 4px 12px rgba(0,0,0,0.02); display:flex; flex-direction:column; gap:8px; }
.card img { width:100%; object-fit:cover; }
.card h3 { font-size:15px; font-weight:800; margin:0; }
.card .price { font-weight:900; }
.card .meta-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.meta-swatch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.meta-swatch .swatch-row { order: 1; margin-left: 0; }
.meta-swatch .meta-row { order: 2; flex: 0 1 auto; min-width: 140px; justify-content: flex-end; }
.card .pill-chip { padding:6px 10px; border-radius:999px; background:#f4f6f8; border:1px solid #e5e7eb; font-size:12px; font-weight:700; color:#333; }
.card .swatch-row { display:flex; gap:6px; flex-wrap:wrap; align-items:center; min-height:20px; }
.card .swatch-dot { width:14px; height:14px; border-radius:50%; border:1px solid #e1e1e1; background:var(--color, #eee); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8); }
.swatch-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f6f8;
  border: 1px solid #e5e7eb;
  color: #555;
  font-size: 11px;
  font-weight: 800;
}

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .list-page { width: 100%; padding: 0 18px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
}
@media (max-width: 640px) {
  .list-page { padding: 0 16px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .card {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .card img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 10px;
  }
  .card h3 { font-size: 14px; }
  .card .price { margin-left: 0; }
  .meta-swatch { width: 100%; }
  .meta-swatch .meta-row { min-width: 0; justify-content: flex-end; width: auto; }
  .card .swatch-row { justify-content: flex-start; margin-left: 0; }
}

/* ページ全体の高さを確保しフッター接続を安定化 */
.page-has-footer { min-height: 100vh; display: flex; flex-direction: column; }
.page-has-footer main { flex: 1; }
