* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans KR", -apple-system, "Hiragino Sans", sans-serif;
  background: #fffcf5; color: #2b2620; font-size: 16px; line-height: 1.55; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 14px 20px; background: #f8f5ee; border-bottom: 1px solid #eee3cf; }
.brand { font-size: 24px; font-weight: 700; color: #b4552d; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; }
.brandimg { height: 50px; width: auto; display: block; border-radius: 8px; }
.hero { text-align: center; margin: 4px 0 10px; }
.hero img { width: min(300px, 80vw); height: auto; border-radius: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.langnav { margin-left: auto; font-size: 14px; color: #6d6154; white-space: nowrap; }
.langnav a { color: #6d6154; text-decoration: none; }
.langnav a:hover { text-decoration: underline; }
.adminnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-left: auto; }
.adminnav a { color: #2b2620; text-decoration: none; font-size: 15px; }
.adminnav a:hover { color: #b4552d; text-decoration: underline; }
.adminnav form { display: inline; }
.linkbtn { background: none; border: none; color: #8a8578; cursor: pointer; font-size: 14px; padding: 0; }
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 90px; }
footer { text-align: center; color: #8a8578; font-size: 13px; padding: 24px 0 34px; }
footer a { color: #8a8578; }
.pagetitle { font-size: 24px; margin: 6px 0 10px; }
.lead { color: #6d675a; margin: 0 0 8px; }
.muted { color: #8a8578; font-size: 14px; }
.center { text-align: center; }
.flash { background: #fdf3e0; border: 1px solid #ecd9ae; border-radius: 10px;
  padding: 10px 16px; margin-bottom: 16px; }
.flash p { margin: 2px 0; }
.card { background: #fff; border: 1px solid #eee3cf; border-radius: 14px;
  padding: 20px; margin-bottom: 16px; }
.card.narrow { max-width: 430px; margin: 30px auto; }
.card.empty { text-align: center; color: #8a8578; padding: 34px 20px; }
.card h1 { font-size: 21px; margin: 0 0 14px; }
.card h2 { font-size: 17px; margin: 0 0 12px; }
form label { display: block; margin-bottom: 13px; font-size: 15px; }
input[type=text], input[type=tel], input[type=password], input[type=date],
input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; margin-top: 4px; font-size: 16px;
  border: 1px solid #d9d2c0; border-radius: 9px; background: #fff; font-family: inherit; }
textarea { resize: vertical; }
button, .button { display: inline-block; padding: 9px 18px; font-size: 15px;
  background: #f3eee1; color: #2b2620; border: 1px solid #ddd5c0; border-radius: 9px;
  cursor: pointer; text-decoration: none; font-family: inherit; }
button.primary, .button.primary { background: #b4552d; border-color: #b4552d; color: #fff; font-weight: 600; }
button.primary:hover, .button.primary:hover { background: #9d4a26; }
button.big { width: 100%; padding: 13px; font-size: 16.5px; margin-top: 4px; }
button.danger { background: #fdf0ee; border-color: #eec5bd; color: #a03a2a; }
button.small { padding: 5px 12px; font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* 가게 앞 */
.dayhead { font-size: 23px; font-weight: 800; margin: 42px 0 14px; padding: 13px 18px;
  background: #f9edd6; border-left: 7px solid #b4552d; border-radius: 0 10px 10px 0; }
.catdesc { color: #6d675a; margin: -2px 0 16px; line-height: 1.65; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.item { background: #fff; border: 1px solid #eee3cf; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; }
.item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.item .noimg { height: 110px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; background: #faf3e3; }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.item h3 { margin: 0; font-size: 18px; }
.item .idate { margin: 0; font-size: 13.5px; color: #b4552d; font-weight: 600; }
.item .desc { margin: 0; color: #6d675a; font-size: 14.5px; white-space: pre-line; }
.item .price { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: #b4552d; }
.item .remain { margin: 0; font-size: 13.5px; color: #5a7d4a; }
.item .badge-out { margin: 4px 0 0; font-weight: 700; color: #a03a2a; }
.item.soldout { opacity: .62; }
.item label.qty { margin: auto 0 0; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.item label.qty select { width: 96px; margin: 0; text-align: center; }
.orderbar { position: sticky; bottom: 12px; margin-top: 22px; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
  background: #2b2620; color: #fff; border-radius: 12px; padding: 13px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.orderbar strong { font-size: 19px; }
.orderbar button { font-size: 16.5px; padding: 11px 26px; }

/* 주문 */
.sumtable { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.sumtable td { padding: 7px 6px; border-bottom: 1px solid #f0ebdd; vertical-align: top; }
.sumtable td.r { text-align: right; white-space: nowrap; }
.sumtable .totalrow td { border-bottom: none; border-top: 2px solid #e5e0d3; font-size: 16.5px; }
.radios { margin-bottom: 13px; font-size: 15px; }
.radios > span { display: block; margin-bottom: 5px; }
.radios label { display: inline-block; margin: 0 16px 0 0; }
.done .done-mark { font-size: 42px; margin: 4px 0; }
.done .orderno { font-size: 21px; color: #b4552d; }
.orderno { font-size: 17px; }

/* 관리자 */
.adminitem { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; padding: 14px 18px; }
.adminitem img { width: 64px; height: 64px; object-fit: cover; border-radius: 9px; flex-shrink: 0; }
.adminitem .grow { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.adminitem .desc { color: #6d675a; font-size: 14px; white-space: pre-line; overflow-wrap: break-word; }
.adminitem > a.button, .adminitem > form { flex-shrink: 0; }
.adminitem button, .adminitem .button { white-space: nowrap; }
.out { color: #a03a2a; }
.reserved-badge { display: inline-block; background: #fdf3e0; border: 1px solid #ecd9ae;
  color: #8a6d1f; border-radius: 20px; padding: 1px 10px; font-size: 13px; font-weight: 600; }
.hist-admin { display: flex; gap: 8px; margin-top: 10px; }
.summary-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.sum-box { background: #faf3e3; border: 1px solid #ecd9ae; border-radius: 8px;
  padding: 6px 12px; font-size: 15px; }
.sales-total { font-size: 20px; font-weight: 800; color: #7a4a1f; margin: 10px 0 2px; }
.bulkbar { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; font-size: 14px; }
.bulkbar select { flex: 0 1 110px; width: auto; min-width: 0; }
.bulkbar button { flex: 0 0 auto; white-space: nowrap; font-size: 14px; padding: 8px 12px; }
.bulkbar .checkall { flex: 0 0 auto; white-space: nowrap; }
.orderno-wrap { display: inline-flex; align-items: center; }
.order-check { width: 20px; height: 20px; accent-color: #b4552d; margin-right: 8px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.checkall { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.checkall input { width: 20px; height: 20px; accent-color: #b4552d; }
.preview { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; vertical-align: middle; }
label.check { display: inline-block; margin-left: 10px; }
.filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.filter label { margin: 0; }
.filter input, .filter select { width: auto; }
.order.cancelled { opacity: .55; }
.order .who { margin: 8px 0 4px; font-weight: 600; }
.order .memo { margin: 8px 0 0; color: #6d675a; background: #faf6ee; border-radius: 8px; padding: 8px 12px; }
.statusform { display: flex; gap: 7px; align-items: center; }
.statusform select { width: auto; margin: 0; padding: 6px 9px; }
.userrow { padding: 9px 0; border-bottom: 1px solid #f0ebdd; }
.userrow:last-child { border-bottom: none; }
