/* Shared mobile foundation for web, PWA, and a future native shell. */
html { -webkit-text-size-adjust:100%; }
input,select,textarea { font-size:1rem; }
button,a { touch-action:manipulation; }
img { max-width:100%; }
.specs dd { overflow-wrap:anywhere; }
@media(max-width:640px) {
  body { padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
  header { padding-top:calc(10px + env(safe-area-inset-top,0px)); padding-left:max(16px,env(safe-area-inset-left,0px)); padding-right:max(16px,env(safe-area-inset-right,0px)); gap:8px; }
  header .logo { min-height:44px; display:flex; align-items:center; flex-shrink:0; }
  header #language { font-size:1rem; min-height:44px; max-width:128px; }
  .member-nav a,.member-nav button { min-height:44px; min-width:44px; display:inline-flex; align-items:center; justify-content:center; font-size:.875rem; }
  .searchsort input,.searchsort select,.date-inputs input,.fulfillment-grid select,select,textarea { font-size:1rem; min-height:48px; }
  .date-inputs label,.calendar-panel>label,.fulfillment-grid label { font-size:.875rem; }
  .date-inputs input { padding:10px 6px; }
  .filters button,.month-head button,.detail-tabs button,.account-sidebar a,.order-actions .button { min-height:44px; }
  .days { gap:2px; }
  .days button { min-height:44px; font-size:1rem; }
  .month-head button { min-width:44px; }
  .detail-tabs { gap:20px; overscroll-behavior-x:contain; scrollbar-width:thin; }
  .detail-tabs button,.account-sidebar a,.order-actions .button { font-size:.875rem; }
  .fine,.muted,.source-note,.catalog-meta,.price small,.member-preview-note,.member-help,.order-product p,.delivery-progress li,.order-head,.order-state,.member-order>.member-help { font-size:.875rem; }
  .specs>div { gap:12px; }
  .specs dt { flex:0 0 28%; }
  .specs dd { max-width:68%; font-size:1rem; }
  .selected-product h3 { overflow-wrap:anywhere; }
  .mobile-bar { padding-left:max(16px,env(safe-area-inset-left,0px)); padding-right:max(16px,env(safe-area-inset-right,0px)); padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); }
  .mobile-bar .button { min-height:48px; font-size:.875rem; }
  .mobile-bar small,.mobile-bar b { font-size:.875rem; }
  dialog { max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); overflow-y:auto; overscroll-behavior:contain; }
  dialog .close { min-width:44px; min-height:44px; }
  .provider { min-height:52px; font-size:1rem; }
  .provider small { font-size:.875rem; }
  .member-stats a { padding:12px 8px; }
  .member-stats span,.profile-box dl>div,.withdraw-box p,.benefit-empty p,.tier-cards p { font-size:.875rem; }
}
@media(max-width:360px) {
  .shell { width:calc(100% - 28px); }
  .calendar-panel,.quote { padding:16px 12px; }
  header .logo img { width:108px; }
  header #language { max-width:108px; }
  .date-inputs { gap:6px; }
  .mobile-bar { gap:8px; }
  .mobile-bar .button { padding:10px 14px; }
  .provider { display:flex; flex-direction:column; padding:12px 12px 12px 36px; gap:4px; font-size:.875rem; line-height:1.5; }
  .provider small { align-self:center; white-space:nowrap; font-size:.75rem; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
