:root {
  color-scheme: light;
  font-family: Arial, "Noto Sans TC", sans-serif;
  background: #f7f7f5;
  color: #17201b;
}

body {
  margin: 0;
}

.shell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 24px;
}

.bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: #fff;
  border: 1px solid #dadeda;
  border-radius: 8px;
  padding: 18px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.eyebrow {
  color: #5d6f63;
  font-size: 13px;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 12px;
}

.muted {
  color: #5d6f63;
  margin: 0;
}

.products {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.product,
.cart-row {
  border: 1px solid #dde2dd;
  border-radius: 8px;
  padding: 12px;
}

.product {
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.product:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

input {
  border: 1px solid #cbd3cd;
  border-radius: 6px;
  font: inherit;
  padding: 10px;
}

.cart {
  display: grid;
  gap: 10px;
  min-height: 60px;
}

.cart-row header,
.qty,
.total {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.qty button {
  border: 1px solid #cbd3cd;
  background: #fff;
  border-radius: 6px;
  min-height: 32px;
  min-width: 32px;
}

.total {
  border-top: 1px solid #dde2dd;
  margin-top: 14px;
  padding-top: 14px;
}

.button {
  align-items: center;
  background: #17201b;
  border: 1px solid #17201b;
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  margin-top: 12px;
  padding: 11px 14px;
  text-decoration: none;
  width: 100%;
}

.secondary {
  background: #fff;
  color: #17201b;
}

.link {
  color: #17201b;
}

.notice {
  border: 1px solid #cbd3cd;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px;
}

.notice.error {
  background: #fff1f1;
  border-color: #efb7b7;
}

.notice.success {
  background: #eef9f0;
  border-color: #a8d8b0;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

