/* Home page menu (like ROOTS): city pills, category pills, a photo beside the dishes in two columns.
   Built on the alchemy.css variables so IVEGAN > Hiển thị (colours, text size) applies. */
.hm{margin-top:28px}
.hm-cities,.hm-cats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.hm-cats{gap:8px;max-width:980px;margin:22px auto 0}
.hm-pill{display:inline-flex;align-items:center;padding:10px 22px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--dark);font:inherit;font-size:calc(15px * var(--ts,1));letter-spacing:.04em;cursor:pointer;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.hm-pill-sm{padding:7px 16px;font-size:calc(14px * var(--ts,1))}
.hm-pill:hover{border-color:var(--brown)}
.hm-pill[aria-selected="true"]{background:var(--brown);border-color:var(--brown);color:#fff}
.hm-pill:focus-visible{outline:2px solid var(--dark);outline-offset:2px}
.hm-cat{max-width:1000px;margin:30px auto 0;text-align:left}
.hm .hm-note{margin:0 0 16px;color:var(--muted);font-size:calc(14px * var(--ts,1))}
.hm-body{display:grid;grid-template-columns:1fr;gap:28px}
.hm-body.has-photo{grid-template-columns:240px 1fr;align-items:start}
.hm-photo img{display:block;width:100%;aspect-ratio:1/1;height:auto;object-fit:cover;border-radius:14px}
.hm-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:44px;list-style:none;margin:0;padding:0}
.hm-item{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.hm-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.hm-name{margin:0;font-size:calc(16px * var(--ts,1));font-weight:500;letter-spacing:.01em;color:var(--dark);text-transform:none}
.hm-badge{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:999px;background:var(--tint);font-size:calc(11px * var(--ts,1));font-weight:600;letter-spacing:.03em;vertical-align:2px}
.hm-price{flex:0 0 auto;color:var(--brown);font-weight:600;font-size:calc(15px * var(--ts,1));white-space:nowrap}
.hm .hm-desc{margin:6px 0 0;color:var(--muted);font-size:calc(14px * var(--ts,1));line-height:1.6}
.hm-extras{margin-top:8px;padding:16px 20px;background:var(--beige);border-radius:12px}
.hm .hm-extras-title{margin:0 0 8px;font-size:calc(13px * var(--ts,1));font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--dark)}
.hm-extras ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px;list-style:none;margin:0;padding:0}
.hm-extras li{display:flex;justify-content:space-between;gap:8px;padding:4px 0;font-size:calc(14px * var(--ts,1));color:var(--dark)}
.hm-extras .hm-price{font-weight:500;font-size:inherit}
.hm .hm-more{margin:30px 0 0;text-align:center;font-size:calc(17px * var(--ts,1));color:var(--muted)}
.hm-more a{color:var(--brown);font-weight:600}
.hm .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media (max-width:900px){.hm-extras ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .hm-body.has-photo{grid-template-columns:1fr}
  .hm-photo img{aspect-ratio:16/10}
  .hm-items{grid-template-columns:1fr}
}
@media (max-width:640px){
  .hm-cities{gap:8px}
  .hm-pill{padding:8px 16px;font-size:calc(14px * var(--ts,1))}
  /* Many categories: one row that scrolls sideways instead of a tall stack. */
  .hm-cats{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding-bottom:6px;margin-inline:-16px;padding-inline:16px;scrollbar-width:none}
  .hm-cats::-webkit-scrollbar{display:none}
  .hm-pill-sm{flex:0 0 auto}
  .hm-extras ul{grid-template-columns:1fr}
}
/* Photo box: beige while the photo loads, then the photo fades in (no white flash when switching tabs). */
.hm-photo{background:var(--beige);border-radius:14px;aspect-ratio:1/1;overflow:hidden}
.hm-js .hm-photo img{opacity:0;transition:opacity .25s ease}
.hm-js .hm-photo img.is-loaded{opacity:1}
@media (max-width:760px){.hm-photo{aspect-ratio:16/10}}
@media (prefers-reduced-motion:reduce){.hm-js .hm-photo img{transition:none}}
/* note under the home menu ("Menus and prices differ by café") a little larger */
#menu .fineprint{font-size:calc(15px * var(--ts,1))}
