:root {
  color-scheme: light;
  --ink: #182231;
  --muted: #667085;
  --line: #d9e0e9;
  --panel: #ffffff;
  --bg: #fff4e7;
  --brand: #ff7900;
  --brand-dark: #d85e00;
  --accent: #ff7900;
  --charcoal: #111111;
  --warn: #b7791f;
  --shadow: 0 18px 44px rgba(24, 34, 49, .09);
  --shadow-soft: 0 10px 26px rgba(24, 34, 49, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 0 0, rgba(255, 121, 0, .16), transparent 34%),
    linear-gradient(180deg, #19110b 0, #2b170b 220px, #fff8ef 360px, var(--bg) 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 22px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
}

.brand span,
.muted {
  color: var(--muted);
  font-size: .9rem;
}

.btn {
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
  box-shadow: 0 10px 22px rgba(255, 121, 0, .26);
}

.btn:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn.added {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a35d;
  box-shadow: 0 0 0 4px rgba(22, 163, 93, .16);
  transform: scale(1.02);
}

.btn.added::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  color: #16a35d;
  font-size: .82rem;
  font-weight: 900;
}

.btn.secondary {
  background: #eef2f5;
  color: var(--ink);
  box-shadow: none;
}

.btn.danger {
  background: var(--accent);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

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

.product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 178px 1fr;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product:hover {
  border-color: rgba(217, 85, 47, .34);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-added {
  animation: product-added .72s ease;
}

.product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e5e9ef;
}

.product-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.option-row,
.field {
  display: grid;
  gap: 5px;
}

label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-height: 40px;
  padding: 8px 10px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 121, 0, .16);
  outline: 0;
}

textarea {
  resize: vertical;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.sticky {
  position: sticky;
  top: 14px;
}

.cart-list,
.order-list,
.inventory-list {
  display: grid;
  gap: 10px;
}

.cart-item,
.order-item,
.inventory-item,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
  box-shadow: 0 6px 16px rgba(24, 34, 49, .04);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.cart-added {
  animation: cart-added .72s ease;
}

.cart-item-added {
  animation: cart-item-added .72s ease;
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.metric strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.45rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.order-item header,
.inventory-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e8edf3;
  min-height: 26px;
  padding: 0 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.pill.warn {
  color: #7a4a00;
  background: #fff3d6;
}

.pill.ok {
  color: #12623d;
  background: #dff7eb;
}

.notice {
  min-height: 24px;
  color: var(--muted);
}

.success-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  border: 1px solid #b9ebcf;
  border-radius: 8px;
  background: #effcf5;
  color: #12623d;
  padding: 10px;
}

.qr code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.success-notice strong,
.success-notice small {
  display: block;
}

.success-notice small {
  margin-top: 2px;
}

.success-check {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #16a35d;
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.error-notice {
  color: #9b2c1b;
}

@keyframes product-added {
  0% {
    border-color: #16a35d;
    box-shadow: 0 0 0 0 rgba(22, 163, 93, .38);
    transform: translateY(0);
  }
  45% {
    border-color: #16a35d;
    box-shadow: 0 0 0 6px rgba(22, 163, 93, .16);
    transform: translateY(-2px);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 0 rgba(22, 163, 93, 0);
    transform: translateY(0);
  }
}

@keyframes cart-added {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 93, .36);
  }
  45% {
    border-color: #16a35d;
    box-shadow: 0 0 0 6px rgba(22, 163, 93, .14);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 0 rgba(22, 163, 93, 0);
  }
}

@keyframes cart-item-added {
  0%,
  100% {
    background: #fbfcfe;
  }
  45% {
    background: #effcf5;
    border-color: #16a35d;
  }
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.qr img {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 20px, 1160px);
    padding-top: 12px;
  }

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

  .layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }
}

/* Customer menu shell, matching the approved standalone visual direction. */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.main {
  padding: 24px;
}

.hero {
  display: grid;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(17, 17, 17, .24);
}

.hero-art {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 270;
  object-fit: cover;
  object-position: center top;
  background: #111;
}

.hero-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 20px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, .96), rgba(38, 20, 9, .9)),
    radial-gradient(circle at 94% 20%, rgba(255, 121, 0, .24), transparent 34%);
}

.eyebrow,
.cart-kicker {
  margin: 0 0 6px;
  color: #ffb45f;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #fff1df;
  font-size: 16px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(100%, 360px);
}

.trust-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 180, 95, .38);
  border-radius: 999px;
  padding: 0 12px;
  color: #fff8ef;
  background: rgba(255, 121, 0, .16);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.toolbar {
  margin: 18px 0;
}

.menu-grid {
  display: grid;
  gap: 22px;
}

.menu-grid section > h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1;
}

.cart {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  box-shadow: -14px 0 34px rgba(17, 24, 39, .08);
}

.cart h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.cart-kicker {
  color: var(--brand-dark);
}

.cart-list {
  overflow: auto;
}

.product {
  grid-template-rows: 148px 1fr;
}

.product img {
  height: 148px;
}

@media (max-width: 920px) {
  .app {
    display: block;
  }

  .main {
    padding: 12px;
  }

  .hero {
    border-radius: 0;
    margin: -12px -12px 0;
  }

  .hero-art {
    min-height: 132px;
    object-position: left top;
  }

  .hero-content {
    display: grid;
    padding: 16px;
  }

  .trust-row {
    justify-content: flex-start;
    min-width: 0;
  }

  .cart {
    position: static;
    height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }
}
