/* Mobile-only responsive layer. Desktop navbar styles remain unchanged. */
.mobile-menu-toggle,.mobile-menu-close,.mobile-menu-backdrop,.mobile-only-nav-link,.mobile-header-cart{display:none}
@media(max-width:760px){
html,body{width:100%;max-width:100%;overflow-x:clip}body.mobile-menu-open{overflow:hidden}
.topin{width:100%;min-width:0;height:auto;min-height:28px;padding:6px 14px;justify-content:center;text-align:center}.topin span:first-child{max-width:100%;overflow:hidden;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.topin span:last-child{display:none}
.topin .ticker{font-size:0}.topin .ticker::after{content:"Cartly Prime members get free delivery.";font-size:10px}
.header{position:sticky;top:0;z-index:160}
body .header .head,.header .head{position:relative;display:grid;width:100%;max-width:100%;min-height:0;grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:52px auto;gap:7px 8px;align-items:center;padding:7px 12px 10px}
.mobile-menu-toggle{display:grid;grid-column:2;grid-row:1;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #ffffff3d;border-radius:11px;background:#ffffff1a;place-content:center;gap:4px;cursor:pointer}.mobile-menu-toggle span{display:block;width:20px;height:2px;border-radius:9px;background:#fff}
body .header .logo,.header .logo{grid-column:1;grid-row:1;min-width:0;justify-self:start;font-size:25px;letter-spacing:-1px}.header .logo .brand-mark{width:34px;height:34px;border-width:4px}.header .logo-text{min-width:0}.header .logo small{max-width:135px;overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}
.mobile-header-cart{position:relative;display:grid;grid-column:3;grid-row:1;width:44px;height:44px;min-height:44px;justify-self:end;padding:0;border:0;border-radius:11px;background:#d9f45a;color:#17110a;place-items:center}.mobile-header-cart svg{width:21px;height:21px;stroke:currentColor}.mobile-header-cart .cart-count{position:absolute;top:-5px;right:-5px}
body .header .navbar-search,.header .navbar-search{grid-column:1/-1;grid-row:2;width:min(calc(100% - 32px),560px);max-width:100%;min-height:42px;justify-self:center;border-radius:12px}.header .navbar-search input{min-width:0;width:100%;padding:9px 13px;font-size:16px}.header .navbar-search button{flex:0 0 44px;min-width:44px;padding:0}
body .header .nav,.header .nav{position:fixed;z-index:210;top:0;bottom:0;left:0;display:flex;width:min(86vw,340px);max-width:calc(100vw - 42px);height:100dvh;max-height:100dvh;padding:64px 15px 24px;overflow-x:hidden;overflow-y:scroll;align-items:stretch;justify-content:flex-start;flex-direction:column;flex-wrap:nowrap;gap:7px;background:#2d006f;box-shadow:18px 0 55px #14003457;overscroll-behavior:contain;scrollbar-color:#d9f45a #ffffff1f;scrollbar-gutter:stable;scrollbar-width:thin;-webkit-overflow-scrolling:touch;transform:translateX(-105%);visibility:hidden;transition:transform .25s ease,visibility .25s}.header .nav::-webkit-scrollbar{width:7px}.header .nav::-webkit-scrollbar-track{background:#ffffff1f}.header .nav::-webkit-scrollbar-thumb{border-radius:10px;background:#d9f45a}
body.mobile-menu-open .header .nav{transform:translateX(0);visibility:visible}
.mobile-menu-close{position:absolute;top:12px;right:12px;display:grid;width:40px;height:40px;min-height:40px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#ffffff1f;color:#fff;font-size:25px;cursor:pointer;place-items:center}
.mobile-menu-backdrop{position:fixed;z-index:200;inset:0;width:100%;max-width:none;height:100dvh;min-height:0;border:0;background:#17003394;opacity:0;pointer-events:none;transition:opacity .25s ease}body.mobile-menu-open .mobile-menu-backdrop{display:block;opacity:1;pointer-events:auto}
.mobile-only-nav-link{display:flex}.header .nav>.nav-icon-link,.header .nav>.nav-discover>.nav-icon-link,.header .nav>.prime-nav-link{display:flex;width:100%;min-height:46px;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;border:1px solid #ffffff21;border-radius:11px;background:#ffffff12;color:#fff;text-align:left}.header .nav>.nav-icon-link:hover,.header .nav>.nav-discover>.nav-icon-link:hover,.header .nav>.prime-nav-link:hover{border-color:#d9f45a;background:#d9f45a24}.header .nav .nav-discover{width:100%}.header .nav .discover-menu,.header .nav .notif-menu{position:static;width:100%;max-width:100%;max-height:min(42dvh,320px);margin-top:5px;overflow-y:auto;border-color:#ffffff2b;border-radius:11px;box-shadow:none}.header .nav .nav-discover:not(.is-expanded) .discover-menu,.header .nav .nav-discover:not(.is-expanded) .notif-menu{display:none}.header .nav .nav-discover.is-expanded .discover-menu,.header .nav .nav-discover.is-expanded .notif-menu{display:grid;gap:3px}.header .nav .discover-menu a,.header .nav .notif-menu a{min-height:42px;align-content:center;padding:10px 12px;white-space:normal}
.header .nav .cart-link{display:flex;width:100%;min-height:46px;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;border:1px solid #ffffff21;border-radius:11px;background:#d9f45a;color:#17110a}.header .nav .cart-link svg{width:21px;height:21px;stroke:currentColor}.header .nav .cart-link .cart-count{margin-left:auto}
.catin{width:100%;max-width:100%;padding-inline:14px}
main,main>section,.wrap,.panel,[class*="-layout"],[class*="-grid"]{min-width:0;max-width:100%}img,picture,video,canvas,svg{max-width:100%;height:auto}input:not([type="checkbox"]):not([type="radio"]),select,textarea{max-width:100%;font-size:16px}
dialog,.modal-card,.product-auth-card,.healthy-modal-card{width:calc(100% - 24px);max-width:520px;max-height:calc(100dvh - 24px);overflow-y:auto;margin:auto}
.browse-layout,.search-layout,.product-detail,.cart-layout,.checkout-layout,.budget-panel,.support-layout,.auth-shell,.program-grid,.plan-grid,.voucher-grid,.recipe-layout,.recipes-layout{grid-template-columns:minmax(0,1fr)!important}.table-responsive,.table-wrap,.receipt-table-wrap{width:100%;max-width:100%;overflow-x:auto}
}
@media(max-width:350px){body .header .head,.header .head{grid-template-columns:minmax(0,1fr) 42px 42px;padding-inline:8px}.mobile-menu-toggle,.mobile-header-cart{width:42px;height:42px}.header .logo{gap:7px;font-size:22px}.header .logo .brand-mark{width:30px;height:30px}.header .logo small{max-width:105px;font-size:6px}}
@media(max-width:760px){
body>footer{width:100%;max-width:100%;padding:34px 0 82px;overflow:hidden}
body>footer .foot{display:grid;width:100%;max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 18px;padding-inline:18px}
body>footer .foot>div{min-width:0}body>footer .foot>div:first-child{grid-column:1/-1}body>footer .foot .logo{max-width:100%}body>footer .foot h4{margin:0 0 10px}body>footer .foot a:not(.logo),body>footer .foot button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:430px){body>footer .foot{grid-template-columns:minmax(0,1fr);gap:22px}body>footer .foot>div:first-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.header .nav,.mobile-menu-backdrop{transition:none}}
