
body {
  font-family: sans-serif;
  max-width: 960px;
  margin: 2rem auto;
  padding: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
  cursor: pointer;
}
th {
  background-color: #f5f5f5;
}
th.asc::after {
  content: " ↑";
}
th.desc::after {
  content: " ↓";
}
a {
  color: #0077cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.filters label {
  margin-right: 0.5rem;
}
@media (max-width: 600px) {
  .filters {
    flex-direction: column;
  }
}
td.price-low {
  background-color: #d4edda;
}
td.price-high {
  background-color: #f8d7da;
}
.card {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.card-header strong {
  font-size: 1.1rem;
  color: #2a8f2a;
}
.card .shop {
  font-weight: bold;
}
.card-body p {
  margin: 0.3rem 0;
}
.card-body a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0077cc;
  text-decoration: none;
}
.card-body a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  #price-table {
    display: none;
  }
  .card {
    display: block;
  }
}
@media (min-width: 769px) {
  #price-table {
    display: table;
  }
  .card {
    display: none;
  }
}
