body {
  margin: 0;
  background-color: #faf8f0;
  color: #28513b;
  font-family: Arial, sans-serif;
}

header {
  background-color: #edf1e4;
  padding: 32px 20px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 32px;
}

header p {
  margin: 8px 0;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}
.categories {
  margin-top: 32px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-list button {
  background-color: #edf1e4;
  color: #28513b;
  border: 1px solid #cbd5bf;
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}

.category-list button:hover {
  background-color: #dce6d0;
}
.products {
  margin-top: 32px;
}

.product-card {
  max-width: 240px;
  padding: 20px;
  background-color: #fffef8;
  border: 1px solid #dedfd3;
  border-radius: 16px;
}

.product-icon {
  padding: 20px;
  background-color: #edf1e4;
  border-radius: 12px;
  text-align: center;
  font-size: 64px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.price {
  font-size: 22px;
  font-weight: bold;
}

.product-card button {
  width: 100%;
  padding: 12px;
  background-color: #28513b;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}
#remove-banana {
  margin-top: 8px;
  background-color: #edf1e4;
  color: #28513b;
}
#remove-banana:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  max-width: none;
}
.product-card button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#remove-tomato {
  margin-top: 8px;
  background-color: #edf1e4;
  color: #28513b;
}
[hidden] {
  display: none !important;
}
#product-form {
  max-width: 480px;
  padding: 24px;
  background-color: #fffef8;
  border: 1px solid #dedfd3;
  border-radius: 16px;
}

#product-form label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: bold;
}

#product-form input,
#product-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #a7b69c;
  border-radius: 8px;
  background-color: white;
  color: #28513b;
  font: inherit;
}

#product-form input:focus,
#product-form select:focus {
  outline: 3px solid #cbdcbd;
  outline-offset: 2px;
}

#product-form button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background-color: #28513b;
  color: white;
  font-size: 16px;
}

#product-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#saved-products li {
  margin-bottom: 16px;
}

#saved-products button {
  margin-left: 12px;
  padding: 8px 12px;
  border: 1px solid #b74242;
  border-radius: 8px;
  background-color: #fff2f2;
  color: #8a2525;
  cursor: pointer;
}
.product-card .remove-button {
  margin-top: 8px;
  background-color: #edf1e4;
  color: #28513b;
}
.category-list button.active {
  background-color: #28513b;
  color: white;
}
#saved-products {
  list-style: none;
  padding: 0;
}

#saved-products li {
  padding: 20px;
  margin-bottom: 16px;
  background-color: #fffef8;
  border: 1px solid #dedfd3;
  border-radius: 12px;
  line-height: 1.8;
}

#saved-products button {
  margin: 8px 8px 0 0;
}
#saved-products .stock-button {
  background-color: #edf1e4;
  color: #28513b;
  border-color: #a7b69c;
}

#saved-products .price-button {
  background-color: #e8f2fc;
  color: #245580;
  border-color: #a9c8e5;
}

#saved-products .delete-button {
  background-color: #fff2f2;
  color: #8a2525;
  border-color: #b74242;
}
#product-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  padding: 12px;
  margin: 8px 0 20px;
  border: 1px solid #a7b69c;
  border-radius: 8px;
  font: inherit;
}
#photo-preview {
  width: 100%;
  max-width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
#photo-preview {
  width: 100%;
  max-width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.saved-product-photo {
  display: block;
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}
.product-icon.has-photo {
  padding: 0;
  overflow: hidden;
}

.shop-product-photo {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.order-summary {
  margin-top: 32px;
  padding: 24px;
  background-color: #edf1e4;
  border: 1px solid #cbd5bf;
  border-radius: 16px;
}

#order-items {
  padding-left: 20px;
}

#order-items li {
  margin-bottom: 12px;
}
.customer-details input,
.customer-details select {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #a7b69c;
  border-radius: 8px;
  background-color: white;
  color: #28513b;
  font: inherit;
}

.customer-details label {
  font-weight: bold;
}
.customer-details textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #a7b69c;
  border-radius: 8px;
  color: #28513b;
  background-color: white;
  font: inherit;
  resize: vertical;
}
[hidden] {
  display: none !important;
}