.product-name-cell {
  width: 360px;
  min-width: 280px;
  max-width: 360px;
  white-space: normal;
  vertical-align: middle;
}

.product-name-text {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.45;
  max-height: 2.9em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.sort-control select { width: 154px; padding-block: 10px; }

details.row-actions { display: flex; gap: 8px; }
.row-actions > summary { display: none; }
.action-menu { display: contents; }

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .table-wrap { overflow: visible; margin-top: 12px; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #dfe6f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 50, 81, .05);
  }
  .table-wrap td {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
    white-space: normal;
  }
  .table-wrap td::before { content: attr(data-label); color: #68778e; font-size: 13px; font-weight: 700; }
  .product-name-cell { width: auto; min-width: 0; max-width: none; }
  .product-name-text { max-height: 2.9em; }
  .table-wrap td:last-child { display: block; padding-top: 12px; border-bottom: 0; }
  .table-wrap td:last-child::before { display: block; margin-bottom: 8px; }
  details.row-actions { display: block; }
  .row-actions > summary { display: none; }
  .action-menu { display: flex; flex-wrap: wrap; gap: 8px; }
  .action-menu button { flex: 1 1 calc(50% - 4px); min-width: calc(50% - 4px); min-height: 40px; padding: 8px; }
  .toolbar > .sort-control { display: flex; width: 100%; margin: 0; }
  .sort-control select { width: 154px; }
}
