/* TRYDR mobile app shell and safe-area treatment */
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; overflow-x: clip; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
@media (max-width: 700px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .site-header { position: sticky; top: 0; padding-top: env(safe-area-inset-top); background: rgba(248,246,240,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .nav-wrap { min-height: 56px; height: 56px; padding: 0 17px; }
  .desktop-nav, .nav-cta { display: none !important; }
  .shop-nav-auth { gap: 6px; }
  .shop-nav-auth .button { min-height: 36px; padding: 8px 11px; font-size: 12px; }
  #user-chip { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .account-dropdown { top: calc(100% + 7px); }
  .shop-shell { padding-left: 15px; padding-right: 15px; padding-bottom: 22px; }
  .shop-hero { padding: 32px 4px 24px; text-align: left; }
  .shop-hero h1 { font-size: clamp(36px, 10vw, 48px); line-height: 1.02; }
  .shop-hero p { font-size: 14px; line-height: 1.55; margin: 0; }
  .shop-hero-actions { justify-content: flex-start; align-items: center; flex-direction: row; flex-wrap: wrap; margin-top: 17px; }
  .shop-hero-actions .button { min-height: 44px; }
  .shop-tools { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 20; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border-radius: 15px; }
  .shop-tools .search-wrap { grid-column: 1 / -1; }
  .shop-tools input, .shop-tools select { min-height: 44px; font-size: 14px; }
  .shop-tools #distance { grid-column: 1 / -1; }
  .location-status { padding: 9px 3px 0; font-size: 11px; }
  .listings-section { padding: 30px 0 24px; }
  .listings-heading { align-items: center; margin-bottom: 15px; }
  .listings-heading h2 { font-size: 27px; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .product-card { border-radius: 14px; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-image { height: auto; aspect-ratio: 1 / 1; }
  .product-copy { padding: 10px; }
  .product-copy h3 { font-size: 14px; line-height: 1.25; }
  .product-copy p { font-size: 11px; }
  .product-bottom { margin-top: 9px; padding-top: 8px; font-size: 10px; }
  .give-banner { border-radius: 18px; padding: 23px 19px; }
  .shop-footer { display: none; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal-card { width: 100%; max-width: none; max-height: min(90dvh, 820px); border-radius: 22px 22px 0 0; padding: 29px 20px calc(22px + env(safe-area-inset-bottom)); }
  .modal-card h2 { font-size: 32px; }
  .modal-wide { width: 100%; }
  .trydr-bottom-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px 9px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,254,250,.97); border-top: 1px solid rgba(44,48,41,.10); box-shadow: 0 -8px 24px rgba(44,48,41,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .trydr-bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: #777b70; min-height: 48px; font: inherit; cursor: pointer; }
  .trydr-bottom-nav button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
  .trydr-bottom-nav button small { font-size: 10px; font-weight: 600; }
  .trydr-bottom-nav button.active { color: #52694f; }
  .trydr-bottom-nav button.active svg { transform: translateY(-1px); }
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  html, body { min-height: 100%; overscroll-behavior-y: none; }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
}
