/* Bibliothèque produits : contrôles et tableau lisibles sur téléphone/tablette. */
@media (max-width: 800px) {
  #page-products .toolbar {
    gap: 7px;
    margin-bottom: 10px;
  }

  #page-products .filter-search {
    min-height: 40px;
    padding: 5px 8px;
    gap: 6px;
  }

  /* 16 px évite le zoom iOS ; la hauteur est réduite pour garder une barre compacte. */
  #page-products .filter-search input {
    min-height: 30px;
    font-size: 16px;
    line-height: 1;
  }

  #page-products .filter-search button {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
  }

  #page-products .toolbar > .cotiqa-select,
  #page-products .toolbar > select { min-height: 38px; }

  #page-products .toolbar .cotiqa-select-trigger,
  #page-products .toolbar > select {
    min-height: 38px;
    padding-block: 6px;
  }

  #page-products .table-wrap { overflow-x: hidden; }
  #page-products table { min-width: 0; table-layout: fixed; }
  #page-products th,
  #page-products td { padding: 10px 6px; }
  #page-products th:first-child,
  #page-products td:first-child { padding-left: 10px; }
  #page-products th:last-child,
  #page-products td:last-child { width: 30px; padding-right: 6px; text-align:center; }

  #page-products th:nth-child(2),
  #page-products td:nth-child(2),
  #page-products th:nth-child(3),
  #page-products td:nth-child(3),
  #page-products th:nth-child(6),
  #page-products td:nth-child(6) { display: none; }

  #page-products th:nth-child(4),
  #page-products td:nth-child(4) { width: 58px; }
  #page-products th:nth-child(5),
  #page-products td:nth-child(5) { width: 48px; }
  #page-products th:nth-child(4),
  #page-products th:nth-child(5) { font-size: 0; }
  #page-products th:nth-child(4)::after { content: 'PRIX'; font-size: 7px; }
  #page-products th:nth-child(5)::after { content: 'ÉVOL.'; font-size: 7px; }

  #page-products .product-cell { gap: 7px; min-width: 0; }
  #page-products .product-cell .product-pic { width: 28px; height: 28px; flex: 0 0 28px; }
  #page-products .product-cell > div { min-width: 0; }
  #page-products .product-cell b,
  #page-products .product-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #page-products .row-actions { width: 26px; min-width: 26px; padding: 4px 0; }
}

@media (max-width: 560px) {
  #page-products .page-head { margin-bottom: 12px; }
  #page-products .toolbar .secondary { min-height: 38px; }
  #page-products td { font-size: 8px; }
  #page-products td small { font-size: 7px; }
}
