.menu { --cart-h: 60px; }

.menu-body {
  position: fixed;
  top: calc(var(--nav-h) + var(--safe-top));
  bottom: calc(var(--cart-h) + var(--safe-bottom));
  left: 50%;
  display: flex;
  width: 100%;
  max-width: var(--app-max);
  transform: translate(-50%);
}

.menu-cats {
  flex: none;
  width: 86px;
  overflow-y: auto;
  background: rgba(0, 0, 0, .32);
  -webkit-overflow-scrolling: touch;
}

.menu-cats button {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 8px;
  color: #a39889;
  font-size: 13px;
  line-height: 1.35;
}

.menu-cats button.is-active {
  background: rgba(255, 236, 200, .06);
  color: #fff4ef;
  font-weight: 600;
}

.menu-cats button.is-active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 0 2px 2px 0;
  background: var(--red-bright);
}

.menu-list {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.menu-list h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -12px;
  padding: 10px 12px 6px;
  background: rgba(22, 14, 10, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

.menu-product { display: flex; gap: 10px; padding: 8px 0 12px; }
.menu-product-img { flex: none; width: 76px; height: 76px; border-radius: 8px; object-fit: cover; background: #15110e; }

.menu-product-photo {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: linear-gradient(160deg, #2b241d, #171310);
  color: rgba(198, 163, 106, .22);
  font: 700 13px/1.4 Georgia, serif;
  letter-spacing: 1px;
  text-align: center;
}

.menu-product-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu-product-info b { font-size: 15px; font-weight: 600; }

.menu-hot, .menu-sold {
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(166, 13, 16, .75);
  color: #ffe2c2;
  font-size: 10px;
  font-weight: 400;
  vertical-align: 2px;
}

.menu-sold { background: #3a3029; color: #c9bba7; }

.menu-desc {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
}

.menu-desc span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.menu-more { flex: none; color: var(--gold-soft); font-size: 11px; font-style: normal; }
.menu-product-foot { display: flex; align-items: center; justify-content: space-between; min-height: 26px; margin-top: auto; }

.price { color: var(--gold-soft); font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif; font-weight: 600; }
.price:before { content: "¥"; margin-right: 1px; font-size: .8em; }
.menu-product-foot .price { font-size: 16px; }
.menu-cart-sum .price { font-size: 20px; }

.menu-stepper { display: flex; align-items: center; gap: 8px; }
.menu-step { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; }
.menu-step-add { background: var(--red); color: #fff; }
.menu-step-sub { border: 1px solid #6c645b; color: var(--text-2); }
.menu-qty { min-width: 14px; font-size: 14px; text-align: center; }
.menu-list-end { padding: 16px 0 24px; color: #5c534a; font-size: 12px; text-align: center; }

.menu-cart-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--app-max);
  height: calc(var(--cart-h) + var(--safe-bottom));
  padding: 0 12px var(--safe-bottom) 16px;
  transform: translate(-50%);
  background: var(--bar);
  border-top: 1px solid var(--line);
}

.menu-cart-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-dim); color: #171514; flex: none; }

.menu-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--red-bright);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.menu-cart-sum { flex: 1; }
.menu-cart-empty { color: #6c645b; font-size: 13px; }
.menu-cart-bar .btn { flex: none; height: 40px; padding: 0 26px; }

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
}

.sheet-panel {
  width: 100%;
  max-width: var(--app-max);
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px 16px 0 0;
  background: var(--card);
  box-shadow: inset 0 1px rgba(255, 236, 200, .12), 0 -18px 40px rgba(0, 0, 0, .5);
}

.sheet-panel header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sheet-panel header b { font-size: 15px; }
.sheet-panel header button { color: var(--text-3); font-size: 13px; }

.cart-sheet .sheet-panel {
  margin-bottom: calc(var(--cart-h) + var(--safe-bottom) + 6px);
  max-height: 50vh;
  min-height: 150px;
}
.menu-cart-lines { padding: 4px 16px 12px; }

.menu-cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.menu-line-title { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
.menu-line-title small { color: var(--text-3); font-size: 11px; }
.menu-checkout-qty { flex: none; color: var(--text-3); font-size: 12px; }

.detail-sheet .sheet-panel { max-height: 82vh; }
.menu-detail-body { padding: 12px 16px calc(16px + var(--safe-bottom)); }
.menu-detail-img { width: 100%; height: 180px; border-radius: 10px; object-fit: cover; background: #15110e; }

.menu-detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; color: var(--text-2); font-size: 13px; }
.menu-detail-desc { margin: 6px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.6; }

.menu-detail-group { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; margin-top: 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.menu-detail-group-name { color: var(--text-2); font-size: 13px; }
.menu-detail-group-name small { margin-left: 6px; color: var(--text-3); font-size: 11px; }

.menu-detail-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.menu-detail-thumb { flex: none; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #15110e; }
.menu-detail-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.menu-detail-text small { color: var(--text-3); font-size: 11px; }
.menu-detail-ref { flex: none; color: var(--text-3); font-size: 12px; }

.menu-detail-sub { margin: 0 0 10px 12px; padding: 6px 10px 2px; border-left: 2px solid rgba(198, 163, 106, .35); }
.menu-detail-sub h5 { margin: 0 0 2px; color: var(--text-2); font-size: 12px; font-weight: 500; }
.menu-detail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-detail-chips i { padding: 2px 10px; border: 1px solid rgba(198, 163, 106, .35); border-radius: 999px; color: var(--text-2); font-size: 12px; font-style: normal; }

.menu-detail-actions { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 16px calc(14px + var(--safe-bottom)); border-top: 1px solid rgba(255, 255, 255, .06); background: var(--card); }
.menu-detail-actions .price { flex: 1; font-size: 18px; }
.menu-detail-actions .btn { flex: none; height: 42px; }
.btn-outline { border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--gold-soft); }
