/* Shared phone layouts; loaded after each page's component styles. */
@media (max-width:760px) {
  html { scroll-padding-top:74px; }
  body { -webkit-text-size-adjust:100%; }
  :is(button,a,input,select,textarea) { touch-action:manipulation; }
  :is(input,select,textarea):not([type=checkbox]):not([type=radio]) { font-size:16px!important; }
  :is(.primary,.profile-account-button,.category,.profile-tabs button,.store-section-nav button) { min-height:48px; }
  .topbar { padding-inline:16px; }
  .topbar>.store-wordmark { width:184px; }
  .topbar nav { display:grid; grid-template-columns:44px minmax(0,1fr) auto 52px; gap:8px; }
  .topbar .profile-link { min-width:0; width:auto; margin:0; justify-content:center; min-height:48px; font-size:12px; }
  .topbar .profile-link>span:last-child { display:inline; }
  .topbar nav>.text-button { display:inline-flex; justify-content:center; font-size:12px; min-height:48px; }
  .topbar .cart-top { justify-content:center; min-height:48px; padding-inline:8px; gap:5px; }
  .hero-image { height:190px; }
  .hero-copy { padding:24px; }
  .hero h1 { font-size:clamp(36px,9.2vw,52px); }
  .hero-copy>p { margin-bottom:20px; }
  .hero-cta { display:flex; justify-content:space-between; min-height:48px; }
  .menu-layout { margin-inline:16px; }
  .menu-title-art { width:40px; height:40px; }
  .menu-intro h2 { font-size:clamp(26px,7vw,34px); }
  .categories { margin-inline:-16px; padding-inline:16px; padding-block:10px; gap:8px; scrollbar-width:none; }
  .products { grid-template-columns:minmax(0,1fr); gap:12px; }
  .product-card { display:grid; grid-template-columns:minmax(0,1fr) 116px; gap:12px; padding:12px; align-items:stretch; min-height:145px; }
  .product-photo { grid-column:2; grid-row:1; width:116px; height:100%; min-height:120px; max-height:160px; border-radius:9px; }
  .product-photo img { position:absolute; inset:0; }
  .product-body { grid-column:1; grid-row:1; padding:2px 0; min-width:0; }
  .product-body .product-name { font-size:19px; line-height:1.2; margin-bottom:8px; }
  .product-body .product-description { font-size:12px; line-height:1.5; -webkit-line-clamp:2; margin:0 0 10px; }
  .product-bottom { margin-top:auto; font-size:14px; gap:5px; }
  .add-button { width:36px; height:36px; flex-shrink:0; }
  .tag { left:5px; top:6px; padding:5px 6px; font-size:9px; max-width:calc(100% - 10px); }
  .tag svg { display:none; }
  .mobile-cart { left:12px; right:12px; min-height:60px; bottom:calc(10px + env(safe-area-inset-bottom,0px)); font-size:13px; padding-inline:14px; }
  .mobile-cart strong { font-size:13px; }
  .cart-bottom .primary { font-size:14px; }
  .cart-panel { max-height:92dvh; }
  .cart-item-header h4 { font-size:14px; }
  .cart-item-header p { font-size:12px; }
  .cart-item-price { font-size:14px; }
  .cart-trust { font-size:11px; }
  dialog { overscroll-behavior:contain; scrollbar-width:thin; }
  .checkout-dialog,.product-dialog { width:600px; }
  .product-submit { padding-bottom:calc(14px + env(safe-area-inset-bottom,0px)); }
  .product-submit .primary { min-height:48px; font-size:13px; flex:1; }
  .product-submit .quantity span { min-width:28px; }
  .product-hero { height:190px; }
  .checkout-dialog { padding:28px 20px calc(24px + env(safe-area-inset-bottom,0px)); }
  .checkout-header h2 { font:400 clamp(28px,8vw,34px)/1.1 Georgia,serif; letter-spacing:-.7px; }
  .checkout-header p,.checkout-help { font-size:13px; line-height:1.7; }
  .checkout-benefits>summary { flex-wrap:wrap; gap:6px 12px; }
  .loyalty-panel p,.checkout-signin-note,.email-entry { font-size:12px; }
  .summary-line { font-size:13px; }
  #whatsapp-submit { min-height:52px; font-size:13px; }
  .profile-main { padding:24px 16px 40px; }
  .profile-header { padding:16px; }
  .profile-header>.store-wordmark { width:184px; }
  .profile-access { margin:8px 0; padding:26px 22px; }
  .profile-access h1 { font-size:clamp(30px,8.5vw,42px); }
  .profile-access p { font-size:13px; }
  .profile-login-help { overflow-wrap:anywhere; }
  .profile-identity>div { min-width:0; }
  #profile-email { overflow-wrap:anywhere; line-height:1.6; }
  .profile-form { padding:22px 18px; }
  .profile-form .primary { width:100%; font-size:13px; }
  .profile-order-totals p { gap:10px; }
  .profile-order-items p { overflow-wrap:anywhere; }
  .coupon-code { flex-wrap:wrap; gap:4px 12px; }
  .coupon-code code { max-width:100%; }
  .profile-tabs { margin-right:-16px; padding-right:16px; scroll-snap-type:x proximity; }
  .profile-tabs button { scroll-snap-align:start; }
  .email-login-dialog { width:460px; padding:36px 24px 24px; }
  .email-login-dialog h2 { padding-right:22px; font-size:32px; }
  .email-actions { gap:8px; flex-wrap:wrap; }
  .email-actions button { min-height:48px; font-size:13px; }
  .email-guest { min-height:48px; font-size:13px; }
  .email-help { font-size:12px; }
  .email-login-dialog .email-link-previous { font-size:12px; }
  .email-link-previous input { width:20px; height:20px; }
  .admin-workspace { padding:24px 16px; }
  .admin-sidebar nav { scroll-snap-type:x proximity; }
  .admin-sidebar nav button { scroll-snap-align:start; padding:13px 14px; }
  .admin-table :is(button,a),.orders-table :is(button,a) { min-height:44px; }
  .table-scroll { overscroll-behavior-inline:contain; }
  .settings-card { padding:22px 18px; }
  .settings-actions .primary { width:100%; }
  .admin-footer { flex-wrap:wrap; gap:10px; line-height:1.7; }
}
@media (max-width:600px) {
  .email-login-dialog { position:fixed; inset:auto 0 0; margin:0; width:100%; max-width:100%; max-height:94dvh; border-radius:24px 24px 0 0; padding:35px 24px calc(24px + env(safe-area-inset-bottom,0px)); }
  .email-login-dialog h2 { font-size:32px; margin-top:20px; }
  .email-login-dialog .dialog-close { top:14px; right:16px; }
  #email-status { margin-block:16px; }
  .email-footnote { margin-top:8px; padding-top:14px; }
}
@media (max-width:360px) {
  .topbar nav { gap:5px; grid-template-columns:44px minmax(0,1fr) auto 48px; }
  .topbar .profile-link { font-size:11px; gap:5px; }
  .topbar nav>.text-button { font-size:11px; }
  .topbar .text-button>span { display:none; }
  .product-card { grid-template-columns:minmax(0,1fr) 90px; padding:10px; gap:10px; }
  .product-photo { width:90px; }
  .product-body .product-name { font-size:18px; }
  .product-bottom { font-size:13px; }
  .hero-copy { padding:22px; }
  .hero-image { height:170px; }
  .profile-access { padding-inline:18px; }
  .email-login-dialog { padding-inline:20px; }
  .email-login-dialog h2 { font-size:30px; }
  .product-submit>.primary { min-width:130px; }
}
@media (max-height:500px) and (max-width:900px) {
  dialog { max-height:96dvh; }
  .email-login-dialog { max-height:96dvh; }
  .product-hero { height:120px; }
}
