/* ═══════════════════════════════════════════
   FindParts — Mobile Utilities
   Classes responsivas globais para todas as páginas
   ═══════════════════════════════════════════ */


/* ── Scroll horizontal preventivo ── */

html, body {
  overflow-x: hidden;
}


/* ── Safe area para iPhones com notch ── */

@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  .fab-new-part {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}


/* ── Esconder no mobile ── */

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}


/* ── Esconder no desktop ── */

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}


/* ── Stack horizontal → vertical no mobile ── */

@media (max-width: 768px) {
  .stack-mobile {
    flex-direction: column !important;
  }
  .stack-mobile > * {
    width: 100% !important;
  }
}


/* ── Botoes full-width no mobile ── */

@media (max-width: 768px) {
  .btn-mobile-full {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }
}


/* ── Container padding mobile ── */

@media (max-width: 768px) {
  .container,
  .content-area,
  .main-content {
    padding-left: var(--spacing-md) !important;
    padding-right: var(--spacing-md) !important;
  }
}


/* ── Inputs sem zoom no iOS (16px minimo) ── */

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}


/* ── Touch targets minimos (44px) ── */

@media (max-width: 768px) {
  .btn,
  button,
  a.btn,
  [role="button"] {
    min-height: 44px;
  }
}
