/* ============================================================================
   TMK WMS V2 — MOBILE LARGE & PHONE LANDSCAPE (480px – 743.98px)
   Loaded strictly via media="(min-width: 480px) and (max-width: 743.98px)"
   Targets Large Phones & Smartphones in Landscape Orientation
   ZERO !important declarations.
   ============================================================================ */

.main-content {
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
}

.photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.kpi-value {
  font-size: 1.45rem;
}

@media (min-width: 620px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phone Landscape Short-Height Ergonomics */
@media (max-height: 480px) and (orientation: landscape) {
  .topbar {
    height: 46px;
  }

  .mobile-bottom-nav {
    padding-top: 3px;
    padding-bottom: max(3px, env(safe-area-inset-bottom, 3px));
  }

  .bottom-nav-btn {
    min-height: 40px;
    flex-direction: row;
    gap: 6px;
    font-size: 11px;
  }

  .floating-cart-bar {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px));
    padding: 8px 14px;
  }
}
