body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111827;
  color: #e5e7eb;
}

a { color: #38bdf8; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #020617;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
}

nav button {
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  cursor: pointer;
}
nav button:hover {
  background: #1e293b;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.page-section {
  display: none;
}
.page-section.active {
  display: block;
}

h1, h2 {
  color: #f9fafb;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.product-card {
  background: #020617;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
  object-fit: cover;
}

.product-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.product-desc {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 6px;
}
.product-price {
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card button {
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #022c22;
  cursor: pointer;
  font-weight: 600;
}
.product-card button:hover {
  filter: brightness(1.1);
}

.product-card button[disabled] {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
}

.badge-sold {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fee2e2;
  font-size: 0.8rem;
  margin-left: 4px;
}

#cart-items {
  margin-top: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #1f2937;
}
.cart-item-name {
  flex: 2;
}
.cart-item-qty {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #374151;
  color: #e5e7eb;
  cursor: pointer;
}
.cart-item-qty span {
  min-width: 24px;
  text-align: center;
}
.cart-item-price {
  flex: 0 0 90px;
  text-align: right;
}
.cart-item-remove {
  flex: 0 0 60px;
  text-align: right;
}
.cart-item-remove button {
  border: none;
  background: #b91c1c;
  color: #fee2e2;
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
}

#cart-summary {
  margin-top: 10px;
  font-weight: 600;
}

#cart-summary button {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  cursor: pointer;
}

.checkout {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid #1f2937;
}
.checkout.hidden {
  display: none;
}

input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
  margin-top: 4px;
}
button[type="submit"] {
  padding: 8px 14px;
  margin-top: 8px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
  cursor: pointer;
}

#checkout-message {
  margin-top: 8px;
}
.products-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  margin-top: 12px;
  align-items: flex-start;
}

.products-filter {
  background: #020617;
  border-radius: 12px;
  border: 1px solid #1f2937;
  padding: 10px;
  font-size: 0.9rem;
}

.products-filter h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.filter-group {
  margin-bottom: 12px;
}

.filter-group h4 {
  margin: 6px 0;
  font-size: 0.9rem;
}

.filter-group label {
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
}

.filter-group input[type="radio"] {
  margin-right: 6px;
}

@media (max-width: 900px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
}



footer {
  text-align: center;
  padding: 16px;
  margin-top: 24px;
  border-top: 1px solid #1f2937;
  font-size: 0.85rem;
  color: #9ca3af;
}
