/* Compact phone ordering (showroom phase, slice B). Loaded after styles.css; active only on narrow screens and only while the customer menu is on the page
   (shop.js adds body.shop). Desktop is untouched. Flow on a phone: menu first, sticky category chips, one compact row per item, options in a bottom sheet,
   a sticky bag bar. No ordering logic lives here: Add / Build a plate still open the existing item chooser and the bag still uses the existing cart. */
#shop-bar{display:none}
.card [data-action=item].added{filter:brightness(.9)}
@media (max-width:760px){
 body.shop main#app{display:flex;flex-direction:column}
 body.shop main#app>#menu-list{order:-2;padding-top:14px}
 body.shop main#app>.hero{order:-1}
 body.shop main#app>.hero .hero-art,body.shop main#app>.hero .hero-copy>p:not(.eyebrow){display:none}
 body.shop main#app>.hero{min-height:0!important;height:auto!important;padding:20px 16px!important;background-image:none!important}
 body.shop main#app>.category-ribbon,body.shop main#app>.build-band{display:none}

 /* sticky category chips, one scrolling row */
 body.shop #menu-list .filters{position:sticky;top:0;z-index:30;display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;margin:0 -16px 10px;padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--line);scrollbar-width:none;-webkit-overflow-scrolling:touch}
 body.shop #menu-list .filters::-webkit-scrollbar{display:none}
 body.shop #menu-list .filters button{flex:0 0 auto;min-height:44px;white-space:nowrap}
 body.shop #menu-list>h2,body.shop #menu-list>.eyebrow{margin-bottom:6px}

 /* one compact row per item */
 body.shop #menu-list .cards{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
 body.shop #menu-list .card{height:auto!important;display:grid!important;grid-template-columns:84px minmax(0,1fr);gap:4px 12px;align-items:center;padding:10px!important;min-height:0;border-radius:var(--radius)}
 body.shop #menu-list .card .food-art{width:84px!important;height:84px!important;min-height:0!important;margin:0!important;border-radius:12px;grid-row:1}
 body.shop #menu-list .card-body{padding:0!important;display:grid!important;gap:2px!important;align-content:start;min-width:0;min-height:0!important;height:auto!important}
 body.shop #menu-list .card-body>small{display:none}
 body.shop #menu-list .card-body h3{margin:0;font-size:1.05rem!important;line-height:1.2!important}
 body.shop #menu-list .card-body p{margin:0!important;max-height:2.7em;min-height:0!important;font-size:.84rem!important;line-height:1.3;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 body.shop #menu-list .price-row{display:flex!important;flex-direction:row!important;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;margin-top:2px!important;padding:0!important}
 body.shop #menu-list .price-row b{font-size:1rem;white-space:nowrap}
 body.shop #menu-list .price-row b small{display:inline;font-size:.72rem;font-weight:500;margin-right:3px;opacity:.8}
 body.shop #menu-list .price-row button{width:auto!important;flex:0 0 auto;min-height:44px;padding:0 14px!important;font-size:.9rem;white-space:nowrap}
 body.shop #menu-list .card .food-art{align-self:start}

 /* options sheet: the existing item chooser opens as a bottom sheet */
 body.shop dialog#modal{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:none;max-height:92vh;overflow-y:auto;border-radius:20px 20px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom))}
 body.shop dialog#modal::backdrop{background:rgba(0,0,0,.5)}

 /* sticky bag bar */
 body.shop #shop-bar{position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:0 20px;border-radius:999px;background:var(--accent);color:var(--ink);font-weight:700;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.35)}
 body.shop #shop-bar[hidden]{display:none}
 body.shop.shop-has-bar{padding-bottom:84px}
 /* the Genie button must not sit on top of the bag bar */
 body.shop.shop-has-bar .genie-launch{bottom:84px}
}
