/* Mobile storefront. Desktop composition remains unchanged. */
#mobile-dialog-footer{display:none}
@media(max-width:900px){
  input,select,textarea,.search-box input,.form-field input,.form-field textarea,.form-field select,.promo-form input{font-size:16px}
  .mobile-bottom{padding-bottom:calc(8px + env(safe-area-inset-bottom));box-shadow:0 -3px 18px #203d2d08}
  .mobile-bottom [aria-current=page]{color:var(--ink);font-weight:800}
  .mobile-bottom>button:not(.mobile-cart-button){color:var(--muted)}
  .mobile-bottom>button[aria-current=page]:not(.mobile-cart-button){color:var(--ink)}
  .mobile-bottom .mobile-cart-button{white-space:nowrap;font-variant-numeric:tabular-nums}
  .categories{overscroll-behavior-x:contain;scroll-padding-inline:16px}
  .categories button{min-height:44px}
  button:active{filter:brightness(.95)}
  .button:hover,.offer:hover{transform:none}
}
@media(max-width:640px){
  html{scroll-padding-top:144px}
  body{padding-bottom:env(safe-area-inset-bottom)}
  .wrap{width:calc(100% - 32px)}
  .site-strip{height:auto;min-height:26px;line-height:1.4;font-size:12px;padding:4px 8px;text-align:center;flex-wrap:wrap;gap:4px}
  .header{position:sticky;top:0;z-index:25}
  .header-inner{height:auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;padding-top:8px;padding-bottom:8px}
  .brand{font-size:24px;gap:8px;min-height:40px}
  .brand svg{width:32px;height:32px}
  .brand-caption{display:none}
  .header-nav{grid-column:2;grid-row:1;margin:0}
  .header-nav .icon-btn{height:44px}
  .address-button{position:static;grid-column:1/-1;grid-row:2;width:100%;max-width:100%;min-height:44px;height:auto;gap:8px;padding:4px 0}
  .address-button>span:nth-child(2){min-width:0;flex:1}
  .address-button b{max-width:none;width:100%;font-size:13px}
  .address-button .mini-icon{font-size:22px}
  .address-button>span:last-child{margin-left:auto}
  .service-bar{padding:12px 0;min-height:0;gap:8px;align-items:center}
  .segmented button{min-height:44px;padding:8px 12px}
  .service-bar>span{font-size:12px;max-width:140px}
  .hero{display:grid;grid-template-columns:1fr 1fr;min-height:224px;border-radius:16px;position:relative}
  .hero-copy{grid-column:1/-1;grid-row:1;padding:20px;z-index:1;pointer-events:none;display:flex;flex-direction:column;align-items:flex-start}
  .hero-copy button{pointer-events:auto}
  .hero .eyebrow{font-size:12px;letter-spacing:0}
  .hero h1{font-size:28px;line-height:1.08;letter-spacing:-1.1px;margin:12px 0 16px;max-width:calc(100% - 100px)}
  .hero h1 br:last-of-type{display:block}
  .hero p{display:none}
  .hero .button{font-size:13px;min-height:46px;padding:12px 14px;gap:10px;margin-top:auto}
  .hero-visual{position:absolute;right:-12px;top:64px;width:112px;height:116px;min-height:0;max-height:none;margin:0;border-radius:64px 0 0 64px;overflow:hidden}
  .hero-visual>img{object-position:65% center;opacity:.85}
  .hero-sticker,.photo-label{display:none}
  .offers{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:12px;margin-inline:-16px;padding:12px 16px 24px;overscroll-behavior-x:contain}
  .offer{flex:0 0 87%;max-width:360px;min-height:92px;scroll-snap-align:center;gap:12px;padding:16px}
  .offer-number{width:auto;min-width:60px;font-size:28px}
  .offer b{font-size:14px}
  .offer small{font-size:12px;line-height:1.4}
  .section-heading{margin-bottom:12px}
  .section-heading>.eyebrow,.section-heading>div>.eyebrow{display:none}
  .section-heading h2{font-size:24px;margin:0;letter-spacing:-.8px}
  .search-box{margin-top:12px;height:48px}
  .categories{position:sticky;top:104px;z-index:15;background:var(--bg);margin-inline:-16px;padding:8px 16px 12px;margin-bottom:8px;border-bottom:1px solid var(--line)}
  .categories button{font-size:13px;padding:10px 16px}
  .product-grid{gap:24px 12px}
  .product{display:flex;flex-direction:column}
  .product-info{flex:1;display:flex;flex-direction:column;padding:12px 0 0}
  .product-title{font-size:14px;min-height:40px;line-height:1.4;display:block}
  .product-weight{margin:4px 0 0;font-size:12px}
  .product-buy{display:grid;grid-template-columns:1fr;gap:8px;margin-top:auto;padding-top:12px}
  .product-price{font-size:17px;white-space:nowrap}
  .add-button{width:100%;justify-content:center;min-height:44px;background:var(--soft);font-size:13px;padding:10px 8px}
  .add-button span{display:inline}
  .product .quantity{width:100%;min-width:0;height:44px}
  .quantity button{min-width:44px;min-height:44px}
  .product-image{aspect-ratio:1;isolation:isolate}
  .product-tag{font-size:12px;max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;bottom:8px;left:8px}
  .favorite{width:44px;height:44px;background:#fffc;backdrop-filter:blur(5px)}
  .club-banner{margin-block:32px}
  .footer{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
  .mobile-bottom{z-index:35;padding-inline:12px;gap:8px}
  .mobile-bottom>button:not(.mobile-cart-button){flex:1;min-width:44px}
  .mobile-bottom .mobile-cart-button{min-width:124px;padding:12px;gap:8px;font-size:13px}
  .mobile-cart-button>span{padding-right:8px}
  dialog,dialog.wide{margin:auto 0 0;width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top));border-radius:20px 20px 0 0;overflow:hidden;overscroll-behavior:contain}
  dialog[open]{display:flex;flex-direction:column}
  dialog[data-view=cart],dialog[data-view=checkout],dialog[data-view=account],dialog[data-view=tracking],dialog[data-view=detail]{height:var(--dialog-height,100dvh);max-height:var(--dialog-height,100dvh);border-radius:0;margin:0;top:var(--dialog-offset,0px)}
  .dialog-top{flex-shrink:0;position:static;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;gap:8px}
  .dialog-top h2{font-size:17px;line-height:1.35;overflow-wrap:anywhere}
  .close-btn{width:44px;height:44px}
  #modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:20px 16px calc(24px + env(safe-area-inset-bottom))}
  dialog:has(#mobile-dialog-footer:not(:empty)) #modal-body{padding-bottom:24px;flex:1}
  #mobile-dialog-footer:not(:empty){display:block;flex-shrink:0;background:var(--surface);padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);box-shadow:0 -6px 18px #203d2d08}
  #mobile-dialog-footer .button{width:100%;min-height:52px;font-size:15px;gap:12px}
  #mobile-dialog-footer small{display:block;font-size:12px;color:var(--muted);margin-bottom:8px;text-align:center}
  dialog[data-view=cart] #modal-body [data-action=checkout],dialog[data-view=checkout] #modal-body form>button:last-child,dialog[data-view=detail] #detail-add{display:none}
  dialog[data-view=cart] .cart-lines{max-height:none;overflow:visible}
  .cart-title h3{font-size:20px}
  .cart-title span{font-size:13px}
  .line-name{font-size:15px;overflow-wrap:anywhere}
  .line-name small{font-size:12px}
  .line-bottom{font-size:15px}
  .line-top img{width:56px;height:56px}
  .money-row{font-size:15px}
  .money-row.total{font-size:20px}
  .promo-form input,.form-field input,.form-field select,.form-field textarea{font-size:16px;min-height:52px}
  .form-grid{grid-template-columns:1fr;gap:16px}
  .form-grid .form-field{grid-column:1}
  .form-field{font-size:14px}
  .radio-cards{grid-template-columns:1fr}
  .radio-card{min-height:52px;font-size:14px}
  .checkbox{font-size:14px;line-height:1.5;padding:4px 0}
  .checkbox input{width:22px;height:22px}
  .form-note{font-size:12px}
  .detail-photo{max-height:250px;aspect-ratio:1.35}
  .detail-footer{position:static;padding:0;margin-top:16px;background:none;justify-content:flex-end}
  .detail-footer .quantity{width:140px}
  .option-row{min-height:52px;font-size:14px}
  .option-row>span{display:flex;align-items:center;gap:8px}
  .option-row input{width:22px;height:22px}
  .detail-copy p{font-size:15px}
  .detail-allergens{font-size:12px}
  .channel-list{flex-direction:column}
  .channel-option{font-size:15px;min-height:52px}
  .channel-option input{width:20px;height:20px}
  .account-top{align-items:flex-start}
  .account-top>div:last-child{min-width:0;overflow-wrap:anywhere}
  .account-links button{font-size:14px;min-height:64px}
  .tracker-heading{align-items:flex-start}
  .tracker-heading>div{min-width:0}
  .tracker-heading h3{font-size:19px;line-height:1.4}
  .tracker-heading .status-pill{flex-shrink:0;max-width:100px}
  .tracker-address{overflow-wrap:anywhere}
  .tracking-steps{grid-template-columns:1fr 1fr;gap:16px}
  .tracking-steps li,.tracking-steps small{font-size:13px}
  .tracker-actions .button{min-height:50px}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px}
}
@media(max-width:359px){
  .wrap{width:calc(100% - 24px)}
  .brand{font-size:22px}
  .hero-copy{padding:20px 16px}
  .hero h1{font-size:26px;max-width:calc(100% - 82px)}
  .hero-visual{width:88px;height:104px}
  .hero .button{font-size:12px;gap:8px}
  .hero .button>span{display:none}
  .service-bar{flex-wrap:wrap}
  .service-bar>span:not(.service-note){max-width:none;text-align:left;display:flex;gap:8px;align-items:center}
  .offer{flex-basis:94%}
  .mobile-bottom{gap:4px;padding-inline:8px}
  .mobile-bottom .mobile-cart-button{min-width:112px;font-size:12px}
  .product-grid{gap:20px 10px}
  .product-tag{font-size:12px}
  .account-links{grid-template-columns:1fr}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:500px){
  .header{position:relative}
  .categories{position:static}
  dialog,dialog.wide{max-height:100dvh}
}
