:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #241c1a;
  background: #f5f1ed;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  color: #ffffff;
  background: #641f1f;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

input {
  width: 100%;
  border: 1px solid #d9cbc4;
  border-radius: 12px;
  padding: 13px 14px;
  background: #ffffff;
}

label {
  display: grid;
  gap: 8px;
  color: #4c3d38;
  font-size: 14px;
  font-weight: 700;
}

form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 13px 5vw;
  color: #ffffff;
  background: #641f1f;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 24px;
}

.container {
  width: min(1200px, 92vw);
  margin: 32px auto 60px;
}

.panel {
  border: 1px solid #e8ded8;
  border-radius: 21px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(65, 27, 19, 0.06);
}

.auth-panel {
  width: min(480px, 100%);
  margin: 50px auto;
  padding: 34px;
}

.auth-panel h2 {
  margin: 9px 0 0;
  font-size: 31px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  opacity: 0.68;
}

.muted {
  color: #786d69;
  line-height: 1.6;
}

.status {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

.status.online {
  color: #185b35;
  background: #dbf6e5;
}

.status.offline {
  color: #812929;
  background: #ffe2e2;
}

.message {
  min-height: 20px;
  margin: 0;
  color: #9a2e2e;
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 6px 0;
  font-size: 31px;
}

.secondary-button {
  color: #641f1f;
  background: #f2e7e2;
}

.action-group {
  display: flex;
  gap: 10px;
}

.outlet-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.outlet-card {
  border: 1px solid #e5d8d1;
  border-radius: 19px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(58, 27, 20, 0.05);
}

.outlet-card h3 {
  margin: 7px 0;
  font-size: 23px;
}

.outlet-code {
  color: #946c60;
  font-size: 12px;
  font-weight: 800;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.brand-badge {
  border-radius: 999px;
  padding: 7px 10px;
  color: #641f1f;
  background: #f3e5de;
  font-size: 12px;
  font-weight: 800;
}

.select-outlet-button {
  width: 100%;
  margin-top: 20px;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
}

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

.product-card {
  border: 1px solid #e8ddd7;
  border-radius: 16px;
  padding: 17px;
}

.product-card h4 {
  margin: 8px 0;
}

.product-brand {
  color: #8d6256;
  font-size: 12px;
  font-weight: 800;
}

.product-price {
  color: #641f1f;
  font-weight: 850;
}

.empty-state,
.empty-cart {
  border: 1px dashed #d8c5bc;
  border-radius: 15px;
  padding: 28px;
  color: #7c6f6a;
  text-align: center;
  background: #faf7f5;
}

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

  .cart-panel {
    min-height: 180px;
  }
}

@media (max-width: 600px) {
  .topbar {
    align-items: flex-start;
  }

  .section-heading {
    flex-direction: column;
  }

  .action-group {
    width: 100%;
  }

  .action-group button {
    flex: 1;
  }

  .auth-panel {
    margin-top: 20px;
    padding: 25px;
  }
}
