/* Prevent focus zoom without disabling pinch zoom or accessibility text sizes.
   Covers existing fields and fields rendered later inside dialogs. */
html body :is(#app, dialog) :is(input, select, textarea) {
  font-size: max(16px, 1rem) !important;
}

/* The existing phone layout remains intact below the desktop/tablet breakpoint. */
@media (min-width: 768px) {
  html body .wrap { max-width: none !important; }
  html body .app {
    --desktop-gutter: clamp(24px, 3vw, 64px);
    padding-bottom: 110px;
    scrollbar-width: thin;
    scrollbar-color: var(--muted) var(--bg);
  }
  html body .app::-webkit-scrollbar { display: block; width: 8px; }
  html body .app::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; }
  html body .app::-webkit-scrollbar-track { background: var(--bg); }
  html body .header { padding: 12px var(--desktop-gutter); }
  html body .sticky.compact .header { padding: 8px var(--desktop-gutter); }
  html body .access { right: var(--desktop-gutter); }
  html body .quick,
  html body .searchbar,
  html body .primarynav,
  html body .category-picker,
  html body .sortstrip,
  html body .listhead,
  html body .products,
  html body .bargrid,
  html body .bar-products {
    padding-left: var(--desktop-gutter);
    padding-right: var(--desktop-gutter);
  }
  html body .quick { gap: 16px; padding-top: 20px; }
  html body .quick button, html body .quick a { flex-direction: row; gap: 10px; font-size: .85rem; }
  html body .promos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 16px var(--desktop-gutter) 0 !important;
    gap: 16px !important;
  }
  html body .promo strong { font-size: .9rem !important; }
  html body .promo span { font-size: .75rem !important; }
  html body .concept-hero { margin: 20px var(--desktop-gutter) 0; }
  html body .searchbar { padding-top: 24px; }
  html body .section-tabs { margin: 16px var(--desktop-gutter) 0; }
  html body .section-tabs button { min-height: 54px !important; }
  html body .section-tabs button span { font-size: .85rem !important; }
  html body .category-picker { padding-top: 16px; }
  html body .category-picker > label { font-size: .8rem; }
  html body .sortstrip { padding-top: 12px; flex-wrap: wrap; }
  html body .sortstrip > span, html body .sortstrip button { font-size: .8rem; }
  html body .listhead { padding-top: 24px; padding-bottom: 16px; }
  html body .listhead h2 { font-size: 1.35rem; }
  html body .listhead small { font-size: .8rem; }
  html body .listenall { font-size: .8rem; min-width: 150px; }
  html body .products, html body .bargrid, html body .bar-products {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch;
  }
  html body .card { min-width: 0; }
  html body .ctop { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html body .ctop h3, html body .bar-product-copy h4 { font-size: 1rem !important; }
  html body .price { font-size: 1rem; }
  html body .price small { text-align: left; }
  html body .desc { font-size: .85rem; line-height: 1.5; }
  html body .tag { font-size: .65rem; }
  html body .addbtn { font-size: .85rem; }
  html body .products > .emptystate { grid-column: 1 / -1; }
  html body #content > .subcats { margin: 0 var(--desktop-gutter) 16px; }
  html body #content > .kidsstate { margin: 0 var(--desktop-gutter) 16px; }
  html body .subcat { font-size: .8rem; }
  html body .notice, html body .adultnote, html body .bar-demo-note, html body .hybrid-note {
    margin-left: var(--desktop-gutter);
    margin-right: var(--desktop-gutter);
  }
  html body .bottomnav {
    left: 50% !important; right: auto !important; transform: translateX(-50%);
    width: min(640px, calc(100% - 48px));
  }
  html body .bottomnav button { font-size: .8rem; flex-direction: row; gap: 10px; }
}
