* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

header {
  background: #f6821f;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-badge {
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.banner {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.product {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.product .emoji { font-size: 3rem; text-align: center; margin: 0.5rem 0; }
.product h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.product .price { color: #f6821f; font-weight: bold; margin: 0.5rem 0; }

button {
  background: #f6821f;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: auto;
}

button:hover { background: #d96f10; }
button:disabled { background: #ccc; cursor: not-allowed; }

.checkout {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.checkout h2 { margin-bottom: 1rem; }
#cart-items { list-style: none; margin-bottom: 1rem; }
#cart-items li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

#checkout-btn { width: 100%; padding: 1rem; font-size: 1.1rem; }
