/* Category pages only: preserve native listing AJAX, filtering and pagination. */
body#category{--hg-yellow:#ffbf00;--hg-ink:#202b31;--hg-muted:#68737a;--hg-border:#dfe3e5;color:var(--hg-ink);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body#category .page-title-wrapper{display:none}
body#category #wrapper{padding-top:32px;background:#fff}
body#category #wrapper>.container{width:100%;max-width:none;padding:0 clamp(16px,2.5vw,48px)}
body#category .hg-restaurant-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2.4fr);gap:36px;width:100%;float:none;padding:0;margin:0}
body#category .hg-restaurant-info{min-width:0;border-right:1px solid var(--hg-border);padding-right:28px}
body#category .hg-restaurant-menu{min-width:0}
body#category .hg-restaurant-heading h1{font-size:32px;line-height:1.2;font-weight:700;margin:0 0 16px}
body#category .hg-restaurant-description{font-size:15px;line-height:1.5;color:var(--hg-muted);margin-bottom:20px}
body#category .hg-restaurant-categories{display:flex;gap:24px;overflow-x:auto;border-bottom:1px solid var(--hg-border);margin:16px 0 24px;padding-bottom:2px}
body#category .hg-restaurant-categories a{flex:none;display:block;padding:12px 4px;color:var(--hg-ink);font-weight:600;border-bottom:3px solid transparent}
body#category .hg-restaurant-categories a:hover{border-color:var(--hg-yellow)}
body#category #js-product-list .product_content{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 16px;margin:0!important}
body#category #js-product-list .product_content:before,body#category #js-product-list .product_content:after{display:none}
body#category #js-product-list .item-product{width:auto!important;max-width:none!important;min-width:0;flex:none!important;float:none!important;padding:0!important;margin:0!important}
body#category .hg-menu-product{display:flex!important;flex-direction:column;float:none!important;width:100%!important;height:100%;margin:0!important;border:1px solid var(--hg-border);border-radius:10px;overflow:hidden;box-shadow:none!important;background:white}
body#category .hg-menu-photo{display:block;aspect-ratio:4/3;overflow:hidden;background:#fffaf0}
body#category .hg-menu-photo img{display:block;width:100%!important;height:100%!important;object-fit:cover}
body#category .hg-menu-no-photo{display:flex;align-items:center;justify-content:center;height:100%;padding:16px;color:var(--hg-muted);text-align:center}
body#category .hg-menu-body{display:flex;flex:1;flex-direction:column;padding:14px;gap:12px}
body#category .hg-menu-body h2{font-size:16px;line-height:1.35;margin:0;font-weight:600;overflow-wrap:anywhere;text-transform:none}
body#category .hg-menu-body h2 a{color:var(--hg-ink)}
body#category .hg-menu-price-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
body#category .hg-menu-price-row .product-price-and-shipping{margin:0;text-align:left;font-size:15px}
body#category .hg-menu-price-row .price{color:var(--hg-ink);font-size:16px}
body#category .hg-menu-price-row .regular-price{display:block;color:var(--hg-muted);font-size:13px}
body#category .hg-menu-choose{display:flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;background:var(--hg-yellow);border-radius:8px;color:#111;font-size:26px;line-height:1;text-decoration:none}
body#category .hg-menu-availability{margin:0;font-size:13px;line-height:1.4;color:var(--hg-muted)}
body#category .hg-info-panel h2{font-size:19px;line-height:1.3;font-weight:650;margin:0 0 16px;text-transform:none}
body#category .hg-info-panel h3{font-size:22px;margin:0 0 16px}
body#category .hg-info-panel p{font-size:15px;line-height:1.65;color:var(--hg-muted);overflow-wrap:anywhere}
body#category .hg-info-panel>section,body#category .hg-info-panel>details{padding:22px 0;border-bottom:1px solid var(--hg-border)}
body#category .hg-hours{padding:22px;background:#fffaf0;border-radius:10px}
body#category .hg-hours dl{display:grid;grid-template-columns:auto 1fr;gap:10px;margin:0;font-size:16px}
body#category .hg-hours dd{margin:0;text-align:right;overflow-wrap:anywhere}
body#category .hg-info-panel summary{cursor:pointer;font-size:15px;font-weight:600;line-height:1.5}
body#category .hg-week-day{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--hg-border);font-size:14px}
body#category .category-info{display:none}
body#category .hg-restaurant-info .category-info{display:block} /* Legacy footer hook duplicate. */
body#category .products-selection .display,body#category .products-selection .display-mode{display:none!important}
body#category .hg-restaurant-layout a:focus-visible,body#category .hg-restaurant-layout summary:focus-visible{outline:3px solid #947000;outline-offset:3px}
@media(min-width:1850px){body#category #js-product-list .product_content{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1250px){body#category #js-product-list .product_content{grid-template-columns:repeat(3,minmax(0,1fr))}body#category .hg-restaurant-layout{gap:24px;grid-template-columns:minmax(250px,1fr) minmax(0,2fr)}}
@media(max-width:900px){body#category .hg-restaurant-layout{grid-template-columns:1fr}body#category .hg-restaurant-info{border-right:0;padding-right:0}body#category .hg-info-panel>section,body#category .hg-info-panel>details{padding:12px 0}body#category .hg-restaurant-heading h1{font-size:28px}}
@media(max-width:600px){body#category #js-product-list .product_content{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body#category .hg-menu-body{padding:10px}body#category .hg-menu-body h2{font-size:15px}body#category .hg-hours{padding:16px}}
body#category{margin:0}
body#category #wrapper>.container,body#category .hg-restaurant-layout,body#category .hg-restaurant-layout *{box-sizing:border-box}
body#category .hg-restaurant-layout a{text-decoration:none}

body#category .hg-restaurant-layout:has(>.hg-restaurant-info:empty){grid-template-columns:1fr}
body#category .hg-restaurant-info:empty{display:none}
body#category .hg-restaurant-categories a[aria-current="page"]{border-color:var(--hg-yellow);color:#111}
body#category .hg-menu-message:empty{display:none}
body#category .hg-menu-message{font-size:14px;color:var(--hg-muted)}
body#category #products-list[aria-busy="true"]{opacity:.55;pointer-events:none}
body#category .hg-live-status{font-size:21px!important;font-weight:650;line-height:1.35!important;color:var(--hg-ink)!important}
body#category .hg-live-status[data-open="true"]{color:#167440!important}
body#category .hg-live-slots{font-size:15px;line-height:1.6}
body#category .hg-menu-add{border:0;border-radius:8px;background:var(--hg-yellow);color:#111;padding:8px;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}
body#category .hg-menu-add:disabled{opacity:.55;cursor:wait}
body#category .hg-direct-add{margin:0;display:flex;flex-direction:column;gap:5px;max-width:100%}
body#category .hg-direct-add [role="status"]{font-size:12px;line-height:1.4;max-width:180px}
.hg-product-dialog{padding:0;border:0;border-radius:18px;width:min(1040px,94vw);max-width:94vw;height:90dvh;max-height:90dvh;box-shadow:0 24px 80px #0005;overflow:hidden;background:#fff}
.hg-product-dialog[open]{display:flex;flex-direction:column}
.hg-product-dialog::backdrop{background:#17212b99;backdrop-filter:blur(4px)}
.hg-product-dialog-bar{display:flex;align-items:center;gap:18px;padding:16px 22px;border-bottom:1px solid #dfe3e5;font:16px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hg-product-dialog-bar strong{flex:1}.hg-product-dialog-bar a{font-size:14px;color:#343434;text-decoration:underline}
.hg-product-dialog-bar button{border:0;background:#f4f4f4;border-radius:50%;width:44px;height:44px;font-size:26px;cursor:pointer}
.hg-product-dialog iframe{border:0;width:100%;flex:1;min-height:0;background:#fff}
@media(max-width:600px){.hg-product-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.hg-product-dialog-bar{padding:12px;gap:10px}.hg-product-dialog-bar strong{font-size:15px}}

body#category .hg-bag-icon{display:block;pointer-events:none}
