:root {
  --green: #153f33;
  --deep: #0b2c23;
  --cream: #f5f2e9;
  --gold: #d7ad60;
  --ink: #19392f;
  --muted: #718077;
  --line: #e2e5dd;
  --red: #9c3b36;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 17px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(0.96);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}
.danger {
  color: var(--red);
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cdd4c9;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 15px 0;
}
label input,
label select {
  margin-top: 7px;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}
.top {
  background: var(--deep);
  color: white;
  padding: 17px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  letter-spacing: 2px;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.brand b {
  background: var(--gold);
  color: var(--deep);
  border-radius: 7px;
  padding: 7px;
  letter-spacing: 0;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #c9d1bf;
  margin-top: 12px;
}
.userbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.userbar button {
  min-height: 38px;
  padding: 8px 12px;
  border-color: #426052;
  background: transparent;
  color: white;
}
.nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 8px 28px;
  overflow: auto;
}
.nav button {
  border: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 14px;
}
.nav .active {
  background: #e9eee5;
  color: var(--green);
}
.page {
  padding: 25px 28px;
  max-width: 1700px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 7px 0;
}
h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 14px 0;
}
.subtle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.status {
  font-size: 13px;
  background: #e3edde;
  border-radius: 30px;
  padding: 10px 14px;
  white-space: nowrap;
}
.status:before {
  content: "●";
  color: #54905c;
  margin-right: 7px;
}
.pos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 25px;
  align-items: start;
}
.catalogtools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.search {
  max-width: 300px;
}
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.categories button {
  min-height: 42px;
  white-space: nowrap;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 30px;
}
.categories .active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}
.product {
  display: flex;
  align-items: flex-start;
  text-align: left;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  padding: 17px;
  position: relative;
  border: 1px solid #dde1d6;
  box-shadow: 0 2px 3px #123e3204;
}
.product .cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}
.product .name {
  font-size: 17px;
  margin: 9px 0 5px;
  line-height: 1.25;
}
.product .portion {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.product .price {
  font-size: 20px;
  margin-top: 15px;
}
.product .plus {
  position: absolute;
  bottom: 13px;
  right: 13px;
  background: #edf1e7;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.cart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  position: sticky;
  top: 16px;
  overflow: hidden;
}
.carthead {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carthead h2 {
  margin: 0;
}
.carthead button {
  min-height: 35px;
  padding: 6px 10px;
  font-size: 12px;
}
.cartlines {
  min-height: 210px;
  max-height: 42vh;
  overflow: auto;
  padding: 8px 20px;
}
.empty {
  text-align: center;
  padding: 55px 15px;
  color: var(--muted);
  line-height: 1.6;
}
.cartline {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cartrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.qty {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 8px;
  font-size: 14px;
}
.qty button {
  min-height: 36px;
  width: 36px;
  padding: 3px;
  font-size: 18px;
}
.cartbottom {
  padding: 20px;
  background: #fafbf7;
  border-top: 1px solid var(--line);
}
.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  font-size: 14px;
}
.total b {
  font-size: 30px;
}
.payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.payments button {
  font-size: 12px;
  padding: 13px 4px;
}
.payments .active {
  border: 2px solid var(--green);
  background: #e8eee5;
}
.checkout {
  width: 100%;
  margin-top: 14px;
  min-height: 57px;
}
.cartnote {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}
.notice {
  background: #fff3d7;
  color: #775a23;
  padding: 13px 16px;
  border: 1px solid #e9d7ae;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.notice.error {
  background: #fbe7e3;
  color: var(--red);
  border-color: #ebc9c0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  margin-bottom: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stat b {
  display: block;
  font-size: 28px;
  margin: 12px 0 5px;
}
.stat small {
  font-size: 12px;
  color: var(--muted);
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.right {
  text-align: right;
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef2e8;
}
.tag.warn {
  background: #fff0cf;
  color: #806127;
}
.tag.bad {
  background: #fbe7e3;
  color: var(--red);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row select {
  width: auto;
  max-width: 100%;
}
.small {
  font-size: 12px;
  min-height: 38px;
  padding: 8px 11px;
}
.login {
  max-width: 460px;
  margin: 10vh auto;
  background: white;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.login .brand {
  margin-bottom: 35px;
}
.login button {
  width: 100%;
  margin-top: 15px;
}
.login p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.loading {
  text-align: center;
  padding: 20vh 20px;
  font-size: 30px;
}
.loading p {
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: white;
  max-width: 90vw;
  padding: 15px 22px;
  border-radius: 10px;
  box-shadow: 0 5px 24px #0003;
  z-index: 100;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 27px;
  width: min(620px, 94vw);
  color: var(--ink);
  max-height: 90vh;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #0a221bb0;
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.recipe-row {
  display: grid;
  grid-template-columns: 1fr 100px 45px;
  gap: 8px;
  margin: 9px 0;
}
.recipe-row button {
  padding: 6px;
}
.muted {
  opacity: 0.55;
}
.footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
  letter-spacing: 0.3px;
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 40px;
}
a {
  color: var(--green);
}
@media (max-width: 1050px) {
  .pos {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 15px;
  }
  .page {
    padding: 20px;
  }
  .products {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .top {
    padding: 16px;
  }
  .brand {
    font-size: 18px;
  }
  .userbar span {
    display: none;
  }
  .nav {
    padding: 7px 10px;
  }
  .page {
    padding: 15px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .pos {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .product {
    min-height: 135px;
  }
  .cartlines {
    min-height: 80px;
    max-height: none;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .stat b {
    font-size: 23px;
  }
  .login {
    margin: 30px 15px;
    padding: 25px;
  }
  .catalogtools {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      transform 0.08s;
  }
  button:active:not(:disabled) {
    transform: translateY(1px);
  }
}

.product .name {
  display: block;
}
.spaced {
  margin-top: 18px;
}
