* {
  box-sizing: border-box;
}

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

.header {
  background: white;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px #ddd;
}

.header h1 {
  margin: 0;
  color: #16823b;
  font-size: 25px;
}

.header input {
  flex: 1;
  min-width: 180px;
  padding: 11px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  background: #16823b;
  color: white;
  cursor: pointer;
}

.menu {
  background: #126b32;
  padding: 10px;
  text-align: center;
}

.menu button {
  background: transparent;
  margin: 0 5px;
}

.welcome {
  margin: 15px;
  padding: 35px 20px;
  text-align: center;
  background: white;
  border-radius: 12px;
}

.welcome h2 {
  color: #16823b;
  font-size: 28px;
}

.categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px;
}

.categories button {
  background: white;
  color: #222;
  padding: 20px 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

h2 {
  text-align: center;
}
.products {
  padding: 15px;
}

.product-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product {
  background: white;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px #ddd;
}

.product-img {
  font-size: 55px;
  padding: 15px;
  background: #f0f8f2;
  border-radius: 8px;
}

.product h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}

.product p {
  font-size: 12px;
  color: #777;
}

.product h4 {
  color: #16823b;
  font-size: 18px;
  margin: 10px;
}

.product button {
  width: 100%;
  font-size: 13px;
}
#cartBox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cart-content {
  background: white;
  width: 90%;
  max-width: 450px;
  max-height: 80%;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
}

#closeCart {
  float: right;
  background: #e53935;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.cart-item button {
  background: #e53935;
  padding: 6px 10px;
}

#checkoutBtn {
  width: 100%;
  margin-top: 15px;
  font-size: 17px;
}
/* =========================
   CART
========================= */

#cartBox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cart-content {
  background: white;
  width: 92%;
  max-width: 450px;
  max-height: 85%;
  overflow-y: auto;
  padding: 20px;
  border-radius: 15px;
}

#closeCart,
#closeCheckout {
  float: right;
  background: #e53935;
  padding: 7px 12px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.cart-item button {
  background: #e53935;
  padding: 7px 10px;
}

#checkoutBtn {
  width: 100%;
  margin-top: 15px;
  font-size: 16px;
}


/* =========================
   CHECKOUT
========================= */

#checkoutBox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.checkout-content {
  background: white;
  width: 92%;
  max-width: 450px;
  max-height: 90%;
  overflow-y: auto;
  padding: 20px;
  border-radius: 15px;
}

.checkout-content h2 {
  text-align: center;
  color: #16823b;
}

.checkout-total {
  text-align: center;
  font-size: 18px;
  padding: 10px;
  background: #f0f8f2;
  border-radius: 8px;
}

#orderForm {
  margin-top: 15px;
}

#orderForm label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-weight: bold;
}

#orderForm input,
#orderForm textarea,
#orderForm select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 7px;
  font-size: 15px;
}

#orderForm textarea {
  height: 80px;
  resize: vertical;
}

.place-order {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  font-size: 17px;
  background: #16823b;
}