* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; background: #faf6ef; color: #2e2a26; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 14px; }
a { color: #7a4a21; }
.site-header { background: #4c7a3f; color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-title { font-size: 17px; font-weight: 700; }
.header-nav a { color: #fff; margin-left: 14px; text-decoration: none; font-size: 14px; }
.site-footer { color: #999; font-size: 12px; text-align: center; padding: 26px 0 40px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.info-card { background: #fff; border: 1px solid #ead9c2; border-radius: 10px; padding: 10px 12px; }
.info-card h3 { margin: 0 0 4px; font-size: 14px; color: #7a4a21; }
.info-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.cat-title { margin: 22px 0 10px; font-size: 19px; border-left: 5px solid #4c7a3f; padding-left: 9px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid #ead9c2; border-radius: 12px; padding: 12px; }
.card h3 { margin: 0; font-size: 16px; }
.sub-name { color: #999; font-size: 12px; margin: 2px 0 8px; }
.card-img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.opt-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; flex-wrap: wrap; }
.opt-row > span { color: #7a4a21; font-weight: 600; min-width: 34px; }
.opt-row select { flex: 1; padding: 6px; border: 1px solid #d8c9ae; border-radius: 6px; font-size: 14px; background: #fff; }
.tops { margin: 6px 0; font-size: 14px; }
.tops summary { cursor: pointer; color: #7a4a21; }
.top-item { display: inline-block; margin: 4px 8px 0 0; font-size: 13px; }
.price-big { font-size: 18px; font-weight: 700; color: #b3541e; margin: 4px 0 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 8px; }
.qty-ctrl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #d8c9ae; background: #fff8ee; font-size: 16px; cursor: pointer; }
.qty-ctrl.small button { width: 26px; height: 26px; font-size: 14px; }
.btn { background: #4c7a3f; color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: #3d6533; }
.btn.big { width: 100%; padding: 13px; font-size: 16px; }
.btn.added { background: #b3541e; }
.btn.danger { background: #b03a2e; }
.btn.grey { background: #888; }
#cart-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #2e2a26; color: #fff; z-index: 30; box-shadow: 0 -2px 10px rgba(0,0,0,.25); }
.cart-bar-in { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
.cart-sum { font-size: 14px; }
.cart-sum b { color: #ffd98a; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal.hidden { display: none; }
.modal-box { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 16px; }
@media (min-width: 640px) { .modal { align-items: center; } .modal-box { border-radius: 14px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.x-btn { border: 0; background: none; font-size: 18px; cursor: pointer; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e3d5bd; }
.cl-name { font-size: 14px; }
.muted { color: #999; font-size: 13px; }
.totals { margin: 12px 0; font-size: 15px; line-height: 1.7; }
#checkout-form label { display: block; margin: 10px 0; font-size: 14px; }
#checkout-form input[type=text], #checkout-form input:not([type=checkbox]) { width: 100%; padding: 9px; border: 1px solid #d8c9ae; border-radius: 6px; margin-top: 4px; font-size: 15px; }
.check-line { display: flex !important; gap: 8px; align-items: flex-start; }
.err { color: #b03a2e; min-height: 18px; font-size: 14px; }
.closed-box { background: #fff; border: 1px solid #ead9c2; border-radius: 12px; padding: 22px; text-align: center; margin: 18px 0; }
.order-box { background: #fff; border: 1px solid #ead9c2; border-radius: 12px; padding: 16px; margin: 14px 0; }
.order-box h2 { margin-top: 0; }
table.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lines td, table.lines th { padding: 6px 4px; border-bottom: 1px solid #f0e6d4; text-align: left; vertical-align: top; }
table.lines td.r, table.lines th.r { text-align: right; white-space: nowrap; }
.status { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; color: #fff; }
.status.pending { background: #d48806; }
.status.done { background: #4c7a3f; }
.status.cancelled { background: #999; }
.flash { padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.flash.ok { background: #e6f4e0; } .flash.bad { background: #fbe9e7; }
.big-no { font-size: 26px; font-weight: 800; color: #b3541e; letter-spacing: 1px; }
/* admin */
.admin-nav { background: #2e2a26; }
.admin-nav .wrap { display: flex; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.admin-nav a { color: #ffd98a; text-decoration: none; font-size: 14px; }
table.admin { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.admin th, table.admin td { border: 1px solid #e3d5bd; padding: 6px 8px; text-align: left; vertical-align: top; }
table.admin th { background: #fff8ee; }
.admin-form label { display: block; margin: 8px 0; font-size: 14px; }
.admin-form input, .admin-form select, .admin-form textarea { padding: 7px; border: 1px solid #d8c9ae; border-radius: 6px; font-size: 14px; }
.admin-form textarea { width: 100%; min-height: 54px; }
.inline-form { display: inline; }
.small-btn { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
details.edit-box { margin: 4px 0; }
summary { cursor: pointer; }
@media print {
  .site-header, .site-footer, .admin-nav, .no-print { display: none !important; }
  body { background: #fff; }
}
.opt-group { margin: 12px 0; }
.og-title { font-weight: 600; color: #7a4a21; margin-bottom: 6px; font-size: 14px; }
.opt-choice { display: inline-block; margin: 0 12px 8px 0; font-size: 14px; }
.order-btn { margin-top: 4px; }
