body {
  font-family: "Prompt", "Sarabun", sans-serif;
  background: #f6f7f9;
  margin: 0;
}
.container {
  max-width: 430px;
  margin: 1.5em auto;
  background: #fff;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 2px 10px #0001;
  position: relative;
}
h1, h2, h3 {
  margin: 0.7em 0 0.5em 0;
  font-weight: bold;
  color: #235fab;
}
h1 {
  font-size: 2em;
  margin-bottom: 0.2em;
}
h2 {
  font-size: 1.2em;
  color: #2362aa;
}
.section {
  margin-bottom: 1.2em;
}
.section-title {
  font-weight: bold;
  color: #1b77c2;
  margin-bottom: 2px;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  gap: 0.5em;
}
.menu-item .item-name {
  flex: 2;
}
.menu-item .item-price {
  flex: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #1b77c2;
}
.add-btn {
  background: #227baf;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 3px 14px;
  cursor: pointer;
  font-size: 1.1em;
  min-width: 36px;
  transition: background 0.1s;
}
.add-btn:hover {
  background: #1566a4;
}
input[type=number] {
  width: 42px;
  font-size: 1em;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 2px 4px;
  margin: 0 4px;
  text-align: center;
  background: #f5f9fc;
}
textarea {
  width: 100%;
  border-radius: 8px;
  min-height: 42px;
  margin: 0.5em 0;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1em;
  padding: 8px;
  resize: vertical;
}
button, .cart-remove {
  background: #227baf;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cart-remove {
  color: #b1321c !important;
  background: none !important;
  border: none !important;
  font-weight: bold;
  margin-left: 8px;
  padding: 0 10px;
  font-size: 1em;
}
.cart-remove:hover {
  color: #d11a00 !important;
  text-decoration: underline;
}
#thankyou {
  color: #217722;
  margin: 1em 0;
  font-weight: bold;
}
.hide {
  display: none;
}
#order-btn {
  width: 100%;
  margin-top: 1em;
  padding: 10px 0;
  font-size: 1.1em;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 0.03em;
}
#total {
  margin: 1em 0;
  font-weight: bold;
  text-align: right;
  color: #1c6fa2;
}

/* รถเข็น ลอยขวาบน fixed */
#cart-icon-box {
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 99;
  background: #f5f9fc;
  border-radius: 12px;
  padding: 6px 16px;
  box-shadow: 0 2px 6px #b2c7e622;
  min-width: 56px;
  border: 1px solid #dde7f3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3em;
  transition: background 0.15s;
}
#cart-icon-box:hover {
  background: #d7edff;
}
#cart-count {
  font-weight: bold;
  color: #1b77c2;
  min-width: 20px;
  font-size: 1.1em;
  text-align: center;
}
.cart-table {
  width: 100%;
}
.cart-row {
  display: flex;
  align-items: center;
  margin: 4px 0;
  gap: 0.3em;
}
.cart-name {
  flex: 2;
  word-break: break-all;
}
.cart-price {
  flex: 1;
  text-align: right;
  min-width: 56px;
  font-variant-numeric: tabular-nums;
  color: #222;
  font-weight: 500;
}
.cart-total-row {
  border-top: 1.5px solid #eee;
  margin-top: 8px;
  padding-top: 8px;
}
@keyframes shake {
  0% { transform:translateX(0); }
  25% { transform:translateX(-4px);}
  50% { transform:translateX(4px);}
  75% { transform:translateX(-4px);}
  100% { transform:translateX(0);}
}
.cart-shake {
  animation: shake 0.5s;
}
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px dotted #e5e5e5;
}
.order-item:last-child {
  border-bottom: none;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

@media (max-width: 520px) {
  .container {
    max-width: 97vw;
    padding: 8px;
  }
  #cart-icon-box { right: 6px; top: 6px; padding: 5px 12px; }
  .section { margin-bottom: 0.7em; }
}
