/* 山嵐茶室｜線上點餐頁（獨立點餐系統的樣子：淺底、清單式、右側訂單） */
body.ord { background: var(--milk); color: var(--bean); font-size: 16px; line-height: 1.6; }
.ord .tl { color: var(--bean); }
.ob { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 0 var(--pad); height: 60px; background: #fbfaf6; border-bottom: 1px solid var(--line-dk); }
.back { font-size: 14px; letter-spacing: .06em; color: #5b4636; white-space: nowrap; }
.back:hover { color: var(--bean); text-decoration: underline; }
.ob-mid { margin: 0 auto; display: flex; align-items: baseline; gap: 14px; }
.ob-mid strong { font-weight: 400; font-size: 20px; letter-spacing: .12em; }
.ob-mid span { font-size: 13px; color: #6b5545; letter-spacing: .08em; }
.ob-st { font-size: 13px; color: #4d3a2c; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ob-st i { width: 8px; height: 8px; background: #3f8f4f; border-radius: 50%; display: inline-block; }

.ow { display: grid; grid-template-columns: 180px minmax(0, 1fr) 380px; gap: 40px; max-width: 1400px; margin: 0 auto; padding: 32px var(--pad) 120px; align-items: start; }
.cats { position: sticky; top: 92px; display: flex; flex-direction: column; border-left: 1px solid var(--line-dk); }
.cats button { text-align: left; background: none; border: 0; cursor: pointer; padding: 12px 18px; font-size: 17px; letter-spacing: .1em; color: #6b5545; position: relative; }
.cats button[aria-current="true"] { color: var(--bean); font-weight: 400; }
.cats button[aria-current="true"]::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; background: var(--amber); }
.cats button:hover { color: var(--bean); }
.list h2 { font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #6b5545; margin: 32px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line-dk); }
.list h2:first-child { margin-top: 0; }
.list h2 span { font-family: var(--f-body); font-size: 20px; letter-spacing: .1em; color: var(--bean); text-transform: none; margin-right: 10px; }
.it { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dk); }
.it h3 { font-weight: 400; font-size: 19px; letter-spacing: .06em; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.it .tg { font-size: 11px; letter-spacing: .14em; color: #8a4600; border: 1px solid #8a4600; padding: 0 6px; line-height: 18px; }
.it p { font-size: 14px; color: #5b4636; margin-top: 2px; }
.it .pr { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.it .add { width: 40px; height: 40px; background: var(--bean); color: var(--cream); border: 0; font-size: 22px; line-height: 1; cursor: pointer; transition: background .25s; }
.it .add:hover { background: var(--amber); color: var(--bean); }
.empty { padding: 48px 0; color: #5b4636; }

.cart { position: sticky; top: 92px; background: #fbfaf6; border: 1px solid var(--line-dk); padding: 32px; max-height: calc(100vh - 116px); overflow-y: auto; }
.cart h2 { font-weight: 400; font-size: 20px; letter-spacing: .12em; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dk); }
.cart-empty { color: #6b5545; font-size: 15px; padding: 8px 0 4px; }
.cl { padding: 12px 0; border-bottom: 1px dashed var(--line-dk); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.cl b { font-weight: 400; letter-spacing: .05em; }
.cl .opt { grid-column: 1; font-size: 13px; color: #6b5545; }
.cl .lp { font-family: var(--f-display); font-weight: 500; text-align: right; }
.cl .ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cl .ctl button { width: 28px; height: 28px; border: 1px solid var(--line-dk); background: none; cursor: pointer; }
.cl .ctl button:hover { border-color: var(--bean); }
.cl .ctl .rm { width: auto; padding: 0 10px; margin-left: auto; font-size: 13px; color: #6b5545; }
.cart-notice { font-size: 13px; color: #8a2f00; margin-top: 10px; }
.cart-notice:empty { display: none; }
#oform { margin-top: 18px; display: grid; gap: 14px; }
#oform[hidden] { display: none; }
.of { display: grid; gap: 4px; }
.of label { font-size: 13px; letter-spacing: .12em; color: #5b4636; }
.of input { border: 0; border-bottom: 1px solid #8f7b68; background: transparent; padding: 8px 0; font-size: 16px; border-radius: 0; }
.of input:focus { outline: none; border-bottom-color: var(--amber); }
.of input[aria-invalid="true"] { border-bottom-color: #b33a00; }
.err { color: #b33a00; font-size: 13px; min-height: 18px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--bean); padding-top: 12px; }
.total b { font-size: 26px; font-weight: 600; }
.ob-btn { background: var(--amber); color: var(--bean); border: 0; padding: 15px 24px; font-family: var(--f-display); font-weight: 600; font-size: 16px; letter-spacing: .12em; cursor: pointer; width: 100%; transition: background .25s; }
.ob-btn:hover { background: #ffa03a; }
.fine { font-size: 12px; color: #6b5545; }
.cart-bar { display: none; }

/* 選項面板 */
.sheet[hidden], .done[hidden] { display: none; }
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-bg { position: absolute; inset: 0; background: rgba(36, 18, 10, .6); }
.sheet-in { position: relative; background: #fbfaf6; width: min(520px, 100%); max-height: 92vh; overflow-y: auto; padding: 32px; color: var(--bean); }
.sh-x { position: absolute; right: 12px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; cursor: pointer; color: #5b4636; }
.sheet h3 { font-weight: 400; font-size: 26px; letter-spacing: .08em; padding-right: 40px; }
.sh-d { font-size: 14px; color: #5b4636; margin: 4px 0 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-size: 13px; letter-spacing: .16em; color: #5b4636; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; }
.chips label { margin: 0 -1px -1px 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: block; border: 1px solid #8f7b68; padding: 8px 14px; font-size: 15px; cursor: pointer; letter-spacing: .06em; }
.chips input:checked + span { background: var(--bean); color: var(--cream); border-color: var(--bean); position: relative; z-index: 1; }
.chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.sh-foot { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.qty { display: flex; align-items: center; border: 1px solid #8f7b68; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty span { min-width: 34px; text-align: center; font-size: 18px; }
.sh-foot .ob-btn { flex: 1; width: auto; }

/* 取餐號碼 */
.done { position: fixed; inset: 0; z-index: 90; background: var(--bean); color: var(--cream); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.done-in { width: min(560px, 100%); text-align: left; }
.done .label { color: var(--amber); }
.done .no { font-size: clamp(96px, 22vw, 200px); line-height: 1; font-weight: 300; margin: 8px 0 12px; letter-spacing: -.02em; }
.done-t { font-size: 20px; margin-bottom: 14px; }
.done ul { border-top: 1px solid var(--line); margin-bottom: 18px; }
.done li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.done li span:first-child { color: var(--cream); }
.done li small { display: block; color: var(--muted); font-size: 13px; }
.done-s { color: var(--muted); margin-bottom: 24px; }
.done-a { display: flex; align-items: center; gap: 28px; }
.done-a .ob-btn { width: auto; padding-inline: 32px; }
.done .tl { color: var(--cream); }

@media (max-width: 1000px) {
  .ow { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .cats { position: sticky; top: 60px; z-index: 20; flex-direction: row; overflow-x: auto; border-left: 0; background: var(--milk); margin: 0 calc(var(--pad) * -1); padding: 8px var(--pad); border-bottom: 1px solid var(--line-dk); scrollbar-width: none; }
  .cats button { padding: 8px 14px; white-space: nowrap; }
  .cats button[aria-current="true"]::before { left: 14px; right: 14px; top: auto; bottom: 0; width: auto; height: 3px; }
  .list { padding-top: 12px; }
  .cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 86vh; border: 0; border-top: 2px solid var(--bean); transform: translateY(105%); transition: transform .35s; visibility: hidden; }
  .cart.open { transform: none; visibility: visible; }
  .cart-bar { display: flex; justify-content: space-between; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: var(--bean); color: var(--cream); border: 0; padding: 16px 150px 16px var(--pad); font-size: 16px; cursor: pointer; }
  .ob-mid span { display: none; }
  .ob-st { display: none; }
}
@media (max-width: 560px) {
  .ob { gap: 12px; }
  .ob-mid { margin: 0 0 0 auto; }
  .it { grid-template-columns: 1fr auto; }
  .it .pr { grid-column: 1; grid-row: 2; }
  .it .add { grid-row: 1 / span 2; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .cart { transition: none; } }
@media (max-width: 560px) { .cart { padding: 20px 20px 84px; } .sheet-in { padding: 20px; } .cart-bar { z-index: 75; } }
.chips label { position: relative; }
.it .meta { font-size: 12px; color: #6b5545; margin-top: 4px; letter-spacing: .04em; }
