body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #111;
}

.consumer-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
}

.consumer-header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  border: 1px solid #d0d0d0;
  background: #fff;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.product-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 2rem;
  padding: 1rem 2rem 3rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #ececec;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-meta button {
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[aria-hidden='false'] {
  display: flex;
}

.card {
  background: #fff;
  width: min(560px, 96vw);
  padding: 1rem;
  border-radius: 6px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0;
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
}

.checkout-form label {
  display: grid;
  gap: 0.25rem;
}

.error {
  color: #b42318;
  margin-top: 0.75rem;
  white-space: pre-line;
}
