/* Reference-inspired food catalogue, scoped to this page and its category sheet. */
.food-page{
  --food-paper:#FFFDF8;--food-surface:#FFFDF8;--food-red:#2E5E3A;--food-ink:#22472C;--food-muted:#978176;--food-line:#eee4dc;
  height:calc(100dvh - var(--food-top-offset,0px));min-height:0!important;display:flex;flex-direction:column;overflow:hidden;padding:0 0 env(safe-area-inset-bottom,0px);
  color:var(--food-ink);background:var(--food-paper)!important;font:13px/1.45 "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
}
.food-page *{box-sizing:border-box}
.food-page button,.food-page input{font:inherit}
.food-page button{cursor:pointer;-webkit-appearance:none}
.food-page button:focus-visible,.food-page input:focus-visible{outline:2px solid #2E5E3A;outline-offset:3px}
.food-page .food-visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.food-page .food-head{flex:0 0 auto;background:linear-gradient(115deg,#FFFDF8 0%,#f8efe4 100%)}
.food-page .food-status{height:31px;display:flex;justify-content:space-between;align-items:center;padding:4px 17px 0;color:#22472C;font-size:10px;font-weight:650;letter-spacing:.035em}
.food-page .food-search-row{height:52px;display:flex;align-items:center;gap:5px;padding:3px 11px 7px 7px}
.food-page .food-back{flex:none;width:25px;height:38px;padding:0;border:0;background:none;color:#22472C;font-size:30px;line-height:1}
.food-page .food-search{height:38px;display:flex;align-items:center;gap:7px;min-width:0;flex:1;padding:0 7px 0 11px;background:#FFFDF8;border:1px solid #d8bba8;border-radius:99px;box-shadow:0 2px 8px #8f614008}
.food-page .food-search>svg{flex:none;width:17px;height:17px;stroke:#a99080;stroke-width:1.7}
.food-page .food-search input{flex:1;min-width:0;width:0;height:34px;padding:0;border:0;border-radius:0;background:transparent;color:#22472C;font-size:12px;outline:none}
.food-page .food-search input::placeholder{color:#aa9687;font-size:11px}
.food-page .food-search input::-webkit-search-cancel-button{display:none}
.food-page #food-clear{flex:none;width:21px;height:24px;padding:0;border:0;background:none;color:#b69a86;font-size:19px}
.food-page #food-clear[hidden]{display:none}
.food-page .food-search-submit{flex:none;height:27px;padding:0 10px;border:0;border-radius:99px;background:#f3e3d9;color:var(--food-red);font-size:10px;font-weight:650}
.food-page .food-wishlist{flex:none;width:29px;height:34px;padding:6px;border:0;background:none;color:#22472C}
.food-page .food-wishlist svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.55}
.food-page .food-category-row{display:flex;align-items:stretch;padding:0 0 9px 11px;min-height:85px}
.food-page .food-round-categories{display:flex;gap:10px;overflow-x:auto;flex:1;min-width:0;padding:1px 9px 0 0;scroll-behavior:smooth}
.food-page .food-round-categories>button{display:flex;align-items:center;flex-direction:column;gap:5px;flex:0 0 58px;min-width:0;padding:0;border:0;background:none;color:#22472C}
.food-page .food-round-categories>button>span{display:block;width:50px;height:50px;border:1.5px solid transparent;border-radius:50%;padding:2px;background:#FFFDF8;transition:border-color .15s}
.food-page .food-round-categories img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.food-page .food-round-categories b{display:block;max-width:100%;border-radius:99px;padding:2px 5px;font-size:10px;line-height:1.35;white-space:nowrap;font-weight:500}
.food-page .food-round-categories .is-active>span{border-color:var(--food-red)}
.food-page .food-round-categories .is-active b{background:#f0ded1;color:#22472C;font-weight:650}
.food-page .food-all{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;flex:0 0 43px;margin-top:0;padding:0 7px 0 5px;border:0;background:linear-gradient(90deg,#f8eee2e6,#f8eee2 35%);color:#22472C;font-size:10px}
.food-page .food-all:before{position:absolute;top:7px;bottom:10px;left:0;width:1px;content:"";background:linear-gradient(transparent,#ddc8b4,transparent)}
.food-page .food-all svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}
.food-page .food-content{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:var(--food-surface);border-radius:15px 15px 0 0}
.food-page .food-topic-row{display:flex;align-items:center;flex:0 0 44px;gap:8px;overflow-x:auto;padding:6px 12px;border-bottom:1px solid var(--food-line)}
.food-page .food-topic-row button{flex:none;min-height:29px;padding:4px 12px;border:0;border-radius:5px;background:#FFFDF8;color:#8b7464;font-size:12px;white-space:nowrap;font-weight:500}
.food-page .food-topic-row .is-active{background:#f3e3d9;color:var(--food-red);font-weight:700}
.food-page .food-workspace{display:flex;flex:1;min-height:0;overflow:hidden}
.food-page .food-sidebar{flex:0 0 82px;overflow-y:auto;overscroll-behavior:contain;min-height:0;background:#FFFDF8;border-right:1px solid #f1e9e1;padding:6px 0 18px}
.food-page .food-sidebar button{position:relative;display:block;width:100%;min-height:57px;padding:12px 8px;border:0;background:transparent;color:#766053;font-size:12px;text-align:center;line-height:1.6;word-break:keep-all}
.food-page .food-sidebar .is-active{background:#FFFDF8;color:var(--food-red);font-weight:650}
.food-page .food-sidebar .is-active:before{position:absolute;left:0;top:17px;bottom:17px;width:3px;content:"";background:var(--food-red);border-radius:0 3px 3px 0}
.food-page .food-results{min-width:0;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.food-page .food-results-head{flex:0 0 37px;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 10px 0 11px;border-bottom:1px solid #f0e8e1;background:#FFFDF8}
.food-page .food-results-head>span{min-width:0;display:flex;align-items:center;gap:5px}
.food-page .food-results-head b{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;color:#22472C}
.food-page .food-results-head small{color:#b19c8c;font-size:9px;white-space:nowrap}
.food-page .food-results-head>div{display:flex;gap:7px;flex:none}
.food-page .food-results-head button{min-height:31px;padding:0;border:0;background:none;color:#a08a7b;font-size:10px;white-space:nowrap}
.food-page .food-results-head button.is-active{color:#2E5E3A;font-weight:650}
.food-page .food-results-head button i{font-style:normal;font-size:11px}
.food-page .food-items{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px;background:#FFFDF8}
.food-page .food-item{position:relative;margin:0 11px 0 10px;border-bottom:1px solid #eee7e0}
.food-page .food-item:last-child{border-bottom:0}
.food-page .food-item-main{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;width:100%;min-height:137px;padding:14px 0;border:0;background:none;color:inherit;text-align:left;align-items:start}
.food-page .food-item-image{position:relative;display:block;width:88px;height:96px;overflow:hidden;border-radius:9px;background:#f5eee4}
.food-page .food-item-image img{display:block;width:100%;height:100%;object-fit:cover}
.food-page .food-item-image>i{position:absolute;left:0;top:0;padding:2px 5px;background:#a4573ecf;color:#FFFDF8;border-radius:0 0 6px 0;font-style:normal;font-size:8px;line-height:1.4}
.food-page .food-item-copy{display:block;min-width:0}
.food-page .food-item h2{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;color:#22472C;font-size:13px;line-height:1.45;font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;font-weight:650;letter-spacing:0}
.food-page .food-item-copy>p{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 4px;color:#a48e7d;font-size:10px;line-height:1.45}
.food-page .food-item-tags{display:flex;align-items:center;gap:4px;min-height:17px;overflow:hidden;white-space:nowrap}
.food-page .food-item-tags em{display:inline-block;flex:none;max-width:100%;padding:1px 4px;border:1px solid #C9A227;border-radius:3px;color:#2E5E3A;font-style:normal;font-size:8px;line-height:1.35}
.food-page .food-item-tags>span{overflow:hidden;text-overflow:ellipsis;color:#8B5A2B;font-size:9px;line-height:1.35}
.food-page .food-item-copy>small{display:block;overflow:hidden;margin-top:3px;color:#ab9788;font-size:9px;white-space:nowrap;text-overflow:ellipsis;line-height:1.5}
.food-page .food-item-price{display:flex;align-items:baseline;gap:3px;min-height:26px;margin-top:4px;padding-right:32px;color:#22472C}
.food-page .food-item-price>small{font-size:8px;color:#8B5A2B;white-space:nowrap}
.food-page .food-item-price b{font-size:20px;font-weight:700;line-height:1.2;letter-spacing:-.02em;white-space:nowrap}
.food-page .food-item-price b i{font-style:normal;font-size:12px;margin-right:1px;letter-spacing:0}
.food-page .food-item-price>em{font-size:9px;font-style:normal;color:#af927e}
.food-page .food-item-price .food-detail-label{font-size:12px;font-weight:600;letter-spacing:0}
.food-page .food-save{position:absolute;right:0;bottom:13px;display:grid;place-items:center;width:27px;height:27px;border:0;border-radius:50%;background:#2E5E3A;color:#FFFDF8;box-shadow:0 3px 9px #9d453019}
.food-page .food-save>span{font-size:22px;font-weight:400;line-height:1}
.food-page .food-save>svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.6}
.food-page .food-save.is-saved{background:#f1dfd5;color:#2E5E3A;box-shadow:none}
.food-page .food-empty{padding:48px 14px 28px;text-align:center;color:#ae9683}
.food-page .food-empty>span{display:block;margin-bottom:13px;color:#c9b6a6;font-size:30px}
.food-page .food-empty h2{font:600 14px/1.5 "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:#2E5E3A;margin:0 0 6px}
.food-page .food-empty p{font-size:11px;line-height:1.6;margin:0 0 16px}
.food-page .food-empty button{height:31px;padding:0 13px;border:1px solid #d4b6a3;border-radius:99px;background:#FFFDF8;color:#22472C;font-size:11px}
.food-all-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 8px;padding:3px 0 10px}
.food-all-categories>button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 3px;border:1px solid #eee0d5;border-radius:12px;background:#FFFDF8;color:#22472C}
.food-all-categories>button.is-active{border-color:#2E5E3A;background:#f7eadd}
.food-all-categories img{display:block;width:46px;height:46px;object-fit:cover;border-radius:50%}
.food-all-categories b{font-size:11px;font-weight:600}
.food-all-categories small{font-size:9px;color:#a7907d}
@media(max-width:380px){
  .food-page .food-search-row{padding-left:5px;padding-right:7px;gap:3px}
  .food-page .food-back{width:21px}
  .food-page .food-wishlist{width:25px;padding:4px}
  .food-page .food-search{padding-left:9px;gap:5px}
  .food-page .food-search input::placeholder{font-size:10px}
  .food-page .food-search-submit{padding:0 7px;font-size:9px}
  .food-page .food-category-row{padding-left:7px}
  .food-page .food-round-categories{gap:7px}
  .food-page .food-round-categories>button{flex-basis:54px}
  .food-page .food-round-categories>button>span{width:46px;height:46px}
  .food-page .food-round-categories b{font-size:9px;padding:2px 3px}
  .food-page .food-category-row{min-height:81px}
  .food-page .food-sidebar{flex-basis:69px}
  .food-page .food-sidebar button{min-height:54px;padding:11px 5px;font-size:11px}
  .food-page .food-results-head{padding-left:8px;padding-right:8px}
  .food-page .food-results-head b{max-width:65px;font-size:10px}
  .food-page .food-results-head small{display:none}
  .food-page .food-results-head>div{gap:6px}
  .food-page .food-results-head button{font-size:9px}
  .food-page .food-item{margin-left:8px;margin-right:9px}
  .food-page .food-item-main{grid-template-columns:74px minmax(0,1fr);gap:8px;min-height:137px;padding:13px 0}
  .food-page .food-item-image{width:74px;height:90px}
  .food-page .food-item h2{font-size:12px}
  .food-page .food-item-copy>p{font-size:9px;margin-top:4px}
  .food-page .food-item-tags>span{display:none}
  .food-page .food-item-tags em{font-size:8px}
  .food-page .food-item-copy>small{font-size:8px}
  .food-page .food-item-price{padding-right:26px;gap:2px}
  .food-page .food-item-price b{font-size:18px}
  .food-page .food-item-price>small{font-size:7px}
  .food-page .food-save{width:24px;height:24px;bottom:14px}
}
@media(prefers-reduced-motion:reduce){.food-page .food-round-categories{scroll-behavior:auto}.food-page .food-round-categories>button>span{transition:none}}
