/**
 * Shared mobile baseline for both client and backend.
 * Keep selectors generic and low-risk.
 */

@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .content-wrapper,
  .pc-container,
  .pc-content,
  #main-dom-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .card,
  .table-card,
  .modal-content {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .content-wrapper {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .btn,
  .form-control,
  .form-select {
    min-height: 38px;
  }
}

/* Storefront header logo; offcanvas dùng chữ (.customer-offcanvas-brand-text) — một logo ảnh duy nhất */
header.customer-site-header .navbar-brand img.customer-header-logo {
  max-width: min(var(--pc-client-logo-max-w, 220px), calc(100vw - 5.5rem));
  max-height: var(--pc-client-logo-max-h, 44px);
  height: auto;
  object-fit: contain;
}
