:root {
  --bg: #11161d;
  --panel: #1a202b;
  --panel-light: #202735;
  --border: #2d3748;
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #35b96f;
  --green-dark: #24985a;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --yellow: #c69316;
  --orange: #cc6b1f;
  --blue: #2563eb;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: #151b24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.secondary-button,
.cart-button,
.danger-button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.secondary-button {
  background: #131923;
  border: 1px solid var(--border);
}

.secondary-button:hover {
  background: #1d2532;
}

.cart-button {
  background: var(--green);
}

.cart-button:hover {
  background: var(--green-dark);
}

.danger-button {
  background: var(--red);
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.danger-button:hover {
  background: var(--red-dark);
}

.cart-count {
  background: rgba(0, 0, 0, 0.2);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.container {
  width: min(1320px, 86vw);
  margin: 24px auto 60px;
}

.toolbar {
  margin-bottom: 28px;
}

.search-wrap {
  width: min(460px, 100%);
  height: 42px;
  background: #131923;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  margin-bottom: 18px;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-wrap input::placeholder {
  color: #7d8a9f;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 0;
  background: var(--panel-light);
  color: white;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.filter-button.active {
  background: var(--green);
}

.category-title {
  margin: 34px 0 16px;
  font-size: 20px;
}

.category-count {
  color: var(--muted);
  font-weight: 400;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 80px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge.npc-fruit {
  background: rgba(198, 147, 22, 0.25);
  color: #facc15;
}

.badge.fruit-pluk {
  background: rgba(204, 107, 31, 0.25);
  color: #fb923c;
}

.badge.vlees-vis {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.badge.groenten-pluk {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.badge.default {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.price {
  color: #35d487;
  font-weight: 700;
}

.add-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.add-control.input-mode {
  background: transparent;
}

.quantity-input {
  width: 72px;
  height: 42px;
  border: 1px solid var(--border);
  background: #131923;
  color: white;
  border-radius: 999px;
  padding: 0 12px;
  outline: 0;
  font-weight: 800;
  text-align: center;
}

.quantity-input:focus {
  border-color: var(--green);
}

.add-button {
  border: 0;
  color: white;
  background: var(--green);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-button:hover {
  background: var(--green-dark);
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.cart-screen,
.modal-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
}

.cart-screen.open,
.modal-screen.open {
  display: block;
}

.cart-panel {
  width: min(520px, 94vw);
  height: 100vh;
  background: #151b24;
  margin-left: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.cart-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.cart-header h2,
.modal-header h2 {
  margin: 0;
}

.cart-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.icon-button {
  border: 1px solid var(--border);
  background: var(--panel);
  color: white;
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0;
}

.cart-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--panel-light);
  font-weight: 900;
}

.small-button:hover {
  background: var(--green);
}

.remove-button:hover {
  background: var(--red);
}

.quantity-number {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}

.cart-summary {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
}

.summary-row strong {
  color: white;
}

.summary-row.total {
  font-size: 22px;
  color: white;
}

.modal-panel {
  width: min(440px, 94vw);
  background: #151b24;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  margin: 8vh auto;
  padding: 24px;
}

.modal-panel label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

.modal-panel input {
  border: 1px solid var(--border);
  background: var(--panel);
  color: white;
  border-radius: 10px;
  padding: 12px;
  outline: 0;
}

.full-width {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    padding: 0 4vw;
  }

  .container {
    width: 92vw;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: auto;
    padding: 16px;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .secondary-button,
  .cart-button {
    flex: 1;
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    align-items: flex-start;
    flex-direction: column;
  }

.add-control {
  width: 100%;
}

.quantity-input {
  width: 84px;
}

.add-button {
  flex: 1;
  justify-content: center;
}

  .cart-panel {
    width: 100vw;
  }
}