* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: #f8fafc;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
h2 { margin-top: 0; }
p { margin: 8px 0; }

.message {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
}

.desktop-view { display: block; }
.mobile-view { display: none; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  font-size: 0.95rem;
  background: #fff;
}
th, td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #f3f4f6;
  font-weight: 700;
  white-space: nowrap;
}

.product-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: #111827;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
}
.product-name:hover { text-decoration: underline; }

.price {
  font-size: 1.2rem;
  font-weight: 900;
  color: #b91c1c;
  white-space: nowrap;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.badge-good {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.badge-muted {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.spec {
  white-space: nowrap;
}

.mobile-cards {
  display: grid;
  gap: 12px;
}
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.product-card .price {
  display: block;
  margin: 6px 0 10px;
}
.details {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 6px 10px;
  font-size: 0.94rem;
}
.details dt {
  margin: 0;
  color: #374151;
  font-weight: 600;
}
.details dd {
  margin: 0;
  color: #111827;
  overflow-wrap: anywhere;
}

.back-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .desktop-view { display: none; }
  .mobile-view { display: block; }
  .container { padding: 18px 12px 42px; }
  .card { padding: 16px; }
}
