/* The approved customer layout. Scoped to the storefront, never the staff login. */
body.storefront.customer-menu-modern {--bg:#faf7f2; background:var(--bg);color:#38211c}
.customer-menu-modern .menu-modern-icon{display:block;width:24px;height:24px;flex:none}
body.storefront.customer-menu-modern>header{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px max(16px,calc((100vw - 1280px)/2));background:#fff;border-bottom:1px solid #e9e3dc}
body.storefront.customer-menu-modern>header .brand img{width:112px!important;height:70px!important;object-fit:contain}
body.storefront.customer-menu-modern>header>nav{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin-left:auto}
body.storefront.customer-menu-modern .header-store-info{order:3;display:flex;width:100%;margin:0;gap:8px;align-items:center;justify-content:space-between}
body.storefront.customer-menu-modern .header-store-info .storebadge{font-size:13px;border-radius:30px;padding:7px 11px;margin:0;max-width:48%;line-height:1.3}
body.storefront.customer-menu-modern .header-store-info #hours{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#625d58;max-width:58%;text-align:right;justify-content:flex-end}
.customer-menu-modern #hours:before{content:'';display:block;flex:0 0 17px;height:17px;background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cg fill="none" stroke="black" stroke-width="2" stroke-linecap="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpath d="M12 6v6l4 2"/%3E%3C/g%3E%3C/svg%3E') center/contain no-repeat}
body.storefront.customer-menu-modern #customerpoints{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;height:44px;min-height:44px;min-width:0;max-width:180px;padding:7px 10px;border:1px solid #e9e3dc;border-radius:16px;background:#fff;color:#38211c;font-size:13px;box-shadow:0 2px 8px #36231d04}
.customer-menu-modern #customerpoints strong{font-size:14px;font-weight:700;line-height:1}
.customer-menu-modern #customerpoints small{font-size:11px;text-transform:none}
.customer-menu-modern .menu-points-star{color:#efad28;flex:none}
.customer-menu-modern .menu-points-star svg{width:21px;height:21px}
body.storefront.customer-menu-modern #cartlink,body.storefront.customer-menu-modern #customermenu>summary{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:9px;border:1px solid #e9e3dc;border-radius:14px;background:#fff;color:#ad2328;box-sizing:border-box;box-shadow:0 2px 8px #36231d04}
.customer-menu-modern #cartlink svg,.customer-menu-modern #customermenu>summary svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.9}
body.storefront.customer-menu-modern #count{position:absolute;top:-6px;right:-4px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border:2px solid #fff;border-radius:20px;background:#bd2033;color:white;font-size:11px;font-weight:700;line-height:1;box-sizing:border-box}
body.storefront.customer-menu-modern #customermenu>div{max-height:calc(100dvh - 110px);overflow-y:auto;width:min(300px,calc(100vw - 32px));z-index:60}
body.storefront.customer-menu-modern .shell{padding-top:16px}
body.storefront.customer-menu-modern .customer-area-compact:has(#announcement:empty){display:none}
body.storefront.customer-menu-modern .delivery-area-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #e9e3dc;border-radius:17px;padding:7px 12px;margin:0 0 14px;font-size:14px;min-height:52px;box-sizing:border-box}
.customer-menu-modern .delivery-area-notice>span{display:flex;align-items:center;gap:10px;font-weight:600;color:#38211c;min-width:0}
.customer-menu-modern .delivery-area-notice>span svg{color:#b21f30;width:25px;height:25px}
body.storefront.customer-menu-modern #checkdeliveryarea{display:flex;align-items:center;justify-content:center;gap:4px;flex:none;padding:7px 0;min-height:40px;font-size:13px;font-weight:700;color:#ad2328}
.customer-menu-modern #checkdeliveryarea svg{width:17px;height:17px}
body.storefront.customer-menu-modern .category-navigation{background:#faf7f2;padding:4px 0 12px}
body.storefront.customer-menu-modern #categories{display:flex;gap:9px;padding:0 1px 4px;overflow-x:auto;scrollbar-width:none}
body.storefront.customer-menu-modern #categories button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 95px;min-width:0;min-height:84px;padding:10px 8px;gap:6px;border:1px solid #e9e3dc;border-radius:18px;background:white;color:#625d58;font-size:13px;line-height:1.2;white-space:nowrap;box-shadow:0 2px 8px #38211c03;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.storefront.customer-menu-modern #categories button.active{background:#b31e30;border-color:#b31e30;color:white;box-shadow:0 5px 12px #b31e3018}
.customer-menu-modern .menu-category-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;pointer-events:none}
.customer-menu-modern .menu-category-icon svg{width:29px;height:29px}
.customer-menu-modern .menu-category-label{pointer-events:none}
.customer-menu-modern .menu-icon-promo{color:#f48612}
.customer-menu-modern .menu-icon-pizza{color:#dd940d}
.customer-menu-modern .menu-icon-sweet{color:#b65a68}
.customer-menu-modern .menu-icon-sachet{color:#a37225}
.customer-menu-modern .menu-icon-drink{color:#ae2439}
body.storefront.customer-menu-modern #categories button.active .menu-category-icon{color:white}
.customer-menu-modern .category-scroll-track{display:none!important}
body.storefront.customer-menu-modern #products .categorytitle{display:flex;align-items:center;justify-content:flex-start;gap:11px;text-align:left;font-size:25px;font-weight:750;margin:20px 0 18px;padding:0;line-height:1.3;background:none;border:0}
.customer-menu-modern .categorytitle .menu-category-icon svg{width:30px;height:30px}
body.storefront.customer-menu-modern #products .card{border:0;border-radius:22px;overflow:hidden;background:white;box-shadow:0 6px 24px #38211c05}
body.storefront.customer-menu-modern #products .card .product-photo-frame{background:var(--bg,#faf7f2)}
body.storefront.customer-menu-modern #products .card .product-photo-frame>img{object-fit:var(--menu-photo-fit,contain)!important;background:var(--bg,#faf7f2)!important;object-position:center!important}
body.storefront.customer-menu-modern .cardfoot button{border-radius:15px;min-height:44px;font-size:14px;padding:10px 15px;background:#fbe8e8;color:#a52331;border:1px solid #f2d9da}
body.storefront.customer-menu-modern .cardfoot button svg{display:none}
body.storefront.customer-menu-modern #products .price{color:#b21f30}
body.storefront.customer-menu-modern #mobilecheckout{border-radius:18px;background:#24763f;color:white;min-height:50px;font-size:16px;padding:13px 24px}
.customer-menu-modern :is(#categories button,#customerpoints,#cartlink,#customermenu>summary,#checkdeliveryarea):focus-visible{outline:3px solid #dd940d;outline-offset:3px}
@media(max-width:760px){
 body.storefront.customer-menu-modern>header .brand img{width:96px!important;height:64px!important}
 body.storefront.customer-menu-modern .shell{padding:16px 16px 110px}
 body.storefront.customer-menu-modern #products .cards{grid-template-columns:1fr;gap:14px}
 body.storefront.customer-menu-modern #products .card:has(>.product-photo-frame){display:grid;grid-template-columns:38% minmax(0,1fr);min-height:170px;align-items:stretch;gap:0}
 body.storefront.customer-menu-modern #products .card .product-photo-frame{display:flex;align-items:center;justify-content:center;min-width:0}
 body.storefront.customer-menu-modern #products .card .product-photo-frame>img{width:100%!important;min-height:0!important;max-height:none!important}
 body.storefront.customer-menu-modern #products .cardbody{padding:16px 14px;display:flex;flex-direction:column;gap:8px;min-width:0}
 body.storefront.customer-menu-modern #products .card h3{font-size:17px;line-height:1.3;margin:0}
 body.storefront.customer-menu-modern #products .card p{font-size:12px;line-height:1.4;margin:0;color:#867e78}
 body.storefront.customer-menu-modern #products .cardfoot{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:7px}
 body.storefront.customer-menu-modern #products .price{font-size:17px;line-height:1.25}
 body.storefront.customer-menu-modern #products .price small{font-size:10px}
 body.storefront.customer-menu-modern .cardfoot button{font-size:12px;padding:9px 10px;min-height:42px;margin-left:auto}
 body.storefront.customer-menu-modern #categories button{flex-basis:78px;min-height:78px;font-size:12px;padding:9px 6px}
 body.storefront.customer-menu-modern .menu-category-icon svg{width:27px;height:27px}
 body.storefront.customer-menu-modern #products .categorytitle{font-size:23px;margin:20px 0 16px}
}
@media(max-width:370px){
 body.storefront.customer-menu-modern>header{padding:10px 12px;gap:8px}
 body.storefront.customer-menu-modern>header .brand img{width:84px!important;height:58px!important}
 body.storefront.customer-menu-modern>header>nav{gap:5px}
 body.storefront.customer-menu-modern #customerpoints{gap:3px;padding:6px;font-size:12px}
 .customer-menu-modern #customerpoints small{font-size:9px}
 .customer-menu-modern .menu-points-star svg{width:17px;height:17px}
 body.storefront.customer-menu-modern #customerpoints strong{font-size:13px}
 body.storefront.customer-menu-modern .header-store-info #hours{font-size:11px}
 body.storefront.customer-menu-modern .delivery-area-notice{font-size:12px;padding:5px 9px}
 .customer-menu-modern .delivery-area-notice>span{gap:6px}
 body.storefront.customer-menu-modern #checkdeliveryarea{font-size:12px}
 body.storefront.customer-menu-modern #products .cardbody{padding:12px 10px}
 body.storefront.customer-menu-modern #products .card h3{font-size:15px}
}
@media(prefers-reduced-motion:reduce){.customer-menu-modern *{scroll-behavior:auto!important}}
/* v2: neutralize the older mobile nav flex-basis:100% rule. */
body.storefront.customer-menu-modern>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:10px}
body.storefront.customer-menu-modern>header>.brand{grid-column:1;grid-row:1;justify-self:start;min-width:0;width:auto;max-width:100%;margin:0}
body.storefront.customer-menu-modern>header>nav{grid-column:2;grid-row:1;display:flex;flex:0 0 auto;flex-basis:auto;width:auto;min-width:0;max-width:none;justify-self:end;justify-content:flex-end;margin:0;gap:6px}
body.storefront.customer-menu-modern>header>.header-store-info{grid-column:1/-1;grid-row:2;min-width:0;width:100%;margin:0}
body.storefront.customer-menu-modern #categories button{box-sizing:border-box;white-space:normal;overflow:hidden;min-width:84px;flex:0 0 84px;font-size:12px!important;line-height:1.2!important}
body.storefront.customer-menu-modern #categories button .menu-category-label{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;font:inherit!important;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.2!important}
body.storefront.customer-menu-modern #categories button .menu-category-icon{background:transparent!important}
.customer-menu-modern .menu-icon-promo svg>path:first-child{fill:currentColor!important;stroke:none!important}
.customer-menu-modern .menu-icon-promo svg>path:not(:first-child),.customer-menu-modern .menu-icon-promo svg>circle{fill:none!important;stroke:var(--menu-percent,#fff)!important;stroke-width:1.9!important}
body.storefront.customer-menu-modern #categories button.active .menu-icon-promo{--menu-percent:#b31e30;color:#fff!important}
@media(max-width:650px){
 body.storefront.customer-menu-modern>header{padding:10px 14px;column-gap:6px}
 body.storefront.customer-menu-modern>header>.brand img{width:86px!important;height:62px!important}
 body.storefront.customer-menu-modern>header>nav{gap:5px}
 body.storefront.customer-menu-modern #customerpoints{padding:6px 8px;gap:4px;max-width:145px}
 body.storefront.customer-menu-modern #customerpoints strong{font-size:13px}
 .customer-menu-modern #customerpoints small{font-size:10px}
 body.storefront.customer-menu-modern .header-store-info .storebadge{font-size:12px;flex:none}
}
@media(max-width:350px){
 body.storefront.customer-menu-modern>header{padding:10px;column-gap:4px}
 body.storefront.customer-menu-modern>header>.brand img{width:72px!important;height:56px!important}
 body.storefront.customer-menu-modern>header>nav{gap:4px}
 body.storefront.customer-menu-modern #customerpoints{padding:6px;gap:3px}
 .customer-menu-modern .menu-points-star svg{width:16px;height:16px}
 body.storefront.customer-menu-modern #customerpoints strong{font-size:12px}
 .customer-menu-modern #customerpoints small{font-size:9px}
}
/* v3: saved image presentation controls take precedence over the preview defaults. */
body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio]{background:var(--bg,#faf7f2)!important}
body.storefront.customer-menu-modern[data-bocado-images="contain"]{--menu-photo-fit:contain}
body.storefront.customer-menu-modern[data-bocado-images="cover"]{--menu-photo-fit:cover}
@media screen and (min-width:651px){
 body.storefront.customer-menu-modern #products .card:has(>.product-photo-frame[data-photo-ratio="square"]),
 body.storefront.customer-menu-modern #products .card:has(>.product-photo-frame[data-photo-ratio="landscape"]){height:auto!important;min-height:var(--catalog-height)!important;max-height:none!important}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="square"],
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="landscape"]{display:block!important;position:relative;flex:0 0 auto!important;width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="square"]{aspect-ratio:1 / 1!important}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="landscape"]{aspect-ratio:4 / 3!important}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="square"]>img,
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="landscape"]>img{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important}
}
@media screen and (max-width:650px){
 body.storefront.customer-menu-modern #products .card:has(>.product-photo-frame){grid-template-columns:minmax(0,clamp(105px,30vw,140px)) minmax(0,1fr);height:auto!important;min-height:145px!important;max-height:none!important}
 body.storefront.customer-menu-modern #products .card:has(>.product-photo-frame[data-photo-ratio="landscape"]){grid-template-columns:minmax(0,clamp(115px,36vw,175px)) minmax(0,1fr)}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio]{display:block!important;position:relative;width:100%;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden;align-self:stretch}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="square"]{aspect-ratio:1 / 1!important;align-self:center}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio="landscape"]{aspect-ratio:4 / 3!important;align-self:center}
 body.storefront.customer-menu-modern #products .card>.product-photo-frame[data-photo-ratio]>img{position:absolute!important;inset:0!important;display:block;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important}
}
